2 * FILE : src/mac/windows.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initwindowsc
56 #define SWIG_name "windowsc"
59 #include <wx/menuitem.h>
60 #include <wx/tooltip.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "String type required";
95 static wxString
wxPyEmptyStr("");
97 class wxPyValidator
: public wxValidator
{
98 DECLARE_DYNAMIC_CLASS(wxPyValidator
);
106 wxObject
* Clone() const {
107 wxPyValidator
* ptr
= NULL
;
108 wxPyValidator
* self
= (wxPyValidator
*)this;
110 wxPyTState
* state
= wxPyBeginBlockThreads();
111 if (self
->m_myInst
.findCallback("Clone")) {
113 ro
= self
->m_myInst
.callCallbackObj(Py_BuildValue("()"));
115 SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxPyValidator_p");
119 wxPyEndBlockThreads(state
);
121 // This is very dangerous!!! But is the only way I could find
122 // to squash a memory leak. Currently it is okay, but if the
123 // validator architecture in wxWindows ever changes, problems
130 DEC_PYCALLBACK_BOOL_WXWIN(Validate
);
131 DEC_PYCALLBACK_BOOL_(TransferToWindow
);
132 DEC_PYCALLBACK_BOOL_(TransferFromWindow
);
137 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator
, wxValidator
, Validate
);
138 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferToWindow
);
139 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferFromWindow
);
141 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator
, wxValidator
);
146 static void *SwigwxEvtHandlerTowxObject(void *ptr
) {
149 src
= (wxEvtHandler
*) ptr
;
150 dest
= (wxObject
*) src
;
151 return (void *) dest
;
154 #define new_wxEvtHandler() (new wxEvtHandler())
155 static PyObject
*_wrap_new_wxEvtHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
156 PyObject
* _resultobj
;
157 wxEvtHandler
* _result
;
158 char *_kwnames
[] = { NULL
};
162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEvtHandler",_kwnames
))
165 wxPy_BEGIN_ALLOW_THREADS
;
166 _result
= (wxEvtHandler
*)new_wxEvtHandler();
168 wxPy_END_ALLOW_THREADS
;
169 if (PyErr_Occurred()) return NULL
;
171 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxEvtHandler_p");
172 _resultobj
= Py_BuildValue("s",_ptemp
);
175 _resultobj
= Py_None
;
180 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
181 static PyObject
*_wrap_wxEvtHandler_ProcessEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
182 PyObject
* _resultobj
;
184 wxEvtHandler
* _arg0
;
186 PyObject
* _argo0
= 0;
187 PyObject
* _argo1
= 0;
188 char *_kwnames
[] = { "self","event", NULL
};
191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_ProcessEvent",_kwnames
,&_argo0
,&_argo1
))
194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
201 if (_argo1
== Py_None
) { _arg1
= NULL
; }
202 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
208 wxPy_BEGIN_ALLOW_THREADS
;
209 _result
= (bool )wxEvtHandler_ProcessEvent(_arg0
,*_arg1
);
211 wxPy_END_ALLOW_THREADS
;
212 if (PyErr_Occurred()) return NULL
;
213 } _resultobj
= Py_BuildValue("i",_result
);
217 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
218 static PyObject
*_wrap_wxEvtHandler_AddPendingEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
219 PyObject
* _resultobj
;
220 wxEvtHandler
* _arg0
;
222 PyObject
* _argo0
= 0;
223 PyObject
* _argo1
= 0;
224 char *_kwnames
[] = { "self","event", NULL
};
227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_AddPendingEvent",_kwnames
,&_argo0
,&_argo1
))
230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
237 if (_argo1
== Py_None
) { _arg1
= NULL
; }
238 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
244 wxPy_BEGIN_ALLOW_THREADS
;
245 wxEvtHandler_AddPendingEvent(_arg0
,*_arg1
);
247 wxPy_END_ALLOW_THREADS
;
248 if (PyErr_Occurred()) return NULL
;
249 } Py_INCREF(Py_None
);
250 _resultobj
= Py_None
;
254 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
255 static PyObject
*_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
256 PyObject
* _resultobj
;
258 wxEvtHandler
* _arg0
;
259 PyObject
* _argo0
= 0;
260 char *_kwnames
[] = { "self", NULL
};
263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames
,&_argo0
))
266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
273 wxPy_BEGIN_ALLOW_THREADS
;
274 _result
= (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0
);
276 wxPy_END_ALLOW_THREADS
;
277 if (PyErr_Occurred()) return NULL
;
278 } _resultobj
= Py_BuildValue("i",_result
);
282 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
283 static PyObject
*_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
284 PyObject
* _resultobj
;
285 wxEvtHandler
* _arg0
;
287 PyObject
* _argo0
= 0;
289 char *_kwnames
[] = { "self","enabled", NULL
};
292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames
,&_argo0
,&tempbool1
))
295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
301 _arg1
= (bool ) tempbool1
;
303 wxPy_BEGIN_ALLOW_THREADS
;
304 wxEvtHandler_SetEvtHandlerEnabled(_arg0
,_arg1
);
306 wxPy_END_ALLOW_THREADS
;
307 if (PyErr_Occurred()) return NULL
;
308 } Py_INCREF(Py_None
);
309 _resultobj
= Py_None
;
313 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
314 static PyObject
*_wrap_wxEvtHandler_GetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
315 PyObject
* _resultobj
;
316 wxEvtHandler
* _result
;
317 wxEvtHandler
* _arg0
;
318 PyObject
* _argo0
= 0;
319 char *_kwnames
[] = { "self", NULL
};
322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetNextHandler",_kwnames
,&_argo0
))
325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
332 wxPy_BEGIN_ALLOW_THREADS
;
333 _result
= (wxEvtHandler
*)wxEvtHandler_GetNextHandler(_arg0
);
335 wxPy_END_ALLOW_THREADS
;
336 if (PyErr_Occurred()) return NULL
;
337 }{ _resultobj
= wxPyMake_wxObject(_result
); }
341 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
342 static PyObject
*_wrap_wxEvtHandler_GetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
343 PyObject
* _resultobj
;
344 wxEvtHandler
* _result
;
345 wxEvtHandler
* _arg0
;
346 PyObject
* _argo0
= 0;
347 char *_kwnames
[] = { "self", NULL
};
350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetPreviousHandler",_kwnames
,&_argo0
))
353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
360 wxPy_BEGIN_ALLOW_THREADS
;
361 _result
= (wxEvtHandler
*)wxEvtHandler_GetPreviousHandler(_arg0
);
363 wxPy_END_ALLOW_THREADS
;
364 if (PyErr_Occurred()) return NULL
;
365 }{ _resultobj
= wxPyMake_wxObject(_result
); }
369 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
370 static PyObject
*_wrap_wxEvtHandler_SetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
371 PyObject
* _resultobj
;
372 wxEvtHandler
* _arg0
;
373 wxEvtHandler
* _arg1
;
374 PyObject
* _argo0
= 0;
375 PyObject
* _argo1
= 0;
376 char *_kwnames
[] = { "self","handler", NULL
};
379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetNextHandler",_kwnames
,&_argo0
,&_argo1
))
382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
389 if (_argo1
== Py_None
) { _arg1
= NULL
; }
390 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
396 wxPy_BEGIN_ALLOW_THREADS
;
397 wxEvtHandler_SetNextHandler(_arg0
,_arg1
);
399 wxPy_END_ALLOW_THREADS
;
400 if (PyErr_Occurred()) return NULL
;
401 } Py_INCREF(Py_None
);
402 _resultobj
= Py_None
;
406 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
407 static PyObject
*_wrap_wxEvtHandler_SetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
408 PyObject
* _resultobj
;
409 wxEvtHandler
* _arg0
;
410 wxEvtHandler
* _arg1
;
411 PyObject
* _argo0
= 0;
412 PyObject
* _argo1
= 0;
413 char *_kwnames
[] = { "self","handler", NULL
};
416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetPreviousHandler",_kwnames
,&_argo0
,&_argo1
))
419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
426 if (_argo1
== Py_None
) { _arg1
= NULL
; }
427 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
433 wxPy_BEGIN_ALLOW_THREADS
;
434 wxEvtHandler_SetPreviousHandler(_arg0
,_arg1
);
436 wxPy_END_ALLOW_THREADS
;
437 if (PyErr_Occurred()) return NULL
;
438 } Py_INCREF(Py_None
);
439 _resultobj
= Py_None
;
443 static void wxEvtHandler_Connect(wxEvtHandler
*self
,int id
,int lastId
,int eventType
,PyObject
* func
) {
444 if (PyCallable_Check(func
)) {
445 self
->Connect(id
, lastId
, eventType
,
446 (wxObjectEventFunction
) &wxPyCallback::EventThunker
,
447 new wxPyCallback(func
));
449 else if (func
== Py_None
) {
450 self
->Disconnect(id
, lastId
, eventType
,
451 (wxObjectEventFunction
)
452 &wxPyCallback::EventThunker
);
455 PyErr_SetString(PyExc_TypeError
, "Expected callable object or None.");
458 static PyObject
*_wrap_wxEvtHandler_Connect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
459 PyObject
* _resultobj
;
460 wxEvtHandler
* _arg0
;
465 PyObject
* _argo0
= 0;
466 PyObject
* _obj4
= 0;
467 char *_kwnames
[] = { "self","id","lastId","eventType","func", NULL
};
470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiO:wxEvtHandler_Connect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_obj4
))
473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
483 wxPy_BEGIN_ALLOW_THREADS
;
484 wxEvtHandler_Connect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
486 wxPy_END_ALLOW_THREADS
;
487 if (PyErr_Occurred()) return NULL
;
488 } Py_INCREF(Py_None
);
489 _resultobj
= Py_None
;
493 static bool wxEvtHandler_Disconnect(wxEvtHandler
*self
,int id
,int lastId
,wxEventType eventType
) {
494 return self
->Disconnect(id
, lastId
, eventType
,
495 (wxObjectEventFunction
)
496 &wxPyCallback::EventThunker
);
498 static PyObject
*_wrap_wxEvtHandler_Disconnect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
499 PyObject
* _resultobj
;
501 wxEvtHandler
* _arg0
;
503 int _arg2
= (int ) -1;
504 wxEventType _arg3
= (wxEventType
) wxEVT_NULL
;
505 PyObject
* _argo0
= 0;
506 char *_kwnames
[] = { "self","id","lastId","eventType", NULL
};
509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxEvtHandler_Disconnect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
519 wxPy_BEGIN_ALLOW_THREADS
;
520 _result
= (bool )wxEvtHandler_Disconnect(_arg0
,_arg1
,_arg2
,_arg3
);
522 wxPy_END_ALLOW_THREADS
;
523 if (PyErr_Occurred()) return NULL
;
524 } _resultobj
= Py_BuildValue("i",_result
);
528 static void wxEvtHandler__setOORInfo(wxEvtHandler
*self
,PyObject
* _self
) {
529 self
->SetClientObject(new wxPyClientData(_self
));
531 static PyObject
*_wrap_wxEvtHandler__setOORInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
532 PyObject
* _resultobj
;
533 wxEvtHandler
* _arg0
;
535 PyObject
* _argo0
= 0;
536 PyObject
* _obj1
= 0;
537 char *_kwnames
[] = { "self","_self", NULL
};
540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler__setOORInfo",_kwnames
,&_argo0
,&_obj1
))
543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p.");
553 wxPy_BEGIN_ALLOW_THREADS
;
554 wxEvtHandler__setOORInfo(_arg0
,_arg1
);
556 wxPy_END_ALLOW_THREADS
;
557 if (PyErr_Occurred()) return NULL
;
558 } Py_INCREF(Py_None
);
559 _resultobj
= Py_None
;
563 static void *SwigwxValidatorTowxEvtHandler(void *ptr
) {
566 src
= (wxValidator
*) ptr
;
567 dest
= (wxEvtHandler
*) src
;
568 return (void *) dest
;
571 static void *SwigwxValidatorTowxObject(void *ptr
) {
574 src
= (wxValidator
*) ptr
;
575 dest
= (wxObject
*) src
;
576 return (void *) dest
;
579 #define new_wxValidator() (new wxValidator())
580 static PyObject
*_wrap_new_wxValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
581 PyObject
* _resultobj
;
582 wxValidator
* _result
;
583 char *_kwnames
[] = { NULL
};
587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxValidator",_kwnames
))
590 wxPy_BEGIN_ALLOW_THREADS
;
591 _result
= (wxValidator
*)new_wxValidator();
593 wxPy_END_ALLOW_THREADS
;
594 if (PyErr_Occurred()) return NULL
;
596 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxValidator_p");
597 _resultobj
= Py_BuildValue("s",_ptemp
);
600 _resultobj
= Py_None
;
605 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
606 static PyObject
*_wrap_wxValidator_Clone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
607 PyObject
* _resultobj
;
608 wxValidator
* _result
;
610 PyObject
* _argo0
= 0;
611 char *_kwnames
[] = { "self", NULL
};
614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_Clone",_kwnames
,&_argo0
))
617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
624 wxPy_BEGIN_ALLOW_THREADS
;
625 _result
= (wxValidator
*)wxValidator_Clone(_arg0
);
627 wxPy_END_ALLOW_THREADS
;
628 if (PyErr_Occurred()) return NULL
;
629 }{ _resultobj
= wxPyMake_wxObject(_result
); }
633 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
634 static PyObject
*_wrap_wxValidator_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
635 PyObject
* _resultobj
;
638 PyObject
* _argo0
= 0;
639 char *_kwnames
[] = { "self", NULL
};
642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_GetWindow",_kwnames
,&_argo0
))
645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
652 wxPy_BEGIN_ALLOW_THREADS
;
653 _result
= (wxWindow
*)wxValidator_GetWindow(_arg0
);
655 wxPy_END_ALLOW_THREADS
;
656 if (PyErr_Occurred()) return NULL
;
657 }{ _resultobj
= wxPyMake_wxObject(_result
); }
661 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
662 static PyObject
*_wrap_wxValidator_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
663 PyObject
* _resultobj
;
666 PyObject
* _argo0
= 0;
667 PyObject
* _argo1
= 0;
668 char *_kwnames
[] = { "self","window", NULL
};
671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxValidator_SetWindow",_kwnames
,&_argo0
,&_argo1
))
674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
681 if (_argo1
== Py_None
) { _arg1
= NULL
; }
682 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
688 wxPy_BEGIN_ALLOW_THREADS
;
689 wxValidator_SetWindow(_arg0
,_arg1
);
691 wxPy_END_ALLOW_THREADS
;
692 if (PyErr_Occurred()) return NULL
;
693 } Py_INCREF(Py_None
);
694 _resultobj
= Py_None
;
698 static PyObject
*_wrap_wxValidator_IsSilent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
699 PyObject
* _resultobj
;
701 char *_kwnames
[] = { NULL
};
704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxValidator_IsSilent",_kwnames
))
707 wxPy_BEGIN_ALLOW_THREADS
;
708 _result
= (bool )wxValidator::IsSilent();
710 wxPy_END_ALLOW_THREADS
;
711 if (PyErr_Occurred()) return NULL
;
712 } _resultobj
= Py_BuildValue("i",_result
);
716 static PyObject
*_wrap_wxValidator_SetBellOnError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
717 PyObject
* _resultobj
;
718 int _arg0
= (int ) TRUE
;
719 char *_kwnames
[] = { "doIt", NULL
};
722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxValidator_SetBellOnError",_kwnames
,&_arg0
))
725 wxPy_BEGIN_ALLOW_THREADS
;
726 wxValidator::SetBellOnError(_arg0
);
728 wxPy_END_ALLOW_THREADS
;
729 if (PyErr_Occurred()) return NULL
;
730 } Py_INCREF(Py_None
);
731 _resultobj
= Py_None
;
735 static void *SwigwxPyValidatorTowxValidator(void *ptr
) {
738 src
= (wxPyValidator
*) ptr
;
739 dest
= (wxValidator
*) src
;
740 return (void *) dest
;
743 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr
) {
746 src
= (wxPyValidator
*) ptr
;
747 dest
= (wxEvtHandler
*) src
;
748 return (void *) dest
;
751 static void *SwigwxPyValidatorTowxObject(void *ptr
) {
754 src
= (wxPyValidator
*) ptr
;
755 dest
= (wxObject
*) src
;
756 return (void *) dest
;
759 #define new_wxPyValidator() (new wxPyValidator())
760 static PyObject
*_wrap_new_wxPyValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
761 PyObject
* _resultobj
;
762 wxPyValidator
* _result
;
763 char *_kwnames
[] = { NULL
};
767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPyValidator",_kwnames
))
770 wxPy_BEGIN_ALLOW_THREADS
;
771 _result
= (wxPyValidator
*)new_wxPyValidator();
773 wxPy_END_ALLOW_THREADS
;
774 if (PyErr_Occurred()) return NULL
;
776 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyValidator_p");
777 _resultobj
= Py_BuildValue("s",_ptemp
);
780 _resultobj
= Py_None
;
785 #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
786 static PyObject
*_wrap_wxPyValidator__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
787 PyObject
* _resultobj
;
788 wxPyValidator
* _arg0
;
791 int _arg3
= (int ) TRUE
;
792 PyObject
* _argo0
= 0;
793 PyObject
* _obj1
= 0;
794 PyObject
* _obj2
= 0;
795 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyValidator_p")) {
803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p.");
814 wxPy_BEGIN_ALLOW_THREADS
;
815 wxPyValidator__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
817 wxPy_END_ALLOW_THREADS
;
818 if (PyErr_Occurred()) return NULL
;
819 } Py_INCREF(Py_None
);
820 _resultobj
= Py_None
;
824 static void *SwigwxWindowTowxEvtHandler(void *ptr
) {
827 src
= (wxWindow
*) ptr
;
828 dest
= (wxEvtHandler
*) src
;
829 return (void *) dest
;
832 static void *SwigwxWindowTowxObject(void *ptr
) {
835 src
= (wxWindow
*) ptr
;
836 dest
= (wxObject
*) src
;
837 return (void *) dest
;
840 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
841 static PyObject
*_wrap_new_wxWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
842 PyObject
* _resultobj
;
846 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
847 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
848 long _arg4
= (long ) 0;
849 char * _arg5
= (char *) "panel";
850 PyObject
* _argo0
= 0;
852 PyObject
* _obj2
= 0;
854 PyObject
* _obj3
= 0;
855 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
871 if (! wxPoint_helper(_obj2
, &_arg2
))
877 if (! wxSize_helper(_obj3
, &_arg3
))
881 wxPy_BEGIN_ALLOW_THREADS
;
882 _result
= (wxWindow
*)new_wxWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
884 wxPy_END_ALLOW_THREADS
;
885 if (PyErr_Occurred()) return NULL
;
887 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
888 _resultobj
= Py_BuildValue("s",_ptemp
);
891 _resultobj
= Py_None
;
896 #define new_wxPreWindow() (new wxWindow())
897 static PyObject
*_wrap_new_wxPreWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
898 PyObject
* _resultobj
;
900 char *_kwnames
[] = { NULL
};
904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreWindow",_kwnames
))
907 wxPy_BEGIN_ALLOW_THREADS
;
908 _result
= (wxWindow
*)new_wxPreWindow();
910 wxPy_END_ALLOW_THREADS
;
911 if (PyErr_Occurred()) return NULL
;
913 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
914 _resultobj
= Py_BuildValue("s",_ptemp
);
917 _resultobj
= Py_None
;
922 #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
923 static PyObject
*_wrap_wxWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
924 PyObject
* _resultobj
;
929 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
930 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
931 long _arg5
= (long ) 0;
932 char * _arg6
= (char *) "panel";
933 PyObject
* _argo0
= 0;
934 PyObject
* _argo1
= 0;
936 PyObject
* _obj3
= 0;
938 PyObject
* _obj4
= 0;
939 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p.");
952 if (_argo1
== Py_None
) { _arg1
= NULL
; }
953 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p.");
961 if (! wxPoint_helper(_obj3
, &_arg3
))
967 if (! wxSize_helper(_obj4
, &_arg4
))
971 wxPy_BEGIN_ALLOW_THREADS
;
972 _result
= (bool )wxWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
974 wxPy_END_ALLOW_THREADS
;
975 if (PyErr_Occurred()) return NULL
;
976 } _resultobj
= Py_BuildValue("i",_result
);
980 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
981 static PyObject
*_wrap_wxWindow_CaptureMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
982 PyObject
* _resultobj
;
984 PyObject
* _argo0
= 0;
985 char *_kwnames
[] = { "self", NULL
};
988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_CaptureMouse",_kwnames
,&_argo0
))
991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
998 wxPy_BEGIN_ALLOW_THREADS
;
999 wxWindow_CaptureMouse(_arg0
);
1001 wxPy_END_ALLOW_THREADS
;
1002 if (PyErr_Occurred()) return NULL
;
1003 } Py_INCREF(Py_None
);
1004 _resultobj
= Py_None
;
1008 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
1009 static PyObject
*_wrap_wxWindow_Center(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1010 PyObject
* _resultobj
;
1012 int _arg1
= (int ) wxBOTH
;
1013 PyObject
* _argo0
= 0;
1014 char *_kwnames
[] = { "self","direction", NULL
};
1017 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Center",_kwnames
,&_argo0
,&_arg1
))
1020 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1021 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1022 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1027 wxPy_BEGIN_ALLOW_THREADS
;
1028 wxWindow_Center(_arg0
,_arg1
);
1030 wxPy_END_ALLOW_THREADS
;
1031 if (PyErr_Occurred()) return NULL
;
1032 } Py_INCREF(Py_None
);
1033 _resultobj
= Py_None
;
1037 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1038 static PyObject
*_wrap_wxWindow_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1039 PyObject
* _resultobj
;
1041 int _arg1
= (int ) wxBOTH
;
1042 PyObject
* _argo0
= 0;
1043 char *_kwnames
[] = { "self","direction", NULL
};
1046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Centre",_kwnames
,&_argo0
,&_arg1
))
1049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1056 wxPy_BEGIN_ALLOW_THREADS
;
1057 wxWindow_Centre(_arg0
,_arg1
);
1059 wxPy_END_ALLOW_THREADS
;
1060 if (PyErr_Occurred()) return NULL
;
1061 } Py_INCREF(Py_None
);
1062 _resultobj
= Py_None
;
1066 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1067 static PyObject
*_wrap_wxWindow_CentreOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1068 PyObject
* _resultobj
;
1070 int _arg1
= (int ) wxBOTH
;
1071 PyObject
* _argo0
= 0;
1072 char *_kwnames
[] = { "self","direction", NULL
};
1075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnParent",_kwnames
,&_argo0
,&_arg1
))
1078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1085 wxPy_BEGIN_ALLOW_THREADS
;
1086 wxWindow_CentreOnParent(_arg0
,_arg1
);
1088 wxPy_END_ALLOW_THREADS
;
1089 if (PyErr_Occurred()) return NULL
;
1090 } Py_INCREF(Py_None
);
1091 _resultobj
= Py_None
;
1095 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1096 static PyObject
*_wrap_wxWindow_CenterOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1097 PyObject
* _resultobj
;
1099 int _arg1
= (int ) wxBOTH
;
1100 PyObject
* _argo0
= 0;
1101 char *_kwnames
[] = { "self","direction", NULL
};
1104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnParent",_kwnames
,&_argo0
,&_arg1
))
1107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1114 wxPy_BEGIN_ALLOW_THREADS
;
1115 wxWindow_CenterOnParent(_arg0
,_arg1
);
1117 wxPy_END_ALLOW_THREADS
;
1118 if (PyErr_Occurred()) return NULL
;
1119 } Py_INCREF(Py_None
);
1120 _resultobj
= Py_None
;
1124 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1125 static PyObject
*_wrap_wxWindow_CentreOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1126 PyObject
* _resultobj
;
1128 int _arg1
= (int ) wxBOTH
;
1129 PyObject
* _argo0
= 0;
1130 char *_kwnames
[] = { "self","direction", NULL
};
1133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnScreen",_kwnames
,&_argo0
,&_arg1
))
1136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1143 wxPy_BEGIN_ALLOW_THREADS
;
1144 wxWindow_CentreOnScreen(_arg0
,_arg1
);
1146 wxPy_END_ALLOW_THREADS
;
1147 if (PyErr_Occurred()) return NULL
;
1148 } Py_INCREF(Py_None
);
1149 _resultobj
= Py_None
;
1153 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1154 static PyObject
*_wrap_wxWindow_CenterOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1155 PyObject
* _resultobj
;
1157 int _arg1
= (int ) wxBOTH
;
1158 PyObject
* _argo0
= 0;
1159 char *_kwnames
[] = { "self","direction", NULL
};
1162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnScreen",_kwnames
,&_argo0
,&_arg1
))
1165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1172 wxPy_BEGIN_ALLOW_THREADS
;
1173 wxWindow_CenterOnScreen(_arg0
,_arg1
);
1175 wxPy_END_ALLOW_THREADS
;
1176 if (PyErr_Occurred()) return NULL
;
1177 } Py_INCREF(Py_None
);
1178 _resultobj
= Py_None
;
1182 #define wxWindow_Clear(_swigobj) (_swigobj->Clear())
1183 static PyObject
*_wrap_wxWindow_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1184 PyObject
* _resultobj
;
1186 PyObject
* _argo0
= 0;
1187 char *_kwnames
[] = { "self", NULL
};
1190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Clear",_kwnames
,&_argo0
))
1193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1200 wxPy_BEGIN_ALLOW_THREADS
;
1201 wxWindow_Clear(_arg0
);
1203 wxPy_END_ALLOW_THREADS
;
1204 if (PyErr_Occurred()) return NULL
;
1205 } Py_INCREF(Py_None
);
1206 _resultobj
= Py_None
;
1210 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1211 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1212 PyObject
* _resultobj
;
1216 PyObject
* _argo0
= 0;
1218 PyObject
* _obj1
= 0;
1220 PyObject
* _obj2
= 0;
1221 char *_kwnames
[] = { "self","x","y", NULL
};
1224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1234 temp
= (int) PyInt_AsLong(_obj1
);
1238 temp0
= (int) PyInt_AsLong(_obj2
);
1242 wxPy_BEGIN_ALLOW_THREADS
;
1243 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1245 wxPy_END_ALLOW_THREADS
;
1246 if (PyErr_Occurred()) return NULL
;
1247 } Py_INCREF(Py_None
);
1248 _resultobj
= Py_None
;
1251 o
= PyInt_FromLong((long) (*_arg1
));
1252 _resultobj
= t_output_helper(_resultobj
, o
);
1256 o
= PyInt_FromLong((long) (*_arg2
));
1257 _resultobj
= t_output_helper(_resultobj
, o
);
1262 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1263 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1264 PyObject
* _resultobj
;
1268 PyObject
* _argo0
= 0;
1270 PyObject
* _obj1
= 0;
1271 char *_kwnames
[] = { "self","pt", NULL
};
1275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1286 if (! wxPoint_helper(_obj1
, &_arg1
))
1290 wxPy_BEGIN_ALLOW_THREADS
;
1291 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1293 wxPy_END_ALLOW_THREADS
;
1294 if (PyErr_Occurred()) return NULL
;
1295 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1296 _resultobj
= Py_BuildValue("s",_ptemp
);
1300 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1301 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1302 PyObject
* _resultobj
;
1305 int _arg1
= (int ) FALSE
;
1306 PyObject
* _argo0
= 0;
1307 char *_kwnames
[] = { "self","force", NULL
};
1310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
1313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1320 wxPy_BEGIN_ALLOW_THREADS
;
1321 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1323 wxPy_END_ALLOW_THREADS
;
1324 if (PyErr_Occurred()) return NULL
;
1325 } _resultobj
= Py_BuildValue("i",_result
);
1329 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1330 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1331 PyObject
* _resultobj
;
1334 PyObject
* _argo0
= 0;
1335 char *_kwnames
[] = { "self", NULL
};
1338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1348 wxPy_BEGIN_ALLOW_THREADS
;
1349 _result
= (bool )wxWindow_Destroy(_arg0
);
1351 wxPy_END_ALLOW_THREADS
;
1352 if (PyErr_Occurred()) return NULL
;
1353 } _resultobj
= Py_BuildValue("i",_result
);
1357 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1358 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1359 PyObject
* _resultobj
;
1361 PyObject
* _argo0
= 0;
1362 char *_kwnames
[] = { "self", NULL
};
1365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1368 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1369 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1375 wxPy_BEGIN_ALLOW_THREADS
;
1376 wxWindow_DestroyChildren(_arg0
);
1378 wxPy_END_ALLOW_THREADS
;
1379 if (PyErr_Occurred()) return NULL
;
1380 } Py_INCREF(Py_None
);
1381 _resultobj
= Py_None
;
1385 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1386 static PyObject
*_wrap_wxWindow_IsBeingDeleted(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1387 PyObject
* _resultobj
;
1390 PyObject
* _argo0
= 0;
1391 char *_kwnames
[] = { "self", NULL
};
1394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsBeingDeleted",_kwnames
,&_argo0
))
1397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1404 wxPy_BEGIN_ALLOW_THREADS
;
1405 _result
= (bool )wxWindow_IsBeingDeleted(_arg0
);
1407 wxPy_END_ALLOW_THREADS
;
1408 if (PyErr_Occurred()) return NULL
;
1409 } _resultobj
= Py_BuildValue("i",_result
);
1413 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1414 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1415 PyObject
* _resultobj
;
1418 PyObject
* _argo0
= 0;
1420 char *_kwnames
[] = { "self","enable", NULL
};
1423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1432 _arg1
= (bool ) tempbool1
;
1434 wxPy_BEGIN_ALLOW_THREADS
;
1435 wxWindow_Enable(_arg0
,_arg1
);
1437 wxPy_END_ALLOW_THREADS
;
1438 if (PyErr_Occurred()) return NULL
;
1439 } Py_INCREF(Py_None
);
1440 _resultobj
= Py_None
;
1444 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1445 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1446 PyObject
* _resultobj
;
1450 PyObject
* _argo0
= 0;
1451 char *_kwnames
[] = { "self","id", NULL
};
1454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1464 wxPy_BEGIN_ALLOW_THREADS
;
1465 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1467 wxPy_END_ALLOW_THREADS
;
1468 if (PyErr_Occurred()) return NULL
;
1469 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1473 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1474 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1475 PyObject
* _resultobj
;
1479 PyObject
* _argo0
= 0;
1480 PyObject
* _obj1
= 0;
1481 char *_kwnames
[] = { "self","name", NULL
};
1484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1494 #if PYTHON_API_VERSION >= 1009
1495 char* tmpPtr
; int tmpSize
;
1496 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1497 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1500 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1502 _arg1
= new wxString(tmpPtr
, tmpSize
);
1504 if (!PyString_Check(_obj1
)) {
1505 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1508 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1512 wxPy_BEGIN_ALLOW_THREADS
;
1513 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1515 wxPy_END_ALLOW_THREADS
;
1516 if (PyErr_Occurred()) return NULL
;
1517 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1525 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1526 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1527 PyObject
* _resultobj
;
1529 PyObject
* _argo0
= 0;
1530 char *_kwnames
[] = { "self", NULL
};
1533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_kwnames
,&_argo0
))
1536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1543 wxPy_BEGIN_ALLOW_THREADS
;
1544 wxWindow_Fit(_arg0
);
1546 wxPy_END_ALLOW_THREADS
;
1547 if (PyErr_Occurred()) return NULL
;
1548 } Py_INCREF(Py_None
);
1549 _resultobj
= Py_None
;
1553 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1554 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1555 PyObject
* _resultobj
;
1558 PyObject
* _argo0
= 0;
1559 char *_kwnames
[] = { "self", NULL
};
1563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1573 wxPy_BEGIN_ALLOW_THREADS
;
1574 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1576 wxPy_END_ALLOW_THREADS
;
1577 if (PyErr_Occurred()) return NULL
;
1578 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1579 _resultobj
= Py_BuildValue("s",_ptemp
);
1583 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1584 wxWindowList
& list
= self
->GetChildren();
1585 return wxPy_ConvertList(&list
, "wxWindow");
1587 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1588 PyObject
* _resultobj
;
1591 PyObject
* _argo0
= 0;
1592 char *_kwnames
[] = { "self", NULL
};
1595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1605 wxPy_BEGIN_ALLOW_THREADS
;
1606 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1608 wxPy_END_ALLOW_THREADS
;
1609 if (PyErr_Occurred()) return NULL
;
1611 _resultobj
= _result
;
1616 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1617 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1618 PyObject
* _resultobj
;
1621 PyObject
* _argo0
= 0;
1622 char *_kwnames
[] = { "self", NULL
};
1625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1635 wxPy_BEGIN_ALLOW_THREADS
;
1636 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1638 wxPy_END_ALLOW_THREADS
;
1639 if (PyErr_Occurred()) return NULL
;
1640 } _resultobj
= Py_BuildValue("i",_result
);
1644 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1645 static PyObject
*_wrap_wxWindow_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1646 PyObject
* _resultobj
;
1649 PyObject
* _argo0
= 0;
1650 char *_kwnames
[] = { "self", NULL
};
1653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharWidth",_kwnames
,&_argo0
))
1656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1663 wxPy_BEGIN_ALLOW_THREADS
;
1664 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1666 wxPy_END_ALLOW_THREADS
;
1667 if (PyErr_Occurred()) return NULL
;
1668 } _resultobj
= Py_BuildValue("i",_result
);
1672 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1673 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1674 PyObject
* _resultobj
;
1680 PyObject
* _argo0
= 0;
1681 char *_kwnames
[] = { "self", NULL
};
1690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_kwnames
,&_argo0
))
1693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1700 wxPy_BEGIN_ALLOW_THREADS
;
1701 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1703 wxPy_END_ALLOW_THREADS
;
1704 if (PyErr_Occurred()) return NULL
;
1705 } Py_INCREF(Py_None
);
1706 _resultobj
= Py_None
;
1709 o
= PyInt_FromLong((long) (*_arg1
));
1710 _resultobj
= t_output_helper(_resultobj
, o
);
1714 o
= PyInt_FromLong((long) (*_arg2
));
1715 _resultobj
= t_output_helper(_resultobj
, o
);
1720 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1721 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1722 PyObject
* _resultobj
;
1725 PyObject
* _argo0
= 0;
1726 char *_kwnames
[] = { "self", NULL
};
1730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1740 wxPy_BEGIN_ALLOW_THREADS
;
1741 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1743 wxPy_END_ALLOW_THREADS
;
1744 if (PyErr_Occurred()) return NULL
;
1745 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1746 _resultobj
= Py_BuildValue("s",_ptemp
);
1750 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1751 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1752 PyObject
* _resultobj
;
1753 wxLayoutConstraints
* _result
;
1755 PyObject
* _argo0
= 0;
1756 char *_kwnames
[] = { "self", NULL
};
1760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1770 wxPy_BEGIN_ALLOW_THREADS
;
1771 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1773 wxPy_END_ALLOW_THREADS
;
1774 if (PyErr_Occurred()) return NULL
;
1776 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1777 _resultobj
= Py_BuildValue("s",_ptemp
);
1780 _resultobj
= Py_None
;
1785 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1786 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1787 PyObject
* _resultobj
;
1788 wxEvtHandler
* _result
;
1790 PyObject
* _argo0
= 0;
1791 char *_kwnames
[] = { "self", NULL
};
1794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1804 wxPy_BEGIN_ALLOW_THREADS
;
1805 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1807 wxPy_END_ALLOW_THREADS
;
1808 if (PyErr_Occurred()) return NULL
;
1809 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1813 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1814 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1815 PyObject
* _resultobj
;
1818 PyObject
* _argo0
= 0;
1819 char *_kwnames
[] = { "self", NULL
};
1823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_kwnames
,&_argo0
))
1826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1833 wxPy_BEGIN_ALLOW_THREADS
;
1834 _result
= new wxFont (wxWindow_GetFont(_arg0
));
1836 wxPy_END_ALLOW_THREADS
;
1837 if (PyErr_Occurred()) return NULL
;
1838 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
1839 _resultobj
= Py_BuildValue("s",_ptemp
);
1843 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1844 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1845 PyObject
* _resultobj
;
1848 PyObject
* _argo0
= 0;
1849 char *_kwnames
[] = { "self", NULL
};
1853 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1856 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1857 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1863 wxPy_BEGIN_ALLOW_THREADS
;
1864 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1866 wxPy_END_ALLOW_THREADS
;
1867 if (PyErr_Occurred()) return NULL
;
1868 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1869 _resultobj
= Py_BuildValue("s",_ptemp
);
1873 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1874 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1875 PyObject
* _resultobj
;
1878 PyObject
* _argo0
= 0;
1879 char *_kwnames
[] = { "self", NULL
};
1882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_kwnames
,&_argo0
))
1885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1892 wxPy_BEGIN_ALLOW_THREADS
;
1893 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1895 wxPy_END_ALLOW_THREADS
;
1896 if (PyErr_Occurred()) return NULL
;
1897 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1901 static long wxWindow_GetHandle(wxWindow
*self
) {
1902 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1904 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1905 PyObject
* _resultobj
;
1908 PyObject
* _argo0
= 0;
1909 char *_kwnames
[] = { "self", NULL
};
1912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_kwnames
,&_argo0
))
1915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
1922 wxPy_BEGIN_ALLOW_THREADS
;
1923 _result
= (long )wxWindow_GetHandle(_arg0
);
1925 wxPy_END_ALLOW_THREADS
;
1926 if (PyErr_Occurred()) return NULL
;
1927 } _resultobj
= Py_BuildValue("l",_result
);
1931 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1932 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1933 PyObject
* _resultobj
;
1936 PyObject
* _argo0
= 0;
1937 char *_kwnames
[] = { "self", NULL
};
1940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
1943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
1950 wxPy_BEGIN_ALLOW_THREADS
;
1951 _result
= (int )wxWindow_GetId(_arg0
);
1953 wxPy_END_ALLOW_THREADS
;
1954 if (PyErr_Occurred()) return NULL
;
1955 } _resultobj
= Py_BuildValue("i",_result
);
1959 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1960 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1961 PyObject
* _resultobj
;
1964 PyObject
* _argo0
= 0;
1965 char *_kwnames
[] = { "self", NULL
};
1968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
1971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
1978 wxPy_BEGIN_ALLOW_THREADS
;
1979 _result
= new wxString (wxWindow_GetLabel(_arg0
));
1981 wxPy_END_ALLOW_THREADS
;
1982 if (PyErr_Occurred()) return NULL
;
1984 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1992 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1993 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1994 PyObject
* _resultobj
;
1997 PyObject
* _argo0
= 0;
1998 PyObject
* _obj1
= 0;
1999 char *_kwnames
[] = { "self","label", NULL
};
2002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
2005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2012 #if PYTHON_API_VERSION >= 1009
2013 char* tmpPtr
; int tmpSize
;
2014 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2015 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2018 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2020 _arg1
= new wxString(tmpPtr
, tmpSize
);
2022 if (!PyString_Check(_obj1
)) {
2023 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2026 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2030 wxPy_BEGIN_ALLOW_THREADS
;
2031 wxWindow_SetLabel(_arg0
,*_arg1
);
2033 wxPy_END_ALLOW_THREADS
;
2034 if (PyErr_Occurred()) return NULL
;
2035 } Py_INCREF(Py_None
);
2036 _resultobj
= Py_None
;
2044 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2045 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2046 PyObject
* _resultobj
;
2049 PyObject
* _argo0
= 0;
2050 char *_kwnames
[] = { "self", NULL
};
2053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2063 wxPy_BEGIN_ALLOW_THREADS
;
2064 _result
= new wxString (wxWindow_GetName(_arg0
));
2066 wxPy_END_ALLOW_THREADS
;
2067 if (PyErr_Occurred()) return NULL
;
2069 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2077 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2078 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2079 PyObject
* _resultobj
;
2082 PyObject
* _argo0
= 0;
2083 char *_kwnames
[] = { "self", NULL
};
2086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2096 wxPy_BEGIN_ALLOW_THREADS
;
2097 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2099 wxPy_END_ALLOW_THREADS
;
2100 if (PyErr_Occurred()) return NULL
;
2101 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2105 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2106 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2107 PyObject
* _resultobj
;
2113 PyObject
* _argo0
= 0;
2114 char *_kwnames
[] = { "self", NULL
};
2123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2133 wxPy_BEGIN_ALLOW_THREADS
;
2134 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2136 wxPy_END_ALLOW_THREADS
;
2137 if (PyErr_Occurred()) return NULL
;
2138 } Py_INCREF(Py_None
);
2139 _resultobj
= Py_None
;
2142 o
= PyInt_FromLong((long) (*_arg1
));
2143 _resultobj
= t_output_helper(_resultobj
, o
);
2147 o
= PyInt_FromLong((long) (*_arg2
));
2148 _resultobj
= t_output_helper(_resultobj
, o
);
2153 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2154 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2155 PyObject
* _resultobj
;
2158 PyObject
* _argo0
= 0;
2159 char *_kwnames
[] = { "self", NULL
};
2163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2166 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2167 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2173 wxPy_BEGIN_ALLOW_THREADS
;
2174 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2176 wxPy_END_ALLOW_THREADS
;
2177 if (PyErr_Occurred()) return NULL
;
2178 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2179 _resultobj
= Py_BuildValue("s",_ptemp
);
2183 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2184 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2185 PyObject
* _resultobj
;
2188 PyObject
* _argo0
= 0;
2189 char *_kwnames
[] = { "self", NULL
};
2193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2196 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2197 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2198 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2203 wxPy_BEGIN_ALLOW_THREADS
;
2204 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2206 wxPy_END_ALLOW_THREADS
;
2207 if (PyErr_Occurred()) return NULL
;
2208 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2209 _resultobj
= Py_BuildValue("s",_ptemp
);
2213 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2214 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2215 PyObject
* _resultobj
;
2219 PyObject
* _argo0
= 0;
2220 char *_kwnames
[] = { "self","orientation", NULL
};
2223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2226 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2227 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2228 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2233 wxPy_BEGIN_ALLOW_THREADS
;
2234 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2236 wxPy_END_ALLOW_THREADS
;
2237 if (PyErr_Occurred()) return NULL
;
2238 } _resultobj
= Py_BuildValue("i",_result
);
2242 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2243 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2244 PyObject
* _resultobj
;
2248 PyObject
* _argo0
= 0;
2249 char *_kwnames
[] = { "self","orientation", NULL
};
2252 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
2255 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2256 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2257 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2262 wxPy_BEGIN_ALLOW_THREADS
;
2263 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2265 wxPy_END_ALLOW_THREADS
;
2266 if (PyErr_Occurred()) return NULL
;
2267 } _resultobj
= Py_BuildValue("i",_result
);
2271 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2272 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2273 PyObject
* _resultobj
;
2277 PyObject
* _argo0
= 0;
2278 char *_kwnames
[] = { "self","orientation", NULL
};
2281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2291 wxPy_BEGIN_ALLOW_THREADS
;
2292 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2294 wxPy_END_ALLOW_THREADS
;
2295 if (PyErr_Occurred()) return NULL
;
2296 } _resultobj
= Py_BuildValue("i",_result
);
2300 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2301 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2302 PyObject
* _resultobj
;
2308 PyObject
* _argo0
= 0;
2309 char *_kwnames
[] = { "self", NULL
};
2318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2328 wxPy_BEGIN_ALLOW_THREADS
;
2329 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2331 wxPy_END_ALLOW_THREADS
;
2332 if (PyErr_Occurred()) return NULL
;
2333 } Py_INCREF(Py_None
);
2334 _resultobj
= Py_None
;
2337 o
= PyInt_FromLong((long) (*_arg1
));
2338 _resultobj
= t_output_helper(_resultobj
, o
);
2342 o
= PyInt_FromLong((long) (*_arg2
));
2343 _resultobj
= t_output_helper(_resultobj
, o
);
2348 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2349 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2350 PyObject
* _resultobj
;
2353 PyObject
* _argo0
= 0;
2354 char *_kwnames
[] = { "self", NULL
};
2358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2368 wxPy_BEGIN_ALLOW_THREADS
;
2369 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2371 wxPy_END_ALLOW_THREADS
;
2372 if (PyErr_Occurred()) return NULL
;
2373 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2374 _resultobj
= Py_BuildValue("s",_ptemp
);
2378 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2379 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2380 PyObject
* _resultobj
;
2387 PyObject
* _argo0
= 0;
2388 PyObject
* _obj1
= 0;
2389 char *_kwnames
[] = { "self","string", NULL
};
2398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2408 #if PYTHON_API_VERSION >= 1009
2409 char* tmpPtr
; int tmpSize
;
2410 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2411 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2414 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2416 _arg1
= new wxString(tmpPtr
, tmpSize
);
2418 if (!PyString_Check(_obj1
)) {
2419 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2422 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2426 wxPy_BEGIN_ALLOW_THREADS
;
2427 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2429 wxPy_END_ALLOW_THREADS
;
2430 if (PyErr_Occurred()) return NULL
;
2431 } Py_INCREF(Py_None
);
2432 _resultobj
= Py_None
;
2435 o
= PyInt_FromLong((long) (*_arg2
));
2436 _resultobj
= t_output_helper(_resultobj
, o
);
2440 o
= PyInt_FromLong((long) (*_arg3
));
2441 _resultobj
= t_output_helper(_resultobj
, o
);
2450 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2451 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2452 PyObject
* _resultobj
;
2463 wxFont
* _arg6
= (wxFont
*) NULL
;
2464 PyObject
* _argo0
= 0;
2465 PyObject
* _obj1
= 0;
2466 PyObject
* _argo6
= 0;
2467 char *_kwnames
[] = { "self","string","font", NULL
};
2482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2492 #if PYTHON_API_VERSION >= 1009
2493 char* tmpPtr
; int tmpSize
;
2494 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2495 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2498 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2500 _arg1
= new wxString(tmpPtr
, tmpSize
);
2502 if (!PyString_Check(_obj1
)) {
2503 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2506 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2510 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2511 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2517 wxPy_BEGIN_ALLOW_THREADS
;
2518 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2520 wxPy_END_ALLOW_THREADS
;
2521 if (PyErr_Occurred()) return NULL
;
2522 } Py_INCREF(Py_None
);
2523 _resultobj
= Py_None
;
2526 o
= PyInt_FromLong((long) (*_arg2
));
2527 _resultobj
= t_output_helper(_resultobj
, o
);
2531 o
= PyInt_FromLong((long) (*_arg3
));
2532 _resultobj
= t_output_helper(_resultobj
, o
);
2536 o
= PyInt_FromLong((long) (*_arg4
));
2537 _resultobj
= t_output_helper(_resultobj
, o
);
2541 o
= PyInt_FromLong((long) (*_arg5
));
2542 _resultobj
= t_output_helper(_resultobj
, o
);
2551 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2552 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2553 PyObject
* _resultobj
;
2556 PyObject
* _argo0
= 0;
2557 char *_kwnames
[] = { "self", NULL
};
2560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2570 wxPy_BEGIN_ALLOW_THREADS
;
2571 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2573 wxPy_END_ALLOW_THREADS
;
2574 if (PyErr_Occurred()) return NULL
;
2576 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2584 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2585 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2586 PyObject
* _resultobj
;
2589 PyObject
* _argo0
= 0;
2590 char *_kwnames
[] = { "self", NULL
};
2594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2604 wxPy_BEGIN_ALLOW_THREADS
;
2605 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2607 wxPy_END_ALLOW_THREADS
;
2608 if (PyErr_Occurred()) return NULL
;
2609 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2610 _resultobj
= Py_BuildValue("s",_ptemp
);
2614 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2615 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2616 PyObject
* _resultobj
;
2619 PyObject
* _argo0
= 0;
2620 char *_kwnames
[] = { "self", NULL
};
2623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2633 wxPy_BEGIN_ALLOW_THREADS
;
2634 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2636 wxPy_END_ALLOW_THREADS
;
2637 if (PyErr_Occurred()) return NULL
;
2638 } _resultobj
= Py_BuildValue("l",_result
);
2642 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2643 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2644 PyObject
* _resultobj
;
2647 PyObject
* _argo0
= 0;
2648 char *_kwnames
[] = { "self","style", NULL
};
2651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2661 wxPy_BEGIN_ALLOW_THREADS
;
2662 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2664 wxPy_END_ALLOW_THREADS
;
2665 if (PyErr_Occurred()) return NULL
;
2666 } Py_INCREF(Py_None
);
2667 _resultobj
= Py_None
;
2671 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2672 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2673 PyObject
* _resultobj
;
2676 PyObject
* _argo0
= 0;
2677 char *_kwnames
[] = { "self","style", NULL
};
2680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
2683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2690 wxPy_BEGIN_ALLOW_THREADS
;
2691 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2693 wxPy_END_ALLOW_THREADS
;
2694 if (PyErr_Occurred()) return NULL
;
2695 } Py_INCREF(Py_None
);
2696 _resultobj
= Py_None
;
2700 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2701 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2702 PyObject
* _resultobj
;
2705 PyObject
* _argo0
= 0;
2706 char *_kwnames
[] = { "self", NULL
};
2709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
2712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2719 wxPy_BEGIN_ALLOW_THREADS
;
2720 _result
= (bool )wxWindow_Hide(_arg0
);
2722 wxPy_END_ALLOW_THREADS
;
2723 if (PyErr_Occurred()) return NULL
;
2724 } _resultobj
= Py_BuildValue("i",_result
);
2728 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2729 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2730 PyObject
* _resultobj
;
2732 PyObject
* _argo0
= 0;
2733 char *_kwnames
[] = { "self", NULL
};
2736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2746 wxPy_BEGIN_ALLOW_THREADS
;
2747 wxWindow_InitDialog(_arg0
);
2749 wxPy_END_ALLOW_THREADS
;
2750 if (PyErr_Occurred()) return NULL
;
2751 } Py_INCREF(Py_None
);
2752 _resultobj
= Py_None
;
2756 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2757 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2758 PyObject
* _resultobj
;
2761 PyObject
* _argo0
= 0;
2762 char *_kwnames
[] = { "self", NULL
};
2765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2775 wxPy_BEGIN_ALLOW_THREADS
;
2776 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2778 wxPy_END_ALLOW_THREADS
;
2779 if (PyErr_Occurred()) return NULL
;
2780 } _resultobj
= Py_BuildValue("i",_result
);
2784 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2785 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2786 PyObject
* _resultobj
;
2791 int _arg3
= (int ) 0;
2792 int _arg4
= (int ) 0;
2793 PyObject
* _argo0
= 0;
2794 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2800 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2801 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2807 wxPy_BEGIN_ALLOW_THREADS
;
2808 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2810 wxPy_END_ALLOW_THREADS
;
2811 if (PyErr_Occurred()) return NULL
;
2812 } _resultobj
= Py_BuildValue("i",_result
);
2816 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2817 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2818 PyObject
* _resultobj
;
2822 PyObject
* _argo0
= 0;
2824 PyObject
* _obj1
= 0;
2825 char *_kwnames
[] = { "self","pt", NULL
};
2828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2839 if (! wxPoint_helper(_obj1
, &_arg1
))
2843 wxPy_BEGIN_ALLOW_THREADS
;
2844 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2846 wxPy_END_ALLOW_THREADS
;
2847 if (PyErr_Occurred()) return NULL
;
2848 } _resultobj
= Py_BuildValue("i",_result
);
2852 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2853 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2854 PyObject
* _resultobj
;
2858 PyObject
* _argo0
= 0;
2860 PyObject
* _obj1
= 0;
2861 char *_kwnames
[] = { "self","rect", NULL
};
2864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2867 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2868 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2875 if (! wxRect_helper(_obj1
, &_arg1
))
2879 wxPy_BEGIN_ALLOW_THREADS
;
2880 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2882 wxPy_END_ALLOW_THREADS
;
2883 if (PyErr_Occurred()) return NULL
;
2884 } _resultobj
= Py_BuildValue("i",_result
);
2888 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2889 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2890 PyObject
* _resultobj
;
2893 PyObject
* _argo0
= 0;
2894 char *_kwnames
[] = { "self", NULL
};
2897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
2900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2907 wxPy_BEGIN_ALLOW_THREADS
;
2908 _result
= (bool )wxWindow_IsRetained(_arg0
);
2910 wxPy_END_ALLOW_THREADS
;
2911 if (PyErr_Occurred()) return NULL
;
2912 } _resultobj
= Py_BuildValue("i",_result
);
2916 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2917 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2918 PyObject
* _resultobj
;
2921 PyObject
* _argo0
= 0;
2922 char *_kwnames
[] = { "self", NULL
};
2925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
2928 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2929 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2935 wxPy_BEGIN_ALLOW_THREADS
;
2936 _result
= (bool )wxWindow_IsShown(_arg0
);
2938 wxPy_END_ALLOW_THREADS
;
2939 if (PyErr_Occurred()) return NULL
;
2940 } _resultobj
= Py_BuildValue("i",_result
);
2944 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
2945 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2946 PyObject
* _resultobj
;
2949 PyObject
* _argo0
= 0;
2950 char *_kwnames
[] = { "self", NULL
};
2953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
2956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
2963 wxPy_BEGIN_ALLOW_THREADS
;
2964 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
2966 wxPy_END_ALLOW_THREADS
;
2967 if (PyErr_Occurred()) return NULL
;
2968 } _resultobj
= Py_BuildValue("i",_result
);
2972 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
2973 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2974 PyObject
* _resultobj
;
2976 PyObject
* _argo0
= 0;
2977 char *_kwnames
[] = { "self", NULL
};
2980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
2983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
2990 wxPy_BEGIN_ALLOW_THREADS
;
2991 wxWindow_Layout(_arg0
);
2993 wxPy_END_ALLOW_THREADS
;
2994 if (PyErr_Occurred()) return NULL
;
2995 } Py_INCREF(Py_None
);
2996 _resultobj
= Py_None
;
3000 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
3001 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3002 PyObject
* _resultobj
;
3007 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
3008 PyObject
* _argo0
= 0;
3009 PyObject
* _argo1
= 0;
3010 PyObject
* _obj2
= 0;
3011 PyObject
* _argo3
= 0;
3012 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
3015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
3018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3025 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3026 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3027 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3032 #if PYTHON_API_VERSION >= 1009
3033 char* tmpPtr
; int tmpSize
;
3034 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3035 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3038 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3040 _arg2
= new wxString(tmpPtr
, tmpSize
);
3042 if (!PyString_Check(_obj2
)) {
3043 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3046 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3050 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3051 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3057 wxPy_BEGIN_ALLOW_THREADS
;
3058 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3060 wxPy_END_ALLOW_THREADS
;
3061 if (PyErr_Occurred()) return NULL
;
3062 } _resultobj
= Py_BuildValue("i",_result
);
3070 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3071 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3072 PyObject
* _resultobj
;
3074 PyObject
* _argo0
= 0;
3075 char *_kwnames
[] = { "self", NULL
};
3078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3088 wxPy_BEGIN_ALLOW_THREADS
;
3089 wxWindow_Lower(_arg0
);
3091 wxPy_END_ALLOW_THREADS
;
3092 if (PyErr_Occurred()) return NULL
;
3093 } Py_INCREF(Py_None
);
3094 _resultobj
= Py_None
;
3098 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3099 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3100 PyObject
* _resultobj
;
3102 bool _arg1
= (bool ) TRUE
;
3103 PyObject
* _argo0
= 0;
3104 int tempbool1
= (int) TRUE
;
3105 char *_kwnames
[] = { "self","flag", NULL
};
3108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3117 _arg1
= (bool ) tempbool1
;
3119 wxPy_BEGIN_ALLOW_THREADS
;
3120 wxWindow_MakeModal(_arg0
,_arg1
);
3122 wxPy_END_ALLOW_THREADS
;
3123 if (PyErr_Occurred()) return NULL
;
3124 } Py_INCREF(Py_None
);
3125 _resultobj
= Py_None
;
3129 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3130 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3131 PyObject
* _resultobj
;
3135 PyObject
* _argo0
= 0;
3136 char *_kwnames
[] = { "self","x","y", NULL
};
3139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3149 wxPy_BEGIN_ALLOW_THREADS
;
3150 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3152 wxPy_END_ALLOW_THREADS
;
3153 if (PyErr_Occurred()) return NULL
;
3154 } Py_INCREF(Py_None
);
3155 _resultobj
= Py_None
;
3159 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3160 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3161 PyObject
* _resultobj
;
3164 PyObject
* _argo0
= 0;
3166 PyObject
* _obj1
= 0;
3167 char *_kwnames
[] = { "self","point", NULL
};
3170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3181 if (! wxPoint_helper(_obj1
, &_arg1
))
3185 wxPy_BEGIN_ALLOW_THREADS
;
3186 wxWindow_Move(_arg0
,*_arg1
);
3188 wxPy_END_ALLOW_THREADS
;
3189 if (PyErr_Occurred()) return NULL
;
3190 } Py_INCREF(Py_None
);
3191 _resultobj
= Py_None
;
3195 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3196 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3197 PyObject
* _resultobj
;
3198 wxEvtHandler
* _result
;
3200 bool _arg1
= (bool ) FALSE
;
3201 PyObject
* _argo0
= 0;
3202 int tempbool1
= (int) FALSE
;
3203 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3215 _arg1
= (bool ) tempbool1
;
3217 wxPy_BEGIN_ALLOW_THREADS
;
3218 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3220 wxPy_END_ALLOW_THREADS
;
3221 if (PyErr_Occurred()) return NULL
;
3222 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3226 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3227 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3228 PyObject
* _resultobj
;
3230 wxEvtHandler
* _arg1
;
3231 PyObject
* _argo0
= 0;
3232 PyObject
* _argo1
= 0;
3233 char *_kwnames
[] = { "self","handler", NULL
};
3236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3246 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3247 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3253 wxPy_BEGIN_ALLOW_THREADS
;
3254 wxWindow_PushEventHandler(_arg0
,_arg1
);
3256 wxPy_END_ALLOW_THREADS
;
3257 if (PyErr_Occurred()) return NULL
;
3258 } Py_INCREF(Py_None
);
3259 _resultobj
= Py_None
;
3263 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3264 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3265 PyObject
* _resultobj
;
3271 PyObject
* _argo0
= 0;
3272 PyObject
* _argo1
= 0;
3273 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3286 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3287 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3288 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3293 wxPy_BEGIN_ALLOW_THREADS
;
3294 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3296 wxPy_END_ALLOW_THREADS
;
3297 if (PyErr_Occurred()) return NULL
;
3298 } _resultobj
= Py_BuildValue("i",_result
);
3302 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3303 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3304 PyObject
* _resultobj
;
3309 PyObject
* _argo0
= 0;
3310 PyObject
* _argo1
= 0;
3312 PyObject
* _obj2
= 0;
3313 char *_kwnames
[] = { "self","menu","pos", NULL
};
3316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3326 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3327 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3334 if (! wxPoint_helper(_obj2
, &_arg2
))
3338 wxPy_BEGIN_ALLOW_THREADS
;
3339 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3341 wxPy_END_ALLOW_THREADS
;
3342 if (PyErr_Occurred()) return NULL
;
3343 } _resultobj
= Py_BuildValue("i",_result
);
3347 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3348 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3349 PyObject
* _resultobj
;
3351 PyObject
* _argo0
= 0;
3352 char *_kwnames
[] = { "self", NULL
};
3355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3365 wxPy_BEGIN_ALLOW_THREADS
;
3366 wxWindow_Raise(_arg0
);
3368 wxPy_END_ALLOW_THREADS
;
3369 if (PyErr_Occurred()) return NULL
;
3370 } Py_INCREF(Py_None
);
3371 _resultobj
= Py_None
;
3375 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3376 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3377 PyObject
* _resultobj
;
3379 bool _arg1
= (bool ) TRUE
;
3380 wxRect
* _arg2
= (wxRect
*) NULL
;
3381 PyObject
* _argo0
= 0;
3382 int tempbool1
= (int) TRUE
;
3384 PyObject
* _obj2
= 0;
3385 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3397 _arg1
= (bool ) tempbool1
;
3401 if (! wxRect_helper(_obj2
, &_arg2
))
3405 wxPy_BEGIN_ALLOW_THREADS
;
3406 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3408 wxPy_END_ALLOW_THREADS
;
3409 if (PyErr_Occurred()) return NULL
;
3410 } Py_INCREF(Py_None
);
3411 _resultobj
= Py_None
;
3415 #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0))
3416 static PyObject
*_wrap_wxWindow_RefreshRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3417 PyObject
* _resultobj
;
3420 PyObject
* _argo0
= 0;
3422 PyObject
* _obj1
= 0;
3423 char *_kwnames
[] = { "self","rect", NULL
};
3426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RefreshRect",_kwnames
,&_argo0
,&_obj1
))
3429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p.");
3437 if (! wxRect_helper(_obj1
, &_arg1
))
3441 wxPy_BEGIN_ALLOW_THREADS
;
3442 wxWindow_RefreshRect(_arg0
,*_arg1
);
3444 wxPy_END_ALLOW_THREADS
;
3445 if (PyErr_Occurred()) return NULL
;
3446 } Py_INCREF(Py_None
);
3447 _resultobj
= Py_None
;
3451 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3452 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3453 PyObject
* _resultobj
;
3455 PyObject
* _argo0
= 0;
3456 char *_kwnames
[] = { "self", NULL
};
3459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3469 wxPy_BEGIN_ALLOW_THREADS
;
3470 wxWindow_ReleaseMouse(_arg0
);
3472 wxPy_END_ALLOW_THREADS
;
3473 if (PyErr_Occurred()) return NULL
;
3474 } Py_INCREF(Py_None
);
3475 _resultobj
= Py_None
;
3479 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3480 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3481 PyObject
* _resultobj
;
3484 PyObject
* _argo0
= 0;
3485 PyObject
* _argo1
= 0;
3486 char *_kwnames
[] = { "self","child", NULL
};
3489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3499 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3500 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3506 wxPy_BEGIN_ALLOW_THREADS
;
3507 wxWindow_RemoveChild(_arg0
,_arg1
);
3509 wxPy_END_ALLOW_THREADS
;
3510 if (PyErr_Occurred()) return NULL
;
3511 } Py_INCREF(Py_None
);
3512 _resultobj
= Py_None
;
3516 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3517 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3518 PyObject
* _resultobj
;
3522 PyObject
* _argo0
= 0;
3523 PyObject
* _argo1
= 0;
3524 char *_kwnames
[] = { "self","newParent", NULL
};
3527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3537 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3538 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3544 wxPy_BEGIN_ALLOW_THREADS
;
3545 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3547 wxPy_END_ALLOW_THREADS
;
3548 if (PyErr_Occurred()) return NULL
;
3549 } _resultobj
= Py_BuildValue("i",_result
);
3553 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3554 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3555 PyObject
* _resultobj
;
3559 PyObject
* _argo0
= 0;
3561 PyObject
* _obj1
= 0;
3563 PyObject
* _obj2
= 0;
3564 char *_kwnames
[] = { "self","x","y", NULL
};
3567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3577 temp
= (int) PyInt_AsLong(_obj1
);
3581 temp0
= (int) PyInt_AsLong(_obj2
);
3585 wxPy_BEGIN_ALLOW_THREADS
;
3586 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3588 wxPy_END_ALLOW_THREADS
;
3589 if (PyErr_Occurred()) return NULL
;
3590 } Py_INCREF(Py_None
);
3591 _resultobj
= Py_None
;
3594 o
= PyInt_FromLong((long) (*_arg1
));
3595 _resultobj
= t_output_helper(_resultobj
, o
);
3599 o
= PyInt_FromLong((long) (*_arg2
));
3600 _resultobj
= t_output_helper(_resultobj
, o
);
3605 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3606 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3607 PyObject
* _resultobj
;
3611 PyObject
* _argo0
= 0;
3613 PyObject
* _obj1
= 0;
3614 char *_kwnames
[] = { "self","pt", NULL
};
3618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3629 if (! wxPoint_helper(_obj1
, &_arg1
))
3633 wxPy_BEGIN_ALLOW_THREADS
;
3634 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3636 wxPy_END_ALLOW_THREADS
;
3637 if (PyErr_Occurred()) return NULL
;
3638 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3639 _resultobj
= Py_BuildValue("s",_ptemp
);
3643 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3644 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3645 PyObject
* _resultobj
;
3649 wxRect
* _arg3
= (wxRect
*) NULL
;
3650 PyObject
* _argo0
= 0;
3652 PyObject
* _obj3
= 0;
3653 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3668 if (! wxRect_helper(_obj3
, &_arg3
))
3672 wxPy_BEGIN_ALLOW_THREADS
;
3673 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3675 wxPy_END_ALLOW_THREADS
;
3676 if (PyErr_Occurred()) return NULL
;
3677 } Py_INCREF(Py_None
);
3678 _resultobj
= Py_None
;
3682 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3683 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3684 PyObject
* _resultobj
;
3687 PyObject
* _argo0
= 0;
3689 char *_kwnames
[] = { "self","autoLayout", NULL
};
3692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3701 _arg1
= (bool ) tempbool1
;
3703 wxPy_BEGIN_ALLOW_THREADS
;
3704 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3706 wxPy_END_ALLOW_THREADS
;
3707 if (PyErr_Occurred()) return NULL
;
3708 } Py_INCREF(Py_None
);
3709 _resultobj
= Py_None
;
3713 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3714 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3715 PyObject
* _resultobj
;
3718 PyObject
* _argo0
= 0;
3719 char *_kwnames
[] = { "self", NULL
};
3722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3732 wxPy_BEGIN_ALLOW_THREADS
;
3733 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3735 wxPy_END_ALLOW_THREADS
;
3736 if (PyErr_Occurred()) return NULL
;
3737 } _resultobj
= Py_BuildValue("i",_result
);
3741 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3742 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3743 PyObject
* _resultobj
;
3746 PyObject
* _argo0
= 0;
3748 PyObject
* _obj1
= 0;
3749 char *_kwnames
[] = { "self","colour", NULL
};
3752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3755 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3756 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3757 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3763 if (! wxColour_helper(_obj1
, &_arg1
))
3767 wxPy_BEGIN_ALLOW_THREADS
;
3768 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3770 wxPy_END_ALLOW_THREADS
;
3771 if (PyErr_Occurred()) return NULL
;
3772 } Py_INCREF(Py_None
);
3773 _resultobj
= Py_None
;
3777 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3778 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3779 PyObject
* _resultobj
;
3781 wxLayoutConstraints
* _arg1
;
3782 PyObject
* _argo0
= 0;
3783 PyObject
* _argo1
= 0;
3784 char *_kwnames
[] = { "self","constraints", NULL
};
3787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3797 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3798 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3804 wxPy_BEGIN_ALLOW_THREADS
;
3805 wxWindow_SetConstraints(_arg0
,_arg1
);
3807 wxPy_END_ALLOW_THREADS
;
3808 if (PyErr_Occurred()) return NULL
;
3809 } Py_INCREF(Py_None
);
3810 _resultobj
= Py_None
;
3814 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3815 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3816 PyObject
* _resultobj
;
3818 wxLayoutConstraints
* _arg1
;
3819 PyObject
* _argo0
= 0;
3820 PyObject
* _argo1
= 0;
3821 char *_kwnames
[] = { "self","constraints", NULL
};
3824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3834 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3835 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3841 wxPy_BEGIN_ALLOW_THREADS
;
3842 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3844 wxPy_END_ALLOW_THREADS
;
3845 if (PyErr_Occurred()) return NULL
;
3846 } Py_INCREF(Py_None
);
3847 _resultobj
= Py_None
;
3851 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3852 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3853 PyObject
* _resultobj
;
3855 PyObject
* _argo0
= 0;
3856 char *_kwnames
[] = { "self", NULL
};
3859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3869 wxPy_BEGIN_ALLOW_THREADS
;
3870 wxWindow_SetFocus(_arg0
);
3872 wxPy_END_ALLOW_THREADS
;
3873 if (PyErr_Occurred()) return NULL
;
3874 } Py_INCREF(Py_None
);
3875 _resultobj
= Py_None
;
3879 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3880 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3881 PyObject
* _resultobj
;
3884 PyObject
* _argo0
= 0;
3885 char *_kwnames
[] = { "self", NULL
};
3888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3898 wxPy_BEGIN_ALLOW_THREADS
;
3899 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3901 wxPy_END_ALLOW_THREADS
;
3902 if (PyErr_Occurred()) return NULL
;
3903 } _resultobj
= Py_BuildValue("i",_result
);
3907 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3908 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3909 PyObject
* _resultobj
;
3912 PyObject
* _argo0
= 0;
3913 PyObject
* _argo1
= 0;
3914 char *_kwnames
[] = { "self","font", NULL
};
3917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
3920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3927 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3928 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3929 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3934 wxPy_BEGIN_ALLOW_THREADS
;
3935 wxWindow_SetFont(_arg0
,*_arg1
);
3937 wxPy_END_ALLOW_THREADS
;
3938 if (PyErr_Occurred()) return NULL
;
3939 } Py_INCREF(Py_None
);
3940 _resultobj
= Py_None
;
3944 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3945 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3946 PyObject
* _resultobj
;
3949 PyObject
* _argo0
= 0;
3951 PyObject
* _obj1
= 0;
3952 char *_kwnames
[] = { "self","colour", NULL
};
3955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
3958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
3966 if (! wxColour_helper(_obj1
, &_arg1
))
3970 wxPy_BEGIN_ALLOW_THREADS
;
3971 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
3973 wxPy_END_ALLOW_THREADS
;
3974 if (PyErr_Occurred()) return NULL
;
3975 } Py_INCREF(Py_None
);
3976 _resultobj
= Py_None
;
3980 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3981 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3982 PyObject
* _resultobj
;
3985 PyObject
* _argo0
= 0;
3986 char *_kwnames
[] = { "self","id", NULL
};
3989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
3992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
3999 wxPy_BEGIN_ALLOW_THREADS
;
4000 wxWindow_SetId(_arg0
,_arg1
);
4002 wxPy_END_ALLOW_THREADS
;
4003 if (PyErr_Occurred()) return NULL
;
4004 } Py_INCREF(Py_None
);
4005 _resultobj
= Py_None
;
4009 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4010 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4011 PyObject
* _resultobj
;
4014 PyObject
* _argo0
= 0;
4015 PyObject
* _obj1
= 0;
4016 char *_kwnames
[] = { "self","name", NULL
};
4019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
4022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4029 #if PYTHON_API_VERSION >= 1009
4030 char* tmpPtr
; int tmpSize
;
4031 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4032 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4035 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4037 _arg1
= new wxString(tmpPtr
, tmpSize
);
4039 if (!PyString_Check(_obj1
)) {
4040 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4043 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4047 wxPy_BEGIN_ALLOW_THREADS
;
4048 wxWindow_SetName(_arg0
,*_arg1
);
4050 wxPy_END_ALLOW_THREADS
;
4051 if (PyErr_Occurred()) return NULL
;
4052 } Py_INCREF(Py_None
);
4053 _resultobj
= Py_None
;
4061 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4062 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4063 PyObject
* _resultobj
;
4069 int _arg5
= (int ) TRUE
;
4070 PyObject
* _argo0
= 0;
4071 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4084 wxPy_BEGIN_ALLOW_THREADS
;
4085 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4087 wxPy_END_ALLOW_THREADS
;
4088 if (PyErr_Occurred()) return NULL
;
4089 } Py_INCREF(Py_None
);
4090 _resultobj
= Py_None
;
4094 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4095 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4096 PyObject
* _resultobj
;
4100 bool _arg3
= (bool ) TRUE
;
4101 PyObject
* _argo0
= 0;
4102 int tempbool3
= (int) TRUE
;
4103 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4109 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4110 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4111 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4115 _arg3
= (bool ) tempbool3
;
4117 wxPy_BEGIN_ALLOW_THREADS
;
4118 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4120 wxPy_END_ALLOW_THREADS
;
4121 if (PyErr_Occurred()) return NULL
;
4122 } Py_INCREF(Py_None
);
4123 _resultobj
= Py_None
;
4127 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4128 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4129 PyObject
* _resultobj
;
4135 int _arg5
= (int ) wxSIZE_AUTO
;
4136 PyObject
* _argo0
= 0;
4137 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4150 wxPy_BEGIN_ALLOW_THREADS
;
4151 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4153 wxPy_END_ALLOW_THREADS
;
4154 if (PyErr_Occurred()) return NULL
;
4155 } Py_INCREF(Py_None
);
4156 _resultobj
= Py_None
;
4160 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4161 self
->SetSize(size
);
4163 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4164 PyObject
* _resultobj
;
4167 PyObject
* _argo0
= 0;
4169 PyObject
* _obj1
= 0;
4170 char *_kwnames
[] = { "self","size", NULL
};
4173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4184 if (! wxSize_helper(_obj1
, &_arg1
))
4188 wxPy_BEGIN_ALLOW_THREADS
;
4189 wxWindow_SetSize(_arg0
,*_arg1
);
4191 wxPy_END_ALLOW_THREADS
;
4192 if (PyErr_Occurred()) return NULL
;
4193 } Py_INCREF(Py_None
);
4194 _resultobj
= Py_None
;
4198 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4201 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4202 PyObject
* _resultobj
;
4205 PyObject
* _argo0
= 0;
4207 PyObject
* _obj1
= 0;
4208 char *_kwnames
[] = { "self","pos", NULL
};
4211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
4214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4222 if (! wxPoint_helper(_obj1
, &_arg1
))
4226 wxPy_BEGIN_ALLOW_THREADS
;
4227 wxWindow_SetPosition(_arg0
,*_arg1
);
4229 wxPy_END_ALLOW_THREADS
;
4230 if (PyErr_Occurred()) return NULL
;
4231 } Py_INCREF(Py_None
);
4232 _resultobj
= Py_None
;
4236 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4237 self
->SetSize(rect
, sizeFlags
);
4239 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4240 PyObject
* _resultobj
;
4243 int _arg2
= (int ) wxSIZE_AUTO
;
4244 PyObject
* _argo0
= 0;
4246 PyObject
* _obj1
= 0;
4247 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4261 if (! wxRect_helper(_obj1
, &_arg1
))
4265 wxPy_BEGIN_ALLOW_THREADS
;
4266 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4268 wxPy_END_ALLOW_THREADS
;
4269 if (PyErr_Occurred()) return NULL
;
4270 } Py_INCREF(Py_None
);
4271 _resultobj
= Py_None
;
4275 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4276 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4277 PyObject
* _resultobj
;
4279 int _arg1
= (int ) -1;
4280 int _arg2
= (int ) -1;
4281 int _arg3
= (int ) -1;
4282 int _arg4
= (int ) -1;
4283 int _arg5
= (int ) -1;
4284 int _arg6
= (int ) -1;
4285 PyObject
* _argo0
= 0;
4286 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4299 wxPy_BEGIN_ALLOW_THREADS
;
4300 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4302 wxPy_END_ALLOW_THREADS
;
4303 if (PyErr_Occurred()) return NULL
;
4304 } Py_INCREF(Py_None
);
4305 _resultobj
= Py_None
;
4309 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4310 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4311 PyObject
* _resultobj
;
4315 PyObject
* _argo0
= 0;
4316 char *_kwnames
[] = { "self","width","height", NULL
};
4319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4329 wxPy_BEGIN_ALLOW_THREADS
;
4330 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4332 wxPy_END_ALLOW_THREADS
;
4333 if (PyErr_Occurred()) return NULL
;
4334 } Py_INCREF(Py_None
);
4335 _resultobj
= Py_None
;
4339 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4340 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4341 PyObject
* _resultobj
;
4344 PyObject
* _argo0
= 0;
4346 PyObject
* _obj1
= 0;
4347 char *_kwnames
[] = { "self","size", NULL
};
4350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4361 if (! wxSize_helper(_obj1
, &_arg1
))
4365 wxPy_BEGIN_ALLOW_THREADS
;
4366 wxWindow_SetClientSize(_arg0
,*_arg1
);
4368 wxPy_END_ALLOW_THREADS
;
4369 if (PyErr_Occurred()) return NULL
;
4370 } Py_INCREF(Py_None
);
4371 _resultobj
= Py_None
;
4375 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4376 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4377 PyObject
* _resultobj
;
4380 PyObject
* _argo0
= 0;
4381 PyObject
* _argo1
= 0;
4382 char *_kwnames
[] = { "self","cursor", NULL
};
4385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
4388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4395 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4396 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4402 wxPy_BEGIN_ALLOW_THREADS
;
4403 wxWindow_SetCursor(_arg0
,*_arg1
);
4405 wxPy_END_ALLOW_THREADS
;
4406 if (PyErr_Occurred()) return NULL
;
4407 } Py_INCREF(Py_None
);
4408 _resultobj
= Py_None
;
4412 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4413 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4414 PyObject
* _resultobj
;
4416 wxEvtHandler
* _arg1
;
4417 PyObject
* _argo0
= 0;
4418 PyObject
* _argo1
= 0;
4419 char *_kwnames
[] = { "self","handler", NULL
};
4422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4432 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4433 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4439 wxPy_BEGIN_ALLOW_THREADS
;
4440 wxWindow_SetEventHandler(_arg0
,_arg1
);
4442 wxPy_END_ALLOW_THREADS
;
4443 if (PyErr_Occurred()) return NULL
;
4444 } Py_INCREF(Py_None
);
4445 _resultobj
= Py_None
;
4449 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4450 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4451 PyObject
* _resultobj
;
4454 PyObject
* _argo0
= 0;
4455 char *_kwnames
[] = { "self","exStyle", NULL
};
4458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4468 wxPy_BEGIN_ALLOW_THREADS
;
4469 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4471 wxPy_END_ALLOW_THREADS
;
4472 if (PyErr_Occurred()) return NULL
;
4473 } Py_INCREF(Py_None
);
4474 _resultobj
= Py_None
;
4478 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4479 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4480 PyObject
* _resultobj
;
4483 PyObject
* _argo0
= 0;
4484 PyObject
* _obj1
= 0;
4485 char *_kwnames
[] = { "self","title", NULL
};
4488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4498 #if PYTHON_API_VERSION >= 1009
4499 char* tmpPtr
; int tmpSize
;
4500 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4501 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4504 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4506 _arg1
= new wxString(tmpPtr
, tmpSize
);
4508 if (!PyString_Check(_obj1
)) {
4509 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4512 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4516 wxPy_BEGIN_ALLOW_THREADS
;
4517 wxWindow_SetTitle(_arg0
,*_arg1
);
4519 wxPy_END_ALLOW_THREADS
;
4520 if (PyErr_Occurred()) return NULL
;
4521 } Py_INCREF(Py_None
);
4522 _resultobj
= Py_None
;
4530 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4531 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4532 PyObject
* _resultobj
;
4535 bool _arg1
= (bool ) TRUE
;
4536 PyObject
* _argo0
= 0;
4537 int tempbool1
= (int) TRUE
;
4538 char *_kwnames
[] = { "self","show", NULL
};
4541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4550 _arg1
= (bool ) tempbool1
;
4552 wxPy_BEGIN_ALLOW_THREADS
;
4553 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4555 wxPy_END_ALLOW_THREADS
;
4556 if (PyErr_Occurred()) return NULL
;
4557 } _resultobj
= Py_BuildValue("i",_result
);
4561 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4562 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4563 PyObject
* _resultobj
;
4566 PyObject
* _argo0
= 0;
4567 char *_kwnames
[] = { "self", NULL
};
4570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4580 wxPy_BEGIN_ALLOW_THREADS
;
4581 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4583 wxPy_END_ALLOW_THREADS
;
4584 if (PyErr_Occurred()) return NULL
;
4585 } _resultobj
= Py_BuildValue("i",_result
);
4589 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4590 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4591 PyObject
* _resultobj
;
4594 PyObject
* _argo0
= 0;
4595 char *_kwnames
[] = { "self", NULL
};
4598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4608 wxPy_BEGIN_ALLOW_THREADS
;
4609 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4611 wxPy_END_ALLOW_THREADS
;
4612 if (PyErr_Occurred()) return NULL
;
4613 } _resultobj
= Py_BuildValue("i",_result
);
4617 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4618 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4619 PyObject
* _resultobj
;
4622 PyObject
* _argo0
= 0;
4623 char *_kwnames
[] = { "self", NULL
};
4626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4636 wxPy_BEGIN_ALLOW_THREADS
;
4637 _result
= (bool )wxWindow_Validate(_arg0
);
4639 wxPy_END_ALLOW_THREADS
;
4640 if (PyErr_Occurred()) return NULL
;
4641 } _resultobj
= Py_BuildValue("i",_result
);
4645 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4646 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4647 PyObject
* _resultobj
;
4651 PyObject
* _argo0
= 0;
4652 char *_kwnames
[] = { "self","x","y", NULL
};
4655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4665 wxPy_BEGIN_ALLOW_THREADS
;
4666 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4668 wxPy_END_ALLOW_THREADS
;
4669 if (PyErr_Occurred()) return NULL
;
4670 } Py_INCREF(Py_None
);
4671 _resultobj
= Py_None
;
4675 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4676 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4677 PyObject
* _resultobj
;
4681 PyObject
* _argo0
= 0;
4683 PyObject
* _obj1
= 0;
4684 char *_kwnames
[] = { "self","pt", NULL
};
4688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4699 if (! wxPoint_helper(_obj1
, &_arg1
))
4703 wxPy_BEGIN_ALLOW_THREADS
;
4704 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4706 wxPy_END_ALLOW_THREADS
;
4707 if (PyErr_Occurred()) return NULL
;
4708 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4709 _resultobj
= Py_BuildValue("s",_ptemp
);
4713 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4714 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4715 PyObject
* _resultobj
;
4719 PyObject
* _argo0
= 0;
4721 PyObject
* _obj1
= 0;
4722 char *_kwnames
[] = { "self","sz", NULL
};
4726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4737 if (! wxSize_helper(_obj1
, &_arg1
))
4741 wxPy_BEGIN_ALLOW_THREADS
;
4742 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4744 wxPy_END_ALLOW_THREADS
;
4745 if (PyErr_Occurred()) return NULL
;
4746 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4747 _resultobj
= Py_BuildValue("s",_ptemp
);
4751 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4752 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4753 PyObject
* _resultobj
;
4757 PyObject
* _argo0
= 0;
4759 PyObject
* _obj1
= 0;
4760 char *_kwnames
[] = { "self","pt", NULL
};
4764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4775 if (! wxPoint_helper(_obj1
, &_arg1
))
4779 wxPy_BEGIN_ALLOW_THREADS
;
4780 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4782 wxPy_END_ALLOW_THREADS
;
4783 if (PyErr_Occurred()) return NULL
;
4784 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4785 _resultobj
= Py_BuildValue("s",_ptemp
);
4789 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4790 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4791 PyObject
* _resultobj
;
4795 PyObject
* _argo0
= 0;
4797 PyObject
* _obj1
= 0;
4798 char *_kwnames
[] = { "self","sz", NULL
};
4802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4813 if (! wxSize_helper(_obj1
, &_arg1
))
4817 wxPy_BEGIN_ALLOW_THREADS
;
4818 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4820 wxPy_END_ALLOW_THREADS
;
4821 if (PyErr_Occurred()) return NULL
;
4822 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4823 _resultobj
= Py_BuildValue("s",_ptemp
);
4827 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4828 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4829 PyObject
* _resultobj
;
4832 PyObject
* _argo0
= 0;
4833 PyObject
* _obj1
= 0;
4834 char *_kwnames
[] = { "self","tip", NULL
};
4837 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4840 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4841 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4847 #if PYTHON_API_VERSION >= 1009
4848 char* tmpPtr
; int tmpSize
;
4849 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4850 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4853 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4855 _arg1
= new wxString(tmpPtr
, tmpSize
);
4857 if (!PyString_Check(_obj1
)) {
4858 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4861 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4865 wxPy_BEGIN_ALLOW_THREADS
;
4866 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4868 wxPy_END_ALLOW_THREADS
;
4869 if (PyErr_Occurred()) return NULL
;
4870 } Py_INCREF(Py_None
);
4871 _resultobj
= Py_None
;
4879 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4880 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4881 PyObject
* _resultobj
;
4884 PyObject
* _argo0
= 0;
4885 PyObject
* _argo1
= 0;
4886 char *_kwnames
[] = { "self","tooltip", NULL
};
4889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4899 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4900 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4906 wxPy_BEGIN_ALLOW_THREADS
;
4907 wxWindow_SetToolTip(_arg0
,_arg1
);
4909 wxPy_END_ALLOW_THREADS
;
4910 if (PyErr_Occurred()) return NULL
;
4911 } Py_INCREF(Py_None
);
4912 _resultobj
= Py_None
;
4916 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4917 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4918 PyObject
* _resultobj
;
4919 wxToolTip
* _result
;
4921 PyObject
* _argo0
= 0;
4922 char *_kwnames
[] = { "self", NULL
};
4925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
4928 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4929 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4935 wxPy_BEGIN_ALLOW_THREADS
;
4936 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
4938 wxPy_END_ALLOW_THREADS
;
4939 if (PyErr_Occurred()) return NULL
;
4940 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4944 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4945 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4946 PyObject
* _resultobj
;
4949 PyObject
* _argo0
= 0;
4950 PyObject
* _argo1
= 0;
4951 char *_kwnames
[] = { "self","sizer", NULL
};
4954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
4957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4964 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4965 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
4966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4971 wxPy_BEGIN_ALLOW_THREADS
;
4972 wxWindow_SetSizer(_arg0
,_arg1
);
4974 wxPy_END_ALLOW_THREADS
;
4975 if (PyErr_Occurred()) return NULL
;
4976 } Py_INCREF(Py_None
);
4977 _resultobj
= Py_None
;
4981 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
4982 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4983 PyObject
* _resultobj
;
4986 PyObject
* _argo0
= 0;
4987 char *_kwnames
[] = { "self", NULL
};
4990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
4993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5000 wxPy_BEGIN_ALLOW_THREADS
;
5001 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
5003 wxPy_END_ALLOW_THREADS
;
5004 if (PyErr_Occurred()) return NULL
;
5005 }{ _resultobj
= wxPyMake_wxSizer(_result
); }
5009 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5010 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5011 PyObject
* _resultobj
;
5012 wxValidator
* _result
;
5014 PyObject
* _argo0
= 0;
5015 char *_kwnames
[] = { "self", NULL
};
5018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
5021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5028 wxPy_BEGIN_ALLOW_THREADS
;
5029 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5031 wxPy_END_ALLOW_THREADS
;
5032 if (PyErr_Occurred()) return NULL
;
5033 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5037 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5038 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5039 PyObject
* _resultobj
;
5041 wxValidator
* _arg1
;
5042 PyObject
* _argo0
= 0;
5043 PyObject
* _argo1
= 0;
5044 char *_kwnames
[] = { "self","validator", NULL
};
5047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5057 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5058 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5064 wxPy_BEGIN_ALLOW_THREADS
;
5065 wxWindow_SetValidator(_arg0
,*_arg1
);
5067 wxPy_END_ALLOW_THREADS
;
5068 if (PyErr_Occurred()) return NULL
;
5069 } Py_INCREF(Py_None
);
5070 _resultobj
= Py_None
;
5074 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5075 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5076 PyObject
* _resultobj
;
5079 PyObject
* _argo0
= 0;
5080 char *_kwnames
[] = { "self", NULL
};
5084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5094 wxPy_BEGIN_ALLOW_THREADS
;
5095 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5097 wxPy_END_ALLOW_THREADS
;
5098 if (PyErr_Occurred()) return NULL
;
5099 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5100 _resultobj
= Py_BuildValue("s",_ptemp
);
5104 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5105 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5106 PyObject
* _resultobj
;
5109 PyObject
* _argo0
= 0;
5110 PyObject
* _argo1
= 0;
5111 char *_kwnames
[] = { "self","caret", NULL
};
5114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5124 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5125 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5131 wxPy_BEGIN_ALLOW_THREADS
;
5132 wxWindow_SetCaret(_arg0
,_arg1
);
5134 wxPy_END_ALLOW_THREADS
;
5135 if (PyErr_Occurred()) return NULL
;
5136 } Py_INCREF(Py_None
);
5137 _resultobj
= Py_None
;
5141 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5142 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5143 PyObject
* _resultobj
;
5146 PyObject
* _argo0
= 0;
5147 char *_kwnames
[] = { "self", NULL
};
5151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5161 wxPy_BEGIN_ALLOW_THREADS
;
5162 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5164 wxPy_END_ALLOW_THREADS
;
5165 if (PyErr_Occurred()) return NULL
;
5167 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5168 _resultobj
= Py_BuildValue("s",_ptemp
);
5171 _resultobj
= Py_None
;
5176 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5177 static PyObject
*_wrap_wxWindow_Freeze(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5178 PyObject
* _resultobj
;
5180 PyObject
* _argo0
= 0;
5181 char *_kwnames
[] = { "self", NULL
};
5184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Freeze",_kwnames
,&_argo0
))
5187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5194 wxPy_BEGIN_ALLOW_THREADS
;
5195 wxWindow_Freeze(_arg0
);
5197 wxPy_END_ALLOW_THREADS
;
5198 if (PyErr_Occurred()) return NULL
;
5199 } Py_INCREF(Py_None
);
5200 _resultobj
= Py_None
;
5204 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5205 static PyObject
*_wrap_wxWindow_Thaw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5206 PyObject
* _resultobj
;
5208 PyObject
* _argo0
= 0;
5209 char *_kwnames
[] = { "self", NULL
};
5212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Thaw",_kwnames
,&_argo0
))
5215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5222 wxPy_BEGIN_ALLOW_THREADS
;
5223 wxWindow_Thaw(_arg0
);
5225 wxPy_END_ALLOW_THREADS
;
5226 if (PyErr_Occurred()) return NULL
;
5227 } Py_INCREF(Py_None
);
5228 _resultobj
= Py_None
;
5232 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5233 static PyObject
*_wrap_wxWindow_Update(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5234 PyObject
* _resultobj
;
5236 PyObject
* _argo0
= 0;
5237 char *_kwnames
[] = { "self", NULL
};
5240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Update",_kwnames
,&_argo0
))
5243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5250 wxPy_BEGIN_ALLOW_THREADS
;
5251 wxWindow_Update(_arg0
);
5253 wxPy_END_ALLOW_THREADS
;
5254 if (PyErr_Occurred()) return NULL
;
5255 } Py_INCREF(Py_None
);
5256 _resultobj
= Py_None
;
5260 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5261 static PyObject
*_wrap_wxWindow_GetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5262 PyObject
* _resultobj
;
5265 PyObject
* _argo0
= 0;
5266 char *_kwnames
[] = { "self", NULL
};
5269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHelpText",_kwnames
,&_argo0
))
5272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5279 wxPy_BEGIN_ALLOW_THREADS
;
5280 _result
= new wxString (wxWindow_GetHelpText(_arg0
));
5282 wxPy_END_ALLOW_THREADS
;
5283 if (PyErr_Occurred()) return NULL
;
5285 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5293 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5294 static PyObject
*_wrap_wxWindow_SetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5295 PyObject
* _resultobj
;
5298 PyObject
* _argo0
= 0;
5299 PyObject
* _obj1
= 0;
5300 char *_kwnames
[] = { "self","helpText", NULL
};
5303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpText",_kwnames
,&_argo0
,&_obj1
))
5306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5313 #if PYTHON_API_VERSION >= 1009
5314 char* tmpPtr
; int tmpSize
;
5315 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5316 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5319 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5321 _arg1
= new wxString(tmpPtr
, tmpSize
);
5323 if (!PyString_Check(_obj1
)) {
5324 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5327 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5331 wxPy_BEGIN_ALLOW_THREADS
;
5332 wxWindow_SetHelpText(_arg0
,*_arg1
);
5334 wxPy_END_ALLOW_THREADS
;
5335 if (PyErr_Occurred()) return NULL
;
5336 } Py_INCREF(Py_None
);
5337 _resultobj
= Py_None
;
5345 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5346 static PyObject
*_wrap_wxWindow_ScrollLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5347 PyObject
* _resultobj
;
5351 PyObject
* _argo0
= 0;
5352 char *_kwnames
[] = { "self","lines", NULL
};
5355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollLines",_kwnames
,&_argo0
,&_arg1
))
5358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5365 wxPy_BEGIN_ALLOW_THREADS
;
5366 _result
= (bool )wxWindow_ScrollLines(_arg0
,_arg1
);
5368 wxPy_END_ALLOW_THREADS
;
5369 if (PyErr_Occurred()) return NULL
;
5370 } _resultobj
= Py_BuildValue("i",_result
);
5374 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5375 static PyObject
*_wrap_wxWindow_ScrollPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5376 PyObject
* _resultobj
;
5380 PyObject
* _argo0
= 0;
5381 char *_kwnames
[] = { "self","pages", NULL
};
5384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollPages",_kwnames
,&_argo0
,&_arg1
))
5387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5394 wxPy_BEGIN_ALLOW_THREADS
;
5395 _result
= (bool )wxWindow_ScrollPages(_arg0
,_arg1
);
5397 wxPy_END_ALLOW_THREADS
;
5398 if (PyErr_Occurred()) return NULL
;
5399 } _resultobj
= Py_BuildValue("i",_result
);
5403 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5404 static PyObject
*_wrap_wxWindow_LineUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5405 PyObject
* _resultobj
;
5408 PyObject
* _argo0
= 0;
5409 char *_kwnames
[] = { "self", NULL
};
5412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineUp",_kwnames
,&_argo0
))
5415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5422 wxPy_BEGIN_ALLOW_THREADS
;
5423 _result
= (bool )wxWindow_LineUp(_arg0
);
5425 wxPy_END_ALLOW_THREADS
;
5426 if (PyErr_Occurred()) return NULL
;
5427 } _resultobj
= Py_BuildValue("i",_result
);
5431 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5432 static PyObject
*_wrap_wxWindow_LineDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5433 PyObject
* _resultobj
;
5436 PyObject
* _argo0
= 0;
5437 char *_kwnames
[] = { "self", NULL
};
5440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineDown",_kwnames
,&_argo0
))
5443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5450 wxPy_BEGIN_ALLOW_THREADS
;
5451 _result
= (bool )wxWindow_LineDown(_arg0
);
5453 wxPy_END_ALLOW_THREADS
;
5454 if (PyErr_Occurred()) return NULL
;
5455 } _resultobj
= Py_BuildValue("i",_result
);
5459 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5460 static PyObject
*_wrap_wxWindow_PageUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5461 PyObject
* _resultobj
;
5464 PyObject
* _argo0
= 0;
5465 char *_kwnames
[] = { "self", NULL
};
5468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageUp",_kwnames
,&_argo0
))
5471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5478 wxPy_BEGIN_ALLOW_THREADS
;
5479 _result
= (bool )wxWindow_PageUp(_arg0
);
5481 wxPy_END_ALLOW_THREADS
;
5482 if (PyErr_Occurred()) return NULL
;
5483 } _resultobj
= Py_BuildValue("i",_result
);
5487 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5488 static PyObject
*_wrap_wxWindow_PageDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5489 PyObject
* _resultobj
;
5492 PyObject
* _argo0
= 0;
5493 char *_kwnames
[] = { "self", NULL
};
5496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageDown",_kwnames
,&_argo0
))
5499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5506 wxPy_BEGIN_ALLOW_THREADS
;
5507 _result
= (bool )wxWindow_PageDown(_arg0
);
5509 wxPy_END_ALLOW_THREADS
;
5510 if (PyErr_Occurred()) return NULL
;
5511 } _resultobj
= Py_BuildValue("i",_result
);
5515 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5516 PyObject
* _resultobj
;
5518 char *_kwnames
[] = { NULL
};
5521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
5524 wxPy_BEGIN_ALLOW_THREADS
;
5525 _result
= (wxWindow
*)wxWindow::FindFocus();
5527 wxPy_END_ALLOW_THREADS
;
5528 if (PyErr_Occurred()) return NULL
;
5529 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5533 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5534 PyObject
* _resultobj
;
5536 char *_kwnames
[] = { NULL
};
5539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
5542 wxPy_BEGIN_ALLOW_THREADS
;
5543 _result
= (int )wxWindow::NewControlId();
5545 wxPy_END_ALLOW_THREADS
;
5546 if (PyErr_Occurred()) return NULL
;
5547 } _resultobj
= Py_BuildValue("i",_result
);
5551 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5552 PyObject
* _resultobj
;
5555 char *_kwnames
[] = { "id", NULL
};
5558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
5561 wxPy_BEGIN_ALLOW_THREADS
;
5562 _result
= (int )wxWindow::NextControlId(_arg0
);
5564 wxPy_END_ALLOW_THREADS
;
5565 if (PyErr_Occurred()) return NULL
;
5566 } _resultobj
= Py_BuildValue("i",_result
);
5570 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5571 PyObject
* _resultobj
;
5574 char *_kwnames
[] = { "id", NULL
};
5577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
5580 wxPy_BEGIN_ALLOW_THREADS
;
5581 _result
= (int )wxWindow::PrevControlId(_arg0
);
5583 wxPy_END_ALLOW_THREADS
;
5584 if (PyErr_Occurred()) return NULL
;
5585 } _resultobj
= Py_BuildValue("i",_result
);
5589 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5590 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5591 PyObject
* _resultobj
;
5593 wxAcceleratorTable
* _arg1
;
5594 PyObject
* _argo0
= 0;
5595 PyObject
* _argo1
= 0;
5596 char *_kwnames
[] = { "self","accel", NULL
};
5599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
5602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5609 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5610 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
5611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5616 wxPy_BEGIN_ALLOW_THREADS
;
5617 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
5619 wxPy_END_ALLOW_THREADS
;
5620 if (PyErr_Occurred()) return NULL
;
5621 } Py_INCREF(Py_None
);
5622 _resultobj
= Py_None
;
5626 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5627 static PyObject
*_wrap_wxWindow_GetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5628 PyObject
* _resultobj
;
5629 wxAcceleratorTable
* _result
;
5631 PyObject
* _argo0
= 0;
5632 char *_kwnames
[] = { "self", NULL
};
5636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAcceleratorTable",_kwnames
,&_argo0
))
5639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5646 wxPy_BEGIN_ALLOW_THREADS
;
5647 _result
= (wxAcceleratorTable
*)wxWindow_GetAcceleratorTable(_arg0
);
5649 wxPy_END_ALLOW_THREADS
;
5650 if (PyErr_Occurred()) return NULL
;
5652 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorTable_p");
5653 _resultobj
= Py_BuildValue("s",_ptemp
);
5656 _resultobj
= Py_None
;
5661 static void *SwigwxPanelTowxWindow(void *ptr
) {
5664 src
= (wxPanel
*) ptr
;
5665 dest
= (wxWindow
*) src
;
5666 return (void *) dest
;
5669 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5672 src
= (wxPanel
*) ptr
;
5673 dest
= (wxEvtHandler
*) src
;
5674 return (void *) dest
;
5677 static void *SwigwxPanelTowxObject(void *ptr
) {
5680 src
= (wxPanel
*) ptr
;
5681 dest
= (wxObject
*) src
;
5682 return (void *) dest
;
5685 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5686 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5687 PyObject
* _resultobj
;
5691 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5692 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5693 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5694 char * _arg5
= (char *) "panel";
5695 PyObject
* _argo0
= 0;
5697 PyObject
* _obj2
= 0;
5699 PyObject
* _obj3
= 0;
5700 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5707 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5708 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5716 if (! wxPoint_helper(_obj2
, &_arg2
))
5722 if (! wxSize_helper(_obj3
, &_arg3
))
5726 wxPy_BEGIN_ALLOW_THREADS
;
5727 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5729 wxPy_END_ALLOW_THREADS
;
5730 if (PyErr_Occurred()) return NULL
;
5732 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5733 _resultobj
= Py_BuildValue("s",_ptemp
);
5736 _resultobj
= Py_None
;
5741 #define new_wxPrePanel() (new wxPanel())
5742 static PyObject
*_wrap_new_wxPrePanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5743 PyObject
* _resultobj
;
5745 char *_kwnames
[] = { NULL
};
5749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrePanel",_kwnames
))
5752 wxPy_BEGIN_ALLOW_THREADS
;
5753 _result
= (wxPanel
*)new_wxPrePanel();
5755 wxPy_END_ALLOW_THREADS
;
5756 if (PyErr_Occurred()) return NULL
;
5758 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5759 _resultobj
= Py_BuildValue("s",_ptemp
);
5762 _resultobj
= Py_None
;
5767 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5768 static PyObject
*_wrap_wxPanel_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5769 PyObject
* _resultobj
;
5774 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5775 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5776 long _arg5
= (long ) wxTAB_TRAVERSAL
;
5777 char * _arg6
= (char *) "panel";
5778 PyObject
* _argo0
= 0;
5779 PyObject
* _argo1
= 0;
5781 PyObject
* _obj3
= 0;
5783 PyObject
* _obj4
= 0;
5784 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
5787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxPanel_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
5797 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5798 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
5799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
5806 if (! wxPoint_helper(_obj3
, &_arg3
))
5812 if (! wxSize_helper(_obj4
, &_arg4
))
5816 wxPy_BEGIN_ALLOW_THREADS
;
5817 _result
= (bool )wxPanel_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5819 wxPy_END_ALLOW_THREADS
;
5820 if (PyErr_Occurred()) return NULL
;
5821 } _resultobj
= Py_BuildValue("i",_result
);
5825 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5826 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5827 PyObject
* _resultobj
;
5829 PyObject
* _argo0
= 0;
5830 char *_kwnames
[] = { "self", NULL
};
5833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5843 wxPy_BEGIN_ALLOW_THREADS
;
5844 wxPanel_InitDialog(_arg0
);
5846 wxPy_END_ALLOW_THREADS
;
5847 if (PyErr_Occurred()) return NULL
;
5848 } Py_INCREF(Py_None
);
5849 _resultobj
= Py_None
;
5853 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5854 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5855 PyObject
* _resultobj
;
5858 PyObject
* _argo0
= 0;
5859 char *_kwnames
[] = { "self", NULL
};
5862 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
5865 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5866 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5867 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5872 wxPy_BEGIN_ALLOW_THREADS
;
5873 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
5875 wxPy_END_ALLOW_THREADS
;
5876 if (PyErr_Occurred()) return NULL
;
5877 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5881 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5882 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5883 PyObject
* _resultobj
;
5886 PyObject
* _argo0
= 0;
5887 PyObject
* _argo1
= 0;
5888 char *_kwnames
[] = { "self","btn", NULL
};
5891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
5894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5901 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5902 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
5903 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5908 wxPy_BEGIN_ALLOW_THREADS
;
5909 wxPanel_SetDefaultItem(_arg0
,_arg1
);
5911 wxPy_END_ALLOW_THREADS
;
5912 if (PyErr_Occurred()) return NULL
;
5913 } Py_INCREF(Py_None
);
5914 _resultobj
= Py_None
;
5918 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
5919 wxScrolledWindow
*src
;
5921 src
= (wxScrolledWindow
*) ptr
;
5922 dest
= (wxPanel
*) src
;
5923 return (void *) dest
;
5926 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
5927 wxScrolledWindow
*src
;
5929 src
= (wxScrolledWindow
*) ptr
;
5930 dest
= (wxWindow
*) src
;
5931 return (void *) dest
;
5934 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
5935 wxScrolledWindow
*src
;
5937 src
= (wxScrolledWindow
*) ptr
;
5938 dest
= (wxEvtHandler
*) src
;
5939 return (void *) dest
;
5942 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
5943 wxScrolledWindow
*src
;
5945 src
= (wxScrolledWindow
*) ptr
;
5946 dest
= (wxObject
*) src
;
5947 return (void *) dest
;
5950 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5951 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5952 PyObject
* _resultobj
;
5953 wxScrolledWindow
* _result
;
5955 wxWindowID _arg1
= (wxWindowID
) -1;
5956 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5957 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5958 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
5959 char * _arg5
= (char *) "scrolledWindow";
5960 PyObject
* _argo0
= 0;
5962 PyObject
* _obj2
= 0;
5964 PyObject
* _obj3
= 0;
5965 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
5981 if (! wxPoint_helper(_obj2
, &_arg2
))
5987 if (! wxSize_helper(_obj3
, &_arg3
))
5991 wxPy_BEGIN_ALLOW_THREADS
;
5992 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5994 wxPy_END_ALLOW_THREADS
;
5995 if (PyErr_Occurred()) return NULL
;
5997 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
5998 _resultobj
= Py_BuildValue("s",_ptemp
);
6001 _resultobj
= Py_None
;
6006 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6007 static PyObject
*_wrap_new_wxPreScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6008 PyObject
* _resultobj
;
6009 wxScrolledWindow
* _result
;
6010 char *_kwnames
[] = { NULL
};
6014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreScrolledWindow",_kwnames
))
6017 wxPy_BEGIN_ALLOW_THREADS
;
6018 _result
= (wxScrolledWindow
*)new_wxPreScrolledWindow();
6020 wxPy_END_ALLOW_THREADS
;
6021 if (PyErr_Occurred()) return NULL
;
6023 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6024 _resultobj
= Py_BuildValue("s",_ptemp
);
6027 _resultobj
= Py_None
;
6032 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6033 static PyObject
*_wrap_wxScrolledWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6034 PyObject
* _resultobj
;
6036 wxScrolledWindow
* _arg0
;
6038 wxWindowID _arg2
= (wxWindowID
) -1;
6039 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6040 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6041 long _arg5
= (long ) wxHSCROLL
|wxVSCROLL
;
6042 char * _arg6
= (char *) "scrolledWindow";
6043 PyObject
* _argo0
= 0;
6044 PyObject
* _argo1
= 0;
6046 PyObject
* _obj3
= 0;
6048 PyObject
* _obj4
= 0;
6049 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iOOls:wxScrolledWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6062 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6063 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6071 if (! wxPoint_helper(_obj3
, &_arg3
))
6077 if (! wxSize_helper(_obj4
, &_arg4
))
6081 wxPy_BEGIN_ALLOW_THREADS
;
6082 _result
= (bool )wxScrolledWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6084 wxPy_END_ALLOW_THREADS
;
6085 if (PyErr_Occurred()) return NULL
;
6086 } _resultobj
= Py_BuildValue("i",_result
);
6090 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6091 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6092 PyObject
* _resultobj
;
6093 wxScrolledWindow
* _arg0
;
6096 PyObject
* _argo0
= 0;
6099 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6111 _arg1
= (bool ) tempbool1
;
6112 _arg2
= (bool ) tempbool2
;
6114 wxPy_BEGIN_ALLOW_THREADS
;
6115 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6117 wxPy_END_ALLOW_THREADS
;
6118 if (PyErr_Occurred()) return NULL
;
6119 } Py_INCREF(Py_None
);
6120 _resultobj
= Py_None
;
6124 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6125 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6126 PyObject
* _resultobj
;
6128 wxScrolledWindow
* _arg0
;
6130 PyObject
* _argo0
= 0;
6131 char *_kwnames
[] = { "self","orient", NULL
};
6134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6144 wxPy_BEGIN_ALLOW_THREADS
;
6145 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6147 wxPy_END_ALLOW_THREADS
;
6148 if (PyErr_Occurred()) return NULL
;
6149 } _resultobj
= Py_BuildValue("i",_result
);
6153 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6154 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6155 PyObject
* _resultobj
;
6156 wxScrolledWindow
* _arg0
;
6161 PyObject
* _argo0
= 0;
6162 char *_kwnames
[] = { "self", NULL
};
6171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6174 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6175 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6176 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6181 wxPy_BEGIN_ALLOW_THREADS
;
6182 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6184 wxPy_END_ALLOW_THREADS
;
6185 if (PyErr_Occurred()) return NULL
;
6186 } Py_INCREF(Py_None
);
6187 _resultobj
= Py_None
;
6190 o
= PyInt_FromLong((long) (*_arg1
));
6191 _resultobj
= t_output_helper(_resultobj
, o
);
6195 o
= PyInt_FromLong((long) (*_arg2
));
6196 _resultobj
= t_output_helper(_resultobj
, o
);
6201 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6202 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6203 PyObject
* _resultobj
;
6205 wxScrolledWindow
* _arg0
;
6206 PyObject
* _argo0
= 0;
6207 char *_kwnames
[] = { "self", NULL
};
6210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6220 wxPy_BEGIN_ALLOW_THREADS
;
6221 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6223 wxPy_END_ALLOW_THREADS
;
6224 if (PyErr_Occurred()) return NULL
;
6225 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6229 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6230 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6231 PyObject
* _resultobj
;
6232 wxScrolledWindow
* _arg0
;
6237 PyObject
* _argo0
= 0;
6238 char *_kwnames
[] = { "self", NULL
};
6247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6257 wxPy_BEGIN_ALLOW_THREADS
;
6258 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6260 wxPy_END_ALLOW_THREADS
;
6261 if (PyErr_Occurred()) return NULL
;
6262 } Py_INCREF(Py_None
);
6263 _resultobj
= Py_None
;
6266 o
= PyInt_FromLong((long) (*_arg1
));
6267 _resultobj
= t_output_helper(_resultobj
, o
);
6271 o
= PyInt_FromLong((long) (*_arg2
));
6272 _resultobj
= t_output_helper(_resultobj
, o
);
6277 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6278 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6279 PyObject
* _resultobj
;
6281 wxScrolledWindow
* _arg0
;
6282 PyObject
* _argo0
= 0;
6283 char *_kwnames
[] = { "self", NULL
};
6286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6296 wxPy_BEGIN_ALLOW_THREADS
;
6297 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6299 wxPy_END_ALLOW_THREADS
;
6300 if (PyErr_Occurred()) return NULL
;
6301 } _resultobj
= Py_BuildValue("i",_result
);
6305 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6306 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6307 PyObject
* _resultobj
;
6308 wxScrolledWindow
* _arg0
;
6310 PyObject
* _argo0
= 0;
6311 PyObject
* _argo1
= 0;
6312 char *_kwnames
[] = { "self","dc", NULL
};
6315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6325 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6326 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6332 wxPy_BEGIN_ALLOW_THREADS
;
6333 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6335 wxPy_END_ALLOW_THREADS
;
6336 if (PyErr_Occurred()) return NULL
;
6337 } Py_INCREF(Py_None
);
6338 _resultobj
= Py_None
;
6342 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6343 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6344 PyObject
* _resultobj
;
6345 wxScrolledWindow
* _arg0
;
6348 PyObject
* _argo0
= 0;
6349 char *_kwnames
[] = { "self","x","y", NULL
};
6352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6362 wxPy_BEGIN_ALLOW_THREADS
;
6363 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6365 wxPy_END_ALLOW_THREADS
;
6366 if (PyErr_Occurred()) return NULL
;
6367 } Py_INCREF(Py_None
);
6368 _resultobj
= Py_None
;
6372 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6373 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6374 PyObject
* _resultobj
;
6375 wxScrolledWindow
* _arg0
;
6380 int _arg5
= (int ) 0;
6381 int _arg6
= (int ) 0;
6382 int _arg7
= (int ) FALSE
;
6383 PyObject
* _argo0
= 0;
6384 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6397 wxPy_BEGIN_ALLOW_THREADS
;
6398 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6400 wxPy_END_ALLOW_THREADS
;
6401 if (PyErr_Occurred()) return NULL
;
6402 } Py_INCREF(Py_None
);
6403 _resultobj
= Py_None
;
6407 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6408 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6409 PyObject
* _resultobj
;
6410 wxScrolledWindow
* _arg0
;
6413 PyObject
* _argo0
= 0;
6414 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6427 wxPy_BEGIN_ALLOW_THREADS
;
6428 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6430 wxPy_END_ALLOW_THREADS
;
6431 if (PyErr_Occurred()) return NULL
;
6432 } Py_INCREF(Py_None
);
6433 _resultobj
= Py_None
;
6437 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6438 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6439 PyObject
* _resultobj
;
6440 wxScrolledWindow
* _arg0
;
6442 PyObject
* _argo0
= 0;
6443 PyObject
* _argo1
= 0;
6444 char *_kwnames
[] = { "self","window", NULL
};
6447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6457 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6458 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6464 wxPy_BEGIN_ALLOW_THREADS
;
6465 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6467 wxPy_END_ALLOW_THREADS
;
6468 if (PyErr_Occurred()) return NULL
;
6469 } Py_INCREF(Py_None
);
6470 _resultobj
= Py_None
;
6474 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6475 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6476 PyObject
* _resultobj
;
6477 wxScrolledWindow
* _arg0
;
6482 PyObject
* _argo0
= 0;
6483 char *_kwnames
[] = { "self", NULL
};
6492 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6495 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6496 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6497 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6502 wxPy_BEGIN_ALLOW_THREADS
;
6503 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6505 wxPy_END_ALLOW_THREADS
;
6506 if (PyErr_Occurred()) return NULL
;
6507 } Py_INCREF(Py_None
);
6508 _resultobj
= Py_None
;
6511 o
= PyInt_FromLong((long) (*_arg1
));
6512 _resultobj
= t_output_helper(_resultobj
, o
);
6516 o
= PyInt_FromLong((long) (*_arg2
));
6517 _resultobj
= t_output_helper(_resultobj
, o
);
6522 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6523 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6524 PyObject
* _resultobj
;
6525 wxScrolledWindow
* _arg0
;
6532 PyObject
* _argo0
= 0;
6533 char *_kwnames
[] = { "self","x","y", NULL
};
6542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6552 wxPy_BEGIN_ALLOW_THREADS
;
6553 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6555 wxPy_END_ALLOW_THREADS
;
6556 if (PyErr_Occurred()) return NULL
;
6557 } Py_INCREF(Py_None
);
6558 _resultobj
= Py_None
;
6561 o
= PyInt_FromLong((long) (*_arg3
));
6562 _resultobj
= t_output_helper(_resultobj
, o
);
6566 o
= PyInt_FromLong((long) (*_arg4
));
6567 _resultobj
= t_output_helper(_resultobj
, o
);
6572 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6573 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6574 PyObject
* _resultobj
;
6575 wxScrolledWindow
* _arg0
;
6582 PyObject
* _argo0
= 0;
6583 char *_kwnames
[] = { "self","x","y", NULL
};
6592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6602 wxPy_BEGIN_ALLOW_THREADS
;
6603 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6605 wxPy_END_ALLOW_THREADS
;
6606 if (PyErr_Occurred()) return NULL
;
6607 } Py_INCREF(Py_None
);
6608 _resultobj
= Py_None
;
6611 o
= PyInt_FromLong((long) (*_arg3
));
6612 _resultobj
= t_output_helper(_resultobj
, o
);
6616 o
= PyInt_FromLong((long) (*_arg4
));
6617 _resultobj
= t_output_helper(_resultobj
, o
);
6622 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6623 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6624 PyObject
* _resultobj
;
6625 wxScrolledWindow
* _arg0
;
6628 PyObject
* _argo0
= 0;
6629 char *_kwnames
[] = { "self","xs","ys", NULL
};
6632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6642 wxPy_BEGIN_ALLOW_THREADS
;
6643 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6645 wxPy_END_ALLOW_THREADS
;
6646 if (PyErr_Occurred()) return NULL
;
6647 } Py_INCREF(Py_None
);
6648 _resultobj
= Py_None
;
6652 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6653 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6654 PyObject
* _resultobj
;
6656 wxScrolledWindow
* _arg0
;
6657 PyObject
* _argo0
= 0;
6658 char *_kwnames
[] = { "self", NULL
};
6661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6671 wxPy_BEGIN_ALLOW_THREADS
;
6672 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6674 wxPy_END_ALLOW_THREADS
;
6675 if (PyErr_Occurred()) return NULL
;
6676 } _resultobj
= Py_BuildValue("d",_result
);
6680 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6681 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6682 PyObject
* _resultobj
;
6684 wxScrolledWindow
* _arg0
;
6685 PyObject
* _argo0
= 0;
6686 char *_kwnames
[] = { "self", NULL
};
6689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6699 wxPy_BEGIN_ALLOW_THREADS
;
6700 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6702 wxPy_END_ALLOW_THREADS
;
6703 if (PyErr_Occurred()) return NULL
;
6704 } _resultobj
= Py_BuildValue("d",_result
);
6708 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6709 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6710 PyObject
* _resultobj
;
6711 wxScrolledWindow
* _arg0
;
6712 PyObject
* _argo0
= 0;
6713 char *_kwnames
[] = { "self", NULL
};
6716 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6719 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6720 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6726 wxPy_BEGIN_ALLOW_THREADS
;
6727 wxScrolledWindow_AdjustScrollbars(_arg0
);
6729 wxPy_END_ALLOW_THREADS
;
6730 if (PyErr_Occurred()) return NULL
;
6731 } Py_INCREF(Py_None
);
6732 _resultobj
= Py_None
;
6736 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6739 src
= (wxMenu
*) ptr
;
6740 dest
= (wxEvtHandler
*) src
;
6741 return (void *) dest
;
6744 static void *SwigwxMenuTowxObject(void *ptr
) {
6747 src
= (wxMenu
*) ptr
;
6748 dest
= (wxObject
*) src
;
6749 return (void *) dest
;
6752 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6753 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6754 PyObject
* _resultobj
;
6756 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6757 long _arg1
= (long ) 0;
6758 PyObject
* _obj0
= 0;
6759 char *_kwnames
[] = { "title","style", NULL
};
6763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6767 #if PYTHON_API_VERSION >= 1009
6768 char* tmpPtr
; int tmpSize
;
6769 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6770 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6773 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6775 _arg0
= new wxString(tmpPtr
, tmpSize
);
6777 if (!PyString_Check(_obj0
)) {
6778 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6781 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6785 wxPy_BEGIN_ALLOW_THREADS
;
6786 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6788 wxPy_END_ALLOW_THREADS
;
6789 if (PyErr_Occurred()) return NULL
;
6791 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6792 _resultobj
= Py_BuildValue("s",_ptemp
);
6795 _resultobj
= Py_None
;
6804 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6805 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6806 PyObject
* _resultobj
;
6810 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6811 int _arg4
= (int ) FALSE
;
6812 PyObject
* _argo0
= 0;
6813 PyObject
* _obj2
= 0;
6814 PyObject
* _obj3
= 0;
6815 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6828 #if PYTHON_API_VERSION >= 1009
6829 char* tmpPtr
; int tmpSize
;
6830 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6831 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6834 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6836 _arg2
= new wxString(tmpPtr
, tmpSize
);
6838 if (!PyString_Check(_obj2
)) {
6839 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6842 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6847 #if PYTHON_API_VERSION >= 1009
6848 char* tmpPtr
; int tmpSize
;
6849 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6850 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6853 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6855 _arg3
= new wxString(tmpPtr
, tmpSize
);
6857 if (!PyString_Check(_obj3
)) {
6858 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6861 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
6865 wxPy_BEGIN_ALLOW_THREADS
;
6866 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
6868 wxPy_END_ALLOW_THREADS
;
6869 if (PyErr_Occurred()) return NULL
;
6870 } Py_INCREF(Py_None
);
6871 _resultobj
= Py_None
;
6883 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6884 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6885 PyObject
* _resultobj
;
6890 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
6891 PyObject
* _argo0
= 0;
6892 PyObject
* _obj2
= 0;
6893 PyObject
* _argo3
= 0;
6894 PyObject
* _obj4
= 0;
6895 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
6898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
6901 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6902 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6903 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6908 #if PYTHON_API_VERSION >= 1009
6909 char* tmpPtr
; int tmpSize
;
6910 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6911 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6914 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6916 _arg2
= new wxString(tmpPtr
, tmpSize
);
6918 if (!PyString_Check(_obj2
)) {
6919 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6922 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6926 if (_argo3
== Py_None
) { _arg3
= NULL
; }
6927 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
6928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6934 #if PYTHON_API_VERSION >= 1009
6935 char* tmpPtr
; int tmpSize
;
6936 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
6937 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6940 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
6942 _arg4
= new wxString(tmpPtr
, tmpSize
);
6944 if (!PyString_Check(_obj4
)) {
6945 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6948 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
6952 wxPy_BEGIN_ALLOW_THREADS
;
6953 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
6955 wxPy_END_ALLOW_THREADS
;
6956 if (PyErr_Occurred()) return NULL
;
6957 } Py_INCREF(Py_None
);
6958 _resultobj
= Py_None
;
6970 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
6971 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6972 PyObject
* _resultobj
;
6975 PyObject
* _argo0
= 0;
6976 PyObject
* _argo1
= 0;
6977 char *_kwnames
[] = { "self","item", NULL
};
6980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
6983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
6990 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6991 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
6992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
6997 wxPy_BEGIN_ALLOW_THREADS
;
6998 wxMenu_AppendItem(_arg0
,_arg1
);
7000 wxPy_END_ALLOW_THREADS
;
7001 if (PyErr_Occurred()) return NULL
;
7002 } Py_INCREF(Py_None
);
7003 _resultobj
= Py_None
;
7007 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7008 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7009 PyObject
* _resultobj
;
7011 PyObject
* _argo0
= 0;
7012 char *_kwnames
[] = { "self", NULL
};
7015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7025 wxPy_BEGIN_ALLOW_THREADS
;
7026 wxMenu_AppendSeparator(_arg0
);
7028 wxPy_END_ALLOW_THREADS
;
7029 if (PyErr_Occurred()) return NULL
;
7030 } Py_INCREF(Py_None
);
7031 _resultobj
= Py_None
;
7035 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7036 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7037 PyObject
* _resultobj
;
7039 PyObject
* _argo0
= 0;
7040 char *_kwnames
[] = { "self", NULL
};
7043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7053 wxPy_BEGIN_ALLOW_THREADS
;
7054 wxMenu_Break(_arg0
);
7056 wxPy_END_ALLOW_THREADS
;
7057 if (PyErr_Occurred()) return NULL
;
7058 } Py_INCREF(Py_None
);
7059 _resultobj
= Py_None
;
7063 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7064 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7065 PyObject
* _resultobj
;
7069 PyObject
* _argo0
= 0;
7071 char *_kwnames
[] = { "self","id","flag", NULL
};
7074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7083 _arg2
= (bool ) tempbool2
;
7085 wxPy_BEGIN_ALLOW_THREADS
;
7086 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7088 wxPy_END_ALLOW_THREADS
;
7089 if (PyErr_Occurred()) return NULL
;
7090 } Py_INCREF(Py_None
);
7091 _resultobj
= Py_None
;
7095 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7096 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7097 PyObject
* _resultobj
;
7101 PyObject
* _argo0
= 0;
7102 char *_kwnames
[] = { "self","id", NULL
};
7105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7115 wxPy_BEGIN_ALLOW_THREADS
;
7116 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7118 wxPy_END_ALLOW_THREADS
;
7119 if (PyErr_Occurred()) return NULL
;
7120 } _resultobj
= Py_BuildValue("i",_result
);
7124 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7125 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7126 PyObject
* _resultobj
;
7130 PyObject
* _argo0
= 0;
7132 char *_kwnames
[] = { "self","id","enable", NULL
};
7135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7144 _arg2
= (bool ) tempbool2
;
7146 wxPy_BEGIN_ALLOW_THREADS
;
7147 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7149 wxPy_END_ALLOW_THREADS
;
7150 if (PyErr_Occurred()) return NULL
;
7151 } Py_INCREF(Py_None
);
7152 _resultobj
= Py_None
;
7156 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7157 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7158 PyObject
* _resultobj
;
7162 PyObject
* _argo0
= 0;
7163 char *_kwnames
[] = { "self","id", NULL
};
7166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7176 wxPy_BEGIN_ALLOW_THREADS
;
7177 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7179 wxPy_END_ALLOW_THREADS
;
7180 if (PyErr_Occurred()) return NULL
;
7181 } _resultobj
= Py_BuildValue("i",_result
);
7185 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7186 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7187 PyObject
* _resultobj
;
7191 PyObject
* _argo0
= 0;
7192 PyObject
* _obj1
= 0;
7193 char *_kwnames
[] = { "self","itemString", NULL
};
7196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7206 #if PYTHON_API_VERSION >= 1009
7207 char* tmpPtr
; int tmpSize
;
7208 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7209 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7212 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7214 _arg1
= new wxString(tmpPtr
, tmpSize
);
7216 if (!PyString_Check(_obj1
)) {
7217 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7220 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7224 wxPy_BEGIN_ALLOW_THREADS
;
7225 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7227 wxPy_END_ALLOW_THREADS
;
7228 if (PyErr_Occurred()) return NULL
;
7229 } _resultobj
= Py_BuildValue("i",_result
);
7237 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7238 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7239 PyObject
* _resultobj
;
7240 wxMenuItem
* _result
;
7243 PyObject
* _argo0
= 0;
7244 char *_kwnames
[] = { "self","id", NULL
};
7247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7257 wxPy_BEGIN_ALLOW_THREADS
;
7258 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7260 wxPy_END_ALLOW_THREADS
;
7261 if (PyErr_Occurred()) return NULL
;
7262 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7266 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7267 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7268 PyObject
* _resultobj
;
7271 PyObject
* _argo0
= 0;
7272 char *_kwnames
[] = { "self", NULL
};
7275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7285 wxPy_BEGIN_ALLOW_THREADS
;
7286 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7288 wxPy_END_ALLOW_THREADS
;
7289 if (PyErr_Occurred()) return NULL
;
7291 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7299 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7300 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7301 PyObject
* _resultobj
;
7304 PyObject
* _argo0
= 0;
7305 PyObject
* _obj1
= 0;
7306 char *_kwnames
[] = { "self","title", NULL
};
7309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7319 #if PYTHON_API_VERSION >= 1009
7320 char* tmpPtr
; int tmpSize
;
7321 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7322 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7325 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7327 _arg1
= new wxString(tmpPtr
, tmpSize
);
7329 if (!PyString_Check(_obj1
)) {
7330 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7333 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7337 wxPy_BEGIN_ALLOW_THREADS
;
7338 wxMenu_SetTitle(_arg0
,*_arg1
);
7340 wxPy_END_ALLOW_THREADS
;
7341 if (PyErr_Occurred()) return NULL
;
7342 } Py_INCREF(Py_None
);
7343 _resultobj
= Py_None
;
7351 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7352 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7353 PyObject
* _resultobj
;
7357 PyObject
* _argo0
= 0;
7358 char *_kwnames
[] = { "self","id", NULL
};
7361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7371 wxPy_BEGIN_ALLOW_THREADS
;
7372 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7374 wxPy_END_ALLOW_THREADS
;
7375 if (PyErr_Occurred()) return NULL
;
7377 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7385 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7386 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7387 PyObject
* _resultobj
;
7391 PyObject
* _argo0
= 0;
7392 PyObject
* _obj2
= 0;
7393 char *_kwnames
[] = { "self","id","label", NULL
};
7396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7406 #if PYTHON_API_VERSION >= 1009
7407 char* tmpPtr
; int tmpSize
;
7408 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7409 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7412 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7414 _arg2
= new wxString(tmpPtr
, tmpSize
);
7416 if (!PyString_Check(_obj2
)) {
7417 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7420 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7424 wxPy_BEGIN_ALLOW_THREADS
;
7425 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7427 wxPy_END_ALLOW_THREADS
;
7428 if (PyErr_Occurred()) return NULL
;
7429 } Py_INCREF(Py_None
);
7430 _resultobj
= Py_None
;
7438 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7439 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7440 PyObject
* _resultobj
;
7444 PyObject
* _argo0
= 0;
7445 char *_kwnames
[] = { "self","id", NULL
};
7448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7458 wxPy_BEGIN_ALLOW_THREADS
;
7459 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7461 wxPy_END_ALLOW_THREADS
;
7462 if (PyErr_Occurred()) return NULL
;
7464 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7472 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7473 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7474 PyObject
* _resultobj
;
7478 PyObject
* _argo0
= 0;
7479 PyObject
* _obj2
= 0;
7480 char *_kwnames
[] = { "self","id","helpString", NULL
};
7483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7493 #if PYTHON_API_VERSION >= 1009
7494 char* tmpPtr
; int tmpSize
;
7495 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7496 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7499 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7501 _arg2
= new wxString(tmpPtr
, tmpSize
);
7503 if (!PyString_Check(_obj2
)) {
7504 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7507 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7511 wxPy_BEGIN_ALLOW_THREADS
;
7512 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7514 wxPy_END_ALLOW_THREADS
;
7515 if (PyErr_Occurred()) return NULL
;
7516 } Py_INCREF(Py_None
);
7517 _resultobj
= Py_None
;
7525 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7526 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7527 PyObject
* _resultobj
;
7529 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7530 PyObject
* _argo0
= 0;
7531 PyObject
* _argo1
= 0;
7532 char *_kwnames
[] = { "self","source", NULL
};
7535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7545 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7546 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7552 wxPy_BEGIN_ALLOW_THREADS
;
7553 wxMenu_UpdateUI(_arg0
,_arg1
);
7555 wxPy_END_ALLOW_THREADS
;
7556 if (PyErr_Occurred()) return NULL
;
7557 } Py_INCREF(Py_None
);
7558 _resultobj
= Py_None
;
7562 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7563 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7564 PyObject
* _resultobj
;
7568 PyObject
* _argo0
= 0;
7569 char *_kwnames
[] = { "self","id", NULL
};
7572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7582 wxPy_BEGIN_ALLOW_THREADS
;
7583 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7585 wxPy_END_ALLOW_THREADS
;
7586 if (PyErr_Occurred()) return NULL
;
7587 } _resultobj
= Py_BuildValue("i",_result
);
7591 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7592 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7593 PyObject
* _resultobj
;
7597 PyObject
* _argo0
= 0;
7598 PyObject
* _argo1
= 0;
7599 char *_kwnames
[] = { "self","item", NULL
};
7602 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7605 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7606 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7607 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7612 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7613 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7614 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7619 wxPy_BEGIN_ALLOW_THREADS
;
7620 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7622 wxPy_END_ALLOW_THREADS
;
7623 if (PyErr_Occurred()) return NULL
;
7624 } _resultobj
= Py_BuildValue("i",_result
);
7628 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7629 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7630 PyObject
* _resultobj
;
7635 PyObject
* _argo0
= 0;
7636 PyObject
* _argo2
= 0;
7637 char *_kwnames
[] = { "self","pos","item", NULL
};
7640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7643 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7644 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7650 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7651 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7652 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7657 wxPy_BEGIN_ALLOW_THREADS
;
7658 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7660 wxPy_END_ALLOW_THREADS
;
7661 if (PyErr_Occurred()) return NULL
;
7662 } _resultobj
= Py_BuildValue("i",_result
);
7666 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7667 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7668 PyObject
* _resultobj
;
7669 wxMenuItem
* _result
;
7672 PyObject
* _argo0
= 0;
7673 char *_kwnames
[] = { "self","id", NULL
};
7676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7686 wxPy_BEGIN_ALLOW_THREADS
;
7687 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7689 wxPy_END_ALLOW_THREADS
;
7690 if (PyErr_Occurred()) return NULL
;
7691 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7695 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7696 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7697 PyObject
* _resultobj
;
7698 wxMenuItem
* _result
;
7701 PyObject
* _argo0
= 0;
7702 PyObject
* _argo1
= 0;
7703 char *_kwnames
[] = { "self","item", NULL
};
7706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7709 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7710 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7711 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7716 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7717 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7723 wxPy_BEGIN_ALLOW_THREADS
;
7724 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7726 wxPy_END_ALLOW_THREADS
;
7727 if (PyErr_Occurred()) return NULL
;
7728 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7732 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7733 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7734 PyObject
* _resultobj
;
7736 PyObject
* _argo0
= 0;
7737 char *_kwnames
[] = { "self", NULL
};
7740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7750 wxPy_BEGIN_ALLOW_THREADS
;
7751 wxMenu_Destroy(_arg0
);
7753 wxPy_END_ALLOW_THREADS
;
7754 if (PyErr_Occurred()) return NULL
;
7755 } Py_INCREF(Py_None
);
7756 _resultobj
= Py_None
;
7760 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7761 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7762 PyObject
* _resultobj
;
7766 PyObject
* _argo0
= 0;
7767 char *_kwnames
[] = { "self","id", NULL
};
7770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7780 wxPy_BEGIN_ALLOW_THREADS
;
7781 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7783 wxPy_END_ALLOW_THREADS
;
7784 if (PyErr_Occurred()) return NULL
;
7785 } _resultobj
= Py_BuildValue("i",_result
);
7789 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7790 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7791 PyObject
* _resultobj
;
7795 PyObject
* _argo0
= 0;
7796 PyObject
* _argo1
= 0;
7797 char *_kwnames
[] = { "self","item", NULL
};
7800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7810 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7811 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7817 wxPy_BEGIN_ALLOW_THREADS
;
7818 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7820 wxPy_END_ALLOW_THREADS
;
7821 if (PyErr_Occurred()) return NULL
;
7822 } _resultobj
= Py_BuildValue("i",_result
);
7826 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7827 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7828 PyObject
* _resultobj
;
7831 PyObject
* _argo0
= 0;
7832 char *_kwnames
[] = { "self", NULL
};
7835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7845 wxPy_BEGIN_ALLOW_THREADS
;
7846 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7848 wxPy_END_ALLOW_THREADS
;
7849 if (PyErr_Occurred()) return NULL
;
7850 } _resultobj
= Py_BuildValue("i",_result
);
7854 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7855 wxMenuItemList
& list
= self
->GetMenuItems();
7856 return wxPy_ConvertList(&list
, "wxMenuItem");
7858 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7859 PyObject
* _resultobj
;
7862 PyObject
* _argo0
= 0;
7863 char *_kwnames
[] = { "self", NULL
};
7866 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
7869 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7870 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7876 wxPy_BEGIN_ALLOW_THREADS
;
7877 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
7879 wxPy_END_ALLOW_THREADS
;
7880 if (PyErr_Occurred()) return NULL
;
7882 _resultobj
= _result
;
7887 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7888 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7889 PyObject
* _resultobj
;
7891 wxEvtHandler
* _arg1
;
7892 PyObject
* _argo0
= 0;
7893 PyObject
* _argo1
= 0;
7894 char *_kwnames
[] = { "self","handler", NULL
};
7897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
7900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7907 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7908 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7914 wxPy_BEGIN_ALLOW_THREADS
;
7915 wxMenu_SetEventHandler(_arg0
,_arg1
);
7917 wxPy_END_ALLOW_THREADS
;
7918 if (PyErr_Occurred()) return NULL
;
7919 } Py_INCREF(Py_None
);
7920 _resultobj
= Py_None
;
7924 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
7925 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7926 PyObject
* _resultobj
;
7927 wxEvtHandler
* _result
;
7929 PyObject
* _argo0
= 0;
7930 char *_kwnames
[] = { "self", NULL
};
7933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
7936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
7943 wxPy_BEGIN_ALLOW_THREADS
;
7944 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
7946 wxPy_END_ALLOW_THREADS
;
7947 if (PyErr_Occurred()) return NULL
;
7948 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7952 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
7953 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7954 PyObject
* _resultobj
;
7957 PyObject
* _argo0
= 0;
7958 PyObject
* _argo1
= 0;
7959 char *_kwnames
[] = { "self","win", NULL
};
7962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
7965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
7972 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7973 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
7979 wxPy_BEGIN_ALLOW_THREADS
;
7980 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
7982 wxPy_END_ALLOW_THREADS
;
7983 if (PyErr_Occurred()) return NULL
;
7984 } Py_INCREF(Py_None
);
7985 _resultobj
= Py_None
;
7989 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
7990 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7991 PyObject
* _resultobj
;
7994 PyObject
* _argo0
= 0;
7995 char *_kwnames
[] = { "self", NULL
};
7998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8008 wxPy_BEGIN_ALLOW_THREADS
;
8009 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8011 wxPy_END_ALLOW_THREADS
;
8012 if (PyErr_Occurred()) return NULL
;
8013 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8017 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8018 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8019 PyObject
* _resultobj
;
8022 PyObject
* _argo0
= 0;
8023 char *_kwnames
[] = { "self", NULL
};
8026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8036 wxPy_BEGIN_ALLOW_THREADS
;
8037 _result
= (long )wxMenu_GetStyle(_arg0
);
8039 wxPy_END_ALLOW_THREADS
;
8040 if (PyErr_Occurred()) return NULL
;
8041 } _resultobj
= Py_BuildValue("l",_result
);
8045 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8046 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8047 PyObject
* _resultobj
;
8050 PyObject
* _argo0
= 0;
8051 char *_kwnames
[] = { "self", NULL
};
8054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8064 wxPy_BEGIN_ALLOW_THREADS
;
8065 _result
= (bool )wxMenu_IsAttached(_arg0
);
8067 wxPy_END_ALLOW_THREADS
;
8068 if (PyErr_Occurred()) return NULL
;
8069 } _resultobj
= Py_BuildValue("i",_result
);
8073 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8074 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8075 PyObject
* _resultobj
;
8078 PyObject
* _argo0
= 0;
8079 PyObject
* _argo1
= 0;
8080 char *_kwnames
[] = { "self","parent", NULL
};
8083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8093 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8094 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8100 wxPy_BEGIN_ALLOW_THREADS
;
8101 wxMenu_SetParent(_arg0
,_arg1
);
8103 wxPy_END_ALLOW_THREADS
;
8104 if (PyErr_Occurred()) return NULL
;
8105 } Py_INCREF(Py_None
);
8106 _resultobj
= Py_None
;
8110 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8111 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8112 PyObject
* _resultobj
;
8115 PyObject
* _argo0
= 0;
8116 char *_kwnames
[] = { "self", NULL
};
8119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8129 wxPy_BEGIN_ALLOW_THREADS
;
8130 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8132 wxPy_END_ALLOW_THREADS
;
8133 if (PyErr_Occurred()) return NULL
;
8134 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8138 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8141 src
= (wxMenuBar
*) ptr
;
8142 dest
= (wxWindow
*) src
;
8143 return (void *) dest
;
8146 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8149 src
= (wxMenuBar
*) ptr
;
8150 dest
= (wxEvtHandler
*) src
;
8151 return (void *) dest
;
8154 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8157 src
= (wxMenuBar
*) ptr
;
8158 dest
= (wxObject
*) src
;
8159 return (void *) dest
;
8162 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8163 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8164 PyObject
* _resultobj
;
8165 wxMenuBar
* _result
;
8166 long _arg0
= (long ) 0;
8167 char *_kwnames
[] = { "style", NULL
};
8171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8174 wxPy_BEGIN_ALLOW_THREADS
;
8175 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8177 wxPy_END_ALLOW_THREADS
;
8178 if (PyErr_Occurred()) return NULL
;
8180 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8181 _resultobj
= Py_BuildValue("s",_ptemp
);
8184 _resultobj
= Py_None
;
8189 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8190 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8191 PyObject
* _resultobj
;
8196 PyObject
* _argo0
= 0;
8197 PyObject
* _argo1
= 0;
8198 PyObject
* _obj2
= 0;
8199 char *_kwnames
[] = { "self","menu","title", NULL
};
8202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8212 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8213 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8219 #if PYTHON_API_VERSION >= 1009
8220 char* tmpPtr
; int tmpSize
;
8221 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8222 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8225 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8227 _arg2
= new wxString(tmpPtr
, tmpSize
);
8229 if (!PyString_Check(_obj2
)) {
8230 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8233 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8237 wxPy_BEGIN_ALLOW_THREADS
;
8238 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8240 wxPy_END_ALLOW_THREADS
;
8241 if (PyErr_Occurred()) return NULL
;
8242 } _resultobj
= Py_BuildValue("i",_result
);
8250 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8251 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8252 PyObject
* _resultobj
;
8258 PyObject
* _argo0
= 0;
8259 PyObject
* _argo2
= 0;
8260 PyObject
* _obj3
= 0;
8261 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8274 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8275 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8281 #if PYTHON_API_VERSION >= 1009
8282 char* tmpPtr
; int tmpSize
;
8283 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8284 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8287 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8289 _arg3
= new wxString(tmpPtr
, tmpSize
);
8291 if (!PyString_Check(_obj3
)) {
8292 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8295 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8299 wxPy_BEGIN_ALLOW_THREADS
;
8300 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8302 wxPy_END_ALLOW_THREADS
;
8303 if (PyErr_Occurred()) return NULL
;
8304 } _resultobj
= Py_BuildValue("i",_result
);
8312 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8313 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8314 PyObject
* _resultobj
;
8317 PyObject
* _argo0
= 0;
8318 char *_kwnames
[] = { "self", NULL
};
8321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8331 wxPy_BEGIN_ALLOW_THREADS
;
8332 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8334 wxPy_END_ALLOW_THREADS
;
8335 if (PyErr_Occurred()) return NULL
;
8336 } _resultobj
= Py_BuildValue("i",_result
);
8340 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8341 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8342 PyObject
* _resultobj
;
8346 PyObject
* _argo0
= 0;
8347 char *_kwnames
[] = { "self","pos", NULL
};
8350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8360 wxPy_BEGIN_ALLOW_THREADS
;
8361 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8363 wxPy_END_ALLOW_THREADS
;
8364 if (PyErr_Occurred()) return NULL
;
8365 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8369 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8370 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8371 PyObject
* _resultobj
;
8377 PyObject
* _argo0
= 0;
8378 PyObject
* _argo2
= 0;
8379 PyObject
* _obj3
= 0;
8380 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8393 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8394 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8400 #if PYTHON_API_VERSION >= 1009
8401 char* tmpPtr
; int tmpSize
;
8402 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8403 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8406 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8408 _arg3
= new wxString(tmpPtr
, tmpSize
);
8410 if (!PyString_Check(_obj3
)) {
8411 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8414 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8418 wxPy_BEGIN_ALLOW_THREADS
;
8419 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8421 wxPy_END_ALLOW_THREADS
;
8422 if (PyErr_Occurred()) return NULL
;
8423 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8431 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8432 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8433 PyObject
* _resultobj
;
8437 PyObject
* _argo0
= 0;
8438 char *_kwnames
[] = { "self","pos", NULL
};
8441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8451 wxPy_BEGIN_ALLOW_THREADS
;
8452 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8454 wxPy_END_ALLOW_THREADS
;
8455 if (PyErr_Occurred()) return NULL
;
8456 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8460 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8461 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8462 PyObject
* _resultobj
;
8466 PyObject
* _argo0
= 0;
8468 char *_kwnames
[] = { "self","pos","enable", NULL
};
8471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8480 _arg2
= (bool ) tempbool2
;
8482 wxPy_BEGIN_ALLOW_THREADS
;
8483 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8485 wxPy_END_ALLOW_THREADS
;
8486 if (PyErr_Occurred()) return NULL
;
8487 } Py_INCREF(Py_None
);
8488 _resultobj
= Py_None
;
8492 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8493 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8494 PyObject
* _resultobj
;
8498 PyObject
* _argo0
= 0;
8499 PyObject
* _obj2
= 0;
8500 char *_kwnames
[] = { "self","pos","label", NULL
};
8503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8513 #if PYTHON_API_VERSION >= 1009
8514 char* tmpPtr
; int tmpSize
;
8515 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8516 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8519 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8521 _arg2
= new wxString(tmpPtr
, tmpSize
);
8523 if (!PyString_Check(_obj2
)) {
8524 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8527 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8531 wxPy_BEGIN_ALLOW_THREADS
;
8532 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8534 wxPy_END_ALLOW_THREADS
;
8535 if (PyErr_Occurred()) return NULL
;
8536 } Py_INCREF(Py_None
);
8537 _resultobj
= Py_None
;
8545 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8546 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8547 PyObject
* _resultobj
;
8551 PyObject
* _argo0
= 0;
8552 char *_kwnames
[] = { "self","pos", NULL
};
8555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8565 wxPy_BEGIN_ALLOW_THREADS
;
8566 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8568 wxPy_END_ALLOW_THREADS
;
8569 if (PyErr_Occurred()) return NULL
;
8571 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8579 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8580 static PyObject
*_wrap_wxMenuBar_FindMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8581 PyObject
* _resultobj
;
8585 PyObject
* _argo0
= 0;
8586 PyObject
* _obj1
= 0;
8587 char *_kwnames
[] = { "self","title", NULL
};
8590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuBar_FindMenu",_kwnames
,&_argo0
,&_obj1
))
8593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8600 #if PYTHON_API_VERSION >= 1009
8601 char* tmpPtr
; int tmpSize
;
8602 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8603 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8606 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8608 _arg1
= new wxString(tmpPtr
, tmpSize
);
8610 if (!PyString_Check(_obj1
)) {
8611 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8614 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8618 wxPy_BEGIN_ALLOW_THREADS
;
8619 _result
= (int )wxMenuBar_FindMenu(_arg0
,*_arg1
);
8621 wxPy_END_ALLOW_THREADS
;
8622 if (PyErr_Occurred()) return NULL
;
8623 } _resultobj
= Py_BuildValue("i",_result
);
8631 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8632 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8633 PyObject
* _resultobj
;
8638 PyObject
* _argo0
= 0;
8639 PyObject
* _obj1
= 0;
8640 PyObject
* _obj2
= 0;
8641 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8654 #if PYTHON_API_VERSION >= 1009
8655 char* tmpPtr
; int tmpSize
;
8656 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8657 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8660 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8662 _arg1
= new wxString(tmpPtr
, tmpSize
);
8664 if (!PyString_Check(_obj1
)) {
8665 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8668 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8672 #if PYTHON_API_VERSION >= 1009
8673 char* tmpPtr
; int tmpSize
;
8674 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8675 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8678 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8680 _arg2
= new wxString(tmpPtr
, tmpSize
);
8682 if (!PyString_Check(_obj2
)) {
8683 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8686 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8690 wxPy_BEGIN_ALLOW_THREADS
;
8691 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8693 wxPy_END_ALLOW_THREADS
;
8694 if (PyErr_Occurred()) return NULL
;
8695 } _resultobj
= Py_BuildValue("i",_result
);
8707 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8708 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8709 PyObject
* _resultobj
;
8710 wxMenuItem
* _result
;
8713 PyObject
* _argo0
= 0;
8714 char *_kwnames
[] = { "self","id", NULL
};
8717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8727 wxPy_BEGIN_ALLOW_THREADS
;
8728 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8730 wxPy_END_ALLOW_THREADS
;
8731 if (PyErr_Occurred()) return NULL
;
8732 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8736 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8737 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8738 PyObject
* _resultobj
;
8742 PyObject
* _argo0
= 0;
8744 char *_kwnames
[] = { "self","id","enable", NULL
};
8747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8756 _arg2
= (bool ) tempbool2
;
8758 wxPy_BEGIN_ALLOW_THREADS
;
8759 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8761 wxPy_END_ALLOW_THREADS
;
8762 if (PyErr_Occurred()) return NULL
;
8763 } Py_INCREF(Py_None
);
8764 _resultobj
= Py_None
;
8768 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8769 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8770 PyObject
* _resultobj
;
8774 PyObject
* _argo0
= 0;
8776 char *_kwnames
[] = { "self","id","check", NULL
};
8779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8788 _arg2
= (bool ) tempbool2
;
8790 wxPy_BEGIN_ALLOW_THREADS
;
8791 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8793 wxPy_END_ALLOW_THREADS
;
8794 if (PyErr_Occurred()) return NULL
;
8795 } Py_INCREF(Py_None
);
8796 _resultobj
= Py_None
;
8800 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8801 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8802 PyObject
* _resultobj
;
8806 PyObject
* _argo0
= 0;
8807 char *_kwnames
[] = { "self","id", NULL
};
8810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8820 wxPy_BEGIN_ALLOW_THREADS
;
8821 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8823 wxPy_END_ALLOW_THREADS
;
8824 if (PyErr_Occurred()) return NULL
;
8825 } _resultobj
= Py_BuildValue("i",_result
);
8829 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8830 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8831 PyObject
* _resultobj
;
8835 PyObject
* _argo0
= 0;
8836 char *_kwnames
[] = { "self","id", NULL
};
8839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8849 wxPy_BEGIN_ALLOW_THREADS
;
8850 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8852 wxPy_END_ALLOW_THREADS
;
8853 if (PyErr_Occurred()) return NULL
;
8854 } _resultobj
= Py_BuildValue("i",_result
);
8858 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8859 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8860 PyObject
* _resultobj
;
8864 PyObject
* _argo0
= 0;
8865 PyObject
* _obj2
= 0;
8866 char *_kwnames
[] = { "self","id","label", NULL
};
8869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8879 #if PYTHON_API_VERSION >= 1009
8880 char* tmpPtr
; int tmpSize
;
8881 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8882 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8885 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8887 _arg2
= new wxString(tmpPtr
, tmpSize
);
8889 if (!PyString_Check(_obj2
)) {
8890 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8893 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8897 wxPy_BEGIN_ALLOW_THREADS
;
8898 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
8900 wxPy_END_ALLOW_THREADS
;
8901 if (PyErr_Occurred()) return NULL
;
8902 } Py_INCREF(Py_None
);
8903 _resultobj
= Py_None
;
8911 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8912 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8913 PyObject
* _resultobj
;
8917 PyObject
* _argo0
= 0;
8918 char *_kwnames
[] = { "self","id", NULL
};
8921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
8924 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8925 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
8931 wxPy_BEGIN_ALLOW_THREADS
;
8932 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
8934 wxPy_END_ALLOW_THREADS
;
8935 if (PyErr_Occurred()) return NULL
;
8937 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8945 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
8946 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8947 PyObject
* _resultobj
;
8951 PyObject
* _argo0
= 0;
8952 PyObject
* _obj2
= 0;
8953 char *_kwnames
[] = { "self","id","helpString", NULL
};
8956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8959 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8960 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8961 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
8966 #if PYTHON_API_VERSION >= 1009
8967 char* tmpPtr
; int tmpSize
;
8968 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8969 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8972 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8974 _arg2
= new wxString(tmpPtr
, tmpSize
);
8976 if (!PyString_Check(_obj2
)) {
8977 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8980 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8984 wxPy_BEGIN_ALLOW_THREADS
;
8985 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
8987 wxPy_END_ALLOW_THREADS
;
8988 if (PyErr_Occurred()) return NULL
;
8989 } Py_INCREF(Py_None
);
8990 _resultobj
= Py_None
;
8998 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
8999 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9000 PyObject
* _resultobj
;
9004 PyObject
* _argo0
= 0;
9005 char *_kwnames
[] = { "self","id", NULL
};
9008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9018 wxPy_BEGIN_ALLOW_THREADS
;
9019 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9021 wxPy_END_ALLOW_THREADS
;
9022 if (PyErr_Occurred()) return NULL
;
9024 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9032 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9035 src
= (wxMenuItem
*) ptr
;
9036 dest
= (wxObject
*) src
;
9037 return (void *) dest
;
9040 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9041 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9042 PyObject
* _resultobj
;
9043 wxMenuItem
* _result
;
9044 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9045 int _arg1
= (int ) wxID_SEPARATOR
;
9046 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9047 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9048 bool _arg4
= (bool ) FALSE
;
9049 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9050 PyObject
* _argo0
= 0;
9051 PyObject
* _obj2
= 0;
9052 PyObject
* _obj3
= 0;
9053 int tempbool4
= (int) FALSE
;
9054 PyObject
* _argo5
= 0;
9055 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9070 #if PYTHON_API_VERSION >= 1009
9071 char* tmpPtr
; int tmpSize
;
9072 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9073 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9076 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9078 _arg2
= new wxString(tmpPtr
, tmpSize
);
9080 if (!PyString_Check(_obj2
)) {
9081 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9084 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9089 #if PYTHON_API_VERSION >= 1009
9090 char* tmpPtr
; int tmpSize
;
9091 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9092 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9095 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9097 _arg3
= new wxString(tmpPtr
, tmpSize
);
9099 if (!PyString_Check(_obj3
)) {
9100 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9103 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9106 _arg4
= (bool ) tempbool4
;
9108 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9109 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9115 wxPy_BEGIN_ALLOW_THREADS
;
9116 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9118 wxPy_END_ALLOW_THREADS
;
9119 if (PyErr_Occurred()) return NULL
;
9121 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9122 _resultobj
= Py_BuildValue("s",_ptemp
);
9125 _resultobj
= Py_None
;
9138 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9139 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9140 PyObject
* _resultobj
;
9143 PyObject
* _argo0
= 0;
9144 char *_kwnames
[] = { "self", NULL
};
9147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9157 wxPy_BEGIN_ALLOW_THREADS
;
9158 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9160 wxPy_END_ALLOW_THREADS
;
9161 if (PyErr_Occurred()) return NULL
;
9162 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9166 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9167 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9168 PyObject
* _resultobj
;
9171 PyObject
* _argo0
= 0;
9172 char *_kwnames
[] = { "self","id", NULL
};
9175 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9178 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9179 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9180 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9185 wxPy_BEGIN_ALLOW_THREADS
;
9186 wxMenuItem_SetId(_arg0
,_arg1
);
9188 wxPy_END_ALLOW_THREADS
;
9189 if (PyErr_Occurred()) return NULL
;
9190 } Py_INCREF(Py_None
);
9191 _resultobj
= Py_None
;
9195 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9196 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9197 PyObject
* _resultobj
;
9200 PyObject
* _argo0
= 0;
9201 char *_kwnames
[] = { "self", NULL
};
9204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9214 wxPy_BEGIN_ALLOW_THREADS
;
9215 _result
= (int )wxMenuItem_GetId(_arg0
);
9217 wxPy_END_ALLOW_THREADS
;
9218 if (PyErr_Occurred()) return NULL
;
9219 } _resultobj
= Py_BuildValue("i",_result
);
9223 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9224 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9225 PyObject
* _resultobj
;
9228 PyObject
* _argo0
= 0;
9229 char *_kwnames
[] = { "self", NULL
};
9232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9242 wxPy_BEGIN_ALLOW_THREADS
;
9243 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9245 wxPy_END_ALLOW_THREADS
;
9246 if (PyErr_Occurred()) return NULL
;
9247 } _resultobj
= Py_BuildValue("i",_result
);
9251 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9252 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9253 PyObject
* _resultobj
;
9256 PyObject
* _argo0
= 0;
9257 PyObject
* _obj1
= 0;
9258 char *_kwnames
[] = { "self","str", NULL
};
9261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9271 #if PYTHON_API_VERSION >= 1009
9272 char* tmpPtr
; int tmpSize
;
9273 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9274 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9277 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9279 _arg1
= new wxString(tmpPtr
, tmpSize
);
9281 if (!PyString_Check(_obj1
)) {
9282 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9285 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9289 wxPy_BEGIN_ALLOW_THREADS
;
9290 wxMenuItem_SetText(_arg0
,*_arg1
);
9292 wxPy_END_ALLOW_THREADS
;
9293 if (PyErr_Occurred()) return NULL
;
9294 } Py_INCREF(Py_None
);
9295 _resultobj
= Py_None
;
9303 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9304 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9305 PyObject
* _resultobj
;
9308 PyObject
* _argo0
= 0;
9309 char *_kwnames
[] = { "self", NULL
};
9312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9322 wxPy_BEGIN_ALLOW_THREADS
;
9323 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9325 wxPy_END_ALLOW_THREADS
;
9326 if (PyErr_Occurred()) return NULL
;
9328 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9336 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9337 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9338 PyObject
* _resultobj
;
9341 PyObject
* _argo0
= 0;
9342 char *_kwnames
[] = { "self", NULL
};
9345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9355 wxPy_BEGIN_ALLOW_THREADS
;
9356 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9357 _result
= (wxString
*) &_result_ref
;
9359 wxPy_END_ALLOW_THREADS
;
9360 if (PyErr_Occurred()) return NULL
;
9362 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9367 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9368 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9369 PyObject
* _resultobj
;
9372 PyObject
* _argo0
= 0;
9374 char *_kwnames
[] = { "self","checkable", NULL
};
9377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9386 _arg1
= (bool ) tempbool1
;
9388 wxPy_BEGIN_ALLOW_THREADS
;
9389 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9391 wxPy_END_ALLOW_THREADS
;
9392 if (PyErr_Occurred()) return NULL
;
9393 } Py_INCREF(Py_None
);
9394 _resultobj
= Py_None
;
9398 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9399 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9400 PyObject
* _resultobj
;
9403 PyObject
* _argo0
= 0;
9404 char *_kwnames
[] = { "self", NULL
};
9407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9417 wxPy_BEGIN_ALLOW_THREADS
;
9418 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9420 wxPy_END_ALLOW_THREADS
;
9421 if (PyErr_Occurred()) return NULL
;
9422 } _resultobj
= Py_BuildValue("i",_result
);
9426 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9427 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9428 PyObject
* _resultobj
;
9431 PyObject
* _argo0
= 0;
9432 char *_kwnames
[] = { "self", NULL
};
9435 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9438 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9439 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9445 wxPy_BEGIN_ALLOW_THREADS
;
9446 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9448 wxPy_END_ALLOW_THREADS
;
9449 if (PyErr_Occurred()) return NULL
;
9450 } _resultobj
= Py_BuildValue("i",_result
);
9454 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9455 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9456 PyObject
* _resultobj
;
9459 PyObject
* _argo0
= 0;
9460 PyObject
* _argo1
= 0;
9461 char *_kwnames
[] = { "self","menu", NULL
};
9464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9474 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9475 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9481 wxPy_BEGIN_ALLOW_THREADS
;
9482 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9484 wxPy_END_ALLOW_THREADS
;
9485 if (PyErr_Occurred()) return NULL
;
9486 } Py_INCREF(Py_None
);
9487 _resultobj
= Py_None
;
9491 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9492 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9493 PyObject
* _resultobj
;
9496 PyObject
* _argo0
= 0;
9497 char *_kwnames
[] = { "self", NULL
};
9500 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9503 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9504 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9510 wxPy_BEGIN_ALLOW_THREADS
;
9511 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9513 wxPy_END_ALLOW_THREADS
;
9514 if (PyErr_Occurred()) return NULL
;
9515 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9519 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9520 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9521 PyObject
* _resultobj
;
9523 bool _arg1
= (bool ) TRUE
;
9524 PyObject
* _argo0
= 0;
9525 int tempbool1
= (int) TRUE
;
9526 char *_kwnames
[] = { "self","enable", NULL
};
9529 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9532 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9533 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9538 _arg1
= (bool ) tempbool1
;
9540 wxPy_BEGIN_ALLOW_THREADS
;
9541 wxMenuItem_Enable(_arg0
,_arg1
);
9543 wxPy_END_ALLOW_THREADS
;
9544 if (PyErr_Occurred()) return NULL
;
9545 } Py_INCREF(Py_None
);
9546 _resultobj
= Py_None
;
9550 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9551 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9552 PyObject
* _resultobj
;
9555 PyObject
* _argo0
= 0;
9556 char *_kwnames
[] = { "self", NULL
};
9559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9569 wxPy_BEGIN_ALLOW_THREADS
;
9570 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9572 wxPy_END_ALLOW_THREADS
;
9573 if (PyErr_Occurred()) return NULL
;
9574 } _resultobj
= Py_BuildValue("i",_result
);
9578 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9579 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9580 PyObject
* _resultobj
;
9582 bool _arg1
= (bool ) TRUE
;
9583 PyObject
* _argo0
= 0;
9584 int tempbool1
= (int) TRUE
;
9585 char *_kwnames
[] = { "self","check", NULL
};
9588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9597 _arg1
= (bool ) tempbool1
;
9599 wxPy_BEGIN_ALLOW_THREADS
;
9600 wxMenuItem_Check(_arg0
,_arg1
);
9602 wxPy_END_ALLOW_THREADS
;
9603 if (PyErr_Occurred()) return NULL
;
9604 } Py_INCREF(Py_None
);
9605 _resultobj
= Py_None
;
9609 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9610 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9611 PyObject
* _resultobj
;
9614 PyObject
* _argo0
= 0;
9615 char *_kwnames
[] = { "self", NULL
};
9618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9628 wxPy_BEGIN_ALLOW_THREADS
;
9629 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9631 wxPy_END_ALLOW_THREADS
;
9632 if (PyErr_Occurred()) return NULL
;
9633 } _resultobj
= Py_BuildValue("i",_result
);
9637 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9638 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9639 PyObject
* _resultobj
;
9641 PyObject
* _argo0
= 0;
9642 char *_kwnames
[] = { "self", NULL
};
9645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9648 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9649 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9650 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9655 wxPy_BEGIN_ALLOW_THREADS
;
9656 wxMenuItem_Toggle(_arg0
);
9658 wxPy_END_ALLOW_THREADS
;
9659 if (PyErr_Occurred()) return NULL
;
9660 } Py_INCREF(Py_None
);
9661 _resultobj
= Py_None
;
9665 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9666 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9667 PyObject
* _resultobj
;
9670 PyObject
* _argo0
= 0;
9671 PyObject
* _obj1
= 0;
9672 char *_kwnames
[] = { "self","str", NULL
};
9675 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9678 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9679 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9680 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9685 #if PYTHON_API_VERSION >= 1009
9686 char* tmpPtr
; int tmpSize
;
9687 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9688 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9691 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9693 _arg1
= new wxString(tmpPtr
, tmpSize
);
9695 if (!PyString_Check(_obj1
)) {
9696 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9699 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9703 wxPy_BEGIN_ALLOW_THREADS
;
9704 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9706 wxPy_END_ALLOW_THREADS
;
9707 if (PyErr_Occurred()) return NULL
;
9708 } Py_INCREF(Py_None
);
9709 _resultobj
= Py_None
;
9717 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9718 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9719 PyObject
* _resultobj
;
9722 PyObject
* _argo0
= 0;
9723 char *_kwnames
[] = { "self", NULL
};
9726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9736 wxPy_BEGIN_ALLOW_THREADS
;
9737 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9738 _result
= (wxString
*) &_result_ref
;
9740 wxPy_END_ALLOW_THREADS
;
9741 if (PyErr_Occurred()) return NULL
;
9743 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9748 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9749 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9750 PyObject
* _resultobj
;
9751 wxAcceleratorEntry
* _result
;
9753 PyObject
* _argo0
= 0;
9754 char *_kwnames
[] = { "self", NULL
};
9758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9768 wxPy_BEGIN_ALLOW_THREADS
;
9769 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9771 wxPy_END_ALLOW_THREADS
;
9772 if (PyErr_Occurred()) return NULL
;
9774 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9775 _resultobj
= Py_BuildValue("s",_ptemp
);
9778 _resultobj
= Py_None
;
9783 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9784 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9785 PyObject
* _resultobj
;
9787 wxAcceleratorEntry
* _arg1
;
9788 PyObject
* _argo0
= 0;
9789 PyObject
* _argo1
= 0;
9790 char *_kwnames
[] = { "self","accel", NULL
};
9793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9803 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9804 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9810 wxPy_BEGIN_ALLOW_THREADS
;
9811 wxMenuItem_SetAccel(_arg0
,_arg1
);
9813 wxPy_END_ALLOW_THREADS
;
9814 if (PyErr_Occurred()) return NULL
;
9815 } Py_INCREF(Py_None
);
9816 _resultobj
= Py_None
;
9820 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9821 PyObject
* _resultobj
;
9824 PyObject
* _obj0
= 0;
9825 char *_kwnames
[] = { "text", NULL
};
9828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9831 #if PYTHON_API_VERSION >= 1009
9832 char* tmpPtr
; int tmpSize
;
9833 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9834 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9837 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9839 _arg0
= new wxString(tmpPtr
, tmpSize
);
9841 if (!PyString_Check(_obj0
)) {
9842 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9845 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9849 wxPy_BEGIN_ALLOW_THREADS
;
9850 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9852 wxPy_END_ALLOW_THREADS
;
9853 if (PyErr_Occurred()) return NULL
;
9855 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9867 static PyMethodDef windowscMethods
[] = {
9868 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
9869 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9870 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9871 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9872 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9873 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
9874 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9875 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
9876 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9877 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9878 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9879 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9880 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9881 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9882 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9883 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
9884 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9885 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
9886 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
9887 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
9888 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
9889 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9890 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9891 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9892 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9893 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9894 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9895 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9896 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9897 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
9898 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9899 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
9900 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9901 { "wxMenuBar_FindMenu", (PyCFunction
) _wrap_wxMenuBar_FindMenu
, METH_VARARGS
| METH_KEYWORDS
},
9902 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9903 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9904 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
9905 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9906 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9907 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9908 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
9909 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9910 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
9911 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
9912 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
9913 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
9914 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
9915 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9916 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9917 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9918 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9919 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9920 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
9921 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
9922 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
9923 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
9924 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
9925 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
9926 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9927 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9928 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
9929 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
9930 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
9931 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9932 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9933 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9934 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9935 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9936 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9937 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
9938 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
9939 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9940 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9941 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9942 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
9943 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
9944 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
9945 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
9946 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
9947 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
9948 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
9949 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
9950 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
9951 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
9952 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
9953 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
9954 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
9955 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
9956 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
9957 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
9958 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
9959 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
9960 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
9961 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
9962 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
9963 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
9964 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
9965 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
9966 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
9967 { "wxScrolledWindow_Create", (PyCFunction
) _wrap_wxScrolledWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
9968 { "new_wxPreScrolledWindow", (PyCFunction
) _wrap_new_wxPreScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
9969 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
9970 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
9971 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
9972 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
9973 { "wxPanel_Create", (PyCFunction
) _wrap_wxPanel_Create
, METH_VARARGS
| METH_KEYWORDS
},
9974 { "new_wxPrePanel", (PyCFunction
) _wrap_new_wxPrePanel
, METH_VARARGS
| METH_KEYWORDS
},
9975 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
9976 { "wxWindow_GetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_GetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
9977 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
9978 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
9979 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
9980 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
9981 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
9982 { "wxWindow_PageDown", (PyCFunction
) _wrap_wxWindow_PageDown
, METH_VARARGS
| METH_KEYWORDS
},
9983 { "wxWindow_PageUp", (PyCFunction
) _wrap_wxWindow_PageUp
, METH_VARARGS
| METH_KEYWORDS
},
9984 { "wxWindow_LineDown", (PyCFunction
) _wrap_wxWindow_LineDown
, METH_VARARGS
| METH_KEYWORDS
},
9985 { "wxWindow_LineUp", (PyCFunction
) _wrap_wxWindow_LineUp
, METH_VARARGS
| METH_KEYWORDS
},
9986 { "wxWindow_ScrollPages", (PyCFunction
) _wrap_wxWindow_ScrollPages
, METH_VARARGS
| METH_KEYWORDS
},
9987 { "wxWindow_ScrollLines", (PyCFunction
) _wrap_wxWindow_ScrollLines
, METH_VARARGS
| METH_KEYWORDS
},
9988 { "wxWindow_SetHelpText", (PyCFunction
) _wrap_wxWindow_SetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
9989 { "wxWindow_GetHelpText", (PyCFunction
) _wrap_wxWindow_GetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
9990 { "wxWindow_Update", (PyCFunction
) _wrap_wxWindow_Update
, METH_VARARGS
| METH_KEYWORDS
},
9991 { "wxWindow_Thaw", (PyCFunction
) _wrap_wxWindow_Thaw
, METH_VARARGS
| METH_KEYWORDS
},
9992 { "wxWindow_Freeze", (PyCFunction
) _wrap_wxWindow_Freeze
, METH_VARARGS
| METH_KEYWORDS
},
9993 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
9994 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
9995 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
9996 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
9997 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
9998 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
9999 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10000 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10001 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10002 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10003 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10004 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10005 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10006 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10007 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10008 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10009 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10010 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10011 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10012 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10013 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10014 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10015 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10016 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10017 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10018 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10019 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10020 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10021 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10022 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10023 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10024 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10025 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10026 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10027 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10028 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10029 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10030 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10031 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10032 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10033 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10034 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10035 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10036 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10037 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10038 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10039 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10040 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10041 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10042 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10043 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10044 { "wxWindow_RefreshRect", (PyCFunction
) _wrap_wxWindow_RefreshRect
, METH_VARARGS
| METH_KEYWORDS
},
10045 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10046 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10047 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10048 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10049 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10050 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10051 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10052 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10053 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10054 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10055 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10056 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10057 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10058 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10059 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10060 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10061 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10062 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10063 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10064 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10065 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10066 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10067 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10068 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10069 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10070 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10071 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10072 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10073 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10074 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10075 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10076 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10077 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10078 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10079 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10080 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10081 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10082 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10083 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10084 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10085 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10086 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10087 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10088 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10089 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10090 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10091 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10092 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10093 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10094 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10095 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10096 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10097 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10098 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10099 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10100 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10101 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10102 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10103 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10104 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10105 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10106 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10107 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10108 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10109 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10110 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10111 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10112 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10113 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10114 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10115 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10116 { "wxWindow_Create", (PyCFunction
) _wrap_wxWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10117 { "new_wxPreWindow", (PyCFunction
) _wrap_new_wxPreWindow
, METH_VARARGS
| METH_KEYWORDS
},
10118 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10119 { "wxPyValidator__setCallbackInfo", (PyCFunction
) _wrap_wxPyValidator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
10120 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10121 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10122 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10123 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10124 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10125 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10126 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10127 { "wxEvtHandler__setOORInfo", (PyCFunction
) _wrap_wxEvtHandler__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
10128 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10129 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10130 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10131 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10132 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10133 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10134 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10135 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10136 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10137 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10138 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10145 * This table is used by the pointer type-checker
10147 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10148 { "_signed_long","_long",0},
10149 { "_wxPrintQuality","_wxCoord",0},
10150 { "_wxPrintQuality","_int",0},
10151 { "_wxPrintQuality","_signed_int",0},
10152 { "_wxPrintQuality","_unsigned_int",0},
10153 { "_wxPrintQuality","_wxWindowID",0},
10154 { "_wxPrintQuality","_uint",0},
10155 { "_wxPrintQuality","_EBool",0},
10156 { "_wxPrintQuality","_size_t",0},
10157 { "_wxPrintQuality","_time_t",0},
10158 { "_byte","_unsigned_char",0},
10159 { "_long","_unsigned_long",0},
10160 { "_long","_signed_long",0},
10161 { "_size_t","_wxCoord",0},
10162 { "_size_t","_wxPrintQuality",0},
10163 { "_size_t","_time_t",0},
10164 { "_size_t","_unsigned_int",0},
10165 { "_size_t","_int",0},
10166 { "_size_t","_wxWindowID",0},
10167 { "_size_t","_uint",0},
10168 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10169 { "_uint","_wxCoord",0},
10170 { "_uint","_wxPrintQuality",0},
10171 { "_uint","_time_t",0},
10172 { "_uint","_size_t",0},
10173 { "_uint","_unsigned_int",0},
10174 { "_uint","_int",0},
10175 { "_uint","_wxWindowID",0},
10176 { "_wxChar","_char",0},
10177 { "_char","_wxChar",0},
10178 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10179 { "_EBool","_wxCoord",0},
10180 { "_EBool","_wxPrintQuality",0},
10181 { "_EBool","_signed_int",0},
10182 { "_EBool","_int",0},
10183 { "_EBool","_wxWindowID",0},
10184 { "_unsigned_long","_long",0},
10185 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10186 { "_signed_int","_wxCoord",0},
10187 { "_signed_int","_wxPrintQuality",0},
10188 { "_signed_int","_EBool",0},
10189 { "_signed_int","_wxWindowID",0},
10190 { "_signed_int","_int",0},
10191 { "_WXTYPE","_short",0},
10192 { "_WXTYPE","_signed_short",0},
10193 { "_WXTYPE","_unsigned_short",0},
10194 { "_unsigned_short","_WXTYPE",0},
10195 { "_unsigned_short","_short",0},
10196 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10197 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10198 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10199 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10200 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10201 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10202 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10203 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10204 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10205 { "_signed_short","_WXTYPE",0},
10206 { "_signed_short","_short",0},
10207 { "_unsigned_char","_byte",0},
10208 { "_unsigned_int","_wxCoord",0},
10209 { "_unsigned_int","_wxPrintQuality",0},
10210 { "_unsigned_int","_time_t",0},
10211 { "_unsigned_int","_size_t",0},
10212 { "_unsigned_int","_uint",0},
10213 { "_unsigned_int","_wxWindowID",0},
10214 { "_unsigned_int","_int",0},
10215 { "_short","_WXTYPE",0},
10216 { "_short","_unsigned_short",0},
10217 { "_short","_signed_short",0},
10218 { "_wxWindowID","_wxCoord",0},
10219 { "_wxWindowID","_wxPrintQuality",0},
10220 { "_wxWindowID","_time_t",0},
10221 { "_wxWindowID","_size_t",0},
10222 { "_wxWindowID","_EBool",0},
10223 { "_wxWindowID","_uint",0},
10224 { "_wxWindowID","_int",0},
10225 { "_wxWindowID","_signed_int",0},
10226 { "_wxWindowID","_unsigned_int",0},
10227 { "_int","_wxCoord",0},
10228 { "_int","_wxPrintQuality",0},
10229 { "_int","_time_t",0},
10230 { "_int","_size_t",0},
10231 { "_int","_EBool",0},
10232 { "_int","_uint",0},
10233 { "_int","_wxWindowID",0},
10234 { "_int","_unsigned_int",0},
10235 { "_int","_signed_int",0},
10236 { "_time_t","_wxCoord",0},
10237 { "_time_t","_wxPrintQuality",0},
10238 { "_time_t","_unsigned_int",0},
10239 { "_time_t","_int",0},
10240 { "_time_t","_wxWindowID",0},
10241 { "_time_t","_uint",0},
10242 { "_time_t","_size_t",0},
10243 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10244 { "_wxCoord","_int",0},
10245 { "_wxCoord","_signed_int",0},
10246 { "_wxCoord","_unsigned_int",0},
10247 { "_wxCoord","_wxWindowID",0},
10248 { "_wxCoord","_uint",0},
10249 { "_wxCoord","_EBool",0},
10250 { "_wxCoord","_size_t",0},
10251 { "_wxCoord","_time_t",0},
10252 { "_wxCoord","_wxPrintQuality",0},
10253 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10254 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10255 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10256 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10257 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10258 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10259 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10260 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10261 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10262 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10265 static PyObject
*SWIG_globals
;
10269 SWIGEXPORT(void) initwindowsc() {
10271 SWIG_globals
= SWIG_newvarlink();
10272 m
= Py_InitModule("windowsc", windowscMethods
);
10273 d
= PyModule_GetDict(m
);
10276 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10277 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);