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 wxFont
& _result_ref
= wxWindow_GetFont(_arg0
);
1835 _result
= (wxFont
*) &_result_ref
;
1837 wxPy_END_ALLOW_THREADS
;
1838 if (PyErr_Occurred()) return NULL
;
1840 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
1841 _resultobj
= Py_BuildValue("s",_ptemp
);
1844 _resultobj
= Py_None
;
1849 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1850 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1851 PyObject
* _resultobj
;
1854 PyObject
* _argo0
= 0;
1855 char *_kwnames
[] = { "self", NULL
};
1859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1869 wxPy_BEGIN_ALLOW_THREADS
;
1870 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1872 wxPy_END_ALLOW_THREADS
;
1873 if (PyErr_Occurred()) return NULL
;
1874 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1875 _resultobj
= Py_BuildValue("s",_ptemp
);
1879 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1880 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1881 PyObject
* _resultobj
;
1884 PyObject
* _argo0
= 0;
1885 char *_kwnames
[] = { "self", NULL
};
1888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_kwnames
,&_argo0
))
1891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1898 wxPy_BEGIN_ALLOW_THREADS
;
1899 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1901 wxPy_END_ALLOW_THREADS
;
1902 if (PyErr_Occurred()) return NULL
;
1903 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1907 static long wxWindow_GetHandle(wxWindow
*self
) {
1908 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1910 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1911 PyObject
* _resultobj
;
1914 PyObject
* _argo0
= 0;
1915 char *_kwnames
[] = { "self", NULL
};
1918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_kwnames
,&_argo0
))
1921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
1928 wxPy_BEGIN_ALLOW_THREADS
;
1929 _result
= (long )wxWindow_GetHandle(_arg0
);
1931 wxPy_END_ALLOW_THREADS
;
1932 if (PyErr_Occurred()) return NULL
;
1933 } _resultobj
= Py_BuildValue("l",_result
);
1937 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1938 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1939 PyObject
* _resultobj
;
1942 PyObject
* _argo0
= 0;
1943 char *_kwnames
[] = { "self", NULL
};
1946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
1949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
1956 wxPy_BEGIN_ALLOW_THREADS
;
1957 _result
= (int )wxWindow_GetId(_arg0
);
1959 wxPy_END_ALLOW_THREADS
;
1960 if (PyErr_Occurred()) return NULL
;
1961 } _resultobj
= Py_BuildValue("i",_result
);
1965 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1966 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1967 PyObject
* _resultobj
;
1970 PyObject
* _argo0
= 0;
1971 char *_kwnames
[] = { "self", NULL
};
1974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
1977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
1984 wxPy_BEGIN_ALLOW_THREADS
;
1985 _result
= new wxString (wxWindow_GetLabel(_arg0
));
1987 wxPy_END_ALLOW_THREADS
;
1988 if (PyErr_Occurred()) return NULL
;
1990 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1998 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1999 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2000 PyObject
* _resultobj
;
2003 PyObject
* _argo0
= 0;
2004 PyObject
* _obj1
= 0;
2005 char *_kwnames
[] = { "self","label", NULL
};
2008 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
2011 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2012 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2013 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2018 #if PYTHON_API_VERSION >= 1009
2019 char* tmpPtr
; int tmpSize
;
2020 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2021 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2024 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2026 _arg1
= new wxString(tmpPtr
, tmpSize
);
2028 if (!PyString_Check(_obj1
)) {
2029 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2032 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2036 wxPy_BEGIN_ALLOW_THREADS
;
2037 wxWindow_SetLabel(_arg0
,*_arg1
);
2039 wxPy_END_ALLOW_THREADS
;
2040 if (PyErr_Occurred()) return NULL
;
2041 } Py_INCREF(Py_None
);
2042 _resultobj
= Py_None
;
2050 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2051 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2052 PyObject
* _resultobj
;
2055 PyObject
* _argo0
= 0;
2056 char *_kwnames
[] = { "self", NULL
};
2059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2069 wxPy_BEGIN_ALLOW_THREADS
;
2070 _result
= new wxString (wxWindow_GetName(_arg0
));
2072 wxPy_END_ALLOW_THREADS
;
2073 if (PyErr_Occurred()) return NULL
;
2075 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2083 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2084 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2085 PyObject
* _resultobj
;
2088 PyObject
* _argo0
= 0;
2089 char *_kwnames
[] = { "self", NULL
};
2092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2102 wxPy_BEGIN_ALLOW_THREADS
;
2103 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2105 wxPy_END_ALLOW_THREADS
;
2106 if (PyErr_Occurred()) return NULL
;
2107 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2111 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2112 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2113 PyObject
* _resultobj
;
2119 PyObject
* _argo0
= 0;
2120 char *_kwnames
[] = { "self", NULL
};
2129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2139 wxPy_BEGIN_ALLOW_THREADS
;
2140 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2142 wxPy_END_ALLOW_THREADS
;
2143 if (PyErr_Occurred()) return NULL
;
2144 } Py_INCREF(Py_None
);
2145 _resultobj
= Py_None
;
2148 o
= PyInt_FromLong((long) (*_arg1
));
2149 _resultobj
= t_output_helper(_resultobj
, o
);
2153 o
= PyInt_FromLong((long) (*_arg2
));
2154 _resultobj
= t_output_helper(_resultobj
, o
);
2159 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2160 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2161 PyObject
* _resultobj
;
2164 PyObject
* _argo0
= 0;
2165 char *_kwnames
[] = { "self", NULL
};
2169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2179 wxPy_BEGIN_ALLOW_THREADS
;
2180 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2182 wxPy_END_ALLOW_THREADS
;
2183 if (PyErr_Occurred()) return NULL
;
2184 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2185 _resultobj
= Py_BuildValue("s",_ptemp
);
2189 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2190 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2191 PyObject
* _resultobj
;
2194 PyObject
* _argo0
= 0;
2195 char *_kwnames
[] = { "self", NULL
};
2199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2209 wxPy_BEGIN_ALLOW_THREADS
;
2210 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2212 wxPy_END_ALLOW_THREADS
;
2213 if (PyErr_Occurred()) return NULL
;
2214 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2215 _resultobj
= Py_BuildValue("s",_ptemp
);
2219 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2220 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2221 PyObject
* _resultobj
;
2225 PyObject
* _argo0
= 0;
2226 char *_kwnames
[] = { "self","orientation", NULL
};
2229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2239 wxPy_BEGIN_ALLOW_THREADS
;
2240 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2242 wxPy_END_ALLOW_THREADS
;
2243 if (PyErr_Occurred()) return NULL
;
2244 } _resultobj
= Py_BuildValue("i",_result
);
2248 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2249 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2250 PyObject
* _resultobj
;
2254 PyObject
* _argo0
= 0;
2255 char *_kwnames
[] = { "self","orientation", NULL
};
2258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
2261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2268 wxPy_BEGIN_ALLOW_THREADS
;
2269 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2271 wxPy_END_ALLOW_THREADS
;
2272 if (PyErr_Occurred()) return NULL
;
2273 } _resultobj
= Py_BuildValue("i",_result
);
2277 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2278 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2279 PyObject
* _resultobj
;
2283 PyObject
* _argo0
= 0;
2284 char *_kwnames
[] = { "self","orientation", NULL
};
2287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2297 wxPy_BEGIN_ALLOW_THREADS
;
2298 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2300 wxPy_END_ALLOW_THREADS
;
2301 if (PyErr_Occurred()) return NULL
;
2302 } _resultobj
= Py_BuildValue("i",_result
);
2306 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2307 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2308 PyObject
* _resultobj
;
2314 PyObject
* _argo0
= 0;
2315 char *_kwnames
[] = { "self", NULL
};
2324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2334 wxPy_BEGIN_ALLOW_THREADS
;
2335 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2337 wxPy_END_ALLOW_THREADS
;
2338 if (PyErr_Occurred()) return NULL
;
2339 } Py_INCREF(Py_None
);
2340 _resultobj
= Py_None
;
2343 o
= PyInt_FromLong((long) (*_arg1
));
2344 _resultobj
= t_output_helper(_resultobj
, o
);
2348 o
= PyInt_FromLong((long) (*_arg2
));
2349 _resultobj
= t_output_helper(_resultobj
, o
);
2354 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2355 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2356 PyObject
* _resultobj
;
2359 PyObject
* _argo0
= 0;
2360 char *_kwnames
[] = { "self", NULL
};
2364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2374 wxPy_BEGIN_ALLOW_THREADS
;
2375 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2377 wxPy_END_ALLOW_THREADS
;
2378 if (PyErr_Occurred()) return NULL
;
2379 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2380 _resultobj
= Py_BuildValue("s",_ptemp
);
2384 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2385 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2386 PyObject
* _resultobj
;
2393 PyObject
* _argo0
= 0;
2394 PyObject
* _obj1
= 0;
2395 char *_kwnames
[] = { "self","string", NULL
};
2404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2414 #if PYTHON_API_VERSION >= 1009
2415 char* tmpPtr
; int tmpSize
;
2416 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2417 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2420 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2422 _arg1
= new wxString(tmpPtr
, tmpSize
);
2424 if (!PyString_Check(_obj1
)) {
2425 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2428 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2432 wxPy_BEGIN_ALLOW_THREADS
;
2433 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2435 wxPy_END_ALLOW_THREADS
;
2436 if (PyErr_Occurred()) return NULL
;
2437 } Py_INCREF(Py_None
);
2438 _resultobj
= Py_None
;
2441 o
= PyInt_FromLong((long) (*_arg2
));
2442 _resultobj
= t_output_helper(_resultobj
, o
);
2446 o
= PyInt_FromLong((long) (*_arg3
));
2447 _resultobj
= t_output_helper(_resultobj
, o
);
2456 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2457 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2458 PyObject
* _resultobj
;
2469 wxFont
* _arg6
= (wxFont
*) NULL
;
2470 PyObject
* _argo0
= 0;
2471 PyObject
* _obj1
= 0;
2472 PyObject
* _argo6
= 0;
2473 char *_kwnames
[] = { "self","string","font", NULL
};
2488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2498 #if PYTHON_API_VERSION >= 1009
2499 char* tmpPtr
; int tmpSize
;
2500 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2501 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2504 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2506 _arg1
= new wxString(tmpPtr
, tmpSize
);
2508 if (!PyString_Check(_obj1
)) {
2509 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2512 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2516 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2517 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2523 wxPy_BEGIN_ALLOW_THREADS
;
2524 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2526 wxPy_END_ALLOW_THREADS
;
2527 if (PyErr_Occurred()) return NULL
;
2528 } Py_INCREF(Py_None
);
2529 _resultobj
= Py_None
;
2532 o
= PyInt_FromLong((long) (*_arg2
));
2533 _resultobj
= t_output_helper(_resultobj
, o
);
2537 o
= PyInt_FromLong((long) (*_arg3
));
2538 _resultobj
= t_output_helper(_resultobj
, o
);
2542 o
= PyInt_FromLong((long) (*_arg4
));
2543 _resultobj
= t_output_helper(_resultobj
, o
);
2547 o
= PyInt_FromLong((long) (*_arg5
));
2548 _resultobj
= t_output_helper(_resultobj
, o
);
2557 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2558 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2559 PyObject
* _resultobj
;
2562 PyObject
* _argo0
= 0;
2563 char *_kwnames
[] = { "self", NULL
};
2566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2576 wxPy_BEGIN_ALLOW_THREADS
;
2577 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2579 wxPy_END_ALLOW_THREADS
;
2580 if (PyErr_Occurred()) return NULL
;
2582 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2590 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2591 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2592 PyObject
* _resultobj
;
2595 PyObject
* _argo0
= 0;
2596 char *_kwnames
[] = { "self", NULL
};
2600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2610 wxPy_BEGIN_ALLOW_THREADS
;
2611 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2613 wxPy_END_ALLOW_THREADS
;
2614 if (PyErr_Occurred()) return NULL
;
2615 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2616 _resultobj
= Py_BuildValue("s",_ptemp
);
2620 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2621 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2622 PyObject
* _resultobj
;
2625 PyObject
* _argo0
= 0;
2626 char *_kwnames
[] = { "self", NULL
};
2629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2639 wxPy_BEGIN_ALLOW_THREADS
;
2640 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2642 wxPy_END_ALLOW_THREADS
;
2643 if (PyErr_Occurred()) return NULL
;
2644 } _resultobj
= Py_BuildValue("l",_result
);
2648 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2649 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2650 PyObject
* _resultobj
;
2653 PyObject
* _argo0
= 0;
2654 char *_kwnames
[] = { "self","style", NULL
};
2657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2667 wxPy_BEGIN_ALLOW_THREADS
;
2668 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2670 wxPy_END_ALLOW_THREADS
;
2671 if (PyErr_Occurred()) return NULL
;
2672 } Py_INCREF(Py_None
);
2673 _resultobj
= Py_None
;
2677 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2678 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2679 PyObject
* _resultobj
;
2682 PyObject
* _argo0
= 0;
2683 char *_kwnames
[] = { "self","style", NULL
};
2686 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
2689 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2690 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2696 wxPy_BEGIN_ALLOW_THREADS
;
2697 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2699 wxPy_END_ALLOW_THREADS
;
2700 if (PyErr_Occurred()) return NULL
;
2701 } Py_INCREF(Py_None
);
2702 _resultobj
= Py_None
;
2706 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2707 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2708 PyObject
* _resultobj
;
2711 PyObject
* _argo0
= 0;
2712 char *_kwnames
[] = { "self", NULL
};
2715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
2718 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2719 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2720 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2725 wxPy_BEGIN_ALLOW_THREADS
;
2726 _result
= (bool )wxWindow_Hide(_arg0
);
2728 wxPy_END_ALLOW_THREADS
;
2729 if (PyErr_Occurred()) return NULL
;
2730 } _resultobj
= Py_BuildValue("i",_result
);
2734 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2735 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2736 PyObject
* _resultobj
;
2738 PyObject
* _argo0
= 0;
2739 char *_kwnames
[] = { "self", NULL
};
2742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2752 wxPy_BEGIN_ALLOW_THREADS
;
2753 wxWindow_InitDialog(_arg0
);
2755 wxPy_END_ALLOW_THREADS
;
2756 if (PyErr_Occurred()) return NULL
;
2757 } Py_INCREF(Py_None
);
2758 _resultobj
= Py_None
;
2762 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2763 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2764 PyObject
* _resultobj
;
2767 PyObject
* _argo0
= 0;
2768 char *_kwnames
[] = { "self", NULL
};
2771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2781 wxPy_BEGIN_ALLOW_THREADS
;
2782 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2784 wxPy_END_ALLOW_THREADS
;
2785 if (PyErr_Occurred()) return NULL
;
2786 } _resultobj
= Py_BuildValue("i",_result
);
2790 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2791 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2792 PyObject
* _resultobj
;
2797 int _arg3
= (int ) 0;
2798 int _arg4
= (int ) 0;
2799 PyObject
* _argo0
= 0;
2800 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2813 wxPy_BEGIN_ALLOW_THREADS
;
2814 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2816 wxPy_END_ALLOW_THREADS
;
2817 if (PyErr_Occurred()) return NULL
;
2818 } _resultobj
= Py_BuildValue("i",_result
);
2822 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2823 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2824 PyObject
* _resultobj
;
2828 PyObject
* _argo0
= 0;
2830 PyObject
* _obj1
= 0;
2831 char *_kwnames
[] = { "self","pt", NULL
};
2834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2845 if (! wxPoint_helper(_obj1
, &_arg1
))
2849 wxPy_BEGIN_ALLOW_THREADS
;
2850 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2852 wxPy_END_ALLOW_THREADS
;
2853 if (PyErr_Occurred()) return NULL
;
2854 } _resultobj
= Py_BuildValue("i",_result
);
2858 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2859 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2860 PyObject
* _resultobj
;
2864 PyObject
* _argo0
= 0;
2866 PyObject
* _obj1
= 0;
2867 char *_kwnames
[] = { "self","rect", NULL
};
2870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2881 if (! wxRect_helper(_obj1
, &_arg1
))
2885 wxPy_BEGIN_ALLOW_THREADS
;
2886 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2888 wxPy_END_ALLOW_THREADS
;
2889 if (PyErr_Occurred()) return NULL
;
2890 } _resultobj
= Py_BuildValue("i",_result
);
2894 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2895 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2896 PyObject
* _resultobj
;
2899 PyObject
* _argo0
= 0;
2900 char *_kwnames
[] = { "self", NULL
};
2903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
2906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2913 wxPy_BEGIN_ALLOW_THREADS
;
2914 _result
= (bool )wxWindow_IsRetained(_arg0
);
2916 wxPy_END_ALLOW_THREADS
;
2917 if (PyErr_Occurred()) return NULL
;
2918 } _resultobj
= Py_BuildValue("i",_result
);
2922 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2923 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2924 PyObject
* _resultobj
;
2927 PyObject
* _argo0
= 0;
2928 char *_kwnames
[] = { "self", NULL
};
2931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
2934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2941 wxPy_BEGIN_ALLOW_THREADS
;
2942 _result
= (bool )wxWindow_IsShown(_arg0
);
2944 wxPy_END_ALLOW_THREADS
;
2945 if (PyErr_Occurred()) return NULL
;
2946 } _resultobj
= Py_BuildValue("i",_result
);
2950 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
2951 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2952 PyObject
* _resultobj
;
2955 PyObject
* _argo0
= 0;
2956 char *_kwnames
[] = { "self", NULL
};
2959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
2962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
2969 wxPy_BEGIN_ALLOW_THREADS
;
2970 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
2972 wxPy_END_ALLOW_THREADS
;
2973 if (PyErr_Occurred()) return NULL
;
2974 } _resultobj
= Py_BuildValue("i",_result
);
2978 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
2979 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2980 PyObject
* _resultobj
;
2982 PyObject
* _argo0
= 0;
2983 char *_kwnames
[] = { "self", NULL
};
2986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
2989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
2996 wxPy_BEGIN_ALLOW_THREADS
;
2997 wxWindow_Layout(_arg0
);
2999 wxPy_END_ALLOW_THREADS
;
3000 if (PyErr_Occurred()) return NULL
;
3001 } Py_INCREF(Py_None
);
3002 _resultobj
= Py_None
;
3006 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
3007 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3008 PyObject
* _resultobj
;
3013 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
3014 PyObject
* _argo0
= 0;
3015 PyObject
* _argo1
= 0;
3016 PyObject
* _obj2
= 0;
3017 PyObject
* _argo3
= 0;
3018 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
3021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
3024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3031 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3032 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3038 #if PYTHON_API_VERSION >= 1009
3039 char* tmpPtr
; int tmpSize
;
3040 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3041 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3044 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3046 _arg2
= new wxString(tmpPtr
, tmpSize
);
3048 if (!PyString_Check(_obj2
)) {
3049 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3052 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3056 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3057 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3063 wxPy_BEGIN_ALLOW_THREADS
;
3064 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3066 wxPy_END_ALLOW_THREADS
;
3067 if (PyErr_Occurred()) return NULL
;
3068 } _resultobj
= Py_BuildValue("i",_result
);
3076 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3077 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3078 PyObject
* _resultobj
;
3080 PyObject
* _argo0
= 0;
3081 char *_kwnames
[] = { "self", NULL
};
3084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3094 wxPy_BEGIN_ALLOW_THREADS
;
3095 wxWindow_Lower(_arg0
);
3097 wxPy_END_ALLOW_THREADS
;
3098 if (PyErr_Occurred()) return NULL
;
3099 } Py_INCREF(Py_None
);
3100 _resultobj
= Py_None
;
3104 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3105 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3106 PyObject
* _resultobj
;
3108 bool _arg1
= (bool ) TRUE
;
3109 PyObject
* _argo0
= 0;
3110 int tempbool1
= (int) TRUE
;
3111 char *_kwnames
[] = { "self","flag", NULL
};
3114 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3117 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3118 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3123 _arg1
= (bool ) tempbool1
;
3125 wxPy_BEGIN_ALLOW_THREADS
;
3126 wxWindow_MakeModal(_arg0
,_arg1
);
3128 wxPy_END_ALLOW_THREADS
;
3129 if (PyErr_Occurred()) return NULL
;
3130 } Py_INCREF(Py_None
);
3131 _resultobj
= Py_None
;
3135 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3136 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3137 PyObject
* _resultobj
;
3141 PyObject
* _argo0
= 0;
3142 char *_kwnames
[] = { "self","x","y", NULL
};
3145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3155 wxPy_BEGIN_ALLOW_THREADS
;
3156 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3158 wxPy_END_ALLOW_THREADS
;
3159 if (PyErr_Occurred()) return NULL
;
3160 } Py_INCREF(Py_None
);
3161 _resultobj
= Py_None
;
3165 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3166 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3167 PyObject
* _resultobj
;
3170 PyObject
* _argo0
= 0;
3172 PyObject
* _obj1
= 0;
3173 char *_kwnames
[] = { "self","point", NULL
};
3176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3187 if (! wxPoint_helper(_obj1
, &_arg1
))
3191 wxPy_BEGIN_ALLOW_THREADS
;
3192 wxWindow_Move(_arg0
,*_arg1
);
3194 wxPy_END_ALLOW_THREADS
;
3195 if (PyErr_Occurred()) return NULL
;
3196 } Py_INCREF(Py_None
);
3197 _resultobj
= Py_None
;
3201 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3202 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3203 PyObject
* _resultobj
;
3204 wxEvtHandler
* _result
;
3206 bool _arg1
= (bool ) FALSE
;
3207 PyObject
* _argo0
= 0;
3208 int tempbool1
= (int) FALSE
;
3209 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3221 _arg1
= (bool ) tempbool1
;
3223 wxPy_BEGIN_ALLOW_THREADS
;
3224 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3226 wxPy_END_ALLOW_THREADS
;
3227 if (PyErr_Occurred()) return NULL
;
3228 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3232 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3233 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3234 PyObject
* _resultobj
;
3236 wxEvtHandler
* _arg1
;
3237 PyObject
* _argo0
= 0;
3238 PyObject
* _argo1
= 0;
3239 char *_kwnames
[] = { "self","handler", NULL
};
3242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3252 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3253 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3259 wxPy_BEGIN_ALLOW_THREADS
;
3260 wxWindow_PushEventHandler(_arg0
,_arg1
);
3262 wxPy_END_ALLOW_THREADS
;
3263 if (PyErr_Occurred()) return NULL
;
3264 } Py_INCREF(Py_None
);
3265 _resultobj
= Py_None
;
3269 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3270 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3271 PyObject
* _resultobj
;
3277 PyObject
* _argo0
= 0;
3278 PyObject
* _argo1
= 0;
3279 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3292 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3293 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3299 wxPy_BEGIN_ALLOW_THREADS
;
3300 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3302 wxPy_END_ALLOW_THREADS
;
3303 if (PyErr_Occurred()) return NULL
;
3304 } _resultobj
= Py_BuildValue("i",_result
);
3308 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3309 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3310 PyObject
* _resultobj
;
3315 PyObject
* _argo0
= 0;
3316 PyObject
* _argo1
= 0;
3318 PyObject
* _obj2
= 0;
3319 char *_kwnames
[] = { "self","menu","pos", NULL
};
3322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3332 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3333 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3340 if (! wxPoint_helper(_obj2
, &_arg2
))
3344 wxPy_BEGIN_ALLOW_THREADS
;
3345 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3347 wxPy_END_ALLOW_THREADS
;
3348 if (PyErr_Occurred()) return NULL
;
3349 } _resultobj
= Py_BuildValue("i",_result
);
3353 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3354 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3355 PyObject
* _resultobj
;
3357 PyObject
* _argo0
= 0;
3358 char *_kwnames
[] = { "self", NULL
};
3361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3371 wxPy_BEGIN_ALLOW_THREADS
;
3372 wxWindow_Raise(_arg0
);
3374 wxPy_END_ALLOW_THREADS
;
3375 if (PyErr_Occurred()) return NULL
;
3376 } Py_INCREF(Py_None
);
3377 _resultobj
= Py_None
;
3381 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3382 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3383 PyObject
* _resultobj
;
3385 bool _arg1
= (bool ) TRUE
;
3386 wxRect
* _arg2
= (wxRect
*) NULL
;
3387 PyObject
* _argo0
= 0;
3388 int tempbool1
= (int) TRUE
;
3390 PyObject
* _obj2
= 0;
3391 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3403 _arg1
= (bool ) tempbool1
;
3407 if (! wxRect_helper(_obj2
, &_arg2
))
3411 wxPy_BEGIN_ALLOW_THREADS
;
3412 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3414 wxPy_END_ALLOW_THREADS
;
3415 if (PyErr_Occurred()) return NULL
;
3416 } Py_INCREF(Py_None
);
3417 _resultobj
= Py_None
;
3421 #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0))
3422 static PyObject
*_wrap_wxWindow_RefreshRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3423 PyObject
* _resultobj
;
3426 PyObject
* _argo0
= 0;
3428 PyObject
* _obj1
= 0;
3429 char *_kwnames
[] = { "self","rect", NULL
};
3432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RefreshRect",_kwnames
,&_argo0
,&_obj1
))
3435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p.");
3443 if (! wxRect_helper(_obj1
, &_arg1
))
3447 wxPy_BEGIN_ALLOW_THREADS
;
3448 wxWindow_RefreshRect(_arg0
,*_arg1
);
3450 wxPy_END_ALLOW_THREADS
;
3451 if (PyErr_Occurred()) return NULL
;
3452 } Py_INCREF(Py_None
);
3453 _resultobj
= Py_None
;
3457 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3458 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3459 PyObject
* _resultobj
;
3461 PyObject
* _argo0
= 0;
3462 char *_kwnames
[] = { "self", NULL
};
3465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3468 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3469 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3475 wxPy_BEGIN_ALLOW_THREADS
;
3476 wxWindow_ReleaseMouse(_arg0
);
3478 wxPy_END_ALLOW_THREADS
;
3479 if (PyErr_Occurred()) return NULL
;
3480 } Py_INCREF(Py_None
);
3481 _resultobj
= Py_None
;
3485 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3486 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3487 PyObject
* _resultobj
;
3490 PyObject
* _argo0
= 0;
3491 PyObject
* _argo1
= 0;
3492 char *_kwnames
[] = { "self","child", NULL
};
3495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3505 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3506 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3512 wxPy_BEGIN_ALLOW_THREADS
;
3513 wxWindow_RemoveChild(_arg0
,_arg1
);
3515 wxPy_END_ALLOW_THREADS
;
3516 if (PyErr_Occurred()) return NULL
;
3517 } Py_INCREF(Py_None
);
3518 _resultobj
= Py_None
;
3522 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3523 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3524 PyObject
* _resultobj
;
3528 PyObject
* _argo0
= 0;
3529 PyObject
* _argo1
= 0;
3530 char *_kwnames
[] = { "self","newParent", NULL
};
3533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3543 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3544 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3550 wxPy_BEGIN_ALLOW_THREADS
;
3551 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3553 wxPy_END_ALLOW_THREADS
;
3554 if (PyErr_Occurred()) return NULL
;
3555 } _resultobj
= Py_BuildValue("i",_result
);
3559 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3560 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3561 PyObject
* _resultobj
;
3565 PyObject
* _argo0
= 0;
3567 PyObject
* _obj1
= 0;
3569 PyObject
* _obj2
= 0;
3570 char *_kwnames
[] = { "self","x","y", NULL
};
3573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3583 temp
= (int) PyInt_AsLong(_obj1
);
3587 temp0
= (int) PyInt_AsLong(_obj2
);
3591 wxPy_BEGIN_ALLOW_THREADS
;
3592 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3594 wxPy_END_ALLOW_THREADS
;
3595 if (PyErr_Occurred()) return NULL
;
3596 } Py_INCREF(Py_None
);
3597 _resultobj
= Py_None
;
3600 o
= PyInt_FromLong((long) (*_arg1
));
3601 _resultobj
= t_output_helper(_resultobj
, o
);
3605 o
= PyInt_FromLong((long) (*_arg2
));
3606 _resultobj
= t_output_helper(_resultobj
, o
);
3611 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3612 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3613 PyObject
* _resultobj
;
3617 PyObject
* _argo0
= 0;
3619 PyObject
* _obj1
= 0;
3620 char *_kwnames
[] = { "self","pt", NULL
};
3624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3635 if (! wxPoint_helper(_obj1
, &_arg1
))
3639 wxPy_BEGIN_ALLOW_THREADS
;
3640 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3642 wxPy_END_ALLOW_THREADS
;
3643 if (PyErr_Occurred()) return NULL
;
3644 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3645 _resultobj
= Py_BuildValue("s",_ptemp
);
3649 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3650 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3651 PyObject
* _resultobj
;
3655 wxRect
* _arg3
= (wxRect
*) NULL
;
3656 PyObject
* _argo0
= 0;
3658 PyObject
* _obj3
= 0;
3659 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3674 if (! wxRect_helper(_obj3
, &_arg3
))
3678 wxPy_BEGIN_ALLOW_THREADS
;
3679 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3681 wxPy_END_ALLOW_THREADS
;
3682 if (PyErr_Occurred()) return NULL
;
3683 } Py_INCREF(Py_None
);
3684 _resultobj
= Py_None
;
3688 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3689 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3690 PyObject
* _resultobj
;
3693 PyObject
* _argo0
= 0;
3695 char *_kwnames
[] = { "self","autoLayout", NULL
};
3698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3701 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3702 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3703 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3707 _arg1
= (bool ) tempbool1
;
3709 wxPy_BEGIN_ALLOW_THREADS
;
3710 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3712 wxPy_END_ALLOW_THREADS
;
3713 if (PyErr_Occurred()) return NULL
;
3714 } Py_INCREF(Py_None
);
3715 _resultobj
= Py_None
;
3719 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3720 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3721 PyObject
* _resultobj
;
3724 PyObject
* _argo0
= 0;
3725 char *_kwnames
[] = { "self", NULL
};
3728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3738 wxPy_BEGIN_ALLOW_THREADS
;
3739 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3741 wxPy_END_ALLOW_THREADS
;
3742 if (PyErr_Occurred()) return NULL
;
3743 } _resultobj
= Py_BuildValue("i",_result
);
3747 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3748 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3749 PyObject
* _resultobj
;
3752 PyObject
* _argo0
= 0;
3754 PyObject
* _obj1
= 0;
3755 char *_kwnames
[] = { "self","colour", NULL
};
3758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3769 if (! wxColour_helper(_obj1
, &_arg1
))
3773 wxPy_BEGIN_ALLOW_THREADS
;
3774 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3776 wxPy_END_ALLOW_THREADS
;
3777 if (PyErr_Occurred()) return NULL
;
3778 } Py_INCREF(Py_None
);
3779 _resultobj
= Py_None
;
3783 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3784 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3785 PyObject
* _resultobj
;
3787 wxLayoutConstraints
* _arg1
;
3788 PyObject
* _argo0
= 0;
3789 PyObject
* _argo1
= 0;
3790 char *_kwnames
[] = { "self","constraints", NULL
};
3793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3803 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3804 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3810 wxPy_BEGIN_ALLOW_THREADS
;
3811 wxWindow_SetConstraints(_arg0
,_arg1
);
3813 wxPy_END_ALLOW_THREADS
;
3814 if (PyErr_Occurred()) return NULL
;
3815 } Py_INCREF(Py_None
);
3816 _resultobj
= Py_None
;
3820 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3821 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3822 PyObject
* _resultobj
;
3824 wxLayoutConstraints
* _arg1
;
3825 PyObject
* _argo0
= 0;
3826 PyObject
* _argo1
= 0;
3827 char *_kwnames
[] = { "self","constraints", NULL
};
3830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3840 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3841 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3847 wxPy_BEGIN_ALLOW_THREADS
;
3848 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3850 wxPy_END_ALLOW_THREADS
;
3851 if (PyErr_Occurred()) return NULL
;
3852 } Py_INCREF(Py_None
);
3853 _resultobj
= Py_None
;
3857 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3858 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3859 PyObject
* _resultobj
;
3861 PyObject
* _argo0
= 0;
3862 char *_kwnames
[] = { "self", NULL
};
3865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3875 wxPy_BEGIN_ALLOW_THREADS
;
3876 wxWindow_SetFocus(_arg0
);
3878 wxPy_END_ALLOW_THREADS
;
3879 if (PyErr_Occurred()) return NULL
;
3880 } Py_INCREF(Py_None
);
3881 _resultobj
= Py_None
;
3885 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3886 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3887 PyObject
* _resultobj
;
3890 PyObject
* _argo0
= 0;
3891 char *_kwnames
[] = { "self", NULL
};
3894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3904 wxPy_BEGIN_ALLOW_THREADS
;
3905 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3907 wxPy_END_ALLOW_THREADS
;
3908 if (PyErr_Occurred()) return NULL
;
3909 } _resultobj
= Py_BuildValue("i",_result
);
3913 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3914 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3915 PyObject
* _resultobj
;
3918 PyObject
* _argo0
= 0;
3919 PyObject
* _argo1
= 0;
3920 char *_kwnames
[] = { "self","font", NULL
};
3923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
3926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3933 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3934 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3940 wxPy_BEGIN_ALLOW_THREADS
;
3941 wxWindow_SetFont(_arg0
,*_arg1
);
3943 wxPy_END_ALLOW_THREADS
;
3944 if (PyErr_Occurred()) return NULL
;
3945 } Py_INCREF(Py_None
);
3946 _resultobj
= Py_None
;
3950 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3951 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3952 PyObject
* _resultobj
;
3955 PyObject
* _argo0
= 0;
3957 PyObject
* _obj1
= 0;
3958 char *_kwnames
[] = { "self","colour", NULL
};
3961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
3964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
3972 if (! wxColour_helper(_obj1
, &_arg1
))
3976 wxPy_BEGIN_ALLOW_THREADS
;
3977 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
3979 wxPy_END_ALLOW_THREADS
;
3980 if (PyErr_Occurred()) return NULL
;
3981 } Py_INCREF(Py_None
);
3982 _resultobj
= Py_None
;
3986 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3987 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3988 PyObject
* _resultobj
;
3991 PyObject
* _argo0
= 0;
3992 char *_kwnames
[] = { "self","id", NULL
};
3995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
3998 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3999 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
4005 wxPy_BEGIN_ALLOW_THREADS
;
4006 wxWindow_SetId(_arg0
,_arg1
);
4008 wxPy_END_ALLOW_THREADS
;
4009 if (PyErr_Occurred()) return NULL
;
4010 } Py_INCREF(Py_None
);
4011 _resultobj
= Py_None
;
4015 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4016 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4017 PyObject
* _resultobj
;
4020 PyObject
* _argo0
= 0;
4021 PyObject
* _obj1
= 0;
4022 char *_kwnames
[] = { "self","name", NULL
};
4025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
4028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4035 #if PYTHON_API_VERSION >= 1009
4036 char* tmpPtr
; int tmpSize
;
4037 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4038 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4041 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4043 _arg1
= new wxString(tmpPtr
, tmpSize
);
4045 if (!PyString_Check(_obj1
)) {
4046 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4049 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4053 wxPy_BEGIN_ALLOW_THREADS
;
4054 wxWindow_SetName(_arg0
,*_arg1
);
4056 wxPy_END_ALLOW_THREADS
;
4057 if (PyErr_Occurred()) return NULL
;
4058 } Py_INCREF(Py_None
);
4059 _resultobj
= Py_None
;
4067 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4068 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4069 PyObject
* _resultobj
;
4075 int _arg5
= (int ) TRUE
;
4076 PyObject
* _argo0
= 0;
4077 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4090 wxPy_BEGIN_ALLOW_THREADS
;
4091 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4093 wxPy_END_ALLOW_THREADS
;
4094 if (PyErr_Occurred()) return NULL
;
4095 } Py_INCREF(Py_None
);
4096 _resultobj
= Py_None
;
4100 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4101 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4102 PyObject
* _resultobj
;
4106 bool _arg3
= (bool ) TRUE
;
4107 PyObject
* _argo0
= 0;
4108 int tempbool3
= (int) TRUE
;
4109 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4121 _arg3
= (bool ) tempbool3
;
4123 wxPy_BEGIN_ALLOW_THREADS
;
4124 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4126 wxPy_END_ALLOW_THREADS
;
4127 if (PyErr_Occurred()) return NULL
;
4128 } Py_INCREF(Py_None
);
4129 _resultobj
= Py_None
;
4133 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4134 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4135 PyObject
* _resultobj
;
4141 int _arg5
= (int ) wxSIZE_AUTO
;
4142 PyObject
* _argo0
= 0;
4143 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4156 wxPy_BEGIN_ALLOW_THREADS
;
4157 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4159 wxPy_END_ALLOW_THREADS
;
4160 if (PyErr_Occurred()) return NULL
;
4161 } Py_INCREF(Py_None
);
4162 _resultobj
= Py_None
;
4166 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4167 self
->SetSize(size
);
4169 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4170 PyObject
* _resultobj
;
4173 PyObject
* _argo0
= 0;
4175 PyObject
* _obj1
= 0;
4176 char *_kwnames
[] = { "self","size", NULL
};
4179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4182 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4183 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4184 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4190 if (! wxSize_helper(_obj1
, &_arg1
))
4194 wxPy_BEGIN_ALLOW_THREADS
;
4195 wxWindow_SetSize(_arg0
,*_arg1
);
4197 wxPy_END_ALLOW_THREADS
;
4198 if (PyErr_Occurred()) return NULL
;
4199 } Py_INCREF(Py_None
);
4200 _resultobj
= Py_None
;
4204 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4207 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4208 PyObject
* _resultobj
;
4211 PyObject
* _argo0
= 0;
4213 PyObject
* _obj1
= 0;
4214 char *_kwnames
[] = { "self","pos", NULL
};
4217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
4220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4228 if (! wxPoint_helper(_obj1
, &_arg1
))
4232 wxPy_BEGIN_ALLOW_THREADS
;
4233 wxWindow_SetPosition(_arg0
,*_arg1
);
4235 wxPy_END_ALLOW_THREADS
;
4236 if (PyErr_Occurred()) return NULL
;
4237 } Py_INCREF(Py_None
);
4238 _resultobj
= Py_None
;
4242 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4243 self
->SetSize(rect
, sizeFlags
);
4245 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4246 PyObject
* _resultobj
;
4249 int _arg2
= (int ) wxSIZE_AUTO
;
4250 PyObject
* _argo0
= 0;
4252 PyObject
* _obj1
= 0;
4253 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4267 if (! wxRect_helper(_obj1
, &_arg1
))
4271 wxPy_BEGIN_ALLOW_THREADS
;
4272 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4274 wxPy_END_ALLOW_THREADS
;
4275 if (PyErr_Occurred()) return NULL
;
4276 } Py_INCREF(Py_None
);
4277 _resultobj
= Py_None
;
4281 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4282 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4283 PyObject
* _resultobj
;
4285 int _arg1
= (int ) -1;
4286 int _arg2
= (int ) -1;
4287 int _arg3
= (int ) -1;
4288 int _arg4
= (int ) -1;
4289 int _arg5
= (int ) -1;
4290 int _arg6
= (int ) -1;
4291 PyObject
* _argo0
= 0;
4292 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4305 wxPy_BEGIN_ALLOW_THREADS
;
4306 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4308 wxPy_END_ALLOW_THREADS
;
4309 if (PyErr_Occurred()) return NULL
;
4310 } Py_INCREF(Py_None
);
4311 _resultobj
= Py_None
;
4315 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4316 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4317 PyObject
* _resultobj
;
4321 PyObject
* _argo0
= 0;
4322 char *_kwnames
[] = { "self","width","height", NULL
};
4325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4335 wxPy_BEGIN_ALLOW_THREADS
;
4336 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4338 wxPy_END_ALLOW_THREADS
;
4339 if (PyErr_Occurred()) return NULL
;
4340 } Py_INCREF(Py_None
);
4341 _resultobj
= Py_None
;
4345 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4346 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4347 PyObject
* _resultobj
;
4350 PyObject
* _argo0
= 0;
4352 PyObject
* _obj1
= 0;
4353 char *_kwnames
[] = { "self","size", NULL
};
4356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4367 if (! wxSize_helper(_obj1
, &_arg1
))
4371 wxPy_BEGIN_ALLOW_THREADS
;
4372 wxWindow_SetClientSize(_arg0
,*_arg1
);
4374 wxPy_END_ALLOW_THREADS
;
4375 if (PyErr_Occurred()) return NULL
;
4376 } Py_INCREF(Py_None
);
4377 _resultobj
= Py_None
;
4381 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4382 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4383 PyObject
* _resultobj
;
4386 PyObject
* _argo0
= 0;
4387 PyObject
* _argo1
= 0;
4388 char *_kwnames
[] = { "self","cursor", NULL
};
4391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
4394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4401 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4402 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4408 wxPy_BEGIN_ALLOW_THREADS
;
4409 wxWindow_SetCursor(_arg0
,*_arg1
);
4411 wxPy_END_ALLOW_THREADS
;
4412 if (PyErr_Occurred()) return NULL
;
4413 } Py_INCREF(Py_None
);
4414 _resultobj
= Py_None
;
4418 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4419 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4420 PyObject
* _resultobj
;
4422 wxEvtHandler
* _arg1
;
4423 PyObject
* _argo0
= 0;
4424 PyObject
* _argo1
= 0;
4425 char *_kwnames
[] = { "self","handler", NULL
};
4428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4438 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4439 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4440 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4445 wxPy_BEGIN_ALLOW_THREADS
;
4446 wxWindow_SetEventHandler(_arg0
,_arg1
);
4448 wxPy_END_ALLOW_THREADS
;
4449 if (PyErr_Occurred()) return NULL
;
4450 } Py_INCREF(Py_None
);
4451 _resultobj
= Py_None
;
4455 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4456 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4457 PyObject
* _resultobj
;
4460 PyObject
* _argo0
= 0;
4461 char *_kwnames
[] = { "self","exStyle", NULL
};
4464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4474 wxPy_BEGIN_ALLOW_THREADS
;
4475 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4477 wxPy_END_ALLOW_THREADS
;
4478 if (PyErr_Occurred()) return NULL
;
4479 } Py_INCREF(Py_None
);
4480 _resultobj
= Py_None
;
4484 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4485 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4486 PyObject
* _resultobj
;
4489 PyObject
* _argo0
= 0;
4490 PyObject
* _obj1
= 0;
4491 char *_kwnames
[] = { "self","title", NULL
};
4494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4504 #if PYTHON_API_VERSION >= 1009
4505 char* tmpPtr
; int tmpSize
;
4506 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4507 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4510 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4512 _arg1
= new wxString(tmpPtr
, tmpSize
);
4514 if (!PyString_Check(_obj1
)) {
4515 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4518 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4522 wxPy_BEGIN_ALLOW_THREADS
;
4523 wxWindow_SetTitle(_arg0
,*_arg1
);
4525 wxPy_END_ALLOW_THREADS
;
4526 if (PyErr_Occurred()) return NULL
;
4527 } Py_INCREF(Py_None
);
4528 _resultobj
= Py_None
;
4536 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4537 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4538 PyObject
* _resultobj
;
4542 PyObject
* _argo0
= 0;
4544 char *_kwnames
[] = { "self","show", NULL
};
4547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4556 _arg1
= (bool ) tempbool1
;
4558 wxPy_BEGIN_ALLOW_THREADS
;
4559 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4561 wxPy_END_ALLOW_THREADS
;
4562 if (PyErr_Occurred()) return NULL
;
4563 } _resultobj
= Py_BuildValue("i",_result
);
4567 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4568 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4569 PyObject
* _resultobj
;
4572 PyObject
* _argo0
= 0;
4573 char *_kwnames
[] = { "self", NULL
};
4576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4586 wxPy_BEGIN_ALLOW_THREADS
;
4587 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4589 wxPy_END_ALLOW_THREADS
;
4590 if (PyErr_Occurred()) return NULL
;
4591 } _resultobj
= Py_BuildValue("i",_result
);
4595 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4596 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4597 PyObject
* _resultobj
;
4600 PyObject
* _argo0
= 0;
4601 char *_kwnames
[] = { "self", NULL
};
4604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4614 wxPy_BEGIN_ALLOW_THREADS
;
4615 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4617 wxPy_END_ALLOW_THREADS
;
4618 if (PyErr_Occurred()) return NULL
;
4619 } _resultobj
= Py_BuildValue("i",_result
);
4623 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4624 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4625 PyObject
* _resultobj
;
4628 PyObject
* _argo0
= 0;
4629 char *_kwnames
[] = { "self", NULL
};
4632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4642 wxPy_BEGIN_ALLOW_THREADS
;
4643 _result
= (bool )wxWindow_Validate(_arg0
);
4645 wxPy_END_ALLOW_THREADS
;
4646 if (PyErr_Occurred()) return NULL
;
4647 } _resultobj
= Py_BuildValue("i",_result
);
4651 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4652 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4653 PyObject
* _resultobj
;
4657 PyObject
* _argo0
= 0;
4658 char *_kwnames
[] = { "self","x","y", NULL
};
4661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4671 wxPy_BEGIN_ALLOW_THREADS
;
4672 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4674 wxPy_END_ALLOW_THREADS
;
4675 if (PyErr_Occurred()) return NULL
;
4676 } Py_INCREF(Py_None
);
4677 _resultobj
= Py_None
;
4681 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4682 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4683 PyObject
* _resultobj
;
4687 PyObject
* _argo0
= 0;
4689 PyObject
* _obj1
= 0;
4690 char *_kwnames
[] = { "self","pt", NULL
};
4694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4705 if (! wxPoint_helper(_obj1
, &_arg1
))
4709 wxPy_BEGIN_ALLOW_THREADS
;
4710 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4712 wxPy_END_ALLOW_THREADS
;
4713 if (PyErr_Occurred()) return NULL
;
4714 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4715 _resultobj
= Py_BuildValue("s",_ptemp
);
4719 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4720 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4721 PyObject
* _resultobj
;
4725 PyObject
* _argo0
= 0;
4727 PyObject
* _obj1
= 0;
4728 char *_kwnames
[] = { "self","sz", NULL
};
4732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4743 if (! wxSize_helper(_obj1
, &_arg1
))
4747 wxPy_BEGIN_ALLOW_THREADS
;
4748 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4750 wxPy_END_ALLOW_THREADS
;
4751 if (PyErr_Occurred()) return NULL
;
4752 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4753 _resultobj
= Py_BuildValue("s",_ptemp
);
4757 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4758 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4759 PyObject
* _resultobj
;
4763 PyObject
* _argo0
= 0;
4765 PyObject
* _obj1
= 0;
4766 char *_kwnames
[] = { "self","pt", NULL
};
4770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4781 if (! wxPoint_helper(_obj1
, &_arg1
))
4785 wxPy_BEGIN_ALLOW_THREADS
;
4786 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4788 wxPy_END_ALLOW_THREADS
;
4789 if (PyErr_Occurred()) return NULL
;
4790 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4791 _resultobj
= Py_BuildValue("s",_ptemp
);
4795 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4796 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4797 PyObject
* _resultobj
;
4801 PyObject
* _argo0
= 0;
4803 PyObject
* _obj1
= 0;
4804 char *_kwnames
[] = { "self","sz", NULL
};
4808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4819 if (! wxSize_helper(_obj1
, &_arg1
))
4823 wxPy_BEGIN_ALLOW_THREADS
;
4824 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4826 wxPy_END_ALLOW_THREADS
;
4827 if (PyErr_Occurred()) return NULL
;
4828 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4829 _resultobj
= Py_BuildValue("s",_ptemp
);
4833 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4834 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4835 PyObject
* _resultobj
;
4838 PyObject
* _argo0
= 0;
4839 PyObject
* _obj1
= 0;
4840 char *_kwnames
[] = { "self","tip", NULL
};
4843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4853 #if PYTHON_API_VERSION >= 1009
4854 char* tmpPtr
; int tmpSize
;
4855 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4856 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4859 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4861 _arg1
= new wxString(tmpPtr
, tmpSize
);
4863 if (!PyString_Check(_obj1
)) {
4864 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4867 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4871 wxPy_BEGIN_ALLOW_THREADS
;
4872 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4874 wxPy_END_ALLOW_THREADS
;
4875 if (PyErr_Occurred()) return NULL
;
4876 } Py_INCREF(Py_None
);
4877 _resultobj
= Py_None
;
4885 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4886 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4887 PyObject
* _resultobj
;
4890 PyObject
* _argo0
= 0;
4891 PyObject
* _argo1
= 0;
4892 char *_kwnames
[] = { "self","tooltip", NULL
};
4895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4905 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4906 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4912 wxPy_BEGIN_ALLOW_THREADS
;
4913 wxWindow_SetToolTip(_arg0
,_arg1
);
4915 wxPy_END_ALLOW_THREADS
;
4916 if (PyErr_Occurred()) return NULL
;
4917 } Py_INCREF(Py_None
);
4918 _resultobj
= Py_None
;
4922 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4923 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4924 PyObject
* _resultobj
;
4925 wxToolTip
* _result
;
4927 PyObject
* _argo0
= 0;
4928 char *_kwnames
[] = { "self", NULL
};
4931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
4934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4941 wxPy_BEGIN_ALLOW_THREADS
;
4942 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
4944 wxPy_END_ALLOW_THREADS
;
4945 if (PyErr_Occurred()) return NULL
;
4946 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4950 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4951 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4952 PyObject
* _resultobj
;
4955 PyObject
* _argo0
= 0;
4956 PyObject
* _argo1
= 0;
4957 char *_kwnames
[] = { "self","sizer", NULL
};
4960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
4963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4970 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4971 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
4972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4977 wxPy_BEGIN_ALLOW_THREADS
;
4978 wxWindow_SetSizer(_arg0
,_arg1
);
4980 wxPy_END_ALLOW_THREADS
;
4981 if (PyErr_Occurred()) return NULL
;
4982 } Py_INCREF(Py_None
);
4983 _resultobj
= Py_None
;
4987 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
4988 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4989 PyObject
* _resultobj
;
4992 PyObject
* _argo0
= 0;
4993 char *_kwnames
[] = { "self", NULL
};
4996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
4999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5006 wxPy_BEGIN_ALLOW_THREADS
;
5007 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
5009 wxPy_END_ALLOW_THREADS
;
5010 if (PyErr_Occurred()) return NULL
;
5011 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5015 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5016 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5017 PyObject
* _resultobj
;
5018 wxValidator
* _result
;
5020 PyObject
* _argo0
= 0;
5021 char *_kwnames
[] = { "self", NULL
};
5024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
5027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5034 wxPy_BEGIN_ALLOW_THREADS
;
5035 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5037 wxPy_END_ALLOW_THREADS
;
5038 if (PyErr_Occurred()) return NULL
;
5039 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5043 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5044 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5045 PyObject
* _resultobj
;
5047 wxValidator
* _arg1
;
5048 PyObject
* _argo0
= 0;
5049 PyObject
* _argo1
= 0;
5050 char *_kwnames
[] = { "self","validator", NULL
};
5053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5063 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5064 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5070 wxPy_BEGIN_ALLOW_THREADS
;
5071 wxWindow_SetValidator(_arg0
,*_arg1
);
5073 wxPy_END_ALLOW_THREADS
;
5074 if (PyErr_Occurred()) return NULL
;
5075 } Py_INCREF(Py_None
);
5076 _resultobj
= Py_None
;
5080 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5081 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5082 PyObject
* _resultobj
;
5085 PyObject
* _argo0
= 0;
5086 char *_kwnames
[] = { "self", NULL
};
5090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5100 wxPy_BEGIN_ALLOW_THREADS
;
5101 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5103 wxPy_END_ALLOW_THREADS
;
5104 if (PyErr_Occurred()) return NULL
;
5105 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5106 _resultobj
= Py_BuildValue("s",_ptemp
);
5110 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5111 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5112 PyObject
* _resultobj
;
5115 PyObject
* _argo0
= 0;
5116 PyObject
* _argo1
= 0;
5117 char *_kwnames
[] = { "self","caret", NULL
};
5120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5130 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5131 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5137 wxPy_BEGIN_ALLOW_THREADS
;
5138 wxWindow_SetCaret(_arg0
,_arg1
);
5140 wxPy_END_ALLOW_THREADS
;
5141 if (PyErr_Occurred()) return NULL
;
5142 } Py_INCREF(Py_None
);
5143 _resultobj
= Py_None
;
5147 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5148 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5149 PyObject
* _resultobj
;
5152 PyObject
* _argo0
= 0;
5153 char *_kwnames
[] = { "self", NULL
};
5157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5167 wxPy_BEGIN_ALLOW_THREADS
;
5168 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5170 wxPy_END_ALLOW_THREADS
;
5171 if (PyErr_Occurred()) return NULL
;
5173 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5174 _resultobj
= Py_BuildValue("s",_ptemp
);
5177 _resultobj
= Py_None
;
5182 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5183 static PyObject
*_wrap_wxWindow_Freeze(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5184 PyObject
* _resultobj
;
5186 PyObject
* _argo0
= 0;
5187 char *_kwnames
[] = { "self", NULL
};
5190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Freeze",_kwnames
,&_argo0
))
5193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5200 wxPy_BEGIN_ALLOW_THREADS
;
5201 wxWindow_Freeze(_arg0
);
5203 wxPy_END_ALLOW_THREADS
;
5204 if (PyErr_Occurred()) return NULL
;
5205 } Py_INCREF(Py_None
);
5206 _resultobj
= Py_None
;
5210 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5211 static PyObject
*_wrap_wxWindow_Thaw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5212 PyObject
* _resultobj
;
5214 PyObject
* _argo0
= 0;
5215 char *_kwnames
[] = { "self", NULL
};
5218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Thaw",_kwnames
,&_argo0
))
5221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5228 wxPy_BEGIN_ALLOW_THREADS
;
5229 wxWindow_Thaw(_arg0
);
5231 wxPy_END_ALLOW_THREADS
;
5232 if (PyErr_Occurred()) return NULL
;
5233 } Py_INCREF(Py_None
);
5234 _resultobj
= Py_None
;
5238 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5239 static PyObject
*_wrap_wxWindow_Update(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5240 PyObject
* _resultobj
;
5242 PyObject
* _argo0
= 0;
5243 char *_kwnames
[] = { "self", NULL
};
5246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Update",_kwnames
,&_argo0
))
5249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5256 wxPy_BEGIN_ALLOW_THREADS
;
5257 wxWindow_Update(_arg0
);
5259 wxPy_END_ALLOW_THREADS
;
5260 if (PyErr_Occurred()) return NULL
;
5261 } Py_INCREF(Py_None
);
5262 _resultobj
= Py_None
;
5266 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5267 static PyObject
*_wrap_wxWindow_GetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5268 PyObject
* _resultobj
;
5271 PyObject
* _argo0
= 0;
5272 char *_kwnames
[] = { "self", NULL
};
5275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHelpText",_kwnames
,&_argo0
))
5278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5285 wxPy_BEGIN_ALLOW_THREADS
;
5286 _result
= new wxString (wxWindow_GetHelpText(_arg0
));
5288 wxPy_END_ALLOW_THREADS
;
5289 if (PyErr_Occurred()) return NULL
;
5291 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5299 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5300 static PyObject
*_wrap_wxWindow_SetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5301 PyObject
* _resultobj
;
5304 PyObject
* _argo0
= 0;
5305 PyObject
* _obj1
= 0;
5306 char *_kwnames
[] = { "self","helpText", NULL
};
5309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpText",_kwnames
,&_argo0
,&_obj1
))
5312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5319 #if PYTHON_API_VERSION >= 1009
5320 char* tmpPtr
; int tmpSize
;
5321 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5322 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5325 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5327 _arg1
= new wxString(tmpPtr
, tmpSize
);
5329 if (!PyString_Check(_obj1
)) {
5330 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5333 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5337 wxPy_BEGIN_ALLOW_THREADS
;
5338 wxWindow_SetHelpText(_arg0
,*_arg1
);
5340 wxPy_END_ALLOW_THREADS
;
5341 if (PyErr_Occurred()) return NULL
;
5342 } Py_INCREF(Py_None
);
5343 _resultobj
= Py_None
;
5351 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5352 static PyObject
*_wrap_wxWindow_ScrollLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5353 PyObject
* _resultobj
;
5357 PyObject
* _argo0
= 0;
5358 char *_kwnames
[] = { "self","lines", NULL
};
5361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollLines",_kwnames
,&_argo0
,&_arg1
))
5364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5371 wxPy_BEGIN_ALLOW_THREADS
;
5372 _result
= (bool )wxWindow_ScrollLines(_arg0
,_arg1
);
5374 wxPy_END_ALLOW_THREADS
;
5375 if (PyErr_Occurred()) return NULL
;
5376 } _resultobj
= Py_BuildValue("i",_result
);
5380 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5381 static PyObject
*_wrap_wxWindow_ScrollPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5382 PyObject
* _resultobj
;
5386 PyObject
* _argo0
= 0;
5387 char *_kwnames
[] = { "self","pages", NULL
};
5390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollPages",_kwnames
,&_argo0
,&_arg1
))
5393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5400 wxPy_BEGIN_ALLOW_THREADS
;
5401 _result
= (bool )wxWindow_ScrollPages(_arg0
,_arg1
);
5403 wxPy_END_ALLOW_THREADS
;
5404 if (PyErr_Occurred()) return NULL
;
5405 } _resultobj
= Py_BuildValue("i",_result
);
5409 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5410 static PyObject
*_wrap_wxWindow_LineUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5411 PyObject
* _resultobj
;
5414 PyObject
* _argo0
= 0;
5415 char *_kwnames
[] = { "self", NULL
};
5418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineUp",_kwnames
,&_argo0
))
5421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5428 wxPy_BEGIN_ALLOW_THREADS
;
5429 _result
= (bool )wxWindow_LineUp(_arg0
);
5431 wxPy_END_ALLOW_THREADS
;
5432 if (PyErr_Occurred()) return NULL
;
5433 } _resultobj
= Py_BuildValue("i",_result
);
5437 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5438 static PyObject
*_wrap_wxWindow_LineDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5439 PyObject
* _resultobj
;
5442 PyObject
* _argo0
= 0;
5443 char *_kwnames
[] = { "self", NULL
};
5446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineDown",_kwnames
,&_argo0
))
5449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5456 wxPy_BEGIN_ALLOW_THREADS
;
5457 _result
= (bool )wxWindow_LineDown(_arg0
);
5459 wxPy_END_ALLOW_THREADS
;
5460 if (PyErr_Occurred()) return NULL
;
5461 } _resultobj
= Py_BuildValue("i",_result
);
5465 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5466 static PyObject
*_wrap_wxWindow_PageUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5467 PyObject
* _resultobj
;
5470 PyObject
* _argo0
= 0;
5471 char *_kwnames
[] = { "self", NULL
};
5474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageUp",_kwnames
,&_argo0
))
5477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5484 wxPy_BEGIN_ALLOW_THREADS
;
5485 _result
= (bool )wxWindow_PageUp(_arg0
);
5487 wxPy_END_ALLOW_THREADS
;
5488 if (PyErr_Occurred()) return NULL
;
5489 } _resultobj
= Py_BuildValue("i",_result
);
5493 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5494 static PyObject
*_wrap_wxWindow_PageDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5495 PyObject
* _resultobj
;
5498 PyObject
* _argo0
= 0;
5499 char *_kwnames
[] = { "self", NULL
};
5502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageDown",_kwnames
,&_argo0
))
5505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5512 wxPy_BEGIN_ALLOW_THREADS
;
5513 _result
= (bool )wxWindow_PageDown(_arg0
);
5515 wxPy_END_ALLOW_THREADS
;
5516 if (PyErr_Occurred()) return NULL
;
5517 } _resultobj
= Py_BuildValue("i",_result
);
5521 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5522 PyObject
* _resultobj
;
5524 char *_kwnames
[] = { NULL
};
5527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
5530 wxPy_BEGIN_ALLOW_THREADS
;
5531 _result
= (wxWindow
*)wxWindow::FindFocus();
5533 wxPy_END_ALLOW_THREADS
;
5534 if (PyErr_Occurred()) return NULL
;
5535 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5539 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5540 PyObject
* _resultobj
;
5542 char *_kwnames
[] = { NULL
};
5545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
5548 wxPy_BEGIN_ALLOW_THREADS
;
5549 _result
= (int )wxWindow::NewControlId();
5551 wxPy_END_ALLOW_THREADS
;
5552 if (PyErr_Occurred()) return NULL
;
5553 } _resultobj
= Py_BuildValue("i",_result
);
5557 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5558 PyObject
* _resultobj
;
5561 char *_kwnames
[] = { "id", NULL
};
5564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
5567 wxPy_BEGIN_ALLOW_THREADS
;
5568 _result
= (int )wxWindow::NextControlId(_arg0
);
5570 wxPy_END_ALLOW_THREADS
;
5571 if (PyErr_Occurred()) return NULL
;
5572 } _resultobj
= Py_BuildValue("i",_result
);
5576 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5577 PyObject
* _resultobj
;
5580 char *_kwnames
[] = { "id", NULL
};
5583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
5586 wxPy_BEGIN_ALLOW_THREADS
;
5587 _result
= (int )wxWindow::PrevControlId(_arg0
);
5589 wxPy_END_ALLOW_THREADS
;
5590 if (PyErr_Occurred()) return NULL
;
5591 } _resultobj
= Py_BuildValue("i",_result
);
5595 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5596 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5597 PyObject
* _resultobj
;
5599 wxAcceleratorTable
* _arg1
;
5600 PyObject
* _argo0
= 0;
5601 PyObject
* _argo1
= 0;
5602 char *_kwnames
[] = { "self","accel", NULL
};
5605 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
5608 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5609 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5610 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5615 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5616 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
5617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5622 wxPy_BEGIN_ALLOW_THREADS
;
5623 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
5625 wxPy_END_ALLOW_THREADS
;
5626 if (PyErr_Occurred()) return NULL
;
5627 } Py_INCREF(Py_None
);
5628 _resultobj
= Py_None
;
5632 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5633 static PyObject
*_wrap_wxWindow_GetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5634 PyObject
* _resultobj
;
5635 wxAcceleratorTable
* _result
;
5637 PyObject
* _argo0
= 0;
5638 char *_kwnames
[] = { "self", NULL
};
5642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAcceleratorTable",_kwnames
,&_argo0
))
5645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5652 wxPy_BEGIN_ALLOW_THREADS
;
5653 _result
= (wxAcceleratorTable
*)wxWindow_GetAcceleratorTable(_arg0
);
5655 wxPy_END_ALLOW_THREADS
;
5656 if (PyErr_Occurred()) return NULL
;
5658 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorTable_p");
5659 _resultobj
= Py_BuildValue("s",_ptemp
);
5662 _resultobj
= Py_None
;
5667 static void *SwigwxPanelTowxWindow(void *ptr
) {
5670 src
= (wxPanel
*) ptr
;
5671 dest
= (wxWindow
*) src
;
5672 return (void *) dest
;
5675 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5678 src
= (wxPanel
*) ptr
;
5679 dest
= (wxEvtHandler
*) src
;
5680 return (void *) dest
;
5683 static void *SwigwxPanelTowxObject(void *ptr
) {
5686 src
= (wxPanel
*) ptr
;
5687 dest
= (wxObject
*) src
;
5688 return (void *) dest
;
5691 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5692 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5693 PyObject
* _resultobj
;
5697 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5698 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5699 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5700 char * _arg5
= (char *) "panel";
5701 PyObject
* _argo0
= 0;
5703 PyObject
* _obj2
= 0;
5705 PyObject
* _obj3
= 0;
5706 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5722 if (! wxPoint_helper(_obj2
, &_arg2
))
5728 if (! wxSize_helper(_obj3
, &_arg3
))
5732 wxPy_BEGIN_ALLOW_THREADS
;
5733 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5735 wxPy_END_ALLOW_THREADS
;
5736 if (PyErr_Occurred()) return NULL
;
5738 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5739 _resultobj
= Py_BuildValue("s",_ptemp
);
5742 _resultobj
= Py_None
;
5747 #define new_wxPrePanel() (new wxPanel())
5748 static PyObject
*_wrap_new_wxPrePanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5749 PyObject
* _resultobj
;
5751 char *_kwnames
[] = { NULL
};
5755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrePanel",_kwnames
))
5758 wxPy_BEGIN_ALLOW_THREADS
;
5759 _result
= (wxPanel
*)new_wxPrePanel();
5761 wxPy_END_ALLOW_THREADS
;
5762 if (PyErr_Occurred()) return NULL
;
5764 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5765 _resultobj
= Py_BuildValue("s",_ptemp
);
5768 _resultobj
= Py_None
;
5773 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5774 static PyObject
*_wrap_wxPanel_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5775 PyObject
* _resultobj
;
5780 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5781 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5782 long _arg5
= (long ) wxTAB_TRAVERSAL
;
5783 char * _arg6
= (char *) "panel";
5784 PyObject
* _argo0
= 0;
5785 PyObject
* _argo1
= 0;
5787 PyObject
* _obj3
= 0;
5789 PyObject
* _obj4
= 0;
5790 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
5793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxPanel_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
5803 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5804 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
5805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
5812 if (! wxPoint_helper(_obj3
, &_arg3
))
5818 if (! wxSize_helper(_obj4
, &_arg4
))
5822 wxPy_BEGIN_ALLOW_THREADS
;
5823 _result
= (bool )wxPanel_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5825 wxPy_END_ALLOW_THREADS
;
5826 if (PyErr_Occurred()) return NULL
;
5827 } _resultobj
= Py_BuildValue("i",_result
);
5831 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5832 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5833 PyObject
* _resultobj
;
5835 PyObject
* _argo0
= 0;
5836 char *_kwnames
[] = { "self", NULL
};
5839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5849 wxPy_BEGIN_ALLOW_THREADS
;
5850 wxPanel_InitDialog(_arg0
);
5852 wxPy_END_ALLOW_THREADS
;
5853 if (PyErr_Occurred()) return NULL
;
5854 } Py_INCREF(Py_None
);
5855 _resultobj
= Py_None
;
5859 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5860 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5861 PyObject
* _resultobj
;
5864 PyObject
* _argo0
= 0;
5865 char *_kwnames
[] = { "self", NULL
};
5868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
5871 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5872 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5878 wxPy_BEGIN_ALLOW_THREADS
;
5879 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
5881 wxPy_END_ALLOW_THREADS
;
5882 if (PyErr_Occurred()) return NULL
;
5883 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5887 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5888 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5889 PyObject
* _resultobj
;
5892 PyObject
* _argo0
= 0;
5893 PyObject
* _argo1
= 0;
5894 char *_kwnames
[] = { "self","btn", NULL
};
5897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
5900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5907 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5908 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
5909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5914 wxPy_BEGIN_ALLOW_THREADS
;
5915 wxPanel_SetDefaultItem(_arg0
,_arg1
);
5917 wxPy_END_ALLOW_THREADS
;
5918 if (PyErr_Occurred()) return NULL
;
5919 } Py_INCREF(Py_None
);
5920 _resultobj
= Py_None
;
5924 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
5925 wxScrolledWindow
*src
;
5927 src
= (wxScrolledWindow
*) ptr
;
5928 dest
= (wxPanel
*) src
;
5929 return (void *) dest
;
5932 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
5933 wxScrolledWindow
*src
;
5935 src
= (wxScrolledWindow
*) ptr
;
5936 dest
= (wxWindow
*) src
;
5937 return (void *) dest
;
5940 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
5941 wxScrolledWindow
*src
;
5943 src
= (wxScrolledWindow
*) ptr
;
5944 dest
= (wxEvtHandler
*) src
;
5945 return (void *) dest
;
5948 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
5949 wxScrolledWindow
*src
;
5951 src
= (wxScrolledWindow
*) ptr
;
5952 dest
= (wxObject
*) src
;
5953 return (void *) dest
;
5956 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5957 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5958 PyObject
* _resultobj
;
5959 wxScrolledWindow
* _result
;
5961 wxWindowID _arg1
= (wxWindowID
) -1;
5962 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5963 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5964 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
5965 char * _arg5
= (char *) "scrolledWindow";
5966 PyObject
* _argo0
= 0;
5968 PyObject
* _obj2
= 0;
5970 PyObject
* _obj3
= 0;
5971 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
5987 if (! wxPoint_helper(_obj2
, &_arg2
))
5993 if (! wxSize_helper(_obj3
, &_arg3
))
5997 wxPy_BEGIN_ALLOW_THREADS
;
5998 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6000 wxPy_END_ALLOW_THREADS
;
6001 if (PyErr_Occurred()) return NULL
;
6003 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6004 _resultobj
= Py_BuildValue("s",_ptemp
);
6007 _resultobj
= Py_None
;
6012 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6013 static PyObject
*_wrap_new_wxPreScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6014 PyObject
* _resultobj
;
6015 wxScrolledWindow
* _result
;
6016 char *_kwnames
[] = { NULL
};
6020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreScrolledWindow",_kwnames
))
6023 wxPy_BEGIN_ALLOW_THREADS
;
6024 _result
= (wxScrolledWindow
*)new_wxPreScrolledWindow();
6026 wxPy_END_ALLOW_THREADS
;
6027 if (PyErr_Occurred()) return NULL
;
6029 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6030 _resultobj
= Py_BuildValue("s",_ptemp
);
6033 _resultobj
= Py_None
;
6038 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6039 static PyObject
*_wrap_wxScrolledWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6040 PyObject
* _resultobj
;
6042 wxScrolledWindow
* _arg0
;
6044 wxWindowID _arg2
= (wxWindowID
) -1;
6045 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6046 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6047 long _arg5
= (long ) wxHSCROLL
|wxVSCROLL
;
6048 char * _arg6
= (char *) "scrolledWindow";
6049 PyObject
* _argo0
= 0;
6050 PyObject
* _argo1
= 0;
6052 PyObject
* _obj3
= 0;
6054 PyObject
* _obj4
= 0;
6055 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iOOls:wxScrolledWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6068 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6069 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6077 if (! wxPoint_helper(_obj3
, &_arg3
))
6083 if (! wxSize_helper(_obj4
, &_arg4
))
6087 wxPy_BEGIN_ALLOW_THREADS
;
6088 _result
= (bool )wxScrolledWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6090 wxPy_END_ALLOW_THREADS
;
6091 if (PyErr_Occurred()) return NULL
;
6092 } _resultobj
= Py_BuildValue("i",_result
);
6096 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6097 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6098 PyObject
* _resultobj
;
6099 wxScrolledWindow
* _arg0
;
6102 PyObject
* _argo0
= 0;
6105 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6117 _arg1
= (bool ) tempbool1
;
6118 _arg2
= (bool ) tempbool2
;
6120 wxPy_BEGIN_ALLOW_THREADS
;
6121 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6123 wxPy_END_ALLOW_THREADS
;
6124 if (PyErr_Occurred()) return NULL
;
6125 } Py_INCREF(Py_None
);
6126 _resultobj
= Py_None
;
6130 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6131 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6132 PyObject
* _resultobj
;
6134 wxScrolledWindow
* _arg0
;
6136 PyObject
* _argo0
= 0;
6137 char *_kwnames
[] = { "self","orient", NULL
};
6140 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6143 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6144 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6145 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6150 wxPy_BEGIN_ALLOW_THREADS
;
6151 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6153 wxPy_END_ALLOW_THREADS
;
6154 if (PyErr_Occurred()) return NULL
;
6155 } _resultobj
= Py_BuildValue("i",_result
);
6159 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6160 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6161 PyObject
* _resultobj
;
6162 wxScrolledWindow
* _arg0
;
6167 PyObject
* _argo0
= 0;
6168 char *_kwnames
[] = { "self", NULL
};
6177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6187 wxPy_BEGIN_ALLOW_THREADS
;
6188 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6190 wxPy_END_ALLOW_THREADS
;
6191 if (PyErr_Occurred()) return NULL
;
6192 } Py_INCREF(Py_None
);
6193 _resultobj
= Py_None
;
6196 o
= PyInt_FromLong((long) (*_arg1
));
6197 _resultobj
= t_output_helper(_resultobj
, o
);
6201 o
= PyInt_FromLong((long) (*_arg2
));
6202 _resultobj
= t_output_helper(_resultobj
, o
);
6207 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6208 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6209 PyObject
* _resultobj
;
6211 wxScrolledWindow
* _arg0
;
6212 PyObject
* _argo0
= 0;
6213 char *_kwnames
[] = { "self", NULL
};
6216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6226 wxPy_BEGIN_ALLOW_THREADS
;
6227 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6229 wxPy_END_ALLOW_THREADS
;
6230 if (PyErr_Occurred()) return NULL
;
6231 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6235 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6236 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6237 PyObject
* _resultobj
;
6238 wxScrolledWindow
* _arg0
;
6243 PyObject
* _argo0
= 0;
6244 char *_kwnames
[] = { "self", NULL
};
6253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6263 wxPy_BEGIN_ALLOW_THREADS
;
6264 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6266 wxPy_END_ALLOW_THREADS
;
6267 if (PyErr_Occurred()) return NULL
;
6268 } Py_INCREF(Py_None
);
6269 _resultobj
= Py_None
;
6272 o
= PyInt_FromLong((long) (*_arg1
));
6273 _resultobj
= t_output_helper(_resultobj
, o
);
6277 o
= PyInt_FromLong((long) (*_arg2
));
6278 _resultobj
= t_output_helper(_resultobj
, o
);
6283 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6284 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6285 PyObject
* _resultobj
;
6287 wxScrolledWindow
* _arg0
;
6288 PyObject
* _argo0
= 0;
6289 char *_kwnames
[] = { "self", NULL
};
6292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6302 wxPy_BEGIN_ALLOW_THREADS
;
6303 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6305 wxPy_END_ALLOW_THREADS
;
6306 if (PyErr_Occurred()) return NULL
;
6307 } _resultobj
= Py_BuildValue("i",_result
);
6311 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6312 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6313 PyObject
* _resultobj
;
6314 wxScrolledWindow
* _arg0
;
6316 PyObject
* _argo0
= 0;
6317 PyObject
* _argo1
= 0;
6318 char *_kwnames
[] = { "self","dc", NULL
};
6321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6331 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6332 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6338 wxPy_BEGIN_ALLOW_THREADS
;
6339 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6341 wxPy_END_ALLOW_THREADS
;
6342 if (PyErr_Occurred()) return NULL
;
6343 } Py_INCREF(Py_None
);
6344 _resultobj
= Py_None
;
6348 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6349 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6350 PyObject
* _resultobj
;
6351 wxScrolledWindow
* _arg0
;
6354 PyObject
* _argo0
= 0;
6355 char *_kwnames
[] = { "self","x","y", NULL
};
6358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6368 wxPy_BEGIN_ALLOW_THREADS
;
6369 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6371 wxPy_END_ALLOW_THREADS
;
6372 if (PyErr_Occurred()) return NULL
;
6373 } Py_INCREF(Py_None
);
6374 _resultobj
= Py_None
;
6378 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6379 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6380 PyObject
* _resultobj
;
6381 wxScrolledWindow
* _arg0
;
6386 int _arg5
= (int ) 0;
6387 int _arg6
= (int ) 0;
6388 int _arg7
= (int ) FALSE
;
6389 PyObject
* _argo0
= 0;
6390 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6396 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6397 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6398 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6403 wxPy_BEGIN_ALLOW_THREADS
;
6404 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6406 wxPy_END_ALLOW_THREADS
;
6407 if (PyErr_Occurred()) return NULL
;
6408 } Py_INCREF(Py_None
);
6409 _resultobj
= Py_None
;
6413 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6414 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6415 PyObject
* _resultobj
;
6416 wxScrolledWindow
* _arg0
;
6419 PyObject
* _argo0
= 0;
6420 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6433 wxPy_BEGIN_ALLOW_THREADS
;
6434 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6436 wxPy_END_ALLOW_THREADS
;
6437 if (PyErr_Occurred()) return NULL
;
6438 } Py_INCREF(Py_None
);
6439 _resultobj
= Py_None
;
6443 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6444 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6445 PyObject
* _resultobj
;
6446 wxScrolledWindow
* _arg0
;
6448 PyObject
* _argo0
= 0;
6449 PyObject
* _argo1
= 0;
6450 char *_kwnames
[] = { "self","window", NULL
};
6453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6463 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6464 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6470 wxPy_BEGIN_ALLOW_THREADS
;
6471 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6473 wxPy_END_ALLOW_THREADS
;
6474 if (PyErr_Occurred()) return NULL
;
6475 } Py_INCREF(Py_None
);
6476 _resultobj
= Py_None
;
6480 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6481 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6482 PyObject
* _resultobj
;
6483 wxScrolledWindow
* _arg0
;
6488 PyObject
* _argo0
= 0;
6489 char *_kwnames
[] = { "self", NULL
};
6498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6508 wxPy_BEGIN_ALLOW_THREADS
;
6509 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6511 wxPy_END_ALLOW_THREADS
;
6512 if (PyErr_Occurred()) return NULL
;
6513 } Py_INCREF(Py_None
);
6514 _resultobj
= Py_None
;
6517 o
= PyInt_FromLong((long) (*_arg1
));
6518 _resultobj
= t_output_helper(_resultobj
, o
);
6522 o
= PyInt_FromLong((long) (*_arg2
));
6523 _resultobj
= t_output_helper(_resultobj
, o
);
6528 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6529 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6530 PyObject
* _resultobj
;
6531 wxScrolledWindow
* _arg0
;
6538 PyObject
* _argo0
= 0;
6539 char *_kwnames
[] = { "self","x","y", NULL
};
6548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6558 wxPy_BEGIN_ALLOW_THREADS
;
6559 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6561 wxPy_END_ALLOW_THREADS
;
6562 if (PyErr_Occurred()) return NULL
;
6563 } Py_INCREF(Py_None
);
6564 _resultobj
= Py_None
;
6567 o
= PyInt_FromLong((long) (*_arg3
));
6568 _resultobj
= t_output_helper(_resultobj
, o
);
6572 o
= PyInt_FromLong((long) (*_arg4
));
6573 _resultobj
= t_output_helper(_resultobj
, o
);
6578 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6579 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6580 PyObject
* _resultobj
;
6581 wxScrolledWindow
* _arg0
;
6588 PyObject
* _argo0
= 0;
6589 char *_kwnames
[] = { "self","x","y", NULL
};
6598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6608 wxPy_BEGIN_ALLOW_THREADS
;
6609 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6611 wxPy_END_ALLOW_THREADS
;
6612 if (PyErr_Occurred()) return NULL
;
6613 } Py_INCREF(Py_None
);
6614 _resultobj
= Py_None
;
6617 o
= PyInt_FromLong((long) (*_arg3
));
6618 _resultobj
= t_output_helper(_resultobj
, o
);
6622 o
= PyInt_FromLong((long) (*_arg4
));
6623 _resultobj
= t_output_helper(_resultobj
, o
);
6628 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6629 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6630 PyObject
* _resultobj
;
6631 wxScrolledWindow
* _arg0
;
6634 PyObject
* _argo0
= 0;
6635 char *_kwnames
[] = { "self","xs","ys", NULL
};
6638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6648 wxPy_BEGIN_ALLOW_THREADS
;
6649 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6651 wxPy_END_ALLOW_THREADS
;
6652 if (PyErr_Occurred()) return NULL
;
6653 } Py_INCREF(Py_None
);
6654 _resultobj
= Py_None
;
6658 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6659 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6660 PyObject
* _resultobj
;
6662 wxScrolledWindow
* _arg0
;
6663 PyObject
* _argo0
= 0;
6664 char *_kwnames
[] = { "self", NULL
};
6667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6677 wxPy_BEGIN_ALLOW_THREADS
;
6678 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6680 wxPy_END_ALLOW_THREADS
;
6681 if (PyErr_Occurred()) return NULL
;
6682 } _resultobj
= Py_BuildValue("d",_result
);
6686 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6687 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6688 PyObject
* _resultobj
;
6690 wxScrolledWindow
* _arg0
;
6691 PyObject
* _argo0
= 0;
6692 char *_kwnames
[] = { "self", NULL
};
6695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6705 wxPy_BEGIN_ALLOW_THREADS
;
6706 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6708 wxPy_END_ALLOW_THREADS
;
6709 if (PyErr_Occurred()) return NULL
;
6710 } _resultobj
= Py_BuildValue("d",_result
);
6714 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6715 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6716 PyObject
* _resultobj
;
6717 wxScrolledWindow
* _arg0
;
6718 PyObject
* _argo0
= 0;
6719 char *_kwnames
[] = { "self", NULL
};
6722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6732 wxPy_BEGIN_ALLOW_THREADS
;
6733 wxScrolledWindow_AdjustScrollbars(_arg0
);
6735 wxPy_END_ALLOW_THREADS
;
6736 if (PyErr_Occurred()) return NULL
;
6737 } Py_INCREF(Py_None
);
6738 _resultobj
= Py_None
;
6742 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6745 src
= (wxMenu
*) ptr
;
6746 dest
= (wxEvtHandler
*) src
;
6747 return (void *) dest
;
6750 static void *SwigwxMenuTowxObject(void *ptr
) {
6753 src
= (wxMenu
*) ptr
;
6754 dest
= (wxObject
*) src
;
6755 return (void *) dest
;
6758 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6759 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6760 PyObject
* _resultobj
;
6762 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6763 long _arg1
= (long ) 0;
6764 PyObject
* _obj0
= 0;
6765 char *_kwnames
[] = { "title","style", NULL
};
6769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6773 #if PYTHON_API_VERSION >= 1009
6774 char* tmpPtr
; int tmpSize
;
6775 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6776 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6779 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6781 _arg0
= new wxString(tmpPtr
, tmpSize
);
6783 if (!PyString_Check(_obj0
)) {
6784 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6787 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6791 wxPy_BEGIN_ALLOW_THREADS
;
6792 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6794 wxPy_END_ALLOW_THREADS
;
6795 if (PyErr_Occurred()) return NULL
;
6797 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6798 _resultobj
= Py_BuildValue("s",_ptemp
);
6801 _resultobj
= Py_None
;
6810 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6811 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6812 PyObject
* _resultobj
;
6816 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6817 int _arg4
= (int ) FALSE
;
6818 PyObject
* _argo0
= 0;
6819 PyObject
* _obj2
= 0;
6820 PyObject
* _obj3
= 0;
6821 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6834 #if PYTHON_API_VERSION >= 1009
6835 char* tmpPtr
; int tmpSize
;
6836 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6837 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6840 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6842 _arg2
= new wxString(tmpPtr
, tmpSize
);
6844 if (!PyString_Check(_obj2
)) {
6845 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6848 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6853 #if PYTHON_API_VERSION >= 1009
6854 char* tmpPtr
; int tmpSize
;
6855 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6856 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6859 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6861 _arg3
= new wxString(tmpPtr
, tmpSize
);
6863 if (!PyString_Check(_obj3
)) {
6864 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6867 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
6871 wxPy_BEGIN_ALLOW_THREADS
;
6872 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
6874 wxPy_END_ALLOW_THREADS
;
6875 if (PyErr_Occurred()) return NULL
;
6876 } Py_INCREF(Py_None
);
6877 _resultobj
= Py_None
;
6889 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6890 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6891 PyObject
* _resultobj
;
6896 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
6897 PyObject
* _argo0
= 0;
6898 PyObject
* _obj2
= 0;
6899 PyObject
* _argo3
= 0;
6900 PyObject
* _obj4
= 0;
6901 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
6904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
6907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6914 #if PYTHON_API_VERSION >= 1009
6915 char* tmpPtr
; int tmpSize
;
6916 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6917 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6920 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6922 _arg2
= new wxString(tmpPtr
, tmpSize
);
6924 if (!PyString_Check(_obj2
)) {
6925 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6928 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6932 if (_argo3
== Py_None
) { _arg3
= NULL
; }
6933 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
6934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6940 #if PYTHON_API_VERSION >= 1009
6941 char* tmpPtr
; int tmpSize
;
6942 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
6943 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6946 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
6948 _arg4
= new wxString(tmpPtr
, tmpSize
);
6950 if (!PyString_Check(_obj4
)) {
6951 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6954 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
6958 wxPy_BEGIN_ALLOW_THREADS
;
6959 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
6961 wxPy_END_ALLOW_THREADS
;
6962 if (PyErr_Occurred()) return NULL
;
6963 } Py_INCREF(Py_None
);
6964 _resultobj
= Py_None
;
6976 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
6977 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6978 PyObject
* _resultobj
;
6981 PyObject
* _argo0
= 0;
6982 PyObject
* _argo1
= 0;
6983 char *_kwnames
[] = { "self","item", NULL
};
6986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
6989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
6996 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6997 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
6998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7003 wxPy_BEGIN_ALLOW_THREADS
;
7004 wxMenu_AppendItem(_arg0
,_arg1
);
7006 wxPy_END_ALLOW_THREADS
;
7007 if (PyErr_Occurred()) return NULL
;
7008 } Py_INCREF(Py_None
);
7009 _resultobj
= Py_None
;
7013 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7014 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7015 PyObject
* _resultobj
;
7017 PyObject
* _argo0
= 0;
7018 char *_kwnames
[] = { "self", NULL
};
7021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7031 wxPy_BEGIN_ALLOW_THREADS
;
7032 wxMenu_AppendSeparator(_arg0
);
7034 wxPy_END_ALLOW_THREADS
;
7035 if (PyErr_Occurred()) return NULL
;
7036 } Py_INCREF(Py_None
);
7037 _resultobj
= Py_None
;
7041 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7042 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7043 PyObject
* _resultobj
;
7045 PyObject
* _argo0
= 0;
7046 char *_kwnames
[] = { "self", NULL
};
7049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7059 wxPy_BEGIN_ALLOW_THREADS
;
7060 wxMenu_Break(_arg0
);
7062 wxPy_END_ALLOW_THREADS
;
7063 if (PyErr_Occurred()) return NULL
;
7064 } Py_INCREF(Py_None
);
7065 _resultobj
= Py_None
;
7069 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7070 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7071 PyObject
* _resultobj
;
7075 PyObject
* _argo0
= 0;
7077 char *_kwnames
[] = { "self","id","flag", NULL
};
7080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7089 _arg2
= (bool ) tempbool2
;
7091 wxPy_BEGIN_ALLOW_THREADS
;
7092 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7094 wxPy_END_ALLOW_THREADS
;
7095 if (PyErr_Occurred()) return NULL
;
7096 } Py_INCREF(Py_None
);
7097 _resultobj
= Py_None
;
7101 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7102 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7103 PyObject
* _resultobj
;
7107 PyObject
* _argo0
= 0;
7108 char *_kwnames
[] = { "self","id", NULL
};
7111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7121 wxPy_BEGIN_ALLOW_THREADS
;
7122 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7124 wxPy_END_ALLOW_THREADS
;
7125 if (PyErr_Occurred()) return NULL
;
7126 } _resultobj
= Py_BuildValue("i",_result
);
7130 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7131 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7132 PyObject
* _resultobj
;
7136 PyObject
* _argo0
= 0;
7138 char *_kwnames
[] = { "self","id","enable", NULL
};
7141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7150 _arg2
= (bool ) tempbool2
;
7152 wxPy_BEGIN_ALLOW_THREADS
;
7153 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7155 wxPy_END_ALLOW_THREADS
;
7156 if (PyErr_Occurred()) return NULL
;
7157 } Py_INCREF(Py_None
);
7158 _resultobj
= Py_None
;
7162 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7163 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7164 PyObject
* _resultobj
;
7168 PyObject
* _argo0
= 0;
7169 char *_kwnames
[] = { "self","id", NULL
};
7172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7182 wxPy_BEGIN_ALLOW_THREADS
;
7183 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7185 wxPy_END_ALLOW_THREADS
;
7186 if (PyErr_Occurred()) return NULL
;
7187 } _resultobj
= Py_BuildValue("i",_result
);
7191 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7192 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7193 PyObject
* _resultobj
;
7197 PyObject
* _argo0
= 0;
7198 PyObject
* _obj1
= 0;
7199 char *_kwnames
[] = { "self","itemString", NULL
};
7202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7212 #if PYTHON_API_VERSION >= 1009
7213 char* tmpPtr
; int tmpSize
;
7214 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7215 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7218 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7220 _arg1
= new wxString(tmpPtr
, tmpSize
);
7222 if (!PyString_Check(_obj1
)) {
7223 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7226 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7230 wxPy_BEGIN_ALLOW_THREADS
;
7231 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7233 wxPy_END_ALLOW_THREADS
;
7234 if (PyErr_Occurred()) return NULL
;
7235 } _resultobj
= Py_BuildValue("i",_result
);
7243 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7244 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7245 PyObject
* _resultobj
;
7246 wxMenuItem
* _result
;
7249 PyObject
* _argo0
= 0;
7250 char *_kwnames
[] = { "self","id", NULL
};
7253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7263 wxPy_BEGIN_ALLOW_THREADS
;
7264 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7266 wxPy_END_ALLOW_THREADS
;
7267 if (PyErr_Occurred()) return NULL
;
7268 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7272 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7273 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7274 PyObject
* _resultobj
;
7277 PyObject
* _argo0
= 0;
7278 char *_kwnames
[] = { "self", NULL
};
7281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7291 wxPy_BEGIN_ALLOW_THREADS
;
7292 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7294 wxPy_END_ALLOW_THREADS
;
7295 if (PyErr_Occurred()) return NULL
;
7297 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7305 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7306 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7307 PyObject
* _resultobj
;
7310 PyObject
* _argo0
= 0;
7311 PyObject
* _obj1
= 0;
7312 char *_kwnames
[] = { "self","title", NULL
};
7315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7325 #if PYTHON_API_VERSION >= 1009
7326 char* tmpPtr
; int tmpSize
;
7327 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7328 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7331 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7333 _arg1
= new wxString(tmpPtr
, tmpSize
);
7335 if (!PyString_Check(_obj1
)) {
7336 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7339 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7343 wxPy_BEGIN_ALLOW_THREADS
;
7344 wxMenu_SetTitle(_arg0
,*_arg1
);
7346 wxPy_END_ALLOW_THREADS
;
7347 if (PyErr_Occurred()) return NULL
;
7348 } Py_INCREF(Py_None
);
7349 _resultobj
= Py_None
;
7357 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7358 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7359 PyObject
* _resultobj
;
7363 PyObject
* _argo0
= 0;
7364 char *_kwnames
[] = { "self","id", NULL
};
7367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7377 wxPy_BEGIN_ALLOW_THREADS
;
7378 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7380 wxPy_END_ALLOW_THREADS
;
7381 if (PyErr_Occurred()) return NULL
;
7383 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7391 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7392 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7393 PyObject
* _resultobj
;
7397 PyObject
* _argo0
= 0;
7398 PyObject
* _obj2
= 0;
7399 char *_kwnames
[] = { "self","id","label", NULL
};
7402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7412 #if PYTHON_API_VERSION >= 1009
7413 char* tmpPtr
; int tmpSize
;
7414 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7415 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7418 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7420 _arg2
= new wxString(tmpPtr
, tmpSize
);
7422 if (!PyString_Check(_obj2
)) {
7423 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7426 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7430 wxPy_BEGIN_ALLOW_THREADS
;
7431 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7433 wxPy_END_ALLOW_THREADS
;
7434 if (PyErr_Occurred()) return NULL
;
7435 } Py_INCREF(Py_None
);
7436 _resultobj
= Py_None
;
7444 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7445 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7446 PyObject
* _resultobj
;
7450 PyObject
* _argo0
= 0;
7451 char *_kwnames
[] = { "self","id", NULL
};
7454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7464 wxPy_BEGIN_ALLOW_THREADS
;
7465 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7467 wxPy_END_ALLOW_THREADS
;
7468 if (PyErr_Occurred()) return NULL
;
7470 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7478 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7479 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7480 PyObject
* _resultobj
;
7484 PyObject
* _argo0
= 0;
7485 PyObject
* _obj2
= 0;
7486 char *_kwnames
[] = { "self","id","helpString", NULL
};
7489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7499 #if PYTHON_API_VERSION >= 1009
7500 char* tmpPtr
; int tmpSize
;
7501 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7502 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7505 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7507 _arg2
= new wxString(tmpPtr
, tmpSize
);
7509 if (!PyString_Check(_obj2
)) {
7510 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7513 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7517 wxPy_BEGIN_ALLOW_THREADS
;
7518 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7520 wxPy_END_ALLOW_THREADS
;
7521 if (PyErr_Occurred()) return NULL
;
7522 } Py_INCREF(Py_None
);
7523 _resultobj
= Py_None
;
7531 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7532 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7533 PyObject
* _resultobj
;
7535 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7536 PyObject
* _argo0
= 0;
7537 PyObject
* _argo1
= 0;
7538 char *_kwnames
[] = { "self","source", NULL
};
7541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7551 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7552 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7558 wxPy_BEGIN_ALLOW_THREADS
;
7559 wxMenu_UpdateUI(_arg0
,_arg1
);
7561 wxPy_END_ALLOW_THREADS
;
7562 if (PyErr_Occurred()) return NULL
;
7563 } Py_INCREF(Py_None
);
7564 _resultobj
= Py_None
;
7568 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7569 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7570 PyObject
* _resultobj
;
7574 PyObject
* _argo0
= 0;
7575 char *_kwnames
[] = { "self","id", NULL
};
7578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7588 wxPy_BEGIN_ALLOW_THREADS
;
7589 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7591 wxPy_END_ALLOW_THREADS
;
7592 if (PyErr_Occurred()) return NULL
;
7593 } _resultobj
= Py_BuildValue("i",_result
);
7597 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7598 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7599 PyObject
* _resultobj
;
7603 PyObject
* _argo0
= 0;
7604 PyObject
* _argo1
= 0;
7605 char *_kwnames
[] = { "self","item", NULL
};
7608 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7611 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7612 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7613 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7618 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7619 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7625 wxPy_BEGIN_ALLOW_THREADS
;
7626 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7628 wxPy_END_ALLOW_THREADS
;
7629 if (PyErr_Occurred()) return NULL
;
7630 } _resultobj
= Py_BuildValue("i",_result
);
7634 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7635 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7636 PyObject
* _resultobj
;
7641 PyObject
* _argo0
= 0;
7642 PyObject
* _argo2
= 0;
7643 char *_kwnames
[] = { "self","pos","item", NULL
};
7646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7656 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7657 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7663 wxPy_BEGIN_ALLOW_THREADS
;
7664 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7666 wxPy_END_ALLOW_THREADS
;
7667 if (PyErr_Occurred()) return NULL
;
7668 } _resultobj
= Py_BuildValue("i",_result
);
7672 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7673 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7674 PyObject
* _resultobj
;
7675 wxMenuItem
* _result
;
7678 PyObject
* _argo0
= 0;
7679 char *_kwnames
[] = { "self","id", NULL
};
7682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7692 wxPy_BEGIN_ALLOW_THREADS
;
7693 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7695 wxPy_END_ALLOW_THREADS
;
7696 if (PyErr_Occurred()) return NULL
;
7697 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7701 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7702 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7703 PyObject
* _resultobj
;
7704 wxMenuItem
* _result
;
7707 PyObject
* _argo0
= 0;
7708 PyObject
* _argo1
= 0;
7709 char *_kwnames
[] = { "self","item", NULL
};
7712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7722 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7723 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7729 wxPy_BEGIN_ALLOW_THREADS
;
7730 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7732 wxPy_END_ALLOW_THREADS
;
7733 if (PyErr_Occurred()) return NULL
;
7734 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7738 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7739 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7740 PyObject
* _resultobj
;
7742 PyObject
* _argo0
= 0;
7743 char *_kwnames
[] = { "self", NULL
};
7746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7756 wxPy_BEGIN_ALLOW_THREADS
;
7757 wxMenu_Destroy(_arg0
);
7759 wxPy_END_ALLOW_THREADS
;
7760 if (PyErr_Occurred()) return NULL
;
7761 } Py_INCREF(Py_None
);
7762 _resultobj
= Py_None
;
7766 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7767 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7768 PyObject
* _resultobj
;
7772 PyObject
* _argo0
= 0;
7773 char *_kwnames
[] = { "self","id", NULL
};
7776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7786 wxPy_BEGIN_ALLOW_THREADS
;
7787 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7789 wxPy_END_ALLOW_THREADS
;
7790 if (PyErr_Occurred()) return NULL
;
7791 } _resultobj
= Py_BuildValue("i",_result
);
7795 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7796 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7797 PyObject
* _resultobj
;
7801 PyObject
* _argo0
= 0;
7802 PyObject
* _argo1
= 0;
7803 char *_kwnames
[] = { "self","item", NULL
};
7806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7816 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7817 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7823 wxPy_BEGIN_ALLOW_THREADS
;
7824 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7826 wxPy_END_ALLOW_THREADS
;
7827 if (PyErr_Occurred()) return NULL
;
7828 } _resultobj
= Py_BuildValue("i",_result
);
7832 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7833 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7834 PyObject
* _resultobj
;
7837 PyObject
* _argo0
= 0;
7838 char *_kwnames
[] = { "self", NULL
};
7841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7851 wxPy_BEGIN_ALLOW_THREADS
;
7852 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7854 wxPy_END_ALLOW_THREADS
;
7855 if (PyErr_Occurred()) return NULL
;
7856 } _resultobj
= Py_BuildValue("i",_result
);
7860 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7861 wxMenuItemList
& list
= self
->GetMenuItems();
7862 return wxPy_ConvertList(&list
, "wxMenuItem");
7864 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7865 PyObject
* _resultobj
;
7868 PyObject
* _argo0
= 0;
7869 char *_kwnames
[] = { "self", NULL
};
7872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
7875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7882 wxPy_BEGIN_ALLOW_THREADS
;
7883 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
7885 wxPy_END_ALLOW_THREADS
;
7886 if (PyErr_Occurred()) return NULL
;
7888 _resultobj
= _result
;
7893 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7894 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7895 PyObject
* _resultobj
;
7897 wxEvtHandler
* _arg1
;
7898 PyObject
* _argo0
= 0;
7899 PyObject
* _argo1
= 0;
7900 char *_kwnames
[] = { "self","handler", NULL
};
7903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
7906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7913 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7914 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7920 wxPy_BEGIN_ALLOW_THREADS
;
7921 wxMenu_SetEventHandler(_arg0
,_arg1
);
7923 wxPy_END_ALLOW_THREADS
;
7924 if (PyErr_Occurred()) return NULL
;
7925 } Py_INCREF(Py_None
);
7926 _resultobj
= Py_None
;
7930 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
7931 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7932 PyObject
* _resultobj
;
7933 wxEvtHandler
* _result
;
7935 PyObject
* _argo0
= 0;
7936 char *_kwnames
[] = { "self", NULL
};
7939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
7942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
7949 wxPy_BEGIN_ALLOW_THREADS
;
7950 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
7952 wxPy_END_ALLOW_THREADS
;
7953 if (PyErr_Occurred()) return NULL
;
7954 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7958 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
7959 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7960 PyObject
* _resultobj
;
7963 PyObject
* _argo0
= 0;
7964 PyObject
* _argo1
= 0;
7965 char *_kwnames
[] = { "self","win", NULL
};
7968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
7971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
7978 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7979 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
7985 wxPy_BEGIN_ALLOW_THREADS
;
7986 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
7988 wxPy_END_ALLOW_THREADS
;
7989 if (PyErr_Occurred()) return NULL
;
7990 } Py_INCREF(Py_None
);
7991 _resultobj
= Py_None
;
7995 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
7996 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7997 PyObject
* _resultobj
;
8000 PyObject
* _argo0
= 0;
8001 char *_kwnames
[] = { "self", NULL
};
8004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8014 wxPy_BEGIN_ALLOW_THREADS
;
8015 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8017 wxPy_END_ALLOW_THREADS
;
8018 if (PyErr_Occurred()) return NULL
;
8019 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8023 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8024 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8025 PyObject
* _resultobj
;
8028 PyObject
* _argo0
= 0;
8029 char *_kwnames
[] = { "self", NULL
};
8032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8042 wxPy_BEGIN_ALLOW_THREADS
;
8043 _result
= (long )wxMenu_GetStyle(_arg0
);
8045 wxPy_END_ALLOW_THREADS
;
8046 if (PyErr_Occurred()) return NULL
;
8047 } _resultobj
= Py_BuildValue("l",_result
);
8051 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8052 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8053 PyObject
* _resultobj
;
8056 PyObject
* _argo0
= 0;
8057 char *_kwnames
[] = { "self", NULL
};
8060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8070 wxPy_BEGIN_ALLOW_THREADS
;
8071 _result
= (bool )wxMenu_IsAttached(_arg0
);
8073 wxPy_END_ALLOW_THREADS
;
8074 if (PyErr_Occurred()) return NULL
;
8075 } _resultobj
= Py_BuildValue("i",_result
);
8079 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8080 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8081 PyObject
* _resultobj
;
8084 PyObject
* _argo0
= 0;
8085 PyObject
* _argo1
= 0;
8086 char *_kwnames
[] = { "self","parent", NULL
};
8089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8099 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8100 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8106 wxPy_BEGIN_ALLOW_THREADS
;
8107 wxMenu_SetParent(_arg0
,_arg1
);
8109 wxPy_END_ALLOW_THREADS
;
8110 if (PyErr_Occurred()) return NULL
;
8111 } Py_INCREF(Py_None
);
8112 _resultobj
= Py_None
;
8116 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8117 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8118 PyObject
* _resultobj
;
8121 PyObject
* _argo0
= 0;
8122 char *_kwnames
[] = { "self", NULL
};
8125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8135 wxPy_BEGIN_ALLOW_THREADS
;
8136 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8138 wxPy_END_ALLOW_THREADS
;
8139 if (PyErr_Occurred()) return NULL
;
8140 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8144 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8147 src
= (wxMenuBar
*) ptr
;
8148 dest
= (wxWindow
*) src
;
8149 return (void *) dest
;
8152 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8155 src
= (wxMenuBar
*) ptr
;
8156 dest
= (wxEvtHandler
*) src
;
8157 return (void *) dest
;
8160 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8163 src
= (wxMenuBar
*) ptr
;
8164 dest
= (wxObject
*) src
;
8165 return (void *) dest
;
8168 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8169 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8170 PyObject
* _resultobj
;
8171 wxMenuBar
* _result
;
8172 long _arg0
= (long ) 0;
8173 char *_kwnames
[] = { "style", NULL
};
8177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8180 wxPy_BEGIN_ALLOW_THREADS
;
8181 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8183 wxPy_END_ALLOW_THREADS
;
8184 if (PyErr_Occurred()) return NULL
;
8186 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8187 _resultobj
= Py_BuildValue("s",_ptemp
);
8190 _resultobj
= Py_None
;
8195 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8196 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8197 PyObject
* _resultobj
;
8202 PyObject
* _argo0
= 0;
8203 PyObject
* _argo1
= 0;
8204 PyObject
* _obj2
= 0;
8205 char *_kwnames
[] = { "self","menu","title", NULL
};
8208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8218 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8219 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8225 #if PYTHON_API_VERSION >= 1009
8226 char* tmpPtr
; int tmpSize
;
8227 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8228 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8231 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8233 _arg2
= new wxString(tmpPtr
, tmpSize
);
8235 if (!PyString_Check(_obj2
)) {
8236 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8239 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8243 wxPy_BEGIN_ALLOW_THREADS
;
8244 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8246 wxPy_END_ALLOW_THREADS
;
8247 if (PyErr_Occurred()) return NULL
;
8248 } _resultobj
= Py_BuildValue("i",_result
);
8256 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8257 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8258 PyObject
* _resultobj
;
8264 PyObject
* _argo0
= 0;
8265 PyObject
* _argo2
= 0;
8266 PyObject
* _obj3
= 0;
8267 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8280 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8281 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8287 #if PYTHON_API_VERSION >= 1009
8288 char* tmpPtr
; int tmpSize
;
8289 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8290 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8293 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8295 _arg3
= new wxString(tmpPtr
, tmpSize
);
8297 if (!PyString_Check(_obj3
)) {
8298 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8301 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8305 wxPy_BEGIN_ALLOW_THREADS
;
8306 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8308 wxPy_END_ALLOW_THREADS
;
8309 if (PyErr_Occurred()) return NULL
;
8310 } _resultobj
= Py_BuildValue("i",_result
);
8318 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8319 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8320 PyObject
* _resultobj
;
8323 PyObject
* _argo0
= 0;
8324 char *_kwnames
[] = { "self", NULL
};
8327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8337 wxPy_BEGIN_ALLOW_THREADS
;
8338 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8340 wxPy_END_ALLOW_THREADS
;
8341 if (PyErr_Occurred()) return NULL
;
8342 } _resultobj
= Py_BuildValue("i",_result
);
8346 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8347 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8348 PyObject
* _resultobj
;
8352 PyObject
* _argo0
= 0;
8353 char *_kwnames
[] = { "self","pos", NULL
};
8356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8366 wxPy_BEGIN_ALLOW_THREADS
;
8367 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8369 wxPy_END_ALLOW_THREADS
;
8370 if (PyErr_Occurred()) return NULL
;
8371 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8375 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8376 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8377 PyObject
* _resultobj
;
8383 PyObject
* _argo0
= 0;
8384 PyObject
* _argo2
= 0;
8385 PyObject
* _obj3
= 0;
8386 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8399 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8400 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8406 #if PYTHON_API_VERSION >= 1009
8407 char* tmpPtr
; int tmpSize
;
8408 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8409 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8412 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8414 _arg3
= new wxString(tmpPtr
, tmpSize
);
8416 if (!PyString_Check(_obj3
)) {
8417 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8420 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8424 wxPy_BEGIN_ALLOW_THREADS
;
8425 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8427 wxPy_END_ALLOW_THREADS
;
8428 if (PyErr_Occurred()) return NULL
;
8429 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8437 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8438 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8439 PyObject
* _resultobj
;
8443 PyObject
* _argo0
= 0;
8444 char *_kwnames
[] = { "self","pos", NULL
};
8447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8457 wxPy_BEGIN_ALLOW_THREADS
;
8458 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8460 wxPy_END_ALLOW_THREADS
;
8461 if (PyErr_Occurred()) return NULL
;
8462 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8466 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8467 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8468 PyObject
* _resultobj
;
8472 PyObject
* _argo0
= 0;
8474 char *_kwnames
[] = { "self","pos","enable", NULL
};
8477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8486 _arg2
= (bool ) tempbool2
;
8488 wxPy_BEGIN_ALLOW_THREADS
;
8489 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8491 wxPy_END_ALLOW_THREADS
;
8492 if (PyErr_Occurred()) return NULL
;
8493 } Py_INCREF(Py_None
);
8494 _resultobj
= Py_None
;
8498 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8499 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8500 PyObject
* _resultobj
;
8504 PyObject
* _argo0
= 0;
8505 PyObject
* _obj2
= 0;
8506 char *_kwnames
[] = { "self","pos","label", NULL
};
8509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8519 #if PYTHON_API_VERSION >= 1009
8520 char* tmpPtr
; int tmpSize
;
8521 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8522 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8525 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8527 _arg2
= new wxString(tmpPtr
, tmpSize
);
8529 if (!PyString_Check(_obj2
)) {
8530 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8533 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8537 wxPy_BEGIN_ALLOW_THREADS
;
8538 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8540 wxPy_END_ALLOW_THREADS
;
8541 if (PyErr_Occurred()) return NULL
;
8542 } Py_INCREF(Py_None
);
8543 _resultobj
= Py_None
;
8551 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8552 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8553 PyObject
* _resultobj
;
8557 PyObject
* _argo0
= 0;
8558 char *_kwnames
[] = { "self","pos", NULL
};
8561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8571 wxPy_BEGIN_ALLOW_THREADS
;
8572 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8574 wxPy_END_ALLOW_THREADS
;
8575 if (PyErr_Occurred()) return NULL
;
8577 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8585 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8586 static PyObject
*_wrap_wxMenuBar_FindMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8587 PyObject
* _resultobj
;
8591 PyObject
* _argo0
= 0;
8592 PyObject
* _obj1
= 0;
8593 char *_kwnames
[] = { "self","title", NULL
};
8596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuBar_FindMenu",_kwnames
,&_argo0
,&_obj1
))
8599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8606 #if PYTHON_API_VERSION >= 1009
8607 char* tmpPtr
; int tmpSize
;
8608 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8609 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8612 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8614 _arg1
= new wxString(tmpPtr
, tmpSize
);
8616 if (!PyString_Check(_obj1
)) {
8617 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8620 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8624 wxPy_BEGIN_ALLOW_THREADS
;
8625 _result
= (int )wxMenuBar_FindMenu(_arg0
,*_arg1
);
8627 wxPy_END_ALLOW_THREADS
;
8628 if (PyErr_Occurred()) return NULL
;
8629 } _resultobj
= Py_BuildValue("i",_result
);
8637 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8638 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8639 PyObject
* _resultobj
;
8644 PyObject
* _argo0
= 0;
8645 PyObject
* _obj1
= 0;
8646 PyObject
* _obj2
= 0;
8647 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8660 #if PYTHON_API_VERSION >= 1009
8661 char* tmpPtr
; int tmpSize
;
8662 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8663 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8666 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8668 _arg1
= new wxString(tmpPtr
, tmpSize
);
8670 if (!PyString_Check(_obj1
)) {
8671 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8674 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8678 #if PYTHON_API_VERSION >= 1009
8679 char* tmpPtr
; int tmpSize
;
8680 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8681 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8684 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8686 _arg2
= new wxString(tmpPtr
, tmpSize
);
8688 if (!PyString_Check(_obj2
)) {
8689 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8692 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8696 wxPy_BEGIN_ALLOW_THREADS
;
8697 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8699 wxPy_END_ALLOW_THREADS
;
8700 if (PyErr_Occurred()) return NULL
;
8701 } _resultobj
= Py_BuildValue("i",_result
);
8713 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8714 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8715 PyObject
* _resultobj
;
8716 wxMenuItem
* _result
;
8719 PyObject
* _argo0
= 0;
8720 char *_kwnames
[] = { "self","id", NULL
};
8723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8733 wxPy_BEGIN_ALLOW_THREADS
;
8734 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8736 wxPy_END_ALLOW_THREADS
;
8737 if (PyErr_Occurred()) return NULL
;
8738 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8742 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8743 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8744 PyObject
* _resultobj
;
8748 PyObject
* _argo0
= 0;
8750 char *_kwnames
[] = { "self","id","enable", NULL
};
8753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8762 _arg2
= (bool ) tempbool2
;
8764 wxPy_BEGIN_ALLOW_THREADS
;
8765 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8767 wxPy_END_ALLOW_THREADS
;
8768 if (PyErr_Occurred()) return NULL
;
8769 } Py_INCREF(Py_None
);
8770 _resultobj
= Py_None
;
8774 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8775 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8776 PyObject
* _resultobj
;
8780 PyObject
* _argo0
= 0;
8782 char *_kwnames
[] = { "self","id","check", NULL
};
8785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8794 _arg2
= (bool ) tempbool2
;
8796 wxPy_BEGIN_ALLOW_THREADS
;
8797 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8799 wxPy_END_ALLOW_THREADS
;
8800 if (PyErr_Occurred()) return NULL
;
8801 } Py_INCREF(Py_None
);
8802 _resultobj
= Py_None
;
8806 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8807 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8808 PyObject
* _resultobj
;
8812 PyObject
* _argo0
= 0;
8813 char *_kwnames
[] = { "self","id", NULL
};
8816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8826 wxPy_BEGIN_ALLOW_THREADS
;
8827 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8829 wxPy_END_ALLOW_THREADS
;
8830 if (PyErr_Occurred()) return NULL
;
8831 } _resultobj
= Py_BuildValue("i",_result
);
8835 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8836 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8837 PyObject
* _resultobj
;
8841 PyObject
* _argo0
= 0;
8842 char *_kwnames
[] = { "self","id", NULL
};
8845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8855 wxPy_BEGIN_ALLOW_THREADS
;
8856 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8858 wxPy_END_ALLOW_THREADS
;
8859 if (PyErr_Occurred()) return NULL
;
8860 } _resultobj
= Py_BuildValue("i",_result
);
8864 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8865 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8866 PyObject
* _resultobj
;
8870 PyObject
* _argo0
= 0;
8871 PyObject
* _obj2
= 0;
8872 char *_kwnames
[] = { "self","id","label", NULL
};
8875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8885 #if PYTHON_API_VERSION >= 1009
8886 char* tmpPtr
; int tmpSize
;
8887 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8888 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8891 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8893 _arg2
= new wxString(tmpPtr
, tmpSize
);
8895 if (!PyString_Check(_obj2
)) {
8896 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8899 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8903 wxPy_BEGIN_ALLOW_THREADS
;
8904 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
8906 wxPy_END_ALLOW_THREADS
;
8907 if (PyErr_Occurred()) return NULL
;
8908 } Py_INCREF(Py_None
);
8909 _resultobj
= Py_None
;
8917 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8918 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8919 PyObject
* _resultobj
;
8923 PyObject
* _argo0
= 0;
8924 char *_kwnames
[] = { "self","id", NULL
};
8927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
8930 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8931 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8932 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
8937 wxPy_BEGIN_ALLOW_THREADS
;
8938 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
8940 wxPy_END_ALLOW_THREADS
;
8941 if (PyErr_Occurred()) return NULL
;
8943 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8951 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
8952 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8953 PyObject
* _resultobj
;
8957 PyObject
* _argo0
= 0;
8958 PyObject
* _obj2
= 0;
8959 char *_kwnames
[] = { "self","id","helpString", NULL
};
8962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
8972 #if PYTHON_API_VERSION >= 1009
8973 char* tmpPtr
; int tmpSize
;
8974 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8975 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8978 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8980 _arg2
= new wxString(tmpPtr
, tmpSize
);
8982 if (!PyString_Check(_obj2
)) {
8983 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8986 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8990 wxPy_BEGIN_ALLOW_THREADS
;
8991 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
8993 wxPy_END_ALLOW_THREADS
;
8994 if (PyErr_Occurred()) return NULL
;
8995 } Py_INCREF(Py_None
);
8996 _resultobj
= Py_None
;
9004 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9005 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9006 PyObject
* _resultobj
;
9010 PyObject
* _argo0
= 0;
9011 char *_kwnames
[] = { "self","id", NULL
};
9014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9024 wxPy_BEGIN_ALLOW_THREADS
;
9025 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9027 wxPy_END_ALLOW_THREADS
;
9028 if (PyErr_Occurred()) return NULL
;
9030 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9038 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9041 src
= (wxMenuItem
*) ptr
;
9042 dest
= (wxObject
*) src
;
9043 return (void *) dest
;
9046 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9047 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9048 PyObject
* _resultobj
;
9049 wxMenuItem
* _result
;
9050 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9051 int _arg1
= (int ) wxID_SEPARATOR
;
9052 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9053 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9054 bool _arg4
= (bool ) FALSE
;
9055 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9056 PyObject
* _argo0
= 0;
9057 PyObject
* _obj2
= 0;
9058 PyObject
* _obj3
= 0;
9059 int tempbool4
= (int) FALSE
;
9060 PyObject
* _argo5
= 0;
9061 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9068 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9069 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9076 #if PYTHON_API_VERSION >= 1009
9077 char* tmpPtr
; int tmpSize
;
9078 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9079 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9082 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9084 _arg2
= new wxString(tmpPtr
, tmpSize
);
9086 if (!PyString_Check(_obj2
)) {
9087 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9090 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9095 #if PYTHON_API_VERSION >= 1009
9096 char* tmpPtr
; int tmpSize
;
9097 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9098 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9101 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9103 _arg3
= new wxString(tmpPtr
, tmpSize
);
9105 if (!PyString_Check(_obj3
)) {
9106 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9109 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9112 _arg4
= (bool ) tempbool4
;
9114 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9115 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9121 wxPy_BEGIN_ALLOW_THREADS
;
9122 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9124 wxPy_END_ALLOW_THREADS
;
9125 if (PyErr_Occurred()) return NULL
;
9127 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9128 _resultobj
= Py_BuildValue("s",_ptemp
);
9131 _resultobj
= Py_None
;
9144 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9145 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9146 PyObject
* _resultobj
;
9149 PyObject
* _argo0
= 0;
9150 char *_kwnames
[] = { "self", NULL
};
9153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9163 wxPy_BEGIN_ALLOW_THREADS
;
9164 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9166 wxPy_END_ALLOW_THREADS
;
9167 if (PyErr_Occurred()) return NULL
;
9168 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9172 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9173 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9174 PyObject
* _resultobj
;
9177 PyObject
* _argo0
= 0;
9178 char *_kwnames
[] = { "self","id", NULL
};
9181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9191 wxPy_BEGIN_ALLOW_THREADS
;
9192 wxMenuItem_SetId(_arg0
,_arg1
);
9194 wxPy_END_ALLOW_THREADS
;
9195 if (PyErr_Occurred()) return NULL
;
9196 } Py_INCREF(Py_None
);
9197 _resultobj
= Py_None
;
9201 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9202 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9203 PyObject
* _resultobj
;
9206 PyObject
* _argo0
= 0;
9207 char *_kwnames
[] = { "self", NULL
};
9210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9220 wxPy_BEGIN_ALLOW_THREADS
;
9221 _result
= (int )wxMenuItem_GetId(_arg0
);
9223 wxPy_END_ALLOW_THREADS
;
9224 if (PyErr_Occurred()) return NULL
;
9225 } _resultobj
= Py_BuildValue("i",_result
);
9229 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9230 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9231 PyObject
* _resultobj
;
9234 PyObject
* _argo0
= 0;
9235 char *_kwnames
[] = { "self", NULL
};
9238 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9241 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9242 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9248 wxPy_BEGIN_ALLOW_THREADS
;
9249 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9251 wxPy_END_ALLOW_THREADS
;
9252 if (PyErr_Occurred()) return NULL
;
9253 } _resultobj
= Py_BuildValue("i",_result
);
9257 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9258 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9259 PyObject
* _resultobj
;
9262 PyObject
* _argo0
= 0;
9263 PyObject
* _obj1
= 0;
9264 char *_kwnames
[] = { "self","str", NULL
};
9267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9277 #if PYTHON_API_VERSION >= 1009
9278 char* tmpPtr
; int tmpSize
;
9279 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9280 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9283 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9285 _arg1
= new wxString(tmpPtr
, tmpSize
);
9287 if (!PyString_Check(_obj1
)) {
9288 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9291 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9295 wxPy_BEGIN_ALLOW_THREADS
;
9296 wxMenuItem_SetText(_arg0
,*_arg1
);
9298 wxPy_END_ALLOW_THREADS
;
9299 if (PyErr_Occurred()) return NULL
;
9300 } Py_INCREF(Py_None
);
9301 _resultobj
= Py_None
;
9309 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9310 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9311 PyObject
* _resultobj
;
9314 PyObject
* _argo0
= 0;
9315 char *_kwnames
[] = { "self", NULL
};
9318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9328 wxPy_BEGIN_ALLOW_THREADS
;
9329 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9331 wxPy_END_ALLOW_THREADS
;
9332 if (PyErr_Occurred()) return NULL
;
9334 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9342 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9343 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9344 PyObject
* _resultobj
;
9347 PyObject
* _argo0
= 0;
9348 char *_kwnames
[] = { "self", NULL
};
9351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9361 wxPy_BEGIN_ALLOW_THREADS
;
9362 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9363 _result
= (wxString
*) &_result_ref
;
9365 wxPy_END_ALLOW_THREADS
;
9366 if (PyErr_Occurred()) return NULL
;
9368 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9373 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9374 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9375 PyObject
* _resultobj
;
9378 PyObject
* _argo0
= 0;
9380 char *_kwnames
[] = { "self","checkable", NULL
};
9383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9392 _arg1
= (bool ) tempbool1
;
9394 wxPy_BEGIN_ALLOW_THREADS
;
9395 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9397 wxPy_END_ALLOW_THREADS
;
9398 if (PyErr_Occurred()) return NULL
;
9399 } Py_INCREF(Py_None
);
9400 _resultobj
= Py_None
;
9404 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9405 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9406 PyObject
* _resultobj
;
9409 PyObject
* _argo0
= 0;
9410 char *_kwnames
[] = { "self", NULL
};
9413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9423 wxPy_BEGIN_ALLOW_THREADS
;
9424 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9426 wxPy_END_ALLOW_THREADS
;
9427 if (PyErr_Occurred()) return NULL
;
9428 } _resultobj
= Py_BuildValue("i",_result
);
9432 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9433 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9434 PyObject
* _resultobj
;
9437 PyObject
* _argo0
= 0;
9438 char *_kwnames
[] = { "self", NULL
};
9441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9451 wxPy_BEGIN_ALLOW_THREADS
;
9452 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9454 wxPy_END_ALLOW_THREADS
;
9455 if (PyErr_Occurred()) return NULL
;
9456 } _resultobj
= Py_BuildValue("i",_result
);
9460 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9461 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9462 PyObject
* _resultobj
;
9465 PyObject
* _argo0
= 0;
9466 PyObject
* _argo1
= 0;
9467 char *_kwnames
[] = { "self","menu", NULL
};
9470 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9473 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9474 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9480 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9481 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9487 wxPy_BEGIN_ALLOW_THREADS
;
9488 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9490 wxPy_END_ALLOW_THREADS
;
9491 if (PyErr_Occurred()) return NULL
;
9492 } Py_INCREF(Py_None
);
9493 _resultobj
= Py_None
;
9497 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9498 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9499 PyObject
* _resultobj
;
9502 PyObject
* _argo0
= 0;
9503 char *_kwnames
[] = { "self", NULL
};
9506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9516 wxPy_BEGIN_ALLOW_THREADS
;
9517 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9519 wxPy_END_ALLOW_THREADS
;
9520 if (PyErr_Occurred()) return NULL
;
9521 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9525 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9526 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9527 PyObject
* _resultobj
;
9529 bool _arg1
= (bool ) TRUE
;
9530 PyObject
* _argo0
= 0;
9531 int tempbool1
= (int) TRUE
;
9532 char *_kwnames
[] = { "self","enable", NULL
};
9535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9544 _arg1
= (bool ) tempbool1
;
9546 wxPy_BEGIN_ALLOW_THREADS
;
9547 wxMenuItem_Enable(_arg0
,_arg1
);
9549 wxPy_END_ALLOW_THREADS
;
9550 if (PyErr_Occurred()) return NULL
;
9551 } Py_INCREF(Py_None
);
9552 _resultobj
= Py_None
;
9556 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9557 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9558 PyObject
* _resultobj
;
9561 PyObject
* _argo0
= 0;
9562 char *_kwnames
[] = { "self", NULL
};
9565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9575 wxPy_BEGIN_ALLOW_THREADS
;
9576 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9578 wxPy_END_ALLOW_THREADS
;
9579 if (PyErr_Occurred()) return NULL
;
9580 } _resultobj
= Py_BuildValue("i",_result
);
9584 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9585 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9586 PyObject
* _resultobj
;
9588 bool _arg1
= (bool ) TRUE
;
9589 PyObject
* _argo0
= 0;
9590 int tempbool1
= (int) TRUE
;
9591 char *_kwnames
[] = { "self","check", NULL
};
9594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9603 _arg1
= (bool ) tempbool1
;
9605 wxPy_BEGIN_ALLOW_THREADS
;
9606 wxMenuItem_Check(_arg0
,_arg1
);
9608 wxPy_END_ALLOW_THREADS
;
9609 if (PyErr_Occurred()) return NULL
;
9610 } Py_INCREF(Py_None
);
9611 _resultobj
= Py_None
;
9615 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9616 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9617 PyObject
* _resultobj
;
9620 PyObject
* _argo0
= 0;
9621 char *_kwnames
[] = { "self", NULL
};
9624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9634 wxPy_BEGIN_ALLOW_THREADS
;
9635 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9637 wxPy_END_ALLOW_THREADS
;
9638 if (PyErr_Occurred()) return NULL
;
9639 } _resultobj
= Py_BuildValue("i",_result
);
9643 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9644 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9645 PyObject
* _resultobj
;
9647 PyObject
* _argo0
= 0;
9648 char *_kwnames
[] = { "self", NULL
};
9651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9661 wxPy_BEGIN_ALLOW_THREADS
;
9662 wxMenuItem_Toggle(_arg0
);
9664 wxPy_END_ALLOW_THREADS
;
9665 if (PyErr_Occurred()) return NULL
;
9666 } Py_INCREF(Py_None
);
9667 _resultobj
= Py_None
;
9671 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9672 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9673 PyObject
* _resultobj
;
9676 PyObject
* _argo0
= 0;
9677 PyObject
* _obj1
= 0;
9678 char *_kwnames
[] = { "self","str", NULL
};
9681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9691 #if PYTHON_API_VERSION >= 1009
9692 char* tmpPtr
; int tmpSize
;
9693 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9694 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9697 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9699 _arg1
= new wxString(tmpPtr
, tmpSize
);
9701 if (!PyString_Check(_obj1
)) {
9702 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9705 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9709 wxPy_BEGIN_ALLOW_THREADS
;
9710 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9712 wxPy_END_ALLOW_THREADS
;
9713 if (PyErr_Occurred()) return NULL
;
9714 } Py_INCREF(Py_None
);
9715 _resultobj
= Py_None
;
9723 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9724 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9725 PyObject
* _resultobj
;
9728 PyObject
* _argo0
= 0;
9729 char *_kwnames
[] = { "self", NULL
};
9732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9742 wxPy_BEGIN_ALLOW_THREADS
;
9743 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9744 _result
= (wxString
*) &_result_ref
;
9746 wxPy_END_ALLOW_THREADS
;
9747 if (PyErr_Occurred()) return NULL
;
9749 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9754 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9755 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9756 PyObject
* _resultobj
;
9757 wxAcceleratorEntry
* _result
;
9759 PyObject
* _argo0
= 0;
9760 char *_kwnames
[] = { "self", NULL
};
9764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9774 wxPy_BEGIN_ALLOW_THREADS
;
9775 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9777 wxPy_END_ALLOW_THREADS
;
9778 if (PyErr_Occurred()) return NULL
;
9780 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9781 _resultobj
= Py_BuildValue("s",_ptemp
);
9784 _resultobj
= Py_None
;
9789 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9790 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9791 PyObject
* _resultobj
;
9793 wxAcceleratorEntry
* _arg1
;
9794 PyObject
* _argo0
= 0;
9795 PyObject
* _argo1
= 0;
9796 char *_kwnames
[] = { "self","accel", NULL
};
9799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9809 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9810 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9816 wxPy_BEGIN_ALLOW_THREADS
;
9817 wxMenuItem_SetAccel(_arg0
,_arg1
);
9819 wxPy_END_ALLOW_THREADS
;
9820 if (PyErr_Occurred()) return NULL
;
9821 } Py_INCREF(Py_None
);
9822 _resultobj
= Py_None
;
9826 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9827 PyObject
* _resultobj
;
9830 PyObject
* _obj0
= 0;
9831 char *_kwnames
[] = { "text", NULL
};
9834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9837 #if PYTHON_API_VERSION >= 1009
9838 char* tmpPtr
; int tmpSize
;
9839 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9840 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9843 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9845 _arg0
= new wxString(tmpPtr
, tmpSize
);
9847 if (!PyString_Check(_obj0
)) {
9848 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9851 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9855 wxPy_BEGIN_ALLOW_THREADS
;
9856 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9858 wxPy_END_ALLOW_THREADS
;
9859 if (PyErr_Occurred()) return NULL
;
9861 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9873 static PyMethodDef windowscMethods
[] = {
9874 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
9875 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9876 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9877 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9878 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9879 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
9880 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9881 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
9882 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9883 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9884 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9885 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9886 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9887 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9888 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9889 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
9890 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9891 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
9892 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
9893 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
9894 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
9895 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9896 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9897 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9898 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9899 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9900 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9901 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9902 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9903 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
9904 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9905 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
9906 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9907 { "wxMenuBar_FindMenu", (PyCFunction
) _wrap_wxMenuBar_FindMenu
, METH_VARARGS
| METH_KEYWORDS
},
9908 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9909 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9910 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
9911 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9912 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9913 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9914 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
9915 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9916 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
9917 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
9918 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
9919 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
9920 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
9921 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9922 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9923 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9924 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9925 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9926 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
9927 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
9928 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
9929 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
9930 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
9931 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
9932 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9933 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9934 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
9935 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
9936 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
9937 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9938 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9939 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9940 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9941 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9942 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
9943 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
9944 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
9945 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9946 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9947 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9948 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
9949 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
9950 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
9951 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
9952 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
9953 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
9954 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
9955 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
9956 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
9957 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
9958 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
9959 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
9960 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
9961 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
9962 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
9963 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
9964 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
9965 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
9966 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
9967 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
9968 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
9969 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
9970 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
9971 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
9972 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
9973 { "wxScrolledWindow_Create", (PyCFunction
) _wrap_wxScrolledWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
9974 { "new_wxPreScrolledWindow", (PyCFunction
) _wrap_new_wxPreScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
9975 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
9976 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
9977 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
9978 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
9979 { "wxPanel_Create", (PyCFunction
) _wrap_wxPanel_Create
, METH_VARARGS
| METH_KEYWORDS
},
9980 { "new_wxPrePanel", (PyCFunction
) _wrap_new_wxPrePanel
, METH_VARARGS
| METH_KEYWORDS
},
9981 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
9982 { "wxWindow_GetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_GetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
9983 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
9984 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
9985 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
9986 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
9987 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
9988 { "wxWindow_PageDown", (PyCFunction
) _wrap_wxWindow_PageDown
, METH_VARARGS
| METH_KEYWORDS
},
9989 { "wxWindow_PageUp", (PyCFunction
) _wrap_wxWindow_PageUp
, METH_VARARGS
| METH_KEYWORDS
},
9990 { "wxWindow_LineDown", (PyCFunction
) _wrap_wxWindow_LineDown
, METH_VARARGS
| METH_KEYWORDS
},
9991 { "wxWindow_LineUp", (PyCFunction
) _wrap_wxWindow_LineUp
, METH_VARARGS
| METH_KEYWORDS
},
9992 { "wxWindow_ScrollPages", (PyCFunction
) _wrap_wxWindow_ScrollPages
, METH_VARARGS
| METH_KEYWORDS
},
9993 { "wxWindow_ScrollLines", (PyCFunction
) _wrap_wxWindow_ScrollLines
, METH_VARARGS
| METH_KEYWORDS
},
9994 { "wxWindow_SetHelpText", (PyCFunction
) _wrap_wxWindow_SetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
9995 { "wxWindow_GetHelpText", (PyCFunction
) _wrap_wxWindow_GetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
9996 { "wxWindow_Update", (PyCFunction
) _wrap_wxWindow_Update
, METH_VARARGS
| METH_KEYWORDS
},
9997 { "wxWindow_Thaw", (PyCFunction
) _wrap_wxWindow_Thaw
, METH_VARARGS
| METH_KEYWORDS
},
9998 { "wxWindow_Freeze", (PyCFunction
) _wrap_wxWindow_Freeze
, METH_VARARGS
| METH_KEYWORDS
},
9999 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10000 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10001 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10002 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10003 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10004 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10005 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10006 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10007 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10008 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10009 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10010 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10011 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10012 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10013 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10014 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10015 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10016 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10017 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10018 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10019 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10020 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10021 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10022 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10023 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10024 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10025 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10026 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10027 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10028 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10029 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10030 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10031 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10032 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10033 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10034 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10035 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10036 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10037 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10038 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10039 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10040 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10041 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10042 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10043 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10044 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10045 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10046 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10047 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10048 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10049 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10050 { "wxWindow_RefreshRect", (PyCFunction
) _wrap_wxWindow_RefreshRect
, METH_VARARGS
| METH_KEYWORDS
},
10051 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10052 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10053 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10054 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10055 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10056 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10057 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10058 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10059 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10060 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10061 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10062 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10063 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10064 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10065 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10066 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10067 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10068 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10069 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10070 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10071 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10072 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10073 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10074 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10075 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10076 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10077 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10078 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10079 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10080 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10081 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10082 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10083 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10084 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10085 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10086 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10087 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10088 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10089 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10090 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10091 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10092 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10093 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10094 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10095 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10096 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10097 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10098 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10099 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10100 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10101 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10102 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10103 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10104 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10105 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10106 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10107 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10108 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10109 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10110 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10111 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10112 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10113 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10114 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10115 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10116 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10117 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10118 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10119 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10120 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10121 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10122 { "wxWindow_Create", (PyCFunction
) _wrap_wxWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10123 { "new_wxPreWindow", (PyCFunction
) _wrap_new_wxPreWindow
, METH_VARARGS
| METH_KEYWORDS
},
10124 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10125 { "wxPyValidator__setCallbackInfo", (PyCFunction
) _wrap_wxPyValidator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
10126 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10127 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10128 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10129 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10130 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10131 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10132 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10133 { "wxEvtHandler__setOORInfo", (PyCFunction
) _wrap_wxEvtHandler__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
10134 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10135 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10136 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10137 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10138 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10139 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10140 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10141 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10142 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10143 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10144 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10151 * This table is used by the pointer type-checker
10153 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10154 { "_signed_long","_long",0},
10155 { "_wxPrintQuality","_wxCoord",0},
10156 { "_wxPrintQuality","_int",0},
10157 { "_wxPrintQuality","_signed_int",0},
10158 { "_wxPrintQuality","_unsigned_int",0},
10159 { "_wxPrintQuality","_wxWindowID",0},
10160 { "_wxPrintQuality","_uint",0},
10161 { "_wxPrintQuality","_EBool",0},
10162 { "_wxPrintQuality","_size_t",0},
10163 { "_wxPrintQuality","_time_t",0},
10164 { "_byte","_unsigned_char",0},
10165 { "_long","_unsigned_long",0},
10166 { "_long","_signed_long",0},
10167 { "_size_t","_wxCoord",0},
10168 { "_size_t","_wxPrintQuality",0},
10169 { "_size_t","_time_t",0},
10170 { "_size_t","_unsigned_int",0},
10171 { "_size_t","_int",0},
10172 { "_size_t","_wxWindowID",0},
10173 { "_size_t","_uint",0},
10174 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10175 { "_uint","_wxCoord",0},
10176 { "_uint","_wxPrintQuality",0},
10177 { "_uint","_time_t",0},
10178 { "_uint","_size_t",0},
10179 { "_uint","_unsigned_int",0},
10180 { "_uint","_int",0},
10181 { "_uint","_wxWindowID",0},
10182 { "_wxChar","_char",0},
10183 { "_char","_wxChar",0},
10184 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10185 { "_EBool","_wxCoord",0},
10186 { "_EBool","_wxPrintQuality",0},
10187 { "_EBool","_signed_int",0},
10188 { "_EBool","_int",0},
10189 { "_EBool","_wxWindowID",0},
10190 { "_unsigned_long","_long",0},
10191 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10192 { "_signed_int","_wxCoord",0},
10193 { "_signed_int","_wxPrintQuality",0},
10194 { "_signed_int","_EBool",0},
10195 { "_signed_int","_wxWindowID",0},
10196 { "_signed_int","_int",0},
10197 { "_WXTYPE","_short",0},
10198 { "_WXTYPE","_signed_short",0},
10199 { "_WXTYPE","_unsigned_short",0},
10200 { "_unsigned_short","_WXTYPE",0},
10201 { "_unsigned_short","_short",0},
10202 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10203 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10204 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10205 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10206 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10207 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10208 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10209 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10210 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10211 { "_signed_short","_WXTYPE",0},
10212 { "_signed_short","_short",0},
10213 { "_unsigned_char","_byte",0},
10214 { "_unsigned_int","_wxCoord",0},
10215 { "_unsigned_int","_wxPrintQuality",0},
10216 { "_unsigned_int","_time_t",0},
10217 { "_unsigned_int","_size_t",0},
10218 { "_unsigned_int","_uint",0},
10219 { "_unsigned_int","_wxWindowID",0},
10220 { "_unsigned_int","_int",0},
10221 { "_short","_WXTYPE",0},
10222 { "_short","_unsigned_short",0},
10223 { "_short","_signed_short",0},
10224 { "_wxWindowID","_wxCoord",0},
10225 { "_wxWindowID","_wxPrintQuality",0},
10226 { "_wxWindowID","_time_t",0},
10227 { "_wxWindowID","_size_t",0},
10228 { "_wxWindowID","_EBool",0},
10229 { "_wxWindowID","_uint",0},
10230 { "_wxWindowID","_int",0},
10231 { "_wxWindowID","_signed_int",0},
10232 { "_wxWindowID","_unsigned_int",0},
10233 { "_int","_wxCoord",0},
10234 { "_int","_wxPrintQuality",0},
10235 { "_int","_time_t",0},
10236 { "_int","_size_t",0},
10237 { "_int","_EBool",0},
10238 { "_int","_uint",0},
10239 { "_int","_wxWindowID",0},
10240 { "_int","_unsigned_int",0},
10241 { "_int","_signed_int",0},
10242 { "_time_t","_wxCoord",0},
10243 { "_time_t","_wxPrintQuality",0},
10244 { "_time_t","_unsigned_int",0},
10245 { "_time_t","_int",0},
10246 { "_time_t","_wxWindowID",0},
10247 { "_time_t","_uint",0},
10248 { "_time_t","_size_t",0},
10249 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10250 { "_wxCoord","_int",0},
10251 { "_wxCoord","_signed_int",0},
10252 { "_wxCoord","_unsigned_int",0},
10253 { "_wxCoord","_wxWindowID",0},
10254 { "_wxCoord","_uint",0},
10255 { "_wxCoord","_EBool",0},
10256 { "_wxCoord","_size_t",0},
10257 { "_wxCoord","_time_t",0},
10258 { "_wxCoord","_wxPrintQuality",0},
10259 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10260 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10261 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10262 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10263 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10264 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10265 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10266 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10267 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10268 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10271 static PyObject
*SWIG_globals
;
10275 SWIGEXPORT(void) initwindowsc() {
10277 SWIG_globals
= SWIG_newvarlink();
10278 m
= Py_InitModule("windowsc", windowscMethods
);
10279 d
= PyModule_GetDict(m
);
10282 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10283 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);