2 * FILE : src/gtk/windows.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initwindowsc
56 #define SWIG_name "windowsc"
59 #include <wx/menuitem.h>
60 #include <wx/tooltip.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "String type required";
95 static wxString
wxPyEmptyStr("");
97 class wxPyValidator
: public wxValidator
{
98 DECLARE_DYNAMIC_CLASS(wxPyValidator
);
106 wxObject
* Clone() const {
107 wxPyValidator
* ptr
= NULL
;
108 wxPyValidator
* self
= (wxPyValidator
*)this;
110 wxPyTState
* state
= wxPyBeginBlockThreads();
111 if (self
->m_myInst
.findCallback("Clone")) {
113 ro
= self
->m_myInst
.callCallbackObj(Py_BuildValue("()"));
115 SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxPyValidator_p");
119 wxPyEndBlockThreads(state
);
121 // This is very dangerous!!! But is the only way I could find
122 // to squash a memory leak. Currently it is okay, but if the
123 // validator architecture in wxWindows ever changes, problems
130 DEC_PYCALLBACK_BOOL_WXWIN(Validate
);
131 DEC_PYCALLBACK_BOOL_(TransferToWindow
);
132 DEC_PYCALLBACK_BOOL_(TransferFromWindow
);
137 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator
, wxValidator
, Validate
);
138 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferToWindow
);
139 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferFromWindow
);
141 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator
, wxValidator
);
146 static void *SwigwxEvtHandlerTowxObject(void *ptr
) {
149 src
= (wxEvtHandler
*) ptr
;
150 dest
= (wxObject
*) src
;
151 return (void *) dest
;
154 #define new_wxEvtHandler() (new wxEvtHandler())
155 static PyObject
*_wrap_new_wxEvtHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
156 PyObject
* _resultobj
;
157 wxEvtHandler
* _result
;
158 char *_kwnames
[] = { NULL
};
162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEvtHandler",_kwnames
))
165 wxPy_BEGIN_ALLOW_THREADS
;
166 _result
= (wxEvtHandler
*)new_wxEvtHandler();
168 wxPy_END_ALLOW_THREADS
;
169 if (PyErr_Occurred()) return NULL
;
171 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxEvtHandler_p");
172 _resultobj
= Py_BuildValue("s",_ptemp
);
175 _resultobj
= Py_None
;
180 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
181 static PyObject
*_wrap_wxEvtHandler_ProcessEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
182 PyObject
* _resultobj
;
184 wxEvtHandler
* _arg0
;
186 PyObject
* _argo0
= 0;
187 PyObject
* _argo1
= 0;
188 char *_kwnames
[] = { "self","event", NULL
};
191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_ProcessEvent",_kwnames
,&_argo0
,&_argo1
))
194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
201 if (_argo1
== Py_None
) { _arg1
= NULL
; }
202 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
208 wxPy_BEGIN_ALLOW_THREADS
;
209 _result
= (bool )wxEvtHandler_ProcessEvent(_arg0
,*_arg1
);
211 wxPy_END_ALLOW_THREADS
;
212 if (PyErr_Occurred()) return NULL
;
213 } _resultobj
= Py_BuildValue("i",_result
);
217 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
218 static PyObject
*_wrap_wxEvtHandler_AddPendingEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
219 PyObject
* _resultobj
;
220 wxEvtHandler
* _arg0
;
222 PyObject
* _argo0
= 0;
223 PyObject
* _argo1
= 0;
224 char *_kwnames
[] = { "self","event", NULL
};
227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_AddPendingEvent",_kwnames
,&_argo0
,&_argo1
))
230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
237 if (_argo1
== Py_None
) { _arg1
= NULL
; }
238 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
244 wxPy_BEGIN_ALLOW_THREADS
;
245 wxEvtHandler_AddPendingEvent(_arg0
,*_arg1
);
247 wxPy_END_ALLOW_THREADS
;
248 if (PyErr_Occurred()) return NULL
;
249 } Py_INCREF(Py_None
);
250 _resultobj
= Py_None
;
254 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
255 static PyObject
*_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
256 PyObject
* _resultobj
;
258 wxEvtHandler
* _arg0
;
259 PyObject
* _argo0
= 0;
260 char *_kwnames
[] = { "self", NULL
};
263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames
,&_argo0
))
266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
273 wxPy_BEGIN_ALLOW_THREADS
;
274 _result
= (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0
);
276 wxPy_END_ALLOW_THREADS
;
277 if (PyErr_Occurred()) return NULL
;
278 } _resultobj
= Py_BuildValue("i",_result
);
282 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
283 static PyObject
*_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
284 PyObject
* _resultobj
;
285 wxEvtHandler
* _arg0
;
287 PyObject
* _argo0
= 0;
289 char *_kwnames
[] = { "self","enabled", NULL
};
292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames
,&_argo0
,&tempbool1
))
295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
301 _arg1
= (bool ) tempbool1
;
303 wxPy_BEGIN_ALLOW_THREADS
;
304 wxEvtHandler_SetEvtHandlerEnabled(_arg0
,_arg1
);
306 wxPy_END_ALLOW_THREADS
;
307 if (PyErr_Occurred()) return NULL
;
308 } Py_INCREF(Py_None
);
309 _resultobj
= Py_None
;
313 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
314 static PyObject
*_wrap_wxEvtHandler_GetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
315 PyObject
* _resultobj
;
316 wxEvtHandler
* _result
;
317 wxEvtHandler
* _arg0
;
318 PyObject
* _argo0
= 0;
319 char *_kwnames
[] = { "self", NULL
};
322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetNextHandler",_kwnames
,&_argo0
))
325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
332 wxPy_BEGIN_ALLOW_THREADS
;
333 _result
= (wxEvtHandler
*)wxEvtHandler_GetNextHandler(_arg0
);
335 wxPy_END_ALLOW_THREADS
;
336 if (PyErr_Occurred()) return NULL
;
337 }{ _resultobj
= wxPyMake_wxObject(_result
); }
341 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
342 static PyObject
*_wrap_wxEvtHandler_GetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
343 PyObject
* _resultobj
;
344 wxEvtHandler
* _result
;
345 wxEvtHandler
* _arg0
;
346 PyObject
* _argo0
= 0;
347 char *_kwnames
[] = { "self", NULL
};
350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetPreviousHandler",_kwnames
,&_argo0
))
353 if (_argo0
== Py_None
) { _arg0
= NULL
; }
354 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
355 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
360 wxPy_BEGIN_ALLOW_THREADS
;
361 _result
= (wxEvtHandler
*)wxEvtHandler_GetPreviousHandler(_arg0
);
363 wxPy_END_ALLOW_THREADS
;
364 if (PyErr_Occurred()) return NULL
;
365 }{ _resultobj
= wxPyMake_wxObject(_result
); }
369 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
370 static PyObject
*_wrap_wxEvtHandler_SetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
371 PyObject
* _resultobj
;
372 wxEvtHandler
* _arg0
;
373 wxEvtHandler
* _arg1
;
374 PyObject
* _argo0
= 0;
375 PyObject
* _argo1
= 0;
376 char *_kwnames
[] = { "self","handler", NULL
};
379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetNextHandler",_kwnames
,&_argo0
,&_argo1
))
382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
389 if (_argo1
== Py_None
) { _arg1
= NULL
; }
390 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
396 wxPy_BEGIN_ALLOW_THREADS
;
397 wxEvtHandler_SetNextHandler(_arg0
,_arg1
);
399 wxPy_END_ALLOW_THREADS
;
400 if (PyErr_Occurred()) return NULL
;
401 } Py_INCREF(Py_None
);
402 _resultobj
= Py_None
;
406 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
407 static PyObject
*_wrap_wxEvtHandler_SetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
408 PyObject
* _resultobj
;
409 wxEvtHandler
* _arg0
;
410 wxEvtHandler
* _arg1
;
411 PyObject
* _argo0
= 0;
412 PyObject
* _argo1
= 0;
413 char *_kwnames
[] = { "self","handler", NULL
};
416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetPreviousHandler",_kwnames
,&_argo0
,&_argo1
))
419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
426 if (_argo1
== Py_None
) { _arg1
= NULL
; }
427 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
433 wxPy_BEGIN_ALLOW_THREADS
;
434 wxEvtHandler_SetPreviousHandler(_arg0
,_arg1
);
436 wxPy_END_ALLOW_THREADS
;
437 if (PyErr_Occurred()) return NULL
;
438 } Py_INCREF(Py_None
);
439 _resultobj
= Py_None
;
443 static void wxEvtHandler_Connect(wxEvtHandler
*self
,int id
,int lastId
,int eventType
,PyObject
* func
) {
444 if (PyCallable_Check(func
)) {
445 self
->Connect(id
, lastId
, eventType
,
446 (wxObjectEventFunction
) &wxPyCallback::EventThunker
,
447 new wxPyCallback(func
));
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_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5081 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5082 PyObject
* _resultobj
;
5084 wxDropTarget
* _arg1
;
5085 PyObject
* _argo0
= 0;
5086 PyObject
* _argo1
= 0;
5087 char *_kwnames
[] = { "self","target", NULL
};
5090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
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_SetDropTarget. Expected _wxWindow_p.");
5100 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5101 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5102 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5107 wxPy_BEGIN_ALLOW_THREADS
;
5108 wxWindow_SetDropTarget(_arg0
,_arg1
);
5110 wxPy_END_ALLOW_THREADS
;
5111 if (PyErr_Occurred()) return NULL
;
5112 } Py_INCREF(Py_None
);
5113 _resultobj
= Py_None
;
5117 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5118 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5119 PyObject
* _resultobj
;
5120 wxDropTarget
* _result
;
5122 PyObject
* _argo0
= 0;
5123 char *_kwnames
[] = { "self", NULL
};
5127 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5130 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5131 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5132 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5137 wxPy_BEGIN_ALLOW_THREADS
;
5138 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5140 wxPy_END_ALLOW_THREADS
;
5141 if (PyErr_Occurred()) return NULL
;
5143 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5144 _resultobj
= Py_BuildValue("s",_ptemp
);
5147 _resultobj
= Py_None
;
5152 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5153 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5154 PyObject
* _resultobj
;
5157 PyObject
* _argo0
= 0;
5158 char *_kwnames
[] = { "self", NULL
};
5162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5172 wxPy_BEGIN_ALLOW_THREADS
;
5173 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5175 wxPy_END_ALLOW_THREADS
;
5176 if (PyErr_Occurred()) return NULL
;
5177 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5178 _resultobj
= Py_BuildValue("s",_ptemp
);
5182 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5183 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5184 PyObject
* _resultobj
;
5187 PyObject
* _argo0
= 0;
5188 PyObject
* _argo1
= 0;
5189 char *_kwnames
[] = { "self","caret", NULL
};
5192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5202 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5203 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5209 wxPy_BEGIN_ALLOW_THREADS
;
5210 wxWindow_SetCaret(_arg0
,_arg1
);
5212 wxPy_END_ALLOW_THREADS
;
5213 if (PyErr_Occurred()) return NULL
;
5214 } Py_INCREF(Py_None
);
5215 _resultobj
= Py_None
;
5219 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5220 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5221 PyObject
* _resultobj
;
5224 PyObject
* _argo0
= 0;
5225 char *_kwnames
[] = { "self", NULL
};
5229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5239 wxPy_BEGIN_ALLOW_THREADS
;
5240 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5242 wxPy_END_ALLOW_THREADS
;
5243 if (PyErr_Occurred()) return NULL
;
5245 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5246 _resultobj
= Py_BuildValue("s",_ptemp
);
5249 _resultobj
= Py_None
;
5254 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5255 static PyObject
*_wrap_wxWindow_Freeze(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5256 PyObject
* _resultobj
;
5258 PyObject
* _argo0
= 0;
5259 char *_kwnames
[] = { "self", NULL
};
5262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Freeze",_kwnames
,&_argo0
))
5265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5272 wxPy_BEGIN_ALLOW_THREADS
;
5273 wxWindow_Freeze(_arg0
);
5275 wxPy_END_ALLOW_THREADS
;
5276 if (PyErr_Occurred()) return NULL
;
5277 } Py_INCREF(Py_None
);
5278 _resultobj
= Py_None
;
5282 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5283 static PyObject
*_wrap_wxWindow_Thaw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5284 PyObject
* _resultobj
;
5286 PyObject
* _argo0
= 0;
5287 char *_kwnames
[] = { "self", NULL
};
5290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Thaw",_kwnames
,&_argo0
))
5293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5300 wxPy_BEGIN_ALLOW_THREADS
;
5301 wxWindow_Thaw(_arg0
);
5303 wxPy_END_ALLOW_THREADS
;
5304 if (PyErr_Occurred()) return NULL
;
5305 } Py_INCREF(Py_None
);
5306 _resultobj
= Py_None
;
5310 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5311 static PyObject
*_wrap_wxWindow_Update(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5312 PyObject
* _resultobj
;
5314 PyObject
* _argo0
= 0;
5315 char *_kwnames
[] = { "self", NULL
};
5318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Update",_kwnames
,&_argo0
))
5321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5328 wxPy_BEGIN_ALLOW_THREADS
;
5329 wxWindow_Update(_arg0
);
5331 wxPy_END_ALLOW_THREADS
;
5332 if (PyErr_Occurred()) return NULL
;
5333 } Py_INCREF(Py_None
);
5334 _resultobj
= Py_None
;
5338 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5339 static PyObject
*_wrap_wxWindow_GetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5340 PyObject
* _resultobj
;
5343 PyObject
* _argo0
= 0;
5344 char *_kwnames
[] = { "self", NULL
};
5347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHelpText",_kwnames
,&_argo0
))
5350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5357 wxPy_BEGIN_ALLOW_THREADS
;
5358 _result
= new wxString (wxWindow_GetHelpText(_arg0
));
5360 wxPy_END_ALLOW_THREADS
;
5361 if (PyErr_Occurred()) return NULL
;
5363 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5371 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5372 static PyObject
*_wrap_wxWindow_SetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5373 PyObject
* _resultobj
;
5376 PyObject
* _argo0
= 0;
5377 PyObject
* _obj1
= 0;
5378 char *_kwnames
[] = { "self","helpText", NULL
};
5381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpText",_kwnames
,&_argo0
,&_obj1
))
5384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5391 #if PYTHON_API_VERSION >= 1009
5392 char* tmpPtr
; int tmpSize
;
5393 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5394 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5397 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5399 _arg1
= new wxString(tmpPtr
, tmpSize
);
5401 if (!PyString_Check(_obj1
)) {
5402 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5405 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5409 wxPy_BEGIN_ALLOW_THREADS
;
5410 wxWindow_SetHelpText(_arg0
,*_arg1
);
5412 wxPy_END_ALLOW_THREADS
;
5413 if (PyErr_Occurred()) return NULL
;
5414 } Py_INCREF(Py_None
);
5415 _resultobj
= Py_None
;
5423 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5424 static PyObject
*_wrap_wxWindow_ScrollLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5425 PyObject
* _resultobj
;
5429 PyObject
* _argo0
= 0;
5430 char *_kwnames
[] = { "self","lines", NULL
};
5433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollLines",_kwnames
,&_argo0
,&_arg1
))
5436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5443 wxPy_BEGIN_ALLOW_THREADS
;
5444 _result
= (bool )wxWindow_ScrollLines(_arg0
,_arg1
);
5446 wxPy_END_ALLOW_THREADS
;
5447 if (PyErr_Occurred()) return NULL
;
5448 } _resultobj
= Py_BuildValue("i",_result
);
5452 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5453 static PyObject
*_wrap_wxWindow_ScrollPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5454 PyObject
* _resultobj
;
5458 PyObject
* _argo0
= 0;
5459 char *_kwnames
[] = { "self","pages", NULL
};
5462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollPages",_kwnames
,&_argo0
,&_arg1
))
5465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5472 wxPy_BEGIN_ALLOW_THREADS
;
5473 _result
= (bool )wxWindow_ScrollPages(_arg0
,_arg1
);
5475 wxPy_END_ALLOW_THREADS
;
5476 if (PyErr_Occurred()) return NULL
;
5477 } _resultobj
= Py_BuildValue("i",_result
);
5481 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5482 static PyObject
*_wrap_wxWindow_LineUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5483 PyObject
* _resultobj
;
5486 PyObject
* _argo0
= 0;
5487 char *_kwnames
[] = { "self", NULL
};
5490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineUp",_kwnames
,&_argo0
))
5493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5500 wxPy_BEGIN_ALLOW_THREADS
;
5501 _result
= (bool )wxWindow_LineUp(_arg0
);
5503 wxPy_END_ALLOW_THREADS
;
5504 if (PyErr_Occurred()) return NULL
;
5505 } _resultobj
= Py_BuildValue("i",_result
);
5509 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5510 static PyObject
*_wrap_wxWindow_LineDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5511 PyObject
* _resultobj
;
5514 PyObject
* _argo0
= 0;
5515 char *_kwnames
[] = { "self", NULL
};
5518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineDown",_kwnames
,&_argo0
))
5521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5528 wxPy_BEGIN_ALLOW_THREADS
;
5529 _result
= (bool )wxWindow_LineDown(_arg0
);
5531 wxPy_END_ALLOW_THREADS
;
5532 if (PyErr_Occurred()) return NULL
;
5533 } _resultobj
= Py_BuildValue("i",_result
);
5537 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5538 static PyObject
*_wrap_wxWindow_PageUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5539 PyObject
* _resultobj
;
5542 PyObject
* _argo0
= 0;
5543 char *_kwnames
[] = { "self", NULL
};
5546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageUp",_kwnames
,&_argo0
))
5549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5556 wxPy_BEGIN_ALLOW_THREADS
;
5557 _result
= (bool )wxWindow_PageUp(_arg0
);
5559 wxPy_END_ALLOW_THREADS
;
5560 if (PyErr_Occurred()) return NULL
;
5561 } _resultobj
= Py_BuildValue("i",_result
);
5565 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5566 static PyObject
*_wrap_wxWindow_PageDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5567 PyObject
* _resultobj
;
5570 PyObject
* _argo0
= 0;
5571 char *_kwnames
[] = { "self", NULL
};
5574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageDown",_kwnames
,&_argo0
))
5577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5584 wxPy_BEGIN_ALLOW_THREADS
;
5585 _result
= (bool )wxWindow_PageDown(_arg0
);
5587 wxPy_END_ALLOW_THREADS
;
5588 if (PyErr_Occurred()) return NULL
;
5589 } _resultobj
= Py_BuildValue("i",_result
);
5593 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5594 PyObject
* _resultobj
;
5596 char *_kwnames
[] = { NULL
};
5599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
5602 wxPy_BEGIN_ALLOW_THREADS
;
5603 _result
= (wxWindow
*)wxWindow::FindFocus();
5605 wxPy_END_ALLOW_THREADS
;
5606 if (PyErr_Occurred()) return NULL
;
5607 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5611 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5612 PyObject
* _resultobj
;
5614 char *_kwnames
[] = { NULL
};
5617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
5620 wxPy_BEGIN_ALLOW_THREADS
;
5621 _result
= (int )wxWindow::NewControlId();
5623 wxPy_END_ALLOW_THREADS
;
5624 if (PyErr_Occurred()) return NULL
;
5625 } _resultobj
= Py_BuildValue("i",_result
);
5629 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5630 PyObject
* _resultobj
;
5633 char *_kwnames
[] = { "id", NULL
};
5636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
5639 wxPy_BEGIN_ALLOW_THREADS
;
5640 _result
= (int )wxWindow::NextControlId(_arg0
);
5642 wxPy_END_ALLOW_THREADS
;
5643 if (PyErr_Occurred()) return NULL
;
5644 } _resultobj
= Py_BuildValue("i",_result
);
5648 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5649 PyObject
* _resultobj
;
5652 char *_kwnames
[] = { "id", NULL
};
5655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
5658 wxPy_BEGIN_ALLOW_THREADS
;
5659 _result
= (int )wxWindow::PrevControlId(_arg0
);
5661 wxPy_END_ALLOW_THREADS
;
5662 if (PyErr_Occurred()) return NULL
;
5663 } _resultobj
= Py_BuildValue("i",_result
);
5667 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5668 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5669 PyObject
* _resultobj
;
5671 wxAcceleratorTable
* _arg1
;
5672 PyObject
* _argo0
= 0;
5673 PyObject
* _argo1
= 0;
5674 char *_kwnames
[] = { "self","accel", NULL
};
5677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
5680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5687 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5688 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
5689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5694 wxPy_BEGIN_ALLOW_THREADS
;
5695 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
5697 wxPy_END_ALLOW_THREADS
;
5698 if (PyErr_Occurred()) return NULL
;
5699 } Py_INCREF(Py_None
);
5700 _resultobj
= Py_None
;
5704 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5705 static PyObject
*_wrap_wxWindow_GetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5706 PyObject
* _resultobj
;
5707 wxAcceleratorTable
* _result
;
5709 PyObject
* _argo0
= 0;
5710 char *_kwnames
[] = { "self", NULL
};
5714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAcceleratorTable",_kwnames
,&_argo0
))
5717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5724 wxPy_BEGIN_ALLOW_THREADS
;
5725 _result
= (wxAcceleratorTable
*)wxWindow_GetAcceleratorTable(_arg0
);
5727 wxPy_END_ALLOW_THREADS
;
5728 if (PyErr_Occurred()) return NULL
;
5730 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorTable_p");
5731 _resultobj
= Py_BuildValue("s",_ptemp
);
5734 _resultobj
= Py_None
;
5739 static void *SwigwxPanelTowxWindow(void *ptr
) {
5742 src
= (wxPanel
*) ptr
;
5743 dest
= (wxWindow
*) src
;
5744 return (void *) dest
;
5747 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5750 src
= (wxPanel
*) ptr
;
5751 dest
= (wxEvtHandler
*) src
;
5752 return (void *) dest
;
5755 static void *SwigwxPanelTowxObject(void *ptr
) {
5758 src
= (wxPanel
*) ptr
;
5759 dest
= (wxObject
*) src
;
5760 return (void *) dest
;
5763 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5764 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5765 PyObject
* _resultobj
;
5769 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5770 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5771 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5772 char * _arg5
= (char *) "panel";
5773 PyObject
* _argo0
= 0;
5775 PyObject
* _obj2
= 0;
5777 PyObject
* _obj3
= 0;
5778 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5785 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5786 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5794 if (! wxPoint_helper(_obj2
, &_arg2
))
5800 if (! wxSize_helper(_obj3
, &_arg3
))
5804 wxPy_BEGIN_ALLOW_THREADS
;
5805 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5807 wxPy_END_ALLOW_THREADS
;
5808 if (PyErr_Occurred()) return NULL
;
5810 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5811 _resultobj
= Py_BuildValue("s",_ptemp
);
5814 _resultobj
= Py_None
;
5819 #define new_wxPrePanel() (new wxPanel())
5820 static PyObject
*_wrap_new_wxPrePanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5821 PyObject
* _resultobj
;
5823 char *_kwnames
[] = { NULL
};
5827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrePanel",_kwnames
))
5830 wxPy_BEGIN_ALLOW_THREADS
;
5831 _result
= (wxPanel
*)new_wxPrePanel();
5833 wxPy_END_ALLOW_THREADS
;
5834 if (PyErr_Occurred()) return NULL
;
5836 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5837 _resultobj
= Py_BuildValue("s",_ptemp
);
5840 _resultobj
= Py_None
;
5845 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5846 static PyObject
*_wrap_wxPanel_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5847 PyObject
* _resultobj
;
5852 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5853 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5854 long _arg5
= (long ) wxTAB_TRAVERSAL
;
5855 char * _arg6
= (char *) "panel";
5856 PyObject
* _argo0
= 0;
5857 PyObject
* _argo1
= 0;
5859 PyObject
* _obj3
= 0;
5861 PyObject
* _obj4
= 0;
5862 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
5865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxPanel_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
5875 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5876 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
5877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
5884 if (! wxPoint_helper(_obj3
, &_arg3
))
5890 if (! wxSize_helper(_obj4
, &_arg4
))
5894 wxPy_BEGIN_ALLOW_THREADS
;
5895 _result
= (bool )wxPanel_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5897 wxPy_END_ALLOW_THREADS
;
5898 if (PyErr_Occurred()) return NULL
;
5899 } _resultobj
= Py_BuildValue("i",_result
);
5903 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5904 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5905 PyObject
* _resultobj
;
5907 PyObject
* _argo0
= 0;
5908 char *_kwnames
[] = { "self", NULL
};
5911 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5914 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5915 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5916 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5921 wxPy_BEGIN_ALLOW_THREADS
;
5922 wxPanel_InitDialog(_arg0
);
5924 wxPy_END_ALLOW_THREADS
;
5925 if (PyErr_Occurred()) return NULL
;
5926 } Py_INCREF(Py_None
);
5927 _resultobj
= Py_None
;
5931 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5932 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5933 PyObject
* _resultobj
;
5936 PyObject
* _argo0
= 0;
5937 char *_kwnames
[] = { "self", NULL
};
5940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
5943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5950 wxPy_BEGIN_ALLOW_THREADS
;
5951 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
5953 wxPy_END_ALLOW_THREADS
;
5954 if (PyErr_Occurred()) return NULL
;
5955 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5959 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5960 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5961 PyObject
* _resultobj
;
5964 PyObject
* _argo0
= 0;
5965 PyObject
* _argo1
= 0;
5966 char *_kwnames
[] = { "self","btn", NULL
};
5969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
5972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5979 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5980 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
5981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5986 wxPy_BEGIN_ALLOW_THREADS
;
5987 wxPanel_SetDefaultItem(_arg0
,_arg1
);
5989 wxPy_END_ALLOW_THREADS
;
5990 if (PyErr_Occurred()) return NULL
;
5991 } Py_INCREF(Py_None
);
5992 _resultobj
= Py_None
;
5996 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
5997 wxScrolledWindow
*src
;
5999 src
= (wxScrolledWindow
*) ptr
;
6000 dest
= (wxPanel
*) src
;
6001 return (void *) dest
;
6004 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
6005 wxScrolledWindow
*src
;
6007 src
= (wxScrolledWindow
*) ptr
;
6008 dest
= (wxWindow
*) src
;
6009 return (void *) dest
;
6012 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
6013 wxScrolledWindow
*src
;
6015 src
= (wxScrolledWindow
*) ptr
;
6016 dest
= (wxEvtHandler
*) src
;
6017 return (void *) dest
;
6020 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
6021 wxScrolledWindow
*src
;
6023 src
= (wxScrolledWindow
*) ptr
;
6024 dest
= (wxObject
*) src
;
6025 return (void *) dest
;
6028 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6029 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6030 PyObject
* _resultobj
;
6031 wxScrolledWindow
* _result
;
6033 wxWindowID _arg1
= (wxWindowID
) -1;
6034 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
6035 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6036 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6037 char * _arg5
= (char *) "scrolledWindow";
6038 PyObject
* _argo0
= 0;
6040 PyObject
* _obj2
= 0;
6042 PyObject
* _obj3
= 0;
6043 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6059 if (! wxPoint_helper(_obj2
, &_arg2
))
6065 if (! wxSize_helper(_obj3
, &_arg3
))
6069 wxPy_BEGIN_ALLOW_THREADS
;
6070 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6072 wxPy_END_ALLOW_THREADS
;
6073 if (PyErr_Occurred()) return NULL
;
6075 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6076 _resultobj
= Py_BuildValue("s",_ptemp
);
6079 _resultobj
= Py_None
;
6084 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6085 static PyObject
*_wrap_new_wxPreScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6086 PyObject
* _resultobj
;
6087 wxScrolledWindow
* _result
;
6088 char *_kwnames
[] = { NULL
};
6092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreScrolledWindow",_kwnames
))
6095 wxPy_BEGIN_ALLOW_THREADS
;
6096 _result
= (wxScrolledWindow
*)new_wxPreScrolledWindow();
6098 wxPy_END_ALLOW_THREADS
;
6099 if (PyErr_Occurred()) return NULL
;
6101 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6102 _resultobj
= Py_BuildValue("s",_ptemp
);
6105 _resultobj
= Py_None
;
6110 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6111 static PyObject
*_wrap_wxScrolledWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6112 PyObject
* _resultobj
;
6114 wxScrolledWindow
* _arg0
;
6116 wxWindowID _arg2
= (wxWindowID
) -1;
6117 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6118 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6119 long _arg5
= (long ) wxHSCROLL
|wxVSCROLL
;
6120 char * _arg6
= (char *) "scrolledWindow";
6121 PyObject
* _argo0
= 0;
6122 PyObject
* _argo1
= 0;
6124 PyObject
* _obj3
= 0;
6126 PyObject
* _obj4
= 0;
6127 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iOOls:wxScrolledWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6133 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6134 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6135 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6140 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6141 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6149 if (! wxPoint_helper(_obj3
, &_arg3
))
6155 if (! wxSize_helper(_obj4
, &_arg4
))
6159 wxPy_BEGIN_ALLOW_THREADS
;
6160 _result
= (bool )wxScrolledWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6162 wxPy_END_ALLOW_THREADS
;
6163 if (PyErr_Occurred()) return NULL
;
6164 } _resultobj
= Py_BuildValue("i",_result
);
6168 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6169 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6170 PyObject
* _resultobj
;
6171 wxScrolledWindow
* _arg0
;
6174 PyObject
* _argo0
= 0;
6177 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6189 _arg1
= (bool ) tempbool1
;
6190 _arg2
= (bool ) tempbool2
;
6192 wxPy_BEGIN_ALLOW_THREADS
;
6193 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6195 wxPy_END_ALLOW_THREADS
;
6196 if (PyErr_Occurred()) return NULL
;
6197 } Py_INCREF(Py_None
);
6198 _resultobj
= Py_None
;
6202 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6203 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6204 PyObject
* _resultobj
;
6206 wxScrolledWindow
* _arg0
;
6208 PyObject
* _argo0
= 0;
6209 char *_kwnames
[] = { "self","orient", NULL
};
6212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6222 wxPy_BEGIN_ALLOW_THREADS
;
6223 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6225 wxPy_END_ALLOW_THREADS
;
6226 if (PyErr_Occurred()) return NULL
;
6227 } _resultobj
= Py_BuildValue("i",_result
);
6231 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6232 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6233 PyObject
* _resultobj
;
6234 wxScrolledWindow
* _arg0
;
6239 PyObject
* _argo0
= 0;
6240 char *_kwnames
[] = { "self", NULL
};
6249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6259 wxPy_BEGIN_ALLOW_THREADS
;
6260 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6262 wxPy_END_ALLOW_THREADS
;
6263 if (PyErr_Occurred()) return NULL
;
6264 } Py_INCREF(Py_None
);
6265 _resultobj
= Py_None
;
6268 o
= PyInt_FromLong((long) (*_arg1
));
6269 _resultobj
= t_output_helper(_resultobj
, o
);
6273 o
= PyInt_FromLong((long) (*_arg2
));
6274 _resultobj
= t_output_helper(_resultobj
, o
);
6279 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6280 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6281 PyObject
* _resultobj
;
6283 wxScrolledWindow
* _arg0
;
6284 PyObject
* _argo0
= 0;
6285 char *_kwnames
[] = { "self", NULL
};
6288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6298 wxPy_BEGIN_ALLOW_THREADS
;
6299 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6301 wxPy_END_ALLOW_THREADS
;
6302 if (PyErr_Occurred()) return NULL
;
6303 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6307 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6308 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6309 PyObject
* _resultobj
;
6310 wxScrolledWindow
* _arg0
;
6315 PyObject
* _argo0
= 0;
6316 char *_kwnames
[] = { "self", NULL
};
6325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6335 wxPy_BEGIN_ALLOW_THREADS
;
6336 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6338 wxPy_END_ALLOW_THREADS
;
6339 if (PyErr_Occurred()) return NULL
;
6340 } Py_INCREF(Py_None
);
6341 _resultobj
= Py_None
;
6344 o
= PyInt_FromLong((long) (*_arg1
));
6345 _resultobj
= t_output_helper(_resultobj
, o
);
6349 o
= PyInt_FromLong((long) (*_arg2
));
6350 _resultobj
= t_output_helper(_resultobj
, o
);
6355 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6356 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6357 PyObject
* _resultobj
;
6359 wxScrolledWindow
* _arg0
;
6360 PyObject
* _argo0
= 0;
6361 char *_kwnames
[] = { "self", NULL
};
6364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6374 wxPy_BEGIN_ALLOW_THREADS
;
6375 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6377 wxPy_END_ALLOW_THREADS
;
6378 if (PyErr_Occurred()) return NULL
;
6379 } _resultobj
= Py_BuildValue("i",_result
);
6383 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6384 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6385 PyObject
* _resultobj
;
6386 wxScrolledWindow
* _arg0
;
6388 PyObject
* _argo0
= 0;
6389 PyObject
* _argo1
= 0;
6390 char *_kwnames
[] = { "self","dc", NULL
};
6393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
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_PrepareDC. Expected _wxScrolledWindow_p.");
6403 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6404 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6410 wxPy_BEGIN_ALLOW_THREADS
;
6411 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6413 wxPy_END_ALLOW_THREADS
;
6414 if (PyErr_Occurred()) return NULL
;
6415 } Py_INCREF(Py_None
);
6416 _resultobj
= Py_None
;
6420 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6421 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6422 PyObject
* _resultobj
;
6423 wxScrolledWindow
* _arg0
;
6426 PyObject
* _argo0
= 0;
6427 char *_kwnames
[] = { "self","x","y", NULL
};
6430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6440 wxPy_BEGIN_ALLOW_THREADS
;
6441 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6443 wxPy_END_ALLOW_THREADS
;
6444 if (PyErr_Occurred()) return NULL
;
6445 } Py_INCREF(Py_None
);
6446 _resultobj
= Py_None
;
6450 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6451 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6452 PyObject
* _resultobj
;
6453 wxScrolledWindow
* _arg0
;
6458 int _arg5
= (int ) 0;
6459 int _arg6
= (int ) 0;
6460 int _arg7
= (int ) FALSE
;
6461 PyObject
* _argo0
= 0;
6462 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6465 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6468 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6469 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6470 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6475 wxPy_BEGIN_ALLOW_THREADS
;
6476 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6478 wxPy_END_ALLOW_THREADS
;
6479 if (PyErr_Occurred()) return NULL
;
6480 } Py_INCREF(Py_None
);
6481 _resultobj
= Py_None
;
6485 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6486 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6487 PyObject
* _resultobj
;
6488 wxScrolledWindow
* _arg0
;
6491 PyObject
* _argo0
= 0;
6492 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6505 wxPy_BEGIN_ALLOW_THREADS
;
6506 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6508 wxPy_END_ALLOW_THREADS
;
6509 if (PyErr_Occurred()) return NULL
;
6510 } Py_INCREF(Py_None
);
6511 _resultobj
= Py_None
;
6515 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6516 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6517 PyObject
* _resultobj
;
6518 wxScrolledWindow
* _arg0
;
6520 PyObject
* _argo0
= 0;
6521 PyObject
* _argo1
= 0;
6522 char *_kwnames
[] = { "self","window", NULL
};
6525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6535 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6536 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6537 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6542 wxPy_BEGIN_ALLOW_THREADS
;
6543 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6545 wxPy_END_ALLOW_THREADS
;
6546 if (PyErr_Occurred()) return NULL
;
6547 } Py_INCREF(Py_None
);
6548 _resultobj
= Py_None
;
6552 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6553 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6554 PyObject
* _resultobj
;
6555 wxScrolledWindow
* _arg0
;
6560 PyObject
* _argo0
= 0;
6561 char *_kwnames
[] = { "self", NULL
};
6570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6580 wxPy_BEGIN_ALLOW_THREADS
;
6581 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6583 wxPy_END_ALLOW_THREADS
;
6584 if (PyErr_Occurred()) return NULL
;
6585 } Py_INCREF(Py_None
);
6586 _resultobj
= Py_None
;
6589 o
= PyInt_FromLong((long) (*_arg1
));
6590 _resultobj
= t_output_helper(_resultobj
, o
);
6594 o
= PyInt_FromLong((long) (*_arg2
));
6595 _resultobj
= t_output_helper(_resultobj
, o
);
6600 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6601 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6602 PyObject
* _resultobj
;
6603 wxScrolledWindow
* _arg0
;
6610 PyObject
* _argo0
= 0;
6611 char *_kwnames
[] = { "self","x","y", NULL
};
6620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6630 wxPy_BEGIN_ALLOW_THREADS
;
6631 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6633 wxPy_END_ALLOW_THREADS
;
6634 if (PyErr_Occurred()) return NULL
;
6635 } Py_INCREF(Py_None
);
6636 _resultobj
= Py_None
;
6639 o
= PyInt_FromLong((long) (*_arg3
));
6640 _resultobj
= t_output_helper(_resultobj
, o
);
6644 o
= PyInt_FromLong((long) (*_arg4
));
6645 _resultobj
= t_output_helper(_resultobj
, o
);
6650 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6651 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6652 PyObject
* _resultobj
;
6653 wxScrolledWindow
* _arg0
;
6660 PyObject
* _argo0
= 0;
6661 char *_kwnames
[] = { "self","x","y", NULL
};
6670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6673 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6674 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6675 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6680 wxPy_BEGIN_ALLOW_THREADS
;
6681 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6683 wxPy_END_ALLOW_THREADS
;
6684 if (PyErr_Occurred()) return NULL
;
6685 } Py_INCREF(Py_None
);
6686 _resultobj
= Py_None
;
6689 o
= PyInt_FromLong((long) (*_arg3
));
6690 _resultobj
= t_output_helper(_resultobj
, o
);
6694 o
= PyInt_FromLong((long) (*_arg4
));
6695 _resultobj
= t_output_helper(_resultobj
, o
);
6700 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6701 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6702 PyObject
* _resultobj
;
6703 wxScrolledWindow
* _arg0
;
6706 PyObject
* _argo0
= 0;
6707 char *_kwnames
[] = { "self","xs","ys", NULL
};
6710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6720 wxPy_BEGIN_ALLOW_THREADS
;
6721 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6723 wxPy_END_ALLOW_THREADS
;
6724 if (PyErr_Occurred()) return NULL
;
6725 } Py_INCREF(Py_None
);
6726 _resultobj
= Py_None
;
6730 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6731 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6732 PyObject
* _resultobj
;
6734 wxScrolledWindow
* _arg0
;
6735 PyObject
* _argo0
= 0;
6736 char *_kwnames
[] = { "self", NULL
};
6739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6742 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6743 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6749 wxPy_BEGIN_ALLOW_THREADS
;
6750 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6752 wxPy_END_ALLOW_THREADS
;
6753 if (PyErr_Occurred()) return NULL
;
6754 } _resultobj
= Py_BuildValue("d",_result
);
6758 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6759 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6760 PyObject
* _resultobj
;
6762 wxScrolledWindow
* _arg0
;
6763 PyObject
* _argo0
= 0;
6764 char *_kwnames
[] = { "self", NULL
};
6767 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6770 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6771 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6772 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6777 wxPy_BEGIN_ALLOW_THREADS
;
6778 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6780 wxPy_END_ALLOW_THREADS
;
6781 if (PyErr_Occurred()) return NULL
;
6782 } _resultobj
= Py_BuildValue("d",_result
);
6786 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6787 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6788 PyObject
* _resultobj
;
6789 wxScrolledWindow
* _arg0
;
6790 PyObject
* _argo0
= 0;
6791 char *_kwnames
[] = { "self", NULL
};
6794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6804 wxPy_BEGIN_ALLOW_THREADS
;
6805 wxScrolledWindow_AdjustScrollbars(_arg0
);
6807 wxPy_END_ALLOW_THREADS
;
6808 if (PyErr_Occurred()) return NULL
;
6809 } Py_INCREF(Py_None
);
6810 _resultobj
= Py_None
;
6814 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6817 src
= (wxMenu
*) ptr
;
6818 dest
= (wxEvtHandler
*) src
;
6819 return (void *) dest
;
6822 static void *SwigwxMenuTowxObject(void *ptr
) {
6825 src
= (wxMenu
*) ptr
;
6826 dest
= (wxObject
*) src
;
6827 return (void *) dest
;
6830 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6831 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6832 PyObject
* _resultobj
;
6834 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6835 long _arg1
= (long ) 0;
6836 PyObject
* _obj0
= 0;
6837 char *_kwnames
[] = { "title","style", NULL
};
6841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6845 #if PYTHON_API_VERSION >= 1009
6846 char* tmpPtr
; int tmpSize
;
6847 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6848 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6851 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6853 _arg0
= new wxString(tmpPtr
, tmpSize
);
6855 if (!PyString_Check(_obj0
)) {
6856 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6859 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6863 wxPy_BEGIN_ALLOW_THREADS
;
6864 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6866 wxPy_END_ALLOW_THREADS
;
6867 if (PyErr_Occurred()) return NULL
;
6869 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6870 _resultobj
= Py_BuildValue("s",_ptemp
);
6873 _resultobj
= Py_None
;
6882 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6883 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6884 PyObject
* _resultobj
;
6888 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6889 int _arg4
= (int ) FALSE
;
6890 PyObject
* _argo0
= 0;
6891 PyObject
* _obj2
= 0;
6892 PyObject
* _obj3
= 0;
6893 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6899 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6900 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6906 #if PYTHON_API_VERSION >= 1009
6907 char* tmpPtr
; int tmpSize
;
6908 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6909 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6912 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6914 _arg2
= new wxString(tmpPtr
, tmpSize
);
6916 if (!PyString_Check(_obj2
)) {
6917 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6920 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6925 #if PYTHON_API_VERSION >= 1009
6926 char* tmpPtr
; int tmpSize
;
6927 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6928 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6931 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6933 _arg3
= new wxString(tmpPtr
, tmpSize
);
6935 if (!PyString_Check(_obj3
)) {
6936 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6939 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
6943 wxPy_BEGIN_ALLOW_THREADS
;
6944 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
6946 wxPy_END_ALLOW_THREADS
;
6947 if (PyErr_Occurred()) return NULL
;
6948 } Py_INCREF(Py_None
);
6949 _resultobj
= Py_None
;
6961 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6962 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6963 PyObject
* _resultobj
;
6968 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
6969 PyObject
* _argo0
= 0;
6970 PyObject
* _obj2
= 0;
6971 PyObject
* _argo3
= 0;
6972 PyObject
* _obj4
= 0;
6973 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
6976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
6979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6986 #if PYTHON_API_VERSION >= 1009
6987 char* tmpPtr
; int tmpSize
;
6988 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6989 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6992 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6994 _arg2
= new wxString(tmpPtr
, tmpSize
);
6996 if (!PyString_Check(_obj2
)) {
6997 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7000 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7004 if (_argo3
== Py_None
) { _arg3
= NULL
; }
7005 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
7006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7012 #if PYTHON_API_VERSION >= 1009
7013 char* tmpPtr
; int tmpSize
;
7014 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
7015 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7018 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
7020 _arg4
= new wxString(tmpPtr
, tmpSize
);
7022 if (!PyString_Check(_obj4
)) {
7023 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7026 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
7030 wxPy_BEGIN_ALLOW_THREADS
;
7031 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
7033 wxPy_END_ALLOW_THREADS
;
7034 if (PyErr_Occurred()) return NULL
;
7035 } Py_INCREF(Py_None
);
7036 _resultobj
= Py_None
;
7048 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7049 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7050 PyObject
* _resultobj
;
7053 PyObject
* _argo0
= 0;
7054 PyObject
* _argo1
= 0;
7055 char *_kwnames
[] = { "self","item", NULL
};
7058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
7061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7068 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7069 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7075 wxPy_BEGIN_ALLOW_THREADS
;
7076 wxMenu_AppendItem(_arg0
,_arg1
);
7078 wxPy_END_ALLOW_THREADS
;
7079 if (PyErr_Occurred()) return NULL
;
7080 } Py_INCREF(Py_None
);
7081 _resultobj
= Py_None
;
7085 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7086 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7087 PyObject
* _resultobj
;
7089 PyObject
* _argo0
= 0;
7090 char *_kwnames
[] = { "self", NULL
};
7093 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7096 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7097 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7098 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7103 wxPy_BEGIN_ALLOW_THREADS
;
7104 wxMenu_AppendSeparator(_arg0
);
7106 wxPy_END_ALLOW_THREADS
;
7107 if (PyErr_Occurred()) return NULL
;
7108 } Py_INCREF(Py_None
);
7109 _resultobj
= Py_None
;
7113 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7114 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7115 PyObject
* _resultobj
;
7117 PyObject
* _argo0
= 0;
7118 char *_kwnames
[] = { "self", NULL
};
7121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7131 wxPy_BEGIN_ALLOW_THREADS
;
7132 wxMenu_Break(_arg0
);
7134 wxPy_END_ALLOW_THREADS
;
7135 if (PyErr_Occurred()) return NULL
;
7136 } Py_INCREF(Py_None
);
7137 _resultobj
= Py_None
;
7141 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7142 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7143 PyObject
* _resultobj
;
7147 PyObject
* _argo0
= 0;
7149 char *_kwnames
[] = { "self","id","flag", NULL
};
7152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7155 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7156 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7161 _arg2
= (bool ) tempbool2
;
7163 wxPy_BEGIN_ALLOW_THREADS
;
7164 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7166 wxPy_END_ALLOW_THREADS
;
7167 if (PyErr_Occurred()) return NULL
;
7168 } Py_INCREF(Py_None
);
7169 _resultobj
= Py_None
;
7173 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7174 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7175 PyObject
* _resultobj
;
7179 PyObject
* _argo0
= 0;
7180 char *_kwnames
[] = { "self","id", NULL
};
7183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7193 wxPy_BEGIN_ALLOW_THREADS
;
7194 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7196 wxPy_END_ALLOW_THREADS
;
7197 if (PyErr_Occurred()) return NULL
;
7198 } _resultobj
= Py_BuildValue("i",_result
);
7202 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7203 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7204 PyObject
* _resultobj
;
7208 PyObject
* _argo0
= 0;
7210 char *_kwnames
[] = { "self","id","enable", NULL
};
7213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7222 _arg2
= (bool ) tempbool2
;
7224 wxPy_BEGIN_ALLOW_THREADS
;
7225 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7227 wxPy_END_ALLOW_THREADS
;
7228 if (PyErr_Occurred()) return NULL
;
7229 } Py_INCREF(Py_None
);
7230 _resultobj
= Py_None
;
7234 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7235 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7236 PyObject
* _resultobj
;
7240 PyObject
* _argo0
= 0;
7241 char *_kwnames
[] = { "self","id", NULL
};
7244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7254 wxPy_BEGIN_ALLOW_THREADS
;
7255 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7257 wxPy_END_ALLOW_THREADS
;
7258 if (PyErr_Occurred()) return NULL
;
7259 } _resultobj
= Py_BuildValue("i",_result
);
7263 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7264 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7265 PyObject
* _resultobj
;
7269 PyObject
* _argo0
= 0;
7270 PyObject
* _obj1
= 0;
7271 char *_kwnames
[] = { "self","itemString", NULL
};
7274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7284 #if PYTHON_API_VERSION >= 1009
7285 char* tmpPtr
; int tmpSize
;
7286 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7287 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7290 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7292 _arg1
= new wxString(tmpPtr
, tmpSize
);
7294 if (!PyString_Check(_obj1
)) {
7295 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7298 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7302 wxPy_BEGIN_ALLOW_THREADS
;
7303 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7305 wxPy_END_ALLOW_THREADS
;
7306 if (PyErr_Occurred()) return NULL
;
7307 } _resultobj
= Py_BuildValue("i",_result
);
7315 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7316 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7317 PyObject
* _resultobj
;
7318 wxMenuItem
* _result
;
7321 PyObject
* _argo0
= 0;
7322 char *_kwnames
[] = { "self","id", NULL
};
7325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7335 wxPy_BEGIN_ALLOW_THREADS
;
7336 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7338 wxPy_END_ALLOW_THREADS
;
7339 if (PyErr_Occurred()) return NULL
;
7340 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7344 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7345 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7346 PyObject
* _resultobj
;
7349 PyObject
* _argo0
= 0;
7350 char *_kwnames
[] = { "self", NULL
};
7353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7356 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7357 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7363 wxPy_BEGIN_ALLOW_THREADS
;
7364 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7366 wxPy_END_ALLOW_THREADS
;
7367 if (PyErr_Occurred()) return NULL
;
7369 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7377 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7378 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7379 PyObject
* _resultobj
;
7382 PyObject
* _argo0
= 0;
7383 PyObject
* _obj1
= 0;
7384 char *_kwnames
[] = { "self","title", NULL
};
7387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7397 #if PYTHON_API_VERSION >= 1009
7398 char* tmpPtr
; int tmpSize
;
7399 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7400 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7403 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7405 _arg1
= new wxString(tmpPtr
, tmpSize
);
7407 if (!PyString_Check(_obj1
)) {
7408 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7411 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7415 wxPy_BEGIN_ALLOW_THREADS
;
7416 wxMenu_SetTitle(_arg0
,*_arg1
);
7418 wxPy_END_ALLOW_THREADS
;
7419 if (PyErr_Occurred()) return NULL
;
7420 } Py_INCREF(Py_None
);
7421 _resultobj
= Py_None
;
7429 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7430 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7431 PyObject
* _resultobj
;
7435 PyObject
* _argo0
= 0;
7436 char *_kwnames
[] = { "self","id", NULL
};
7439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7449 wxPy_BEGIN_ALLOW_THREADS
;
7450 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7452 wxPy_END_ALLOW_THREADS
;
7453 if (PyErr_Occurred()) return NULL
;
7455 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7463 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7464 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7465 PyObject
* _resultobj
;
7469 PyObject
* _argo0
= 0;
7470 PyObject
* _obj2
= 0;
7471 char *_kwnames
[] = { "self","id","label", NULL
};
7474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7484 #if PYTHON_API_VERSION >= 1009
7485 char* tmpPtr
; int tmpSize
;
7486 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7487 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7490 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7492 _arg2
= new wxString(tmpPtr
, tmpSize
);
7494 if (!PyString_Check(_obj2
)) {
7495 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7498 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7502 wxPy_BEGIN_ALLOW_THREADS
;
7503 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7505 wxPy_END_ALLOW_THREADS
;
7506 if (PyErr_Occurred()) return NULL
;
7507 } Py_INCREF(Py_None
);
7508 _resultobj
= Py_None
;
7516 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7517 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7518 PyObject
* _resultobj
;
7522 PyObject
* _argo0
= 0;
7523 char *_kwnames
[] = { "self","id", NULL
};
7526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7536 wxPy_BEGIN_ALLOW_THREADS
;
7537 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7539 wxPy_END_ALLOW_THREADS
;
7540 if (PyErr_Occurred()) return NULL
;
7542 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7550 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7551 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7552 PyObject
* _resultobj
;
7556 PyObject
* _argo0
= 0;
7557 PyObject
* _obj2
= 0;
7558 char *_kwnames
[] = { "self","id","helpString", NULL
};
7561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7571 #if PYTHON_API_VERSION >= 1009
7572 char* tmpPtr
; int tmpSize
;
7573 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7574 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7577 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7579 _arg2
= new wxString(tmpPtr
, tmpSize
);
7581 if (!PyString_Check(_obj2
)) {
7582 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7585 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7589 wxPy_BEGIN_ALLOW_THREADS
;
7590 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7592 wxPy_END_ALLOW_THREADS
;
7593 if (PyErr_Occurred()) return NULL
;
7594 } Py_INCREF(Py_None
);
7595 _resultobj
= Py_None
;
7603 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7604 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7605 PyObject
* _resultobj
;
7607 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7608 PyObject
* _argo0
= 0;
7609 PyObject
* _argo1
= 0;
7610 char *_kwnames
[] = { "self","source", NULL
};
7613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7623 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7624 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7630 wxPy_BEGIN_ALLOW_THREADS
;
7631 wxMenu_UpdateUI(_arg0
,_arg1
);
7633 wxPy_END_ALLOW_THREADS
;
7634 if (PyErr_Occurred()) return NULL
;
7635 } Py_INCREF(Py_None
);
7636 _resultobj
= Py_None
;
7640 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7641 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7642 PyObject
* _resultobj
;
7646 PyObject
* _argo0
= 0;
7647 char *_kwnames
[] = { "self","id", NULL
};
7650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7660 wxPy_BEGIN_ALLOW_THREADS
;
7661 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7663 wxPy_END_ALLOW_THREADS
;
7664 if (PyErr_Occurred()) return NULL
;
7665 } _resultobj
= Py_BuildValue("i",_result
);
7669 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7670 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7671 PyObject
* _resultobj
;
7675 PyObject
* _argo0
= 0;
7676 PyObject
* _argo1
= 0;
7677 char *_kwnames
[] = { "self","item", NULL
};
7680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7690 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7691 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7697 wxPy_BEGIN_ALLOW_THREADS
;
7698 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7700 wxPy_END_ALLOW_THREADS
;
7701 if (PyErr_Occurred()) return NULL
;
7702 } _resultobj
= Py_BuildValue("i",_result
);
7706 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7707 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7708 PyObject
* _resultobj
;
7713 PyObject
* _argo0
= 0;
7714 PyObject
* _argo2
= 0;
7715 char *_kwnames
[] = { "self","pos","item", NULL
};
7718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7728 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7729 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7735 wxPy_BEGIN_ALLOW_THREADS
;
7736 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7738 wxPy_END_ALLOW_THREADS
;
7739 if (PyErr_Occurred()) return NULL
;
7740 } _resultobj
= Py_BuildValue("i",_result
);
7744 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7745 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7746 PyObject
* _resultobj
;
7747 wxMenuItem
* _result
;
7750 PyObject
* _argo0
= 0;
7751 char *_kwnames
[] = { "self","id", NULL
};
7754 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7757 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7758 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7759 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7764 wxPy_BEGIN_ALLOW_THREADS
;
7765 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7767 wxPy_END_ALLOW_THREADS
;
7768 if (PyErr_Occurred()) return NULL
;
7769 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7773 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7774 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7775 PyObject
* _resultobj
;
7776 wxMenuItem
* _result
;
7779 PyObject
* _argo0
= 0;
7780 PyObject
* _argo1
= 0;
7781 char *_kwnames
[] = { "self","item", NULL
};
7784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7794 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7795 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7801 wxPy_BEGIN_ALLOW_THREADS
;
7802 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7804 wxPy_END_ALLOW_THREADS
;
7805 if (PyErr_Occurred()) return NULL
;
7806 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7810 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7811 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7812 PyObject
* _resultobj
;
7814 PyObject
* _argo0
= 0;
7815 char *_kwnames
[] = { "self", NULL
};
7818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7828 wxPy_BEGIN_ALLOW_THREADS
;
7829 wxMenu_Destroy(_arg0
);
7831 wxPy_END_ALLOW_THREADS
;
7832 if (PyErr_Occurred()) return NULL
;
7833 } Py_INCREF(Py_None
);
7834 _resultobj
= Py_None
;
7838 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7839 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7840 PyObject
* _resultobj
;
7844 PyObject
* _argo0
= 0;
7845 char *_kwnames
[] = { "self","id", NULL
};
7848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7858 wxPy_BEGIN_ALLOW_THREADS
;
7859 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7861 wxPy_END_ALLOW_THREADS
;
7862 if (PyErr_Occurred()) return NULL
;
7863 } _resultobj
= Py_BuildValue("i",_result
);
7867 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7868 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7869 PyObject
* _resultobj
;
7873 PyObject
* _argo0
= 0;
7874 PyObject
* _argo1
= 0;
7875 char *_kwnames
[] = { "self","item", NULL
};
7878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7888 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7889 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7895 wxPy_BEGIN_ALLOW_THREADS
;
7896 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7898 wxPy_END_ALLOW_THREADS
;
7899 if (PyErr_Occurred()) return NULL
;
7900 } _resultobj
= Py_BuildValue("i",_result
);
7904 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7905 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7906 PyObject
* _resultobj
;
7909 PyObject
* _argo0
= 0;
7910 char *_kwnames
[] = { "self", NULL
};
7913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7916 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7917 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7918 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7923 wxPy_BEGIN_ALLOW_THREADS
;
7924 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7926 wxPy_END_ALLOW_THREADS
;
7927 if (PyErr_Occurred()) return NULL
;
7928 } _resultobj
= Py_BuildValue("i",_result
);
7932 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7933 wxMenuItemList
& list
= self
->GetMenuItems();
7934 return wxPy_ConvertList(&list
, "wxMenuItem");
7936 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7937 PyObject
* _resultobj
;
7940 PyObject
* _argo0
= 0;
7941 char *_kwnames
[] = { "self", NULL
};
7944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
7947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7954 wxPy_BEGIN_ALLOW_THREADS
;
7955 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
7957 wxPy_END_ALLOW_THREADS
;
7958 if (PyErr_Occurred()) return NULL
;
7960 _resultobj
= _result
;
7965 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7966 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7967 PyObject
* _resultobj
;
7969 wxEvtHandler
* _arg1
;
7970 PyObject
* _argo0
= 0;
7971 PyObject
* _argo1
= 0;
7972 char *_kwnames
[] = { "self","handler", NULL
};
7975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
7978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7985 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7986 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7992 wxPy_BEGIN_ALLOW_THREADS
;
7993 wxMenu_SetEventHandler(_arg0
,_arg1
);
7995 wxPy_END_ALLOW_THREADS
;
7996 if (PyErr_Occurred()) return NULL
;
7997 } Py_INCREF(Py_None
);
7998 _resultobj
= Py_None
;
8002 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
8003 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8004 PyObject
* _resultobj
;
8005 wxEvtHandler
* _result
;
8007 PyObject
* _argo0
= 0;
8008 char *_kwnames
[] = { "self", NULL
};
8011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
8014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
8021 wxPy_BEGIN_ALLOW_THREADS
;
8022 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
8024 wxPy_END_ALLOW_THREADS
;
8025 if (PyErr_Occurred()) return NULL
;
8026 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8030 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
8031 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8032 PyObject
* _resultobj
;
8035 PyObject
* _argo0
= 0;
8036 PyObject
* _argo1
= 0;
8037 char *_kwnames
[] = { "self","win", NULL
};
8040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
8043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
8050 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8051 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
8057 wxPy_BEGIN_ALLOW_THREADS
;
8058 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
8060 wxPy_END_ALLOW_THREADS
;
8061 if (PyErr_Occurred()) return NULL
;
8062 } Py_INCREF(Py_None
);
8063 _resultobj
= Py_None
;
8067 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
8068 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8069 PyObject
* _resultobj
;
8072 PyObject
* _argo0
= 0;
8073 char *_kwnames
[] = { "self", NULL
};
8076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8086 wxPy_BEGIN_ALLOW_THREADS
;
8087 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8089 wxPy_END_ALLOW_THREADS
;
8090 if (PyErr_Occurred()) return NULL
;
8091 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8095 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8096 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8097 PyObject
* _resultobj
;
8100 PyObject
* _argo0
= 0;
8101 char *_kwnames
[] = { "self", NULL
};
8104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8114 wxPy_BEGIN_ALLOW_THREADS
;
8115 _result
= (long )wxMenu_GetStyle(_arg0
);
8117 wxPy_END_ALLOW_THREADS
;
8118 if (PyErr_Occurred()) return NULL
;
8119 } _resultobj
= Py_BuildValue("l",_result
);
8123 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8124 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8125 PyObject
* _resultobj
;
8128 PyObject
* _argo0
= 0;
8129 char *_kwnames
[] = { "self", NULL
};
8132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8142 wxPy_BEGIN_ALLOW_THREADS
;
8143 _result
= (bool )wxMenu_IsAttached(_arg0
);
8145 wxPy_END_ALLOW_THREADS
;
8146 if (PyErr_Occurred()) return NULL
;
8147 } _resultobj
= Py_BuildValue("i",_result
);
8151 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8152 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8153 PyObject
* _resultobj
;
8156 PyObject
* _argo0
= 0;
8157 PyObject
* _argo1
= 0;
8158 char *_kwnames
[] = { "self","parent", NULL
};
8161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8171 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8172 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8178 wxPy_BEGIN_ALLOW_THREADS
;
8179 wxMenu_SetParent(_arg0
,_arg1
);
8181 wxPy_END_ALLOW_THREADS
;
8182 if (PyErr_Occurred()) return NULL
;
8183 } Py_INCREF(Py_None
);
8184 _resultobj
= Py_None
;
8188 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8189 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8190 PyObject
* _resultobj
;
8193 PyObject
* _argo0
= 0;
8194 char *_kwnames
[] = { "self", NULL
};
8197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8207 wxPy_BEGIN_ALLOW_THREADS
;
8208 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8210 wxPy_END_ALLOW_THREADS
;
8211 if (PyErr_Occurred()) return NULL
;
8212 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8216 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8219 src
= (wxMenuBar
*) ptr
;
8220 dest
= (wxWindow
*) src
;
8221 return (void *) dest
;
8224 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8227 src
= (wxMenuBar
*) ptr
;
8228 dest
= (wxEvtHandler
*) src
;
8229 return (void *) dest
;
8232 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8235 src
= (wxMenuBar
*) ptr
;
8236 dest
= (wxObject
*) src
;
8237 return (void *) dest
;
8240 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8241 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8242 PyObject
* _resultobj
;
8243 wxMenuBar
* _result
;
8244 long _arg0
= (long ) 0;
8245 char *_kwnames
[] = { "style", NULL
};
8249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8252 wxPy_BEGIN_ALLOW_THREADS
;
8253 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8255 wxPy_END_ALLOW_THREADS
;
8256 if (PyErr_Occurred()) return NULL
;
8258 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8259 _resultobj
= Py_BuildValue("s",_ptemp
);
8262 _resultobj
= Py_None
;
8267 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8268 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8269 PyObject
* _resultobj
;
8274 PyObject
* _argo0
= 0;
8275 PyObject
* _argo1
= 0;
8276 PyObject
* _obj2
= 0;
8277 char *_kwnames
[] = { "self","menu","title", NULL
};
8280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8290 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8291 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8297 #if PYTHON_API_VERSION >= 1009
8298 char* tmpPtr
; int tmpSize
;
8299 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8300 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8303 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8305 _arg2
= new wxString(tmpPtr
, tmpSize
);
8307 if (!PyString_Check(_obj2
)) {
8308 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8311 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8315 wxPy_BEGIN_ALLOW_THREADS
;
8316 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8318 wxPy_END_ALLOW_THREADS
;
8319 if (PyErr_Occurred()) return NULL
;
8320 } _resultobj
= Py_BuildValue("i",_result
);
8328 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8329 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8330 PyObject
* _resultobj
;
8336 PyObject
* _argo0
= 0;
8337 PyObject
* _argo2
= 0;
8338 PyObject
* _obj3
= 0;
8339 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8352 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8353 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8359 #if PYTHON_API_VERSION >= 1009
8360 char* tmpPtr
; int tmpSize
;
8361 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8362 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8365 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8367 _arg3
= new wxString(tmpPtr
, tmpSize
);
8369 if (!PyString_Check(_obj3
)) {
8370 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8373 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8377 wxPy_BEGIN_ALLOW_THREADS
;
8378 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8380 wxPy_END_ALLOW_THREADS
;
8381 if (PyErr_Occurred()) return NULL
;
8382 } _resultobj
= Py_BuildValue("i",_result
);
8390 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8391 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8392 PyObject
* _resultobj
;
8395 PyObject
* _argo0
= 0;
8396 char *_kwnames
[] = { "self", NULL
};
8399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8409 wxPy_BEGIN_ALLOW_THREADS
;
8410 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8412 wxPy_END_ALLOW_THREADS
;
8413 if (PyErr_Occurred()) return NULL
;
8414 } _resultobj
= Py_BuildValue("i",_result
);
8418 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8419 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8420 PyObject
* _resultobj
;
8424 PyObject
* _argo0
= 0;
8425 char *_kwnames
[] = { "self","pos", NULL
};
8428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8438 wxPy_BEGIN_ALLOW_THREADS
;
8439 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8441 wxPy_END_ALLOW_THREADS
;
8442 if (PyErr_Occurred()) return NULL
;
8443 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8447 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8448 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8449 PyObject
* _resultobj
;
8455 PyObject
* _argo0
= 0;
8456 PyObject
* _argo2
= 0;
8457 PyObject
* _obj3
= 0;
8458 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8471 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8472 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8478 #if PYTHON_API_VERSION >= 1009
8479 char* tmpPtr
; int tmpSize
;
8480 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8481 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8484 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8486 _arg3
= new wxString(tmpPtr
, tmpSize
);
8488 if (!PyString_Check(_obj3
)) {
8489 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8492 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8496 wxPy_BEGIN_ALLOW_THREADS
;
8497 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8499 wxPy_END_ALLOW_THREADS
;
8500 if (PyErr_Occurred()) return NULL
;
8501 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8509 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8510 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8511 PyObject
* _resultobj
;
8515 PyObject
* _argo0
= 0;
8516 char *_kwnames
[] = { "self","pos", NULL
};
8519 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8522 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8523 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8524 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8529 wxPy_BEGIN_ALLOW_THREADS
;
8530 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8532 wxPy_END_ALLOW_THREADS
;
8533 if (PyErr_Occurred()) return NULL
;
8534 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8538 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8539 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8540 PyObject
* _resultobj
;
8544 PyObject
* _argo0
= 0;
8546 char *_kwnames
[] = { "self","pos","enable", NULL
};
8549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8558 _arg2
= (bool ) tempbool2
;
8560 wxPy_BEGIN_ALLOW_THREADS
;
8561 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8563 wxPy_END_ALLOW_THREADS
;
8564 if (PyErr_Occurred()) return NULL
;
8565 } Py_INCREF(Py_None
);
8566 _resultobj
= Py_None
;
8570 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8571 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8572 PyObject
* _resultobj
;
8576 PyObject
* _argo0
= 0;
8577 PyObject
* _obj2
= 0;
8578 char *_kwnames
[] = { "self","pos","label", NULL
};
8581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8591 #if PYTHON_API_VERSION >= 1009
8592 char* tmpPtr
; int tmpSize
;
8593 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8594 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8597 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8599 _arg2
= new wxString(tmpPtr
, tmpSize
);
8601 if (!PyString_Check(_obj2
)) {
8602 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8605 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8609 wxPy_BEGIN_ALLOW_THREADS
;
8610 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8612 wxPy_END_ALLOW_THREADS
;
8613 if (PyErr_Occurred()) return NULL
;
8614 } Py_INCREF(Py_None
);
8615 _resultobj
= Py_None
;
8623 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8624 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8625 PyObject
* _resultobj
;
8629 PyObject
* _argo0
= 0;
8630 char *_kwnames
[] = { "self","pos", NULL
};
8633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8643 wxPy_BEGIN_ALLOW_THREADS
;
8644 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8646 wxPy_END_ALLOW_THREADS
;
8647 if (PyErr_Occurred()) return NULL
;
8649 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8657 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8658 static PyObject
*_wrap_wxMenuBar_FindMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8659 PyObject
* _resultobj
;
8663 PyObject
* _argo0
= 0;
8664 PyObject
* _obj1
= 0;
8665 char *_kwnames
[] = { "self","title", NULL
};
8668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuBar_FindMenu",_kwnames
,&_argo0
,&_obj1
))
8671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8678 #if PYTHON_API_VERSION >= 1009
8679 char* tmpPtr
; int tmpSize
;
8680 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8681 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8684 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8686 _arg1
= new wxString(tmpPtr
, tmpSize
);
8688 if (!PyString_Check(_obj1
)) {
8689 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8692 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8696 wxPy_BEGIN_ALLOW_THREADS
;
8697 _result
= (int )wxMenuBar_FindMenu(_arg0
,*_arg1
);
8699 wxPy_END_ALLOW_THREADS
;
8700 if (PyErr_Occurred()) return NULL
;
8701 } _resultobj
= Py_BuildValue("i",_result
);
8709 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8710 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8711 PyObject
* _resultobj
;
8716 PyObject
* _argo0
= 0;
8717 PyObject
* _obj1
= 0;
8718 PyObject
* _obj2
= 0;
8719 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8732 #if PYTHON_API_VERSION >= 1009
8733 char* tmpPtr
; int tmpSize
;
8734 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8735 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8738 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8740 _arg1
= new wxString(tmpPtr
, tmpSize
);
8742 if (!PyString_Check(_obj1
)) {
8743 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8746 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8750 #if PYTHON_API_VERSION >= 1009
8751 char* tmpPtr
; int tmpSize
;
8752 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8753 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8756 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8758 _arg2
= new wxString(tmpPtr
, tmpSize
);
8760 if (!PyString_Check(_obj2
)) {
8761 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8764 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8768 wxPy_BEGIN_ALLOW_THREADS
;
8769 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8771 wxPy_END_ALLOW_THREADS
;
8772 if (PyErr_Occurred()) return NULL
;
8773 } _resultobj
= Py_BuildValue("i",_result
);
8785 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8786 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8787 PyObject
* _resultobj
;
8788 wxMenuItem
* _result
;
8791 PyObject
* _argo0
= 0;
8792 char *_kwnames
[] = { "self","id", NULL
};
8795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8805 wxPy_BEGIN_ALLOW_THREADS
;
8806 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8808 wxPy_END_ALLOW_THREADS
;
8809 if (PyErr_Occurred()) return NULL
;
8810 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8814 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8815 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8816 PyObject
* _resultobj
;
8820 PyObject
* _argo0
= 0;
8822 char *_kwnames
[] = { "self","id","enable", NULL
};
8825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8828 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8829 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8834 _arg2
= (bool ) tempbool2
;
8836 wxPy_BEGIN_ALLOW_THREADS
;
8837 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8839 wxPy_END_ALLOW_THREADS
;
8840 if (PyErr_Occurred()) return NULL
;
8841 } Py_INCREF(Py_None
);
8842 _resultobj
= Py_None
;
8846 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8847 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8848 PyObject
* _resultobj
;
8852 PyObject
* _argo0
= 0;
8854 char *_kwnames
[] = { "self","id","check", NULL
};
8857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8866 _arg2
= (bool ) tempbool2
;
8868 wxPy_BEGIN_ALLOW_THREADS
;
8869 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8871 wxPy_END_ALLOW_THREADS
;
8872 if (PyErr_Occurred()) return NULL
;
8873 } Py_INCREF(Py_None
);
8874 _resultobj
= Py_None
;
8878 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8879 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8880 PyObject
* _resultobj
;
8884 PyObject
* _argo0
= 0;
8885 char *_kwnames
[] = { "self","id", NULL
};
8888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8898 wxPy_BEGIN_ALLOW_THREADS
;
8899 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8901 wxPy_END_ALLOW_THREADS
;
8902 if (PyErr_Occurred()) return NULL
;
8903 } _resultobj
= Py_BuildValue("i",_result
);
8907 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8908 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8909 PyObject
* _resultobj
;
8913 PyObject
* _argo0
= 0;
8914 char *_kwnames
[] = { "self","id", NULL
};
8917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8927 wxPy_BEGIN_ALLOW_THREADS
;
8928 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8930 wxPy_END_ALLOW_THREADS
;
8931 if (PyErr_Occurred()) return NULL
;
8932 } _resultobj
= Py_BuildValue("i",_result
);
8936 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8937 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8938 PyObject
* _resultobj
;
8942 PyObject
* _argo0
= 0;
8943 PyObject
* _obj2
= 0;
8944 char *_kwnames
[] = { "self","id","label", NULL
};
8947 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8950 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8951 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8957 #if PYTHON_API_VERSION >= 1009
8958 char* tmpPtr
; int tmpSize
;
8959 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8960 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8963 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8965 _arg2
= new wxString(tmpPtr
, tmpSize
);
8967 if (!PyString_Check(_obj2
)) {
8968 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8971 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8975 wxPy_BEGIN_ALLOW_THREADS
;
8976 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
8978 wxPy_END_ALLOW_THREADS
;
8979 if (PyErr_Occurred()) return NULL
;
8980 } Py_INCREF(Py_None
);
8981 _resultobj
= Py_None
;
8989 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8990 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8991 PyObject
* _resultobj
;
8995 PyObject
* _argo0
= 0;
8996 char *_kwnames
[] = { "self","id", NULL
};
8999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
9002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
9009 wxPy_BEGIN_ALLOW_THREADS
;
9010 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
9012 wxPy_END_ALLOW_THREADS
;
9013 if (PyErr_Occurred()) return NULL
;
9015 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9023 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
9024 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9025 PyObject
* _resultobj
;
9029 PyObject
* _argo0
= 0;
9030 PyObject
* _obj2
= 0;
9031 char *_kwnames
[] = { "self","id","helpString", NULL
};
9034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
9037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
9044 #if PYTHON_API_VERSION >= 1009
9045 char* tmpPtr
; int tmpSize
;
9046 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9047 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9050 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9052 _arg2
= new wxString(tmpPtr
, tmpSize
);
9054 if (!PyString_Check(_obj2
)) {
9055 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9058 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9062 wxPy_BEGIN_ALLOW_THREADS
;
9063 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
9065 wxPy_END_ALLOW_THREADS
;
9066 if (PyErr_Occurred()) return NULL
;
9067 } Py_INCREF(Py_None
);
9068 _resultobj
= Py_None
;
9076 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9077 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9078 PyObject
* _resultobj
;
9082 PyObject
* _argo0
= 0;
9083 char *_kwnames
[] = { "self","id", NULL
};
9086 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9089 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9090 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9091 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9096 wxPy_BEGIN_ALLOW_THREADS
;
9097 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9099 wxPy_END_ALLOW_THREADS
;
9100 if (PyErr_Occurred()) return NULL
;
9102 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9110 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9113 src
= (wxMenuItem
*) ptr
;
9114 dest
= (wxObject
*) src
;
9115 return (void *) dest
;
9118 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9119 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9120 PyObject
* _resultobj
;
9121 wxMenuItem
* _result
;
9122 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9123 int _arg1
= (int ) wxID_SEPARATOR
;
9124 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9125 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9126 bool _arg4
= (bool ) FALSE
;
9127 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9128 PyObject
* _argo0
= 0;
9129 PyObject
* _obj2
= 0;
9130 PyObject
* _obj3
= 0;
9131 int tempbool4
= (int) FALSE
;
9132 PyObject
* _argo5
= 0;
9133 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9148 #if PYTHON_API_VERSION >= 1009
9149 char* tmpPtr
; int tmpSize
;
9150 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9151 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9154 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9156 _arg2
= new wxString(tmpPtr
, tmpSize
);
9158 if (!PyString_Check(_obj2
)) {
9159 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9162 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9167 #if PYTHON_API_VERSION >= 1009
9168 char* tmpPtr
; int tmpSize
;
9169 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9170 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9173 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9175 _arg3
= new wxString(tmpPtr
, tmpSize
);
9177 if (!PyString_Check(_obj3
)) {
9178 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9181 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9184 _arg4
= (bool ) tempbool4
;
9186 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9187 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9193 wxPy_BEGIN_ALLOW_THREADS
;
9194 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9196 wxPy_END_ALLOW_THREADS
;
9197 if (PyErr_Occurred()) return NULL
;
9199 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9200 _resultobj
= Py_BuildValue("s",_ptemp
);
9203 _resultobj
= Py_None
;
9216 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9217 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9218 PyObject
* _resultobj
;
9221 PyObject
* _argo0
= 0;
9222 char *_kwnames
[] = { "self", NULL
};
9225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9235 wxPy_BEGIN_ALLOW_THREADS
;
9236 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9238 wxPy_END_ALLOW_THREADS
;
9239 if (PyErr_Occurred()) return NULL
;
9240 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9244 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9245 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9246 PyObject
* _resultobj
;
9249 PyObject
* _argo0
= 0;
9250 char *_kwnames
[] = { "self","id", NULL
};
9253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9263 wxPy_BEGIN_ALLOW_THREADS
;
9264 wxMenuItem_SetId(_arg0
,_arg1
);
9266 wxPy_END_ALLOW_THREADS
;
9267 if (PyErr_Occurred()) return NULL
;
9268 } Py_INCREF(Py_None
);
9269 _resultobj
= Py_None
;
9273 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9274 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9275 PyObject
* _resultobj
;
9278 PyObject
* _argo0
= 0;
9279 char *_kwnames
[] = { "self", NULL
};
9282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9292 wxPy_BEGIN_ALLOW_THREADS
;
9293 _result
= (int )wxMenuItem_GetId(_arg0
);
9295 wxPy_END_ALLOW_THREADS
;
9296 if (PyErr_Occurred()) return NULL
;
9297 } _resultobj
= Py_BuildValue("i",_result
);
9301 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9302 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9303 PyObject
* _resultobj
;
9306 PyObject
* _argo0
= 0;
9307 char *_kwnames
[] = { "self", NULL
};
9310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9320 wxPy_BEGIN_ALLOW_THREADS
;
9321 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9323 wxPy_END_ALLOW_THREADS
;
9324 if (PyErr_Occurred()) return NULL
;
9325 } _resultobj
= Py_BuildValue("i",_result
);
9329 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9330 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9331 PyObject
* _resultobj
;
9334 PyObject
* _argo0
= 0;
9335 PyObject
* _obj1
= 0;
9336 char *_kwnames
[] = { "self","str", NULL
};
9339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9349 #if PYTHON_API_VERSION >= 1009
9350 char* tmpPtr
; int tmpSize
;
9351 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9352 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9355 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9357 _arg1
= new wxString(tmpPtr
, tmpSize
);
9359 if (!PyString_Check(_obj1
)) {
9360 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9363 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9367 wxPy_BEGIN_ALLOW_THREADS
;
9368 wxMenuItem_SetText(_arg0
,*_arg1
);
9370 wxPy_END_ALLOW_THREADS
;
9371 if (PyErr_Occurred()) return NULL
;
9372 } Py_INCREF(Py_None
);
9373 _resultobj
= Py_None
;
9381 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9382 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9383 PyObject
* _resultobj
;
9386 PyObject
* _argo0
= 0;
9387 char *_kwnames
[] = { "self", NULL
};
9390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9400 wxPy_BEGIN_ALLOW_THREADS
;
9401 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9403 wxPy_END_ALLOW_THREADS
;
9404 if (PyErr_Occurred()) return NULL
;
9406 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9414 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9415 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9416 PyObject
* _resultobj
;
9419 PyObject
* _argo0
= 0;
9420 char *_kwnames
[] = { "self", NULL
};
9423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9433 wxPy_BEGIN_ALLOW_THREADS
;
9434 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9435 _result
= (wxString
*) &_result_ref
;
9437 wxPy_END_ALLOW_THREADS
;
9438 if (PyErr_Occurred()) return NULL
;
9440 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9445 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9446 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9447 PyObject
* _resultobj
;
9450 PyObject
* _argo0
= 0;
9452 char *_kwnames
[] = { "self","checkable", NULL
};
9455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9464 _arg1
= (bool ) tempbool1
;
9466 wxPy_BEGIN_ALLOW_THREADS
;
9467 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9469 wxPy_END_ALLOW_THREADS
;
9470 if (PyErr_Occurred()) return NULL
;
9471 } Py_INCREF(Py_None
);
9472 _resultobj
= Py_None
;
9476 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9477 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9478 PyObject
* _resultobj
;
9481 PyObject
* _argo0
= 0;
9482 char *_kwnames
[] = { "self", NULL
};
9485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9495 wxPy_BEGIN_ALLOW_THREADS
;
9496 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9498 wxPy_END_ALLOW_THREADS
;
9499 if (PyErr_Occurred()) return NULL
;
9500 } _resultobj
= Py_BuildValue("i",_result
);
9504 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9505 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9506 PyObject
* _resultobj
;
9509 PyObject
* _argo0
= 0;
9510 char *_kwnames
[] = { "self", NULL
};
9513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9523 wxPy_BEGIN_ALLOW_THREADS
;
9524 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9526 wxPy_END_ALLOW_THREADS
;
9527 if (PyErr_Occurred()) return NULL
;
9528 } _resultobj
= Py_BuildValue("i",_result
);
9532 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9533 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9534 PyObject
* _resultobj
;
9537 PyObject
* _argo0
= 0;
9538 PyObject
* _argo1
= 0;
9539 char *_kwnames
[] = { "self","menu", NULL
};
9542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9552 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9553 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9559 wxPy_BEGIN_ALLOW_THREADS
;
9560 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9562 wxPy_END_ALLOW_THREADS
;
9563 if (PyErr_Occurred()) return NULL
;
9564 } Py_INCREF(Py_None
);
9565 _resultobj
= Py_None
;
9569 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9570 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9571 PyObject
* _resultobj
;
9574 PyObject
* _argo0
= 0;
9575 char *_kwnames
[] = { "self", NULL
};
9578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9588 wxPy_BEGIN_ALLOW_THREADS
;
9589 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9591 wxPy_END_ALLOW_THREADS
;
9592 if (PyErr_Occurred()) return NULL
;
9593 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9597 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9598 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9599 PyObject
* _resultobj
;
9601 bool _arg1
= (bool ) TRUE
;
9602 PyObject
* _argo0
= 0;
9603 int tempbool1
= (int) TRUE
;
9604 char *_kwnames
[] = { "self","enable", NULL
};
9607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9616 _arg1
= (bool ) tempbool1
;
9618 wxPy_BEGIN_ALLOW_THREADS
;
9619 wxMenuItem_Enable(_arg0
,_arg1
);
9621 wxPy_END_ALLOW_THREADS
;
9622 if (PyErr_Occurred()) return NULL
;
9623 } Py_INCREF(Py_None
);
9624 _resultobj
= Py_None
;
9628 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9629 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9630 PyObject
* _resultobj
;
9633 PyObject
* _argo0
= 0;
9634 char *_kwnames
[] = { "self", NULL
};
9637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9647 wxPy_BEGIN_ALLOW_THREADS
;
9648 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9650 wxPy_END_ALLOW_THREADS
;
9651 if (PyErr_Occurred()) return NULL
;
9652 } _resultobj
= Py_BuildValue("i",_result
);
9656 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9657 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9658 PyObject
* _resultobj
;
9660 bool _arg1
= (bool ) TRUE
;
9661 PyObject
* _argo0
= 0;
9662 int tempbool1
= (int) TRUE
;
9663 char *_kwnames
[] = { "self","check", NULL
};
9666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9675 _arg1
= (bool ) tempbool1
;
9677 wxPy_BEGIN_ALLOW_THREADS
;
9678 wxMenuItem_Check(_arg0
,_arg1
);
9680 wxPy_END_ALLOW_THREADS
;
9681 if (PyErr_Occurred()) return NULL
;
9682 } Py_INCREF(Py_None
);
9683 _resultobj
= Py_None
;
9687 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9688 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9689 PyObject
* _resultobj
;
9692 PyObject
* _argo0
= 0;
9693 char *_kwnames
[] = { "self", NULL
};
9696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9706 wxPy_BEGIN_ALLOW_THREADS
;
9707 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9709 wxPy_END_ALLOW_THREADS
;
9710 if (PyErr_Occurred()) return NULL
;
9711 } _resultobj
= Py_BuildValue("i",_result
);
9715 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9716 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9717 PyObject
* _resultobj
;
9719 PyObject
* _argo0
= 0;
9720 char *_kwnames
[] = { "self", NULL
};
9723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9733 wxPy_BEGIN_ALLOW_THREADS
;
9734 wxMenuItem_Toggle(_arg0
);
9736 wxPy_END_ALLOW_THREADS
;
9737 if (PyErr_Occurred()) return NULL
;
9738 } Py_INCREF(Py_None
);
9739 _resultobj
= Py_None
;
9743 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9744 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9745 PyObject
* _resultobj
;
9748 PyObject
* _argo0
= 0;
9749 PyObject
* _obj1
= 0;
9750 char *_kwnames
[] = { "self","str", NULL
};
9753 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9756 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9757 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9758 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9763 #if PYTHON_API_VERSION >= 1009
9764 char* tmpPtr
; int tmpSize
;
9765 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9766 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9769 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9771 _arg1
= new wxString(tmpPtr
, tmpSize
);
9773 if (!PyString_Check(_obj1
)) {
9774 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9777 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9781 wxPy_BEGIN_ALLOW_THREADS
;
9782 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9784 wxPy_END_ALLOW_THREADS
;
9785 if (PyErr_Occurred()) return NULL
;
9786 } Py_INCREF(Py_None
);
9787 _resultobj
= Py_None
;
9795 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9796 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9797 PyObject
* _resultobj
;
9800 PyObject
* _argo0
= 0;
9801 char *_kwnames
[] = { "self", NULL
};
9804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9814 wxPy_BEGIN_ALLOW_THREADS
;
9815 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9816 _result
= (wxString
*) &_result_ref
;
9818 wxPy_END_ALLOW_THREADS
;
9819 if (PyErr_Occurred()) return NULL
;
9821 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9826 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9827 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9828 PyObject
* _resultobj
;
9829 wxAcceleratorEntry
* _result
;
9831 PyObject
* _argo0
= 0;
9832 char *_kwnames
[] = { "self", NULL
};
9836 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9839 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9840 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9846 wxPy_BEGIN_ALLOW_THREADS
;
9847 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9849 wxPy_END_ALLOW_THREADS
;
9850 if (PyErr_Occurred()) return NULL
;
9852 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9853 _resultobj
= Py_BuildValue("s",_ptemp
);
9856 _resultobj
= Py_None
;
9861 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9862 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9863 PyObject
* _resultobj
;
9865 wxAcceleratorEntry
* _arg1
;
9866 PyObject
* _argo0
= 0;
9867 PyObject
* _argo1
= 0;
9868 char *_kwnames
[] = { "self","accel", NULL
};
9871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9881 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9882 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9888 wxPy_BEGIN_ALLOW_THREADS
;
9889 wxMenuItem_SetAccel(_arg0
,_arg1
);
9891 wxPy_END_ALLOW_THREADS
;
9892 if (PyErr_Occurred()) return NULL
;
9893 } Py_INCREF(Py_None
);
9894 _resultobj
= Py_None
;
9898 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9899 PyObject
* _resultobj
;
9902 PyObject
* _obj0
= 0;
9903 char *_kwnames
[] = { "text", NULL
};
9906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9909 #if PYTHON_API_VERSION >= 1009
9910 char* tmpPtr
; int tmpSize
;
9911 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9912 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9915 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9917 _arg0
= new wxString(tmpPtr
, tmpSize
);
9919 if (!PyString_Check(_obj0
)) {
9920 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9923 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9927 wxPy_BEGIN_ALLOW_THREADS
;
9928 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9930 wxPy_END_ALLOW_THREADS
;
9931 if (PyErr_Occurred()) return NULL
;
9933 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9945 static PyMethodDef windowscMethods
[] = {
9946 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
9947 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9948 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
9949 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9950 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
9951 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
9952 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9953 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
9954 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9955 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9956 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9957 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9958 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
9959 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9960 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
9961 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
9962 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9963 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
9964 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
9965 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
9966 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
9967 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9968 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9969 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9970 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
9971 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9972 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
9973 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
9974 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
9975 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
9976 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
9977 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
9978 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
9979 { "wxMenuBar_FindMenu", (PyCFunction
) _wrap_wxMenuBar_FindMenu
, METH_VARARGS
| METH_KEYWORDS
},
9980 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9981 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
9982 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
9983 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
9984 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
9985 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
9986 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
9987 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
9988 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
9989 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
9990 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
9991 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
9992 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
9993 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
9994 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9995 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
9996 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9997 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
9998 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
9999 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
10000 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
10001 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
10002 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10003 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
10004 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10005 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10006 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
10007 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
10008 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
10009 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10010 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10011 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10012 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10013 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10014 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10015 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10016 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
10017 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10018 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10019 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10020 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
10021 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
10022 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10023 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
10024 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
10025 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
10026 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
10027 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10028 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
10029 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
10030 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
10031 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10032 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10033 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10034 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10035 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10036 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10037 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
10038 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
10039 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10040 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
10041 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10042 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
10043 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10044 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
10045 { "wxScrolledWindow_Create", (PyCFunction
) _wrap_wxScrolledWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10046 { "new_wxPreScrolledWindow", (PyCFunction
) _wrap_new_wxPreScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10047 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10048 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10049 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10050 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10051 { "wxPanel_Create", (PyCFunction
) _wrap_wxPanel_Create
, METH_VARARGS
| METH_KEYWORDS
},
10052 { "new_wxPrePanel", (PyCFunction
) _wrap_new_wxPrePanel
, METH_VARARGS
| METH_KEYWORDS
},
10053 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
10054 { "wxWindow_GetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_GetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10055 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10056 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10057 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10058 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10059 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10060 { "wxWindow_PageDown", (PyCFunction
) _wrap_wxWindow_PageDown
, METH_VARARGS
| METH_KEYWORDS
},
10061 { "wxWindow_PageUp", (PyCFunction
) _wrap_wxWindow_PageUp
, METH_VARARGS
| METH_KEYWORDS
},
10062 { "wxWindow_LineDown", (PyCFunction
) _wrap_wxWindow_LineDown
, METH_VARARGS
| METH_KEYWORDS
},
10063 { "wxWindow_LineUp", (PyCFunction
) _wrap_wxWindow_LineUp
, METH_VARARGS
| METH_KEYWORDS
},
10064 { "wxWindow_ScrollPages", (PyCFunction
) _wrap_wxWindow_ScrollPages
, METH_VARARGS
| METH_KEYWORDS
},
10065 { "wxWindow_ScrollLines", (PyCFunction
) _wrap_wxWindow_ScrollLines
, METH_VARARGS
| METH_KEYWORDS
},
10066 { "wxWindow_SetHelpText", (PyCFunction
) _wrap_wxWindow_SetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10067 { "wxWindow_GetHelpText", (PyCFunction
) _wrap_wxWindow_GetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10068 { "wxWindow_Update", (PyCFunction
) _wrap_wxWindow_Update
, METH_VARARGS
| METH_KEYWORDS
},
10069 { "wxWindow_Thaw", (PyCFunction
) _wrap_wxWindow_Thaw
, METH_VARARGS
| METH_KEYWORDS
},
10070 { "wxWindow_Freeze", (PyCFunction
) _wrap_wxWindow_Freeze
, METH_VARARGS
| METH_KEYWORDS
},
10071 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10072 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10073 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10074 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10075 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10076 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10077 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10078 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10079 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10080 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10081 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10082 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10083 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10084 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10085 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10086 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10087 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10088 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10089 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10090 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10091 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10092 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10093 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10094 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10095 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10096 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10097 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10098 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10099 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10100 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10101 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10102 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10103 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10104 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10105 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10106 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10107 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10108 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10109 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10110 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10111 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10112 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10113 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10114 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10115 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10116 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10117 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10118 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10119 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10120 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10121 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10122 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10123 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10124 { "wxWindow_RefreshRect", (PyCFunction
) _wrap_wxWindow_RefreshRect
, METH_VARARGS
| METH_KEYWORDS
},
10125 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10126 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10127 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10128 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10129 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10130 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10131 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10132 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10133 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10134 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10135 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10136 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10137 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10138 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10139 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10140 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10141 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10142 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10143 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10144 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10145 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10146 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10147 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10148 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10149 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10150 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10151 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10152 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10153 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10154 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10155 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10156 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10157 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10158 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10159 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10160 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10161 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10162 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10163 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10164 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10165 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10166 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10167 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10168 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10169 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10170 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10171 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10172 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10173 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10174 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10175 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10176 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10177 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10178 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10179 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10180 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10181 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10182 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10183 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10184 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10185 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10186 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10187 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10188 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10189 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10190 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10191 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10192 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10193 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10194 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10195 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10196 { "wxWindow_Create", (PyCFunction
) _wrap_wxWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10197 { "new_wxPreWindow", (PyCFunction
) _wrap_new_wxPreWindow
, METH_VARARGS
| METH_KEYWORDS
},
10198 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10199 { "wxPyValidator__setCallbackInfo", (PyCFunction
) _wrap_wxPyValidator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
10200 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10201 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10202 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10203 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10204 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10205 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10206 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10207 { "wxEvtHandler__setOORInfo", (PyCFunction
) _wrap_wxEvtHandler__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
10208 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10209 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10210 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10211 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10212 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10213 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10214 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10215 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10216 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10217 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10218 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10225 * This table is used by the pointer type-checker
10227 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10228 { "_signed_long","_long",0},
10229 { "_wxPrintQuality","_wxCoord",0},
10230 { "_wxPrintQuality","_int",0},
10231 { "_wxPrintQuality","_signed_int",0},
10232 { "_wxPrintQuality","_unsigned_int",0},
10233 { "_wxPrintQuality","_wxWindowID",0},
10234 { "_wxPrintQuality","_uint",0},
10235 { "_wxPrintQuality","_EBool",0},
10236 { "_wxPrintQuality","_size_t",0},
10237 { "_wxPrintQuality","_time_t",0},
10238 { "_byte","_unsigned_char",0},
10239 { "_long","_unsigned_long",0},
10240 { "_long","_signed_long",0},
10241 { "_size_t","_wxCoord",0},
10242 { "_size_t","_wxPrintQuality",0},
10243 { "_size_t","_time_t",0},
10244 { "_size_t","_unsigned_int",0},
10245 { "_size_t","_int",0},
10246 { "_size_t","_wxWindowID",0},
10247 { "_size_t","_uint",0},
10248 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10249 { "_uint","_wxCoord",0},
10250 { "_uint","_wxPrintQuality",0},
10251 { "_uint","_time_t",0},
10252 { "_uint","_size_t",0},
10253 { "_uint","_unsigned_int",0},
10254 { "_uint","_int",0},
10255 { "_uint","_wxWindowID",0},
10256 { "_wxChar","_char",0},
10257 { "_char","_wxChar",0},
10258 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10259 { "_EBool","_wxCoord",0},
10260 { "_EBool","_wxPrintQuality",0},
10261 { "_EBool","_signed_int",0},
10262 { "_EBool","_int",0},
10263 { "_EBool","_wxWindowID",0},
10264 { "_unsigned_long","_long",0},
10265 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10266 { "_signed_int","_wxCoord",0},
10267 { "_signed_int","_wxPrintQuality",0},
10268 { "_signed_int","_EBool",0},
10269 { "_signed_int","_wxWindowID",0},
10270 { "_signed_int","_int",0},
10271 { "_WXTYPE","_short",0},
10272 { "_WXTYPE","_signed_short",0},
10273 { "_WXTYPE","_unsigned_short",0},
10274 { "_unsigned_short","_WXTYPE",0},
10275 { "_unsigned_short","_short",0},
10276 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10277 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10278 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10279 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10280 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10281 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10282 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10283 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10284 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10285 { "_signed_short","_WXTYPE",0},
10286 { "_signed_short","_short",0},
10287 { "_unsigned_char","_byte",0},
10288 { "_unsigned_int","_wxCoord",0},
10289 { "_unsigned_int","_wxPrintQuality",0},
10290 { "_unsigned_int","_time_t",0},
10291 { "_unsigned_int","_size_t",0},
10292 { "_unsigned_int","_uint",0},
10293 { "_unsigned_int","_wxWindowID",0},
10294 { "_unsigned_int","_int",0},
10295 { "_short","_WXTYPE",0},
10296 { "_short","_unsigned_short",0},
10297 { "_short","_signed_short",0},
10298 { "_wxWindowID","_wxCoord",0},
10299 { "_wxWindowID","_wxPrintQuality",0},
10300 { "_wxWindowID","_time_t",0},
10301 { "_wxWindowID","_size_t",0},
10302 { "_wxWindowID","_EBool",0},
10303 { "_wxWindowID","_uint",0},
10304 { "_wxWindowID","_int",0},
10305 { "_wxWindowID","_signed_int",0},
10306 { "_wxWindowID","_unsigned_int",0},
10307 { "_int","_wxCoord",0},
10308 { "_int","_wxPrintQuality",0},
10309 { "_int","_time_t",0},
10310 { "_int","_size_t",0},
10311 { "_int","_EBool",0},
10312 { "_int","_uint",0},
10313 { "_int","_wxWindowID",0},
10314 { "_int","_unsigned_int",0},
10315 { "_int","_signed_int",0},
10316 { "_time_t","_wxCoord",0},
10317 { "_time_t","_wxPrintQuality",0},
10318 { "_time_t","_unsigned_int",0},
10319 { "_time_t","_int",0},
10320 { "_time_t","_wxWindowID",0},
10321 { "_time_t","_uint",0},
10322 { "_time_t","_size_t",0},
10323 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10324 { "_wxCoord","_int",0},
10325 { "_wxCoord","_signed_int",0},
10326 { "_wxCoord","_unsigned_int",0},
10327 { "_wxCoord","_wxWindowID",0},
10328 { "_wxCoord","_uint",0},
10329 { "_wxCoord","_EBool",0},
10330 { "_wxCoord","_size_t",0},
10331 { "_wxCoord","_time_t",0},
10332 { "_wxCoord","_wxPrintQuality",0},
10333 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10334 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10335 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10336 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10337 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10338 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10339 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10340 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10341 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10342 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10345 static PyObject
*SWIG_globals
;
10349 SWIGEXPORT(void) initwindowsc() {
10351 SWIG_globals
= SWIG_newvarlink();
10352 m
= Py_InitModule("windowsc", windowscMethods
);
10353 d
= PyModule_GetDict(m
);
10356 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10357 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);