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 class wxPyValidator
: public wxValidator
{
96 DECLARE_DYNAMIC_CLASS(wxPyValidator
);
104 wxObject
* Clone() const {
105 wxPyValidator
* ptr
= NULL
;
106 wxPyValidator
* self
= (wxPyValidator
*)this;
108 wxPyBeginBlockThreads();
109 if (self
->m_myInst
.findCallback("Clone")) {
111 ro
= self
->m_myInst
.callCallbackObj(Py_BuildValue("()"));
113 SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxPyValidator_p");
117 wxPyEndBlockThreads();
119 // This is very dangerous!!! But is the only way I could find
120 // to squash a memory leak. Currently it is okay, but if the
121 // validator architecture in wxWindows ever changes, problems
128 DEC_PYCALLBACK_BOOL_WXWIN(Validate
);
129 DEC_PYCALLBACK_BOOL_(TransferToWindow
);
130 DEC_PYCALLBACK_BOOL_(TransferFromWindow
);
135 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator
, wxValidator
, Validate
);
136 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferToWindow
);
137 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferFromWindow
);
139 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator
, wxValidator
);
144 static void *SwigwxEvtHandlerTowxObject(void *ptr
) {
147 src
= (wxEvtHandler
*) ptr
;
148 dest
= (wxObject
*) src
;
149 return (void *) dest
;
152 #define new_wxEvtHandler() (new wxEvtHandler())
153 static PyObject
*_wrap_new_wxEvtHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
154 PyObject
* _resultobj
;
155 wxEvtHandler
* _result
;
156 char *_kwnames
[] = { NULL
};
160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEvtHandler",_kwnames
))
163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
164 _result
= (wxEvtHandler
*)new_wxEvtHandler();
166 wxPyEndAllowThreads(__tstate
);
167 if (PyErr_Occurred()) return NULL
;
169 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxEvtHandler_p");
170 _resultobj
= Py_BuildValue("s",_ptemp
);
173 _resultobj
= Py_None
;
178 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
179 static PyObject
*_wrap_wxEvtHandler_ProcessEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
180 PyObject
* _resultobj
;
182 wxEvtHandler
* _arg0
;
184 PyObject
* _argo0
= 0;
185 PyObject
* _argo1
= 0;
186 char *_kwnames
[] = { "self","event", NULL
};
189 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_ProcessEvent",_kwnames
,&_argo0
,&_argo1
))
192 if (_argo0
== Py_None
) { _arg0
= NULL
; }
193 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
199 if (_argo1
== Py_None
) { _arg1
= NULL
; }
200 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
207 _result
= (bool )wxEvtHandler_ProcessEvent(_arg0
,*_arg1
);
209 wxPyEndAllowThreads(__tstate
);
210 if (PyErr_Occurred()) return NULL
;
211 } _resultobj
= Py_BuildValue("i",_result
);
215 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
216 static PyObject
*_wrap_wxEvtHandler_AddPendingEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
217 PyObject
* _resultobj
;
218 wxEvtHandler
* _arg0
;
220 PyObject
* _argo0
= 0;
221 PyObject
* _argo1
= 0;
222 char *_kwnames
[] = { "self","event", NULL
};
225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_AddPendingEvent",_kwnames
,&_argo0
,&_argo1
))
228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
235 if (_argo1
== Py_None
) { _arg1
= NULL
; }
236 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
242 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
243 wxEvtHandler_AddPendingEvent(_arg0
,*_arg1
);
245 wxPyEndAllowThreads(__tstate
);
246 if (PyErr_Occurred()) return NULL
;
247 } Py_INCREF(Py_None
);
248 _resultobj
= Py_None
;
252 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
253 static PyObject
*_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
254 PyObject
* _resultobj
;
256 wxEvtHandler
* _arg0
;
257 PyObject
* _argo0
= 0;
258 char *_kwnames
[] = { "self", NULL
};
261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames
,&_argo0
))
264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
272 _result
= (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0
);
274 wxPyEndAllowThreads(__tstate
);
275 if (PyErr_Occurred()) return NULL
;
276 } _resultobj
= Py_BuildValue("i",_result
);
280 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
281 static PyObject
*_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
282 PyObject
* _resultobj
;
283 wxEvtHandler
* _arg0
;
285 PyObject
* _argo0
= 0;
287 char *_kwnames
[] = { "self","enabled", NULL
};
290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames
,&_argo0
,&tempbool1
))
293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
299 _arg1
= (bool ) tempbool1
;
301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
302 wxEvtHandler_SetEvtHandlerEnabled(_arg0
,_arg1
);
304 wxPyEndAllowThreads(__tstate
);
305 if (PyErr_Occurred()) return NULL
;
306 } Py_INCREF(Py_None
);
307 _resultobj
= Py_None
;
311 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
312 static PyObject
*_wrap_wxEvtHandler_GetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
313 PyObject
* _resultobj
;
314 wxEvtHandler
* _result
;
315 wxEvtHandler
* _arg0
;
316 PyObject
* _argo0
= 0;
317 char *_kwnames
[] = { "self", NULL
};
320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetNextHandler",_kwnames
,&_argo0
))
323 if (_argo0
== Py_None
) { _arg0
= NULL
; }
324 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
325 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
330 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
331 _result
= (wxEvtHandler
*)wxEvtHandler_GetNextHandler(_arg0
);
333 wxPyEndAllowThreads(__tstate
);
334 if (PyErr_Occurred()) return NULL
;
335 }{ _resultobj
= wxPyMake_wxObject(_result
); }
339 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
340 static PyObject
*_wrap_wxEvtHandler_GetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
341 PyObject
* _resultobj
;
342 wxEvtHandler
* _result
;
343 wxEvtHandler
* _arg0
;
344 PyObject
* _argo0
= 0;
345 char *_kwnames
[] = { "self", NULL
};
348 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetPreviousHandler",_kwnames
,&_argo0
))
351 if (_argo0
== Py_None
) { _arg0
= NULL
; }
352 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
359 _result
= (wxEvtHandler
*)wxEvtHandler_GetPreviousHandler(_arg0
);
361 wxPyEndAllowThreads(__tstate
);
362 if (PyErr_Occurred()) return NULL
;
363 }{ _resultobj
= wxPyMake_wxObject(_result
); }
367 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
368 static PyObject
*_wrap_wxEvtHandler_SetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
369 PyObject
* _resultobj
;
370 wxEvtHandler
* _arg0
;
371 wxEvtHandler
* _arg1
;
372 PyObject
* _argo0
= 0;
373 PyObject
* _argo1
= 0;
374 char *_kwnames
[] = { "self","handler", NULL
};
377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetNextHandler",_kwnames
,&_argo0
,&_argo1
))
380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
387 if (_argo1
== Py_None
) { _arg1
= NULL
; }
388 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
395 wxEvtHandler_SetNextHandler(_arg0
,_arg1
);
397 wxPyEndAllowThreads(__tstate
);
398 if (PyErr_Occurred()) return NULL
;
399 } Py_INCREF(Py_None
);
400 _resultobj
= Py_None
;
404 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
405 static PyObject
*_wrap_wxEvtHandler_SetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
406 PyObject
* _resultobj
;
407 wxEvtHandler
* _arg0
;
408 wxEvtHandler
* _arg1
;
409 PyObject
* _argo0
= 0;
410 PyObject
* _argo1
= 0;
411 char *_kwnames
[] = { "self","handler", NULL
};
414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetPreviousHandler",_kwnames
,&_argo0
,&_argo1
))
417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
424 if (_argo1
== Py_None
) { _arg1
= NULL
; }
425 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
431 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
432 wxEvtHandler_SetPreviousHandler(_arg0
,_arg1
);
434 wxPyEndAllowThreads(__tstate
);
435 if (PyErr_Occurred()) return NULL
;
436 } Py_INCREF(Py_None
);
437 _resultobj
= Py_None
;
441 static void wxEvtHandler_Connect(wxEvtHandler
*self
,int id
,int lastId
,int eventType
,PyObject
* func
) {
442 if (PyCallable_Check(func
)) {
443 self
->Connect(id
, lastId
, eventType
,
444 (wxObjectEventFunction
) &wxPyCallback::EventThunker
,
445 new wxPyCallback(func
));
447 else if (func
== Py_None
) {
448 self
->Disconnect(id
, lastId
, eventType
,
449 (wxObjectEventFunction
)
450 &wxPyCallback::EventThunker
);
453 PyErr_SetString(PyExc_TypeError
, "Expected callable object or None.");
456 static PyObject
*_wrap_wxEvtHandler_Connect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
457 PyObject
* _resultobj
;
458 wxEvtHandler
* _arg0
;
463 PyObject
* _argo0
= 0;
464 PyObject
* _obj4
= 0;
465 char *_kwnames
[] = { "self","id","lastId","eventType","func", NULL
};
468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiO:wxEvtHandler_Connect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_obj4
))
471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
481 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
482 wxEvtHandler_Connect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
484 wxPyEndAllowThreads(__tstate
);
485 if (PyErr_Occurred()) return NULL
;
486 } Py_INCREF(Py_None
);
487 _resultobj
= Py_None
;
491 static bool wxEvtHandler_Disconnect(wxEvtHandler
*self
,int id
,int lastId
,wxEventType eventType
) {
492 return self
->Disconnect(id
, lastId
, eventType
,
493 (wxObjectEventFunction
)
494 &wxPyCallback::EventThunker
);
496 static PyObject
*_wrap_wxEvtHandler_Disconnect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
497 PyObject
* _resultobj
;
499 wxEvtHandler
* _arg0
;
501 int _arg2
= (int ) -1;
502 wxEventType _arg3
= (wxEventType
) wxEVT_NULL
;
503 PyObject
* _argo0
= 0;
504 char *_kwnames
[] = { "self","id","lastId","eventType", NULL
};
507 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxEvtHandler_Disconnect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
517 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
518 _result
= (bool )wxEvtHandler_Disconnect(_arg0
,_arg1
,_arg2
,_arg3
);
520 wxPyEndAllowThreads(__tstate
);
521 if (PyErr_Occurred()) return NULL
;
522 } _resultobj
= Py_BuildValue("i",_result
);
526 static void wxEvtHandler__setOORInfo(wxEvtHandler
*self
,PyObject
* _self
) {
527 self
->SetClientObject(new wxPyClientData(_self
));
529 static PyObject
*_wrap_wxEvtHandler__setOORInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
530 PyObject
* _resultobj
;
531 wxEvtHandler
* _arg0
;
533 PyObject
* _argo0
= 0;
534 PyObject
* _obj1
= 0;
535 char *_kwnames
[] = { "self","_self", NULL
};
538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler__setOORInfo",_kwnames
,&_argo0
,&_obj1
))
541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p.");
551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
552 wxEvtHandler__setOORInfo(_arg0
,_arg1
);
554 wxPyEndAllowThreads(__tstate
);
555 if (PyErr_Occurred()) return NULL
;
556 } Py_INCREF(Py_None
);
557 _resultobj
= Py_None
;
561 static void *SwigwxValidatorTowxEvtHandler(void *ptr
) {
564 src
= (wxValidator
*) ptr
;
565 dest
= (wxEvtHandler
*) src
;
566 return (void *) dest
;
569 static void *SwigwxValidatorTowxObject(void *ptr
) {
572 src
= (wxValidator
*) ptr
;
573 dest
= (wxObject
*) src
;
574 return (void *) dest
;
577 #define new_wxValidator() (new wxValidator())
578 static PyObject
*_wrap_new_wxValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
579 PyObject
* _resultobj
;
580 wxValidator
* _result
;
581 char *_kwnames
[] = { NULL
};
585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxValidator",_kwnames
))
588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
589 _result
= (wxValidator
*)new_wxValidator();
591 wxPyEndAllowThreads(__tstate
);
592 if (PyErr_Occurred()) return NULL
;
594 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxValidator_p");
595 _resultobj
= Py_BuildValue("s",_ptemp
);
598 _resultobj
= Py_None
;
603 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
604 static PyObject
*_wrap_wxValidator_Clone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
605 PyObject
* _resultobj
;
606 wxValidator
* _result
;
608 PyObject
* _argo0
= 0;
609 char *_kwnames
[] = { "self", NULL
};
612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_Clone",_kwnames
,&_argo0
))
615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
622 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
623 _result
= (wxValidator
*)wxValidator_Clone(_arg0
);
625 wxPyEndAllowThreads(__tstate
);
626 if (PyErr_Occurred()) return NULL
;
627 }{ _resultobj
= wxPyMake_wxObject(_result
); }
631 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
632 static PyObject
*_wrap_wxValidator_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
633 PyObject
* _resultobj
;
636 PyObject
* _argo0
= 0;
637 char *_kwnames
[] = { "self", NULL
};
640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_GetWindow",_kwnames
,&_argo0
))
643 if (_argo0
== Py_None
) { _arg0
= NULL
; }
644 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
650 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
651 _result
= (wxWindow
*)wxValidator_GetWindow(_arg0
);
653 wxPyEndAllowThreads(__tstate
);
654 if (PyErr_Occurred()) return NULL
;
655 }{ _resultobj
= wxPyMake_wxObject(_result
); }
659 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
660 static PyObject
*_wrap_wxValidator_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
661 PyObject
* _resultobj
;
664 PyObject
* _argo0
= 0;
665 PyObject
* _argo1
= 0;
666 char *_kwnames
[] = { "self","window", NULL
};
669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxValidator_SetWindow",_kwnames
,&_argo0
,&_argo1
))
672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
679 if (_argo1
== Py_None
) { _arg1
= NULL
; }
680 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
686 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
687 wxValidator_SetWindow(_arg0
,_arg1
);
689 wxPyEndAllowThreads(__tstate
);
690 if (PyErr_Occurred()) return NULL
;
691 } Py_INCREF(Py_None
);
692 _resultobj
= Py_None
;
696 static PyObject
*_wrap_wxValidator_IsSilent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
697 PyObject
* _resultobj
;
699 char *_kwnames
[] = { NULL
};
702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxValidator_IsSilent",_kwnames
))
705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
706 _result
= (bool )wxValidator::IsSilent();
708 wxPyEndAllowThreads(__tstate
);
709 if (PyErr_Occurred()) return NULL
;
710 } _resultobj
= Py_BuildValue("i",_result
);
714 static PyObject
*_wrap_wxValidator_SetBellOnError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
715 PyObject
* _resultobj
;
716 int _arg0
= (int ) TRUE
;
717 char *_kwnames
[] = { "doIt", NULL
};
720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxValidator_SetBellOnError",_kwnames
,&_arg0
))
723 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
724 wxValidator::SetBellOnError(_arg0
);
726 wxPyEndAllowThreads(__tstate
);
727 if (PyErr_Occurred()) return NULL
;
728 } Py_INCREF(Py_None
);
729 _resultobj
= Py_None
;
733 static void *SwigwxPyValidatorTowxValidator(void *ptr
) {
736 src
= (wxPyValidator
*) ptr
;
737 dest
= (wxValidator
*) src
;
738 return (void *) dest
;
741 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr
) {
744 src
= (wxPyValidator
*) ptr
;
745 dest
= (wxEvtHandler
*) src
;
746 return (void *) dest
;
749 static void *SwigwxPyValidatorTowxObject(void *ptr
) {
752 src
= (wxPyValidator
*) ptr
;
753 dest
= (wxObject
*) src
;
754 return (void *) dest
;
757 #define new_wxPyValidator() (new wxPyValidator())
758 static PyObject
*_wrap_new_wxPyValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
759 PyObject
* _resultobj
;
760 wxPyValidator
* _result
;
761 char *_kwnames
[] = { NULL
};
765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPyValidator",_kwnames
))
768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
769 _result
= (wxPyValidator
*)new_wxPyValidator();
771 wxPyEndAllowThreads(__tstate
);
772 if (PyErr_Occurred()) return NULL
;
774 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyValidator_p");
775 _resultobj
= Py_BuildValue("s",_ptemp
);
778 _resultobj
= Py_None
;
783 #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
784 static PyObject
*_wrap_wxPyValidator__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
785 PyObject
* _resultobj
;
786 wxPyValidator
* _arg0
;
789 int _arg3
= (int ) TRUE
;
790 PyObject
* _argo0
= 0;
791 PyObject
* _obj1
= 0;
792 PyObject
* _obj2
= 0;
793 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyValidator_p")) {
801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p.");
812 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
813 wxPyValidator__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
815 wxPyEndAllowThreads(__tstate
);
816 if (PyErr_Occurred()) return NULL
;
817 } Py_INCREF(Py_None
);
818 _resultobj
= Py_None
;
822 static void *SwigwxWindowTowxEvtHandler(void *ptr
) {
825 src
= (wxWindow
*) ptr
;
826 dest
= (wxEvtHandler
*) src
;
827 return (void *) dest
;
830 static void *SwigwxWindowTowxObject(void *ptr
) {
833 src
= (wxWindow
*) ptr
;
834 dest
= (wxObject
*) src
;
835 return (void *) dest
;
838 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
839 static PyObject
*_wrap_new_wxWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
840 PyObject
* _resultobj
;
844 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
845 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
846 long _arg4
= (long ) 0;
847 char * _arg5
= (char *) "panel";
848 PyObject
* _argo0
= 0;
850 PyObject
* _obj2
= 0;
852 PyObject
* _obj3
= 0;
853 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
869 if (! wxPoint_helper(_obj2
, &_arg2
))
875 if (! wxSize_helper(_obj3
, &_arg3
))
879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
880 _result
= (wxWindow
*)new_wxWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
882 wxPyEndAllowThreads(__tstate
);
883 if (PyErr_Occurred()) return NULL
;
885 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
886 _resultobj
= Py_BuildValue("s",_ptemp
);
889 _resultobj
= Py_None
;
894 #define new_wxPreWindow() (new wxWindow())
895 static PyObject
*_wrap_new_wxPreWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
896 PyObject
* _resultobj
;
898 char *_kwnames
[] = { NULL
};
902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreWindow",_kwnames
))
905 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
906 _result
= (wxWindow
*)new_wxPreWindow();
908 wxPyEndAllowThreads(__tstate
);
909 if (PyErr_Occurred()) return NULL
;
911 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
912 _resultobj
= Py_BuildValue("s",_ptemp
);
915 _resultobj
= Py_None
;
920 #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
921 static PyObject
*_wrap_wxWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
922 PyObject
* _resultobj
;
927 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
928 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
929 long _arg5
= (long ) 0;
930 char * _arg6
= (char *) "panel";
931 PyObject
* _argo0
= 0;
932 PyObject
* _argo1
= 0;
934 PyObject
* _obj3
= 0;
936 PyObject
* _obj4
= 0;
937 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p.");
950 if (_argo1
== Py_None
) { _arg1
= NULL
; }
951 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
952 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p.");
959 if (! wxPoint_helper(_obj3
, &_arg3
))
965 if (! wxSize_helper(_obj4
, &_arg4
))
969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
970 _result
= (bool )wxWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
972 wxPyEndAllowThreads(__tstate
);
973 if (PyErr_Occurred()) return NULL
;
974 } _resultobj
= Py_BuildValue("i",_result
);
978 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
979 static PyObject
*_wrap_wxWindow_CaptureMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
980 PyObject
* _resultobj
;
982 PyObject
* _argo0
= 0;
983 char *_kwnames
[] = { "self", NULL
};
986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_CaptureMouse",_kwnames
,&_argo0
))
989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
996 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
997 wxWindow_CaptureMouse(_arg0
);
999 wxPyEndAllowThreads(__tstate
);
1000 if (PyErr_Occurred()) return NULL
;
1001 } Py_INCREF(Py_None
);
1002 _resultobj
= Py_None
;
1006 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
1007 static PyObject
*_wrap_wxWindow_Center(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1008 PyObject
* _resultobj
;
1010 int _arg1
= (int ) wxBOTH
;
1011 PyObject
* _argo0
= 0;
1012 char *_kwnames
[] = { "self","direction", NULL
};
1015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Center",_kwnames
,&_argo0
,&_arg1
))
1018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1025 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1026 wxWindow_Center(_arg0
,_arg1
);
1028 wxPyEndAllowThreads(__tstate
);
1029 if (PyErr_Occurred()) return NULL
;
1030 } Py_INCREF(Py_None
);
1031 _resultobj
= Py_None
;
1035 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1036 static PyObject
*_wrap_wxWindow_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1037 PyObject
* _resultobj
;
1039 int _arg1
= (int ) wxBOTH
;
1040 PyObject
* _argo0
= 0;
1041 char *_kwnames
[] = { "self","direction", NULL
};
1044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Centre",_kwnames
,&_argo0
,&_arg1
))
1047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1054 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1055 wxWindow_Centre(_arg0
,_arg1
);
1057 wxPyEndAllowThreads(__tstate
);
1058 if (PyErr_Occurred()) return NULL
;
1059 } Py_INCREF(Py_None
);
1060 _resultobj
= Py_None
;
1064 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1065 static PyObject
*_wrap_wxWindow_CentreOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1066 PyObject
* _resultobj
;
1068 int _arg1
= (int ) wxBOTH
;
1069 PyObject
* _argo0
= 0;
1070 char *_kwnames
[] = { "self","direction", NULL
};
1073 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnParent",_kwnames
,&_argo0
,&_arg1
))
1076 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1077 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1083 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1084 wxWindow_CentreOnParent(_arg0
,_arg1
);
1086 wxPyEndAllowThreads(__tstate
);
1087 if (PyErr_Occurred()) return NULL
;
1088 } Py_INCREF(Py_None
);
1089 _resultobj
= Py_None
;
1093 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1094 static PyObject
*_wrap_wxWindow_CenterOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1095 PyObject
* _resultobj
;
1097 int _arg1
= (int ) wxBOTH
;
1098 PyObject
* _argo0
= 0;
1099 char *_kwnames
[] = { "self","direction", NULL
};
1102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnParent",_kwnames
,&_argo0
,&_arg1
))
1105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1112 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1113 wxWindow_CenterOnParent(_arg0
,_arg1
);
1115 wxPyEndAllowThreads(__tstate
);
1116 if (PyErr_Occurred()) return NULL
;
1117 } Py_INCREF(Py_None
);
1118 _resultobj
= Py_None
;
1122 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1123 static PyObject
*_wrap_wxWindow_CentreOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1124 PyObject
* _resultobj
;
1126 int _arg1
= (int ) wxBOTH
;
1127 PyObject
* _argo0
= 0;
1128 char *_kwnames
[] = { "self","direction", NULL
};
1131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnScreen",_kwnames
,&_argo0
,&_arg1
))
1134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1142 wxWindow_CentreOnScreen(_arg0
,_arg1
);
1144 wxPyEndAllowThreads(__tstate
);
1145 if (PyErr_Occurred()) return NULL
;
1146 } Py_INCREF(Py_None
);
1147 _resultobj
= Py_None
;
1151 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1152 static PyObject
*_wrap_wxWindow_CenterOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1153 PyObject
* _resultobj
;
1155 int _arg1
= (int ) wxBOTH
;
1156 PyObject
* _argo0
= 0;
1157 char *_kwnames
[] = { "self","direction", NULL
};
1160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnScreen",_kwnames
,&_argo0
,&_arg1
))
1163 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1164 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1165 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1171 wxWindow_CenterOnScreen(_arg0
,_arg1
);
1173 wxPyEndAllowThreads(__tstate
);
1174 if (PyErr_Occurred()) return NULL
;
1175 } Py_INCREF(Py_None
);
1176 _resultobj
= Py_None
;
1180 #define wxWindow_Clear(_swigobj) (_swigobj->Clear())
1181 static PyObject
*_wrap_wxWindow_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1182 PyObject
* _resultobj
;
1184 PyObject
* _argo0
= 0;
1185 char *_kwnames
[] = { "self", NULL
};
1188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Clear",_kwnames
,&_argo0
))
1191 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1192 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1198 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1199 wxWindow_Clear(_arg0
);
1201 wxPyEndAllowThreads(__tstate
);
1202 if (PyErr_Occurred()) return NULL
;
1203 } Py_INCREF(Py_None
);
1204 _resultobj
= Py_None
;
1208 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1209 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1210 PyObject
* _resultobj
;
1214 PyObject
* _argo0
= 0;
1216 PyObject
* _obj1
= 0;
1218 PyObject
* _obj2
= 0;
1219 char *_kwnames
[] = { "self","x","y", NULL
};
1222 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1225 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1226 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1227 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1232 temp
= (int) PyInt_AsLong(_obj1
);
1236 temp0
= (int) PyInt_AsLong(_obj2
);
1240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1241 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1243 wxPyEndAllowThreads(__tstate
);
1244 if (PyErr_Occurred()) return NULL
;
1245 } Py_INCREF(Py_None
);
1246 _resultobj
= Py_None
;
1249 o
= PyInt_FromLong((long) (*_arg1
));
1250 _resultobj
= t_output_helper(_resultobj
, o
);
1254 o
= PyInt_FromLong((long) (*_arg2
));
1255 _resultobj
= t_output_helper(_resultobj
, o
);
1260 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1261 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1262 PyObject
* _resultobj
;
1266 PyObject
* _argo0
= 0;
1268 PyObject
* _obj1
= 0;
1269 char *_kwnames
[] = { "self","pt", NULL
};
1273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1284 if (! wxPoint_helper(_obj1
, &_arg1
))
1288 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1289 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1291 wxPyEndAllowThreads(__tstate
);
1292 if (PyErr_Occurred()) return NULL
;
1293 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1294 _resultobj
= Py_BuildValue("s",_ptemp
);
1298 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1299 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1300 PyObject
* _resultobj
;
1303 int _arg1
= (int ) FALSE
;
1304 PyObject
* _argo0
= 0;
1305 char *_kwnames
[] = { "self","force", NULL
};
1308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
1311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1319 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1321 wxPyEndAllowThreads(__tstate
);
1322 if (PyErr_Occurred()) return NULL
;
1323 } _resultobj
= Py_BuildValue("i",_result
);
1327 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1328 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1329 PyObject
* _resultobj
;
1332 PyObject
* _argo0
= 0;
1333 char *_kwnames
[] = { "self", NULL
};
1336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1347 _result
= (bool )wxWindow_Destroy(_arg0
);
1349 wxPyEndAllowThreads(__tstate
);
1350 if (PyErr_Occurred()) return NULL
;
1351 } _resultobj
= Py_BuildValue("i",_result
);
1355 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1356 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1357 PyObject
* _resultobj
;
1359 PyObject
* _argo0
= 0;
1360 char *_kwnames
[] = { "self", NULL
};
1363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1374 wxWindow_DestroyChildren(_arg0
);
1376 wxPyEndAllowThreads(__tstate
);
1377 if (PyErr_Occurred()) return NULL
;
1378 } Py_INCREF(Py_None
);
1379 _resultobj
= Py_None
;
1383 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1384 static PyObject
*_wrap_wxWindow_IsBeingDeleted(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1385 PyObject
* _resultobj
;
1388 PyObject
* _argo0
= 0;
1389 char *_kwnames
[] = { "self", NULL
};
1392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsBeingDeleted",_kwnames
,&_argo0
))
1395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1403 _result
= (bool )wxWindow_IsBeingDeleted(_arg0
);
1405 wxPyEndAllowThreads(__tstate
);
1406 if (PyErr_Occurred()) return NULL
;
1407 } _resultobj
= Py_BuildValue("i",_result
);
1411 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1412 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1413 PyObject
* _resultobj
;
1416 PyObject
* _argo0
= 0;
1418 char *_kwnames
[] = { "self","enable", NULL
};
1421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1430 _arg1
= (bool ) tempbool1
;
1432 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1433 wxWindow_Enable(_arg0
,_arg1
);
1435 wxPyEndAllowThreads(__tstate
);
1436 if (PyErr_Occurred()) return NULL
;
1437 } Py_INCREF(Py_None
);
1438 _resultobj
= Py_None
;
1442 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1443 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1444 PyObject
* _resultobj
;
1448 PyObject
* _argo0
= 0;
1449 char *_kwnames
[] = { "self","id", NULL
};
1452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1463 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1465 wxPyEndAllowThreads(__tstate
);
1466 if (PyErr_Occurred()) return NULL
;
1467 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1471 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1472 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1473 PyObject
* _resultobj
;
1477 PyObject
* _argo0
= 0;
1478 PyObject
* _obj1
= 0;
1479 char *_kwnames
[] = { "self","name", NULL
};
1482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1492 #if PYTHON_API_VERSION >= 1009
1493 char* tmpPtr
; int tmpSize
;
1494 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1495 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1498 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1500 _arg1
= new wxString(tmpPtr
, tmpSize
);
1502 if (!PyString_Check(_obj1
)) {
1503 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1506 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1510 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1511 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1513 wxPyEndAllowThreads(__tstate
);
1514 if (PyErr_Occurred()) return NULL
;
1515 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1523 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1524 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1525 PyObject
* _resultobj
;
1527 PyObject
* _argo0
= 0;
1528 char *_kwnames
[] = { "self", NULL
};
1531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_kwnames
,&_argo0
))
1534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1542 wxWindow_Fit(_arg0
);
1544 wxPyEndAllowThreads(__tstate
);
1545 if (PyErr_Occurred()) return NULL
;
1546 } Py_INCREF(Py_None
);
1547 _resultobj
= Py_None
;
1551 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1552 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1553 PyObject
* _resultobj
;
1556 PyObject
* _argo0
= 0;
1557 char *_kwnames
[] = { "self", NULL
};
1561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1571 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1572 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1574 wxPyEndAllowThreads(__tstate
);
1575 if (PyErr_Occurred()) return NULL
;
1576 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1577 _resultobj
= Py_BuildValue("s",_ptemp
);
1581 #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder())
1582 static PyObject
*_wrap_wxWindow_GetBorder(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1583 PyObject
* _resultobj
;
1586 PyObject
* _argo0
= 0;
1587 char *_kwnames
[] = { "self", NULL
};
1590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBorder",_kwnames
,&_argo0
))
1593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p.");
1600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1601 _result
= (wxBorder
)wxWindow_GetBorder(_arg0
);
1603 wxPyEndAllowThreads(__tstate
);
1604 if (PyErr_Occurred()) return NULL
;
1605 } _resultobj
= Py_BuildValue("i",_result
);
1609 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1610 wxWindowList
& list
= self
->GetChildren();
1611 return wxPy_ConvertList(&list
, "wxWindow");
1613 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1614 PyObject
* _resultobj
;
1617 PyObject
* _argo0
= 0;
1618 char *_kwnames
[] = { "self", NULL
};
1621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1632 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1634 wxPyEndAllowThreads(__tstate
);
1635 if (PyErr_Occurred()) return NULL
;
1637 _resultobj
= _result
;
1642 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1643 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1644 PyObject
* _resultobj
;
1647 PyObject
* _argo0
= 0;
1648 char *_kwnames
[] = { "self", NULL
};
1651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1662 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1664 wxPyEndAllowThreads(__tstate
);
1665 if (PyErr_Occurred()) return NULL
;
1666 } _resultobj
= Py_BuildValue("i",_result
);
1670 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1671 static PyObject
*_wrap_wxWindow_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1672 PyObject
* _resultobj
;
1675 PyObject
* _argo0
= 0;
1676 char *_kwnames
[] = { "self", NULL
};
1679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharWidth",_kwnames
,&_argo0
))
1682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1689 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1690 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1692 wxPyEndAllowThreads(__tstate
);
1693 if (PyErr_Occurred()) return NULL
;
1694 } _resultobj
= Py_BuildValue("i",_result
);
1698 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1699 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1700 PyObject
* _resultobj
;
1706 PyObject
* _argo0
= 0;
1707 char *_kwnames
[] = { "self", NULL
};
1716 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_kwnames
,&_argo0
))
1719 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1720 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1721 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1726 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1727 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1729 wxPyEndAllowThreads(__tstate
);
1730 if (PyErr_Occurred()) return NULL
;
1731 } Py_INCREF(Py_None
);
1732 _resultobj
= Py_None
;
1735 o
= PyInt_FromLong((long) (*_arg1
));
1736 _resultobj
= t_output_helper(_resultobj
, o
);
1740 o
= PyInt_FromLong((long) (*_arg2
));
1741 _resultobj
= t_output_helper(_resultobj
, o
);
1746 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1747 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1748 PyObject
* _resultobj
;
1751 PyObject
* _argo0
= 0;
1752 char *_kwnames
[] = { "self", NULL
};
1756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1767 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1769 wxPyEndAllowThreads(__tstate
);
1770 if (PyErr_Occurred()) return NULL
;
1771 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1772 _resultobj
= Py_BuildValue("s",_ptemp
);
1776 #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin())
1777 static PyObject
*_wrap_wxWindow_GetClientAreaOrigin(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1778 PyObject
* _resultobj
;
1781 PyObject
* _argo0
= 0;
1782 char *_kwnames
[] = { "self", NULL
};
1786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientAreaOrigin",_kwnames
,&_argo0
))
1789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p.");
1796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1797 _result
= new wxPoint (wxWindow_GetClientAreaOrigin(_arg0
));
1799 wxPyEndAllowThreads(__tstate
);
1800 if (PyErr_Occurred()) return NULL
;
1801 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1802 _resultobj
= Py_BuildValue("s",_ptemp
);
1806 #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect())
1807 static PyObject
*_wrap_wxWindow_GetClientRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1808 PyObject
* _resultobj
;
1811 PyObject
* _argo0
= 0;
1812 char *_kwnames
[] = { "self", NULL
};
1816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientRect",_kwnames
,&_argo0
))
1819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p.");
1826 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1827 _result
= new wxRect (wxWindow_GetClientRect(_arg0
));
1829 wxPyEndAllowThreads(__tstate
);
1830 if (PyErr_Occurred()) return NULL
;
1831 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
1832 _resultobj
= Py_BuildValue("s",_ptemp
);
1836 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1837 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1838 PyObject
* _resultobj
;
1839 wxLayoutConstraints
* _result
;
1841 PyObject
* _argo0
= 0;
1842 char *_kwnames
[] = { "self", NULL
};
1846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1857 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1859 wxPyEndAllowThreads(__tstate
);
1860 if (PyErr_Occurred()) return NULL
;
1862 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1863 _resultobj
= Py_BuildValue("s",_ptemp
);
1866 _resultobj
= Py_None
;
1871 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1872 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1873 PyObject
* _resultobj
;
1874 wxEvtHandler
* _result
;
1876 PyObject
* _argo0
= 0;
1877 char *_kwnames
[] = { "self", NULL
};
1880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1891 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1893 wxPyEndAllowThreads(__tstate
);
1894 if (PyErr_Occurred()) return NULL
;
1895 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1899 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1900 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1901 PyObject
* _resultobj
;
1904 PyObject
* _argo0
= 0;
1905 char *_kwnames
[] = { "self", NULL
};
1909 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_kwnames
,&_argo0
))
1912 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1913 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1914 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1919 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1920 _result
= new wxFont (wxWindow_GetFont(_arg0
));
1922 wxPyEndAllowThreads(__tstate
);
1923 if (PyErr_Occurred()) return NULL
;
1924 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
1925 _resultobj
= Py_BuildValue("s",_ptemp
);
1929 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1930 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1931 PyObject
* _resultobj
;
1934 PyObject
* _argo0
= 0;
1935 char *_kwnames
[] = { "self", NULL
};
1939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1949 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1950 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1952 wxPyEndAllowThreads(__tstate
);
1953 if (PyErr_Occurred()) return NULL
;
1954 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1955 _resultobj
= Py_BuildValue("s",_ptemp
);
1959 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1960 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1961 PyObject
* _resultobj
;
1964 PyObject
* _argo0
= 0;
1965 char *_kwnames
[] = { "self", NULL
};
1968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_kwnames
,&_argo0
))
1971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1978 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1979 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1981 wxPyEndAllowThreads(__tstate
);
1982 if (PyErr_Occurred()) return NULL
;
1983 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1987 static long wxWindow_GetHandle(wxWindow
*self
) {
1988 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1990 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1991 PyObject
* _resultobj
;
1994 PyObject
* _argo0
= 0;
1995 char *_kwnames
[] = { "self", NULL
};
1998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_kwnames
,&_argo0
))
2001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
2008 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2009 _result
= (long )wxWindow_GetHandle(_arg0
);
2011 wxPyEndAllowThreads(__tstate
);
2012 if (PyErr_Occurred()) return NULL
;
2013 } _resultobj
= Py_BuildValue("l",_result
);
2017 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
2018 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2019 PyObject
* _resultobj
;
2022 PyObject
* _argo0
= 0;
2023 char *_kwnames
[] = { "self", NULL
};
2026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
2029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
2036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2037 _result
= (int )wxWindow_GetId(_arg0
);
2039 wxPyEndAllowThreads(__tstate
);
2040 if (PyErr_Occurred()) return NULL
;
2041 } _resultobj
= Py_BuildValue("i",_result
);
2045 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
2046 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2047 PyObject
* _resultobj
;
2050 PyObject
* _argo0
= 0;
2051 char *_kwnames
[] = { "self", NULL
};
2054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
2057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
2064 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2065 _result
= new wxString (wxWindow_GetLabel(_arg0
));
2067 wxPyEndAllowThreads(__tstate
);
2068 if (PyErr_Occurred()) return NULL
;
2070 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2078 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
2079 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2080 PyObject
* _resultobj
;
2083 PyObject
* _argo0
= 0;
2084 PyObject
* _obj1
= 0;
2085 char *_kwnames
[] = { "self","label", NULL
};
2088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
2091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2098 #if PYTHON_API_VERSION >= 1009
2099 char* tmpPtr
; int tmpSize
;
2100 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2101 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2104 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2106 _arg1
= new wxString(tmpPtr
, tmpSize
);
2108 if (!PyString_Check(_obj1
)) {
2109 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2112 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2116 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2117 wxWindow_SetLabel(_arg0
,*_arg1
);
2119 wxPyEndAllowThreads(__tstate
);
2120 if (PyErr_Occurred()) return NULL
;
2121 } Py_INCREF(Py_None
);
2122 _resultobj
= Py_None
;
2130 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2131 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2132 PyObject
* _resultobj
;
2135 PyObject
* _argo0
= 0;
2136 char *_kwnames
[] = { "self", NULL
};
2139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2150 _result
= new wxString (wxWindow_GetName(_arg0
));
2152 wxPyEndAllowThreads(__tstate
);
2153 if (PyErr_Occurred()) return NULL
;
2155 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2163 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2164 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2165 PyObject
* _resultobj
;
2168 PyObject
* _argo0
= 0;
2169 char *_kwnames
[] = { "self", NULL
};
2172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2182 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2183 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2185 wxPyEndAllowThreads(__tstate
);
2186 if (PyErr_Occurred()) return NULL
;
2187 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2191 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2192 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2193 PyObject
* _resultobj
;
2199 PyObject
* _argo0
= 0;
2200 char *_kwnames
[] = { "self", NULL
};
2209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2220 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2222 wxPyEndAllowThreads(__tstate
);
2223 if (PyErr_Occurred()) return NULL
;
2224 } Py_INCREF(Py_None
);
2225 _resultobj
= Py_None
;
2228 o
= PyInt_FromLong((long) (*_arg1
));
2229 _resultobj
= t_output_helper(_resultobj
, o
);
2233 o
= PyInt_FromLong((long) (*_arg2
));
2234 _resultobj
= t_output_helper(_resultobj
, o
);
2239 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2240 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2241 PyObject
* _resultobj
;
2244 PyObject
* _argo0
= 0;
2245 char *_kwnames
[] = { "self", NULL
};
2249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2259 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2260 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2262 wxPyEndAllowThreads(__tstate
);
2263 if (PyErr_Occurred()) return NULL
;
2264 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2265 _resultobj
= Py_BuildValue("s",_ptemp
);
2269 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2270 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2271 PyObject
* _resultobj
;
2274 PyObject
* _argo0
= 0;
2275 char *_kwnames
[] = { "self", NULL
};
2279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2289 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2290 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2292 wxPyEndAllowThreads(__tstate
);
2293 if (PyErr_Occurred()) return NULL
;
2294 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2295 _resultobj
= Py_BuildValue("s",_ptemp
);
2299 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2300 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2301 PyObject
* _resultobj
;
2305 PyObject
* _argo0
= 0;
2306 char *_kwnames
[] = { "self","orientation", NULL
};
2309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2320 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2322 wxPyEndAllowThreads(__tstate
);
2323 if (PyErr_Occurred()) return NULL
;
2324 } _resultobj
= Py_BuildValue("i",_result
);
2328 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2329 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2330 PyObject
* _resultobj
;
2334 PyObject
* _argo0
= 0;
2335 char *_kwnames
[] = { "self","orientation", NULL
};
2338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
2341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2349 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2351 wxPyEndAllowThreads(__tstate
);
2352 if (PyErr_Occurred()) return NULL
;
2353 } _resultobj
= Py_BuildValue("i",_result
);
2357 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2358 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2359 PyObject
* _resultobj
;
2363 PyObject
* _argo0
= 0;
2364 char *_kwnames
[] = { "self","orientation", NULL
};
2367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2377 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2378 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2380 wxPyEndAllowThreads(__tstate
);
2381 if (PyErr_Occurred()) return NULL
;
2382 } _resultobj
= Py_BuildValue("i",_result
);
2386 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2387 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2388 PyObject
* _resultobj
;
2394 PyObject
* _argo0
= 0;
2395 char *_kwnames
[] = { "self", NULL
};
2404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
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_GetSizeTuple. Expected _wxWindow_p.");
2414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2415 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2417 wxPyEndAllowThreads(__tstate
);
2418 if (PyErr_Occurred()) return NULL
;
2419 } Py_INCREF(Py_None
);
2420 _resultobj
= Py_None
;
2423 o
= PyInt_FromLong((long) (*_arg1
));
2424 _resultobj
= t_output_helper(_resultobj
, o
);
2428 o
= PyInt_FromLong((long) (*_arg2
));
2429 _resultobj
= t_output_helper(_resultobj
, o
);
2434 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2435 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2436 PyObject
* _resultobj
;
2439 PyObject
* _argo0
= 0;
2440 char *_kwnames
[] = { "self", NULL
};
2444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2454 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2455 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2457 wxPyEndAllowThreads(__tstate
);
2458 if (PyErr_Occurred()) return NULL
;
2459 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2460 _resultobj
= Py_BuildValue("s",_ptemp
);
2464 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2465 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2466 PyObject
* _resultobj
;
2473 PyObject
* _argo0
= 0;
2474 PyObject
* _obj1
= 0;
2475 char *_kwnames
[] = { "self","string", NULL
};
2484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2494 #if PYTHON_API_VERSION >= 1009
2495 char* tmpPtr
; int tmpSize
;
2496 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2497 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2500 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2502 _arg1
= new wxString(tmpPtr
, tmpSize
);
2504 if (!PyString_Check(_obj1
)) {
2505 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2508 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2512 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2513 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2515 wxPyEndAllowThreads(__tstate
);
2516 if (PyErr_Occurred()) return NULL
;
2517 } Py_INCREF(Py_None
);
2518 _resultobj
= Py_None
;
2521 o
= PyInt_FromLong((long) (*_arg2
));
2522 _resultobj
= t_output_helper(_resultobj
, o
);
2526 o
= PyInt_FromLong((long) (*_arg3
));
2527 _resultobj
= t_output_helper(_resultobj
, o
);
2536 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2537 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2538 PyObject
* _resultobj
;
2549 wxFont
* _arg6
= (wxFont
*) NULL
;
2550 PyObject
* _argo0
= 0;
2551 PyObject
* _obj1
= 0;
2552 PyObject
* _argo6
= 0;
2553 char *_kwnames
[] = { "self","string","font", NULL
};
2568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2578 #if PYTHON_API_VERSION >= 1009
2579 char* tmpPtr
; int tmpSize
;
2580 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2581 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2584 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2586 _arg1
= new wxString(tmpPtr
, tmpSize
);
2588 if (!PyString_Check(_obj1
)) {
2589 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2592 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2596 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2597 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2598 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2604 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2606 wxPyEndAllowThreads(__tstate
);
2607 if (PyErr_Occurred()) return NULL
;
2608 } Py_INCREF(Py_None
);
2609 _resultobj
= Py_None
;
2612 o
= PyInt_FromLong((long) (*_arg2
));
2613 _resultobj
= t_output_helper(_resultobj
, o
);
2617 o
= PyInt_FromLong((long) (*_arg3
));
2618 _resultobj
= t_output_helper(_resultobj
, o
);
2622 o
= PyInt_FromLong((long) (*_arg4
));
2623 _resultobj
= t_output_helper(_resultobj
, o
);
2627 o
= PyInt_FromLong((long) (*_arg5
));
2628 _resultobj
= t_output_helper(_resultobj
, o
);
2637 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2638 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2639 PyObject
* _resultobj
;
2642 PyObject
* _argo0
= 0;
2643 char *_kwnames
[] = { "self", NULL
};
2646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2657 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2659 wxPyEndAllowThreads(__tstate
);
2660 if (PyErr_Occurred()) return NULL
;
2662 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2670 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2671 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2672 PyObject
* _resultobj
;
2675 PyObject
* _argo0
= 0;
2676 char *_kwnames
[] = { "self", NULL
};
2680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2691 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2693 wxPyEndAllowThreads(__tstate
);
2694 if (PyErr_Occurred()) return NULL
;
2695 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2696 _resultobj
= Py_BuildValue("s",_ptemp
);
2700 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2701 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2702 PyObject
* _resultobj
;
2705 PyObject
* _argo0
= 0;
2706 char *_kwnames
[] = { "self", NULL
};
2709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2719 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2720 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2722 wxPyEndAllowThreads(__tstate
);
2723 if (PyErr_Occurred()) return NULL
;
2724 } _resultobj
= Py_BuildValue("l",_result
);
2728 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2729 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2730 PyObject
* _resultobj
;
2733 PyObject
* _argo0
= 0;
2734 char *_kwnames
[] = { "self","style", NULL
};
2737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2747 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2748 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2750 wxPyEndAllowThreads(__tstate
);
2751 if (PyErr_Occurred()) return NULL
;
2752 } Py_INCREF(Py_None
);
2753 _resultobj
= Py_None
;
2757 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2758 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2759 PyObject
* _resultobj
;
2762 PyObject
* _argo0
= 0;
2763 char *_kwnames
[] = { "self","style", NULL
};
2766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
2769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2776 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2777 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2779 wxPyEndAllowThreads(__tstate
);
2780 if (PyErr_Occurred()) return NULL
;
2781 } Py_INCREF(Py_None
);
2782 _resultobj
= Py_None
;
2786 #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0))
2787 static PyObject
*_wrap_wxWindow_HasScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2788 PyObject
* _resultobj
;
2792 PyObject
* _argo0
= 0;
2793 char *_kwnames
[] = { "self","orient", NULL
};
2796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_HasScrollbar",_kwnames
,&_argo0
,&_arg1
))
2799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p.");
2806 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2807 _result
= (bool )wxWindow_HasScrollbar(_arg0
,_arg1
);
2809 wxPyEndAllowThreads(__tstate
);
2810 if (PyErr_Occurred()) return NULL
;
2811 } _resultobj
= Py_BuildValue("i",_result
);
2815 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2816 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2817 PyObject
* _resultobj
;
2820 PyObject
* _argo0
= 0;
2821 char *_kwnames
[] = { "self", NULL
};
2824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
2827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2835 _result
= (bool )wxWindow_Hide(_arg0
);
2837 wxPyEndAllowThreads(__tstate
);
2838 if (PyErr_Occurred()) return NULL
;
2839 } _resultobj
= Py_BuildValue("i",_result
);
2843 #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0))
2844 static PyObject
*_wrap_wxWindow_HitTest(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2845 PyObject
* _resultobj
;
2849 PyObject
* _argo0
= 0;
2851 PyObject
* _obj1
= 0;
2852 char *_kwnames
[] = { "self","pt", NULL
};
2855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_HitTest",_kwnames
,&_argo0
,&_obj1
))
2858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p.");
2866 if (! wxPoint_helper(_obj1
, &_arg1
))
2870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2871 _result
= (wxHitTest
)wxWindow_HitTest(_arg0
,*_arg1
);
2873 wxPyEndAllowThreads(__tstate
);
2874 if (PyErr_Occurred()) return NULL
;
2875 } _resultobj
= Py_BuildValue("i",_result
);
2879 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2880 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2881 PyObject
* _resultobj
;
2883 PyObject
* _argo0
= 0;
2884 char *_kwnames
[] = { "self", NULL
};
2887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2897 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2898 wxWindow_InitDialog(_arg0
);
2900 wxPyEndAllowThreads(__tstate
);
2901 if (PyErr_Occurred()) return NULL
;
2902 } Py_INCREF(Py_None
);
2903 _resultobj
= Py_None
;
2907 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2908 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2909 PyObject
* _resultobj
;
2912 PyObject
* _argo0
= 0;
2913 char *_kwnames
[] = { "self", NULL
};
2916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2926 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2927 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2929 wxPyEndAllowThreads(__tstate
);
2930 if (PyErr_Occurred()) return NULL
;
2931 } _resultobj
= Py_BuildValue("i",_result
);
2935 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2936 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2937 PyObject
* _resultobj
;
2942 int _arg3
= (int ) 0;
2943 int _arg4
= (int ) 0;
2944 PyObject
* _argo0
= 0;
2945 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2958 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2959 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2961 wxPyEndAllowThreads(__tstate
);
2962 if (PyErr_Occurred()) return NULL
;
2963 } _resultobj
= Py_BuildValue("i",_result
);
2967 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2968 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2969 PyObject
* _resultobj
;
2973 PyObject
* _argo0
= 0;
2975 PyObject
* _obj1
= 0;
2976 char *_kwnames
[] = { "self","pt", NULL
};
2979 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2982 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2983 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2990 if (! wxPoint_helper(_obj1
, &_arg1
))
2994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2995 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2997 wxPyEndAllowThreads(__tstate
);
2998 if (PyErr_Occurred()) return NULL
;
2999 } _resultobj
= Py_BuildValue("i",_result
);
3003 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
3004 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3005 PyObject
* _resultobj
;
3009 PyObject
* _argo0
= 0;
3011 PyObject
* _obj1
= 0;
3012 char *_kwnames
[] = { "self","rect", NULL
};
3015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
3018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
3026 if (! wxRect_helper(_obj1
, &_arg1
))
3030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3031 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
3033 wxPyEndAllowThreads(__tstate
);
3034 if (PyErr_Occurred()) return NULL
;
3035 } _resultobj
= Py_BuildValue("i",_result
);
3039 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
3040 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3041 PyObject
* _resultobj
;
3044 PyObject
* _argo0
= 0;
3045 char *_kwnames
[] = { "self", NULL
};
3048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
3051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
3058 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3059 _result
= (bool )wxWindow_IsRetained(_arg0
);
3061 wxPyEndAllowThreads(__tstate
);
3062 if (PyErr_Occurred()) return NULL
;
3063 } _resultobj
= Py_BuildValue("i",_result
);
3067 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
3068 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3069 PyObject
* _resultobj
;
3072 PyObject
* _argo0
= 0;
3073 char *_kwnames
[] = { "self", NULL
};
3076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
3079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
3086 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3087 _result
= (bool )wxWindow_IsShown(_arg0
);
3089 wxPyEndAllowThreads(__tstate
);
3090 if (PyErr_Occurred()) return NULL
;
3091 } _resultobj
= Py_BuildValue("i",_result
);
3095 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
3096 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3097 PyObject
* _resultobj
;
3100 PyObject
* _argo0
= 0;
3101 char *_kwnames
[] = { "self", NULL
};
3104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
3107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
3114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3115 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
3117 wxPyEndAllowThreads(__tstate
);
3118 if (PyErr_Occurred()) return NULL
;
3119 } _resultobj
= Py_BuildValue("i",_result
);
3123 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
3124 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3125 PyObject
* _resultobj
;
3127 PyObject
* _argo0
= 0;
3128 char *_kwnames
[] = { "self", NULL
};
3131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
3134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
3141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3142 wxWindow_Layout(_arg0
);
3144 wxPyEndAllowThreads(__tstate
);
3145 if (PyErr_Occurred()) return NULL
;
3146 } Py_INCREF(Py_None
);
3147 _resultobj
= Py_None
;
3151 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
3152 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3153 PyObject
* _resultobj
;
3158 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
3159 PyObject
* _argo0
= 0;
3160 PyObject
* _argo1
= 0;
3161 PyObject
* _obj2
= 0;
3162 PyObject
* _argo3
= 0;
3163 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
3166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
3169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3176 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3177 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3183 #if PYTHON_API_VERSION >= 1009
3184 char* tmpPtr
; int tmpSize
;
3185 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3186 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3189 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3191 _arg2
= new wxString(tmpPtr
, tmpSize
);
3193 if (!PyString_Check(_obj2
)) {
3194 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3197 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3201 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3202 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3208 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3209 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3211 wxPyEndAllowThreads(__tstate
);
3212 if (PyErr_Occurred()) return NULL
;
3213 } _resultobj
= Py_BuildValue("i",_result
);
3221 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3222 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3223 PyObject
* _resultobj
;
3225 PyObject
* _argo0
= 0;
3226 char *_kwnames
[] = { "self", NULL
};
3229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3232 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3233 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3234 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3239 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3240 wxWindow_Lower(_arg0
);
3242 wxPyEndAllowThreads(__tstate
);
3243 if (PyErr_Occurred()) return NULL
;
3244 } Py_INCREF(Py_None
);
3245 _resultobj
= Py_None
;
3249 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3250 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3251 PyObject
* _resultobj
;
3253 bool _arg1
= (bool ) TRUE
;
3254 PyObject
* _argo0
= 0;
3255 int tempbool1
= (int) TRUE
;
3256 char *_kwnames
[] = { "self","flag", NULL
};
3259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3268 _arg1
= (bool ) tempbool1
;
3270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3271 wxWindow_MakeModal(_arg0
,_arg1
);
3273 wxPyEndAllowThreads(__tstate
);
3274 if (PyErr_Occurred()) return NULL
;
3275 } Py_INCREF(Py_None
);
3276 _resultobj
= Py_None
;
3280 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2))
3281 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3282 PyObject
* _resultobj
;
3286 int _arg3
= (int ) wxSIZE_USE_EXISTING
;
3287 PyObject
* _argo0
= 0;
3288 char *_kwnames
[] = { "self","x","y","flags", NULL
};
3291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
3294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3301 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3302 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
,_arg3
);
3304 wxPyEndAllowThreads(__tstate
);
3305 if (PyErr_Occurred()) return NULL
;
3306 } Py_INCREF(Py_None
);
3307 _resultobj
= Py_None
;
3311 #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3312 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3313 PyObject
* _resultobj
;
3316 int _arg2
= (int ) wxSIZE_USE_EXISTING
;
3317 PyObject
* _argo0
= 0;
3319 PyObject
* _obj1
= 0;
3320 char *_kwnames
[] = { "self","point","flags", NULL
};
3323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
3326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3334 if (! wxPoint_helper(_obj1
, &_arg1
))
3338 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3339 wxWindow_Move(_arg0
,*_arg1
,_arg2
);
3341 wxPyEndAllowThreads(__tstate
);
3342 if (PyErr_Occurred()) return NULL
;
3343 } Py_INCREF(Py_None
);
3344 _resultobj
= Py_None
;
3348 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3349 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3350 PyObject
* _resultobj
;
3351 wxEvtHandler
* _result
;
3353 bool _arg1
= (bool ) FALSE
;
3354 PyObject
* _argo0
= 0;
3355 int tempbool1
= (int) FALSE
;
3356 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3368 _arg1
= (bool ) tempbool1
;
3370 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3371 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3373 wxPyEndAllowThreads(__tstate
);
3374 if (PyErr_Occurred()) return NULL
;
3375 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3379 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3380 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3381 PyObject
* _resultobj
;
3383 wxEvtHandler
* _arg1
;
3384 PyObject
* _argo0
= 0;
3385 PyObject
* _argo1
= 0;
3386 char *_kwnames
[] = { "self","handler", NULL
};
3389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3399 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3400 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3407 wxWindow_PushEventHandler(_arg0
,_arg1
);
3409 wxPyEndAllowThreads(__tstate
);
3410 if (PyErr_Occurred()) return NULL
;
3411 } Py_INCREF(Py_None
);
3412 _resultobj
= Py_None
;
3416 #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0))
3417 static PyObject
*_wrap_wxWindow_RemoveEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3418 PyObject
* _resultobj
;
3421 wxEvtHandler
* _arg1
;
3422 PyObject
* _argo0
= 0;
3423 PyObject
* _argo1
= 0;
3424 char *_kwnames
[] = { "self","handler", NULL
};
3427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveEventHandler",_kwnames
,&_argo0
,&_argo1
))
3430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p.");
3437 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3438 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p.");
3444 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3445 _result
= (bool )wxWindow_RemoveEventHandler(_arg0
,_arg1
);
3447 wxPyEndAllowThreads(__tstate
);
3448 if (PyErr_Occurred()) return NULL
;
3449 } _resultobj
= Py_BuildValue("i",_result
);
3453 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3454 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3455 PyObject
* _resultobj
;
3461 PyObject
* _argo0
= 0;
3462 PyObject
* _argo1
= 0;
3463 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3466 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3469 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3470 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3476 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3477 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3478 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3484 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3486 wxPyEndAllowThreads(__tstate
);
3487 if (PyErr_Occurred()) return NULL
;
3488 } _resultobj
= Py_BuildValue("i",_result
);
3492 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3493 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3494 PyObject
* _resultobj
;
3499 PyObject
* _argo0
= 0;
3500 PyObject
* _argo1
= 0;
3502 PyObject
* _obj2
= 0;
3503 char *_kwnames
[] = { "self","menu","pos", NULL
};
3506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3516 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3517 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3524 if (! wxPoint_helper(_obj2
, &_arg2
))
3528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3529 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3531 wxPyEndAllowThreads(__tstate
);
3532 if (PyErr_Occurred()) return NULL
;
3533 } _resultobj
= Py_BuildValue("i",_result
);
3537 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3538 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3539 PyObject
* _resultobj
;
3541 PyObject
* _argo0
= 0;
3542 char *_kwnames
[] = { "self", NULL
};
3545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3555 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3556 wxWindow_Raise(_arg0
);
3558 wxPyEndAllowThreads(__tstate
);
3559 if (PyErr_Occurred()) return NULL
;
3560 } Py_INCREF(Py_None
);
3561 _resultobj
= Py_None
;
3565 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3566 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3567 PyObject
* _resultobj
;
3569 bool _arg1
= (bool ) TRUE
;
3570 wxRect
* _arg2
= (wxRect
*) NULL
;
3571 PyObject
* _argo0
= 0;
3572 int tempbool1
= (int) TRUE
;
3574 PyObject
* _obj2
= 0;
3575 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3587 _arg1
= (bool ) tempbool1
;
3591 if (! wxRect_helper(_obj2
, &_arg2
))
3595 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3596 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3598 wxPyEndAllowThreads(__tstate
);
3599 if (PyErr_Occurred()) return NULL
;
3600 } Py_INCREF(Py_None
);
3601 _resultobj
= Py_None
;
3605 #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0))
3606 static PyObject
*_wrap_wxWindow_RefreshRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3607 PyObject
* _resultobj
;
3610 PyObject
* _argo0
= 0;
3612 PyObject
* _obj1
= 0;
3613 char *_kwnames
[] = { "self","rect", NULL
};
3616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RefreshRect",_kwnames
,&_argo0
,&_obj1
))
3619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p.");
3627 if (! wxRect_helper(_obj1
, &_arg1
))
3631 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3632 wxWindow_RefreshRect(_arg0
,*_arg1
);
3634 wxPyEndAllowThreads(__tstate
);
3635 if (PyErr_Occurred()) return NULL
;
3636 } Py_INCREF(Py_None
);
3637 _resultobj
= Py_None
;
3641 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3642 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3643 PyObject
* _resultobj
;
3645 PyObject
* _argo0
= 0;
3646 char *_kwnames
[] = { "self", NULL
};
3649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3660 wxWindow_ReleaseMouse(_arg0
);
3662 wxPyEndAllowThreads(__tstate
);
3663 if (PyErr_Occurred()) return NULL
;
3664 } Py_INCREF(Py_None
);
3665 _resultobj
= Py_None
;
3669 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3670 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3671 PyObject
* _resultobj
;
3674 PyObject
* _argo0
= 0;
3675 PyObject
* _argo1
= 0;
3676 char *_kwnames
[] = { "self","child", NULL
};
3679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3689 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3690 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3691 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3696 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3697 wxWindow_RemoveChild(_arg0
,_arg1
);
3699 wxPyEndAllowThreads(__tstate
);
3700 if (PyErr_Occurred()) return NULL
;
3701 } Py_INCREF(Py_None
);
3702 _resultobj
= Py_None
;
3706 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3707 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3708 PyObject
* _resultobj
;
3712 PyObject
* _argo0
= 0;
3713 PyObject
* _argo1
= 0;
3714 char *_kwnames
[] = { "self","newParent", NULL
};
3717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3727 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3728 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3734 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3735 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3737 wxPyEndAllowThreads(__tstate
);
3738 if (PyErr_Occurred()) return NULL
;
3739 } _resultobj
= Py_BuildValue("i",_result
);
3743 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3744 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3745 PyObject
* _resultobj
;
3749 PyObject
* _argo0
= 0;
3751 PyObject
* _obj1
= 0;
3753 PyObject
* _obj2
= 0;
3754 char *_kwnames
[] = { "self","x","y", NULL
};
3757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3767 temp
= (int) PyInt_AsLong(_obj1
);
3771 temp0
= (int) PyInt_AsLong(_obj2
);
3775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3776 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3778 wxPyEndAllowThreads(__tstate
);
3779 if (PyErr_Occurred()) return NULL
;
3780 } Py_INCREF(Py_None
);
3781 _resultobj
= Py_None
;
3784 o
= PyInt_FromLong((long) (*_arg1
));
3785 _resultobj
= t_output_helper(_resultobj
, o
);
3789 o
= PyInt_FromLong((long) (*_arg2
));
3790 _resultobj
= t_output_helper(_resultobj
, o
);
3795 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3796 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3797 PyObject
* _resultobj
;
3801 PyObject
* _argo0
= 0;
3803 PyObject
* _obj1
= 0;
3804 char *_kwnames
[] = { "self","pt", NULL
};
3808 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3811 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3812 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3819 if (! wxPoint_helper(_obj1
, &_arg1
))
3823 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3824 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3826 wxPyEndAllowThreads(__tstate
);
3827 if (PyErr_Occurred()) return NULL
;
3828 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3829 _resultobj
= Py_BuildValue("s",_ptemp
);
3833 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3834 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3835 PyObject
* _resultobj
;
3839 wxRect
* _arg3
= (wxRect
*) NULL
;
3840 PyObject
* _argo0
= 0;
3842 PyObject
* _obj3
= 0;
3843 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3858 if (! wxRect_helper(_obj3
, &_arg3
))
3862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3863 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3865 wxPyEndAllowThreads(__tstate
);
3866 if (PyErr_Occurred()) return NULL
;
3867 } Py_INCREF(Py_None
);
3868 _resultobj
= Py_None
;
3872 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3873 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3874 PyObject
* _resultobj
;
3877 PyObject
* _argo0
= 0;
3879 char *_kwnames
[] = { "self","autoLayout", NULL
};
3882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3891 _arg1
= (bool ) tempbool1
;
3893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3894 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3896 wxPyEndAllowThreads(__tstate
);
3897 if (PyErr_Occurred()) return NULL
;
3898 } Py_INCREF(Py_None
);
3899 _resultobj
= Py_None
;
3903 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3904 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3905 PyObject
* _resultobj
;
3908 PyObject
* _argo0
= 0;
3909 char *_kwnames
[] = { "self", NULL
};
3912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3923 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3925 wxPyEndAllowThreads(__tstate
);
3926 if (PyErr_Occurred()) return NULL
;
3927 } _resultobj
= Py_BuildValue("i",_result
);
3931 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3932 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3933 PyObject
* _resultobj
;
3936 PyObject
* _argo0
= 0;
3938 PyObject
* _obj1
= 0;
3939 char *_kwnames
[] = { "self","colour", NULL
};
3942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3953 if (! wxColour_helper(_obj1
, &_arg1
))
3957 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3958 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3960 wxPyEndAllowThreads(__tstate
);
3961 if (PyErr_Occurred()) return NULL
;
3962 } Py_INCREF(Py_None
);
3963 _resultobj
= Py_None
;
3967 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3968 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3969 PyObject
* _resultobj
;
3971 wxLayoutConstraints
* _arg1
;
3972 PyObject
* _argo0
= 0;
3973 PyObject
* _argo1
= 0;
3974 char *_kwnames
[] = { "self","constraints", NULL
};
3977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3987 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3988 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3994 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3995 wxWindow_SetConstraints(_arg0
,_arg1
);
3997 wxPyEndAllowThreads(__tstate
);
3998 if (PyErr_Occurred()) return NULL
;
3999 } Py_INCREF(Py_None
);
4000 _resultobj
= Py_None
;
4004 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
4005 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4006 PyObject
* _resultobj
;
4008 wxLayoutConstraints
* _arg1
;
4009 PyObject
* _argo0
= 0;
4010 PyObject
* _argo1
= 0;
4011 char *_kwnames
[] = { "self","constraints", NULL
};
4014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
4017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
4024 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4025 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
4026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
4031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4032 wxWindow_UnsetConstraints(_arg0
,_arg1
);
4034 wxPyEndAllowThreads(__tstate
);
4035 if (PyErr_Occurred()) return NULL
;
4036 } Py_INCREF(Py_None
);
4037 _resultobj
= Py_None
;
4041 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
4042 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4043 PyObject
* _resultobj
;
4045 PyObject
* _argo0
= 0;
4046 char *_kwnames
[] = { "self", NULL
};
4049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
4052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
4059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4060 wxWindow_SetFocus(_arg0
);
4062 wxPyEndAllowThreads(__tstate
);
4063 if (PyErr_Occurred()) return NULL
;
4064 } Py_INCREF(Py_None
);
4065 _resultobj
= Py_None
;
4069 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
4070 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4071 PyObject
* _resultobj
;
4074 PyObject
* _argo0
= 0;
4075 char *_kwnames
[] = { "self", NULL
};
4078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
4081 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4082 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4083 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
4088 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4089 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
4091 wxPyEndAllowThreads(__tstate
);
4092 if (PyErr_Occurred()) return NULL
;
4093 } _resultobj
= Py_BuildValue("i",_result
);
4097 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
4098 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4099 PyObject
* _resultobj
;
4102 PyObject
* _argo0
= 0;
4103 PyObject
* _argo1
= 0;
4104 char *_kwnames
[] = { "self","font", NULL
};
4107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
4110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
4117 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4118 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
4119 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
4124 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4125 wxWindow_SetFont(_arg0
,*_arg1
);
4127 wxPyEndAllowThreads(__tstate
);
4128 if (PyErr_Occurred()) return NULL
;
4129 } Py_INCREF(Py_None
);
4130 _resultobj
= Py_None
;
4134 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
4135 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4136 PyObject
* _resultobj
;
4139 PyObject
* _argo0
= 0;
4141 PyObject
* _obj1
= 0;
4142 char *_kwnames
[] = { "self","colour", NULL
};
4145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
4148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
4156 if (! wxColour_helper(_obj1
, &_arg1
))
4160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4161 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
4163 wxPyEndAllowThreads(__tstate
);
4164 if (PyErr_Occurred()) return NULL
;
4165 } Py_INCREF(Py_None
);
4166 _resultobj
= Py_None
;
4170 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
4171 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4172 PyObject
* _resultobj
;
4175 PyObject
* _argo0
= 0;
4176 char *_kwnames
[] = { "self","id", NULL
};
4179 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
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_SetId. Expected _wxWindow_p.");
4189 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4190 wxWindow_SetId(_arg0
,_arg1
);
4192 wxPyEndAllowThreads(__tstate
);
4193 if (PyErr_Occurred()) return NULL
;
4194 } Py_INCREF(Py_None
);
4195 _resultobj
= Py_None
;
4199 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4200 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4201 PyObject
* _resultobj
;
4204 PyObject
* _argo0
= 0;
4205 PyObject
* _obj1
= 0;
4206 char *_kwnames
[] = { "self","name", NULL
};
4209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
4212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4219 #if PYTHON_API_VERSION >= 1009
4220 char* tmpPtr
; int tmpSize
;
4221 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4222 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4225 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4227 _arg1
= new wxString(tmpPtr
, tmpSize
);
4229 if (!PyString_Check(_obj1
)) {
4230 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4233 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4237 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4238 wxWindow_SetName(_arg0
,*_arg1
);
4240 wxPyEndAllowThreads(__tstate
);
4241 if (PyErr_Occurred()) return NULL
;
4242 } Py_INCREF(Py_None
);
4243 _resultobj
= Py_None
;
4251 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4252 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4253 PyObject
* _resultobj
;
4259 int _arg5
= (int ) TRUE
;
4260 PyObject
* _argo0
= 0;
4261 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4275 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4277 wxPyEndAllowThreads(__tstate
);
4278 if (PyErr_Occurred()) return NULL
;
4279 } Py_INCREF(Py_None
);
4280 _resultobj
= Py_None
;
4284 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4285 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4286 PyObject
* _resultobj
;
4290 bool _arg3
= (bool ) TRUE
;
4291 PyObject
* _argo0
= 0;
4292 int tempbool3
= (int) TRUE
;
4293 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4305 _arg3
= (bool ) tempbool3
;
4307 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4308 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4310 wxPyEndAllowThreads(__tstate
);
4311 if (PyErr_Occurred()) return NULL
;
4312 } Py_INCREF(Py_None
);
4313 _resultobj
= Py_None
;
4317 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4318 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4319 PyObject
* _resultobj
;
4325 int _arg5
= (int ) wxSIZE_AUTO
;
4326 PyObject
* _argo0
= 0;
4327 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4330 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4333 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4334 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4341 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4343 wxPyEndAllowThreads(__tstate
);
4344 if (PyErr_Occurred()) return NULL
;
4345 } Py_INCREF(Py_None
);
4346 _resultobj
= Py_None
;
4350 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4351 self
->SetSize(size
);
4353 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4354 PyObject
* _resultobj
;
4357 PyObject
* _argo0
= 0;
4359 PyObject
* _obj1
= 0;
4360 char *_kwnames
[] = { "self","size", NULL
};
4363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4374 if (! wxSize_helper(_obj1
, &_arg1
))
4378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4379 wxWindow_SetSize(_arg0
,*_arg1
);
4381 wxPyEndAllowThreads(__tstate
);
4382 if (PyErr_Occurred()) return NULL
;
4383 } Py_INCREF(Py_None
);
4384 _resultobj
= Py_None
;
4388 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
,int flags
) {
4389 self
->Move(pos
, flags
);
4391 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4392 PyObject
* _resultobj
;
4395 int _arg2
= (int ) wxSIZE_USE_EXISTING
;
4396 PyObject
* _argo0
= 0;
4398 PyObject
* _obj1
= 0;
4399 char *_kwnames
[] = { "self","pos","flags", NULL
};
4402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4413 if (! wxPoint_helper(_obj1
, &_arg1
))
4417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4418 wxWindow_SetPosition(_arg0
,*_arg1
,_arg2
);
4420 wxPyEndAllowThreads(__tstate
);
4421 if (PyErr_Occurred()) return NULL
;
4422 } Py_INCREF(Py_None
);
4423 _resultobj
= Py_None
;
4427 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4428 self
->SetSize(rect
, sizeFlags
);
4430 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4431 PyObject
* _resultobj
;
4434 int _arg2
= (int ) wxSIZE_AUTO
;
4435 PyObject
* _argo0
= 0;
4437 PyObject
* _obj1
= 0;
4438 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4452 if (! wxRect_helper(_obj1
, &_arg1
))
4456 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4457 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4459 wxPyEndAllowThreads(__tstate
);
4460 if (PyErr_Occurred()) return NULL
;
4461 } Py_INCREF(Py_None
);
4462 _resultobj
= Py_None
;
4466 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4467 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4468 PyObject
* _resultobj
;
4470 int _arg1
= (int ) -1;
4471 int _arg2
= (int ) -1;
4472 int _arg3
= (int ) -1;
4473 int _arg4
= (int ) -1;
4474 int _arg5
= (int ) -1;
4475 int _arg6
= (int ) -1;
4476 PyObject
* _argo0
= 0;
4477 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4491 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4493 wxPyEndAllowThreads(__tstate
);
4494 if (PyErr_Occurred()) return NULL
;
4495 } Py_INCREF(Py_None
);
4496 _resultobj
= Py_None
;
4500 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4501 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4502 PyObject
* _resultobj
;
4506 PyObject
* _argo0
= 0;
4507 char *_kwnames
[] = { "self","width","height", NULL
};
4510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4520 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4521 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4523 wxPyEndAllowThreads(__tstate
);
4524 if (PyErr_Occurred()) return NULL
;
4525 } Py_INCREF(Py_None
);
4526 _resultobj
= Py_None
;
4530 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4531 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4532 PyObject
* _resultobj
;
4535 PyObject
* _argo0
= 0;
4537 PyObject
* _obj1
= 0;
4538 char *_kwnames
[] = { "self","size", NULL
};
4541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4552 if (! wxSize_helper(_obj1
, &_arg1
))
4556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4557 wxWindow_SetClientSize(_arg0
,*_arg1
);
4559 wxPyEndAllowThreads(__tstate
);
4560 if (PyErr_Occurred()) return NULL
;
4561 } Py_INCREF(Py_None
);
4562 _resultobj
= Py_None
;
4566 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4567 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4568 PyObject
* _resultobj
;
4571 PyObject
* _argo0
= 0;
4572 PyObject
* _argo1
= 0;
4573 char *_kwnames
[] = { "self","cursor", NULL
};
4576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
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_SetCursor. Expected _wxWindow_p.");
4586 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4587 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4594 wxWindow_SetCursor(_arg0
,*_arg1
);
4596 wxPyEndAllowThreads(__tstate
);
4597 if (PyErr_Occurred()) return NULL
;
4598 } Py_INCREF(Py_None
);
4599 _resultobj
= Py_None
;
4603 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4604 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4605 PyObject
* _resultobj
;
4607 wxEvtHandler
* _arg1
;
4608 PyObject
* _argo0
= 0;
4609 PyObject
* _argo1
= 0;
4610 char *_kwnames
[] = { "self","handler", NULL
};
4613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4623 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4624 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4631 wxWindow_SetEventHandler(_arg0
,_arg1
);
4633 wxPyEndAllowThreads(__tstate
);
4634 if (PyErr_Occurred()) return NULL
;
4635 } Py_INCREF(Py_None
);
4636 _resultobj
= Py_None
;
4640 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4641 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4642 PyObject
* _resultobj
;
4645 PyObject
* _argo0
= 0;
4646 char *_kwnames
[] = { "self","exStyle", NULL
};
4649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4659 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4660 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4662 wxPyEndAllowThreads(__tstate
);
4663 if (PyErr_Occurred()) return NULL
;
4664 } Py_INCREF(Py_None
);
4665 _resultobj
= Py_None
;
4669 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4670 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4671 PyObject
* _resultobj
;
4674 PyObject
* _argo0
= 0;
4675 PyObject
* _obj1
= 0;
4676 char *_kwnames
[] = { "self","title", NULL
};
4679 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4682 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4683 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4684 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4689 #if PYTHON_API_VERSION >= 1009
4690 char* tmpPtr
; int tmpSize
;
4691 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4692 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4695 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4697 _arg1
= new wxString(tmpPtr
, tmpSize
);
4699 if (!PyString_Check(_obj1
)) {
4700 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4703 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4707 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4708 wxWindow_SetTitle(_arg0
,*_arg1
);
4710 wxPyEndAllowThreads(__tstate
);
4711 if (PyErr_Occurred()) return NULL
;
4712 } Py_INCREF(Py_None
);
4713 _resultobj
= Py_None
;
4721 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4722 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4723 PyObject
* _resultobj
;
4726 bool _arg1
= (bool ) TRUE
;
4727 PyObject
* _argo0
= 0;
4728 int tempbool1
= (int) TRUE
;
4729 char *_kwnames
[] = { "self","show", NULL
};
4732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
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_Show. Expected _wxWindow_p.");
4741 _arg1
= (bool ) tempbool1
;
4743 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4744 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4746 wxPyEndAllowThreads(__tstate
);
4747 if (PyErr_Occurred()) return NULL
;
4748 } _resultobj
= Py_BuildValue("i",_result
);
4752 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4753 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4754 PyObject
* _resultobj
;
4757 PyObject
* _argo0
= 0;
4758 char *_kwnames
[] = { "self", NULL
};
4761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4764 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4765 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4771 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4772 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4774 wxPyEndAllowThreads(__tstate
);
4775 if (PyErr_Occurred()) return NULL
;
4776 } _resultobj
= Py_BuildValue("i",_result
);
4780 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4781 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4782 PyObject
* _resultobj
;
4785 PyObject
* _argo0
= 0;
4786 char *_kwnames
[] = { "self", NULL
};
4789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4799 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4800 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4802 wxPyEndAllowThreads(__tstate
);
4803 if (PyErr_Occurred()) return NULL
;
4804 } _resultobj
= Py_BuildValue("i",_result
);
4808 #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI())
4809 static PyObject
*_wrap_wxWindow_UpdateWindowUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4810 PyObject
* _resultobj
;
4812 PyObject
* _argo0
= 0;
4813 char *_kwnames
[] = { "self", NULL
};
4816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_UpdateWindowUI",_kwnames
,&_argo0
))
4819 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4820 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4821 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p.");
4826 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4827 wxWindow_UpdateWindowUI(_arg0
);
4829 wxPyEndAllowThreads(__tstate
);
4830 if (PyErr_Occurred()) return NULL
;
4831 } Py_INCREF(Py_None
);
4832 _resultobj
= Py_None
;
4836 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4837 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4838 PyObject
* _resultobj
;
4841 PyObject
* _argo0
= 0;
4842 char *_kwnames
[] = { "self", NULL
};
4845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4848 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4849 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4850 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4855 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4856 _result
= (bool )wxWindow_Validate(_arg0
);
4858 wxPyEndAllowThreads(__tstate
);
4859 if (PyErr_Occurred()) return NULL
;
4860 } _resultobj
= Py_BuildValue("i",_result
);
4864 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4865 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4866 PyObject
* _resultobj
;
4870 PyObject
* _argo0
= 0;
4871 char *_kwnames
[] = { "self","x","y", NULL
};
4874 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4877 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4878 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4879 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4884 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4885 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4887 wxPyEndAllowThreads(__tstate
);
4888 if (PyErr_Occurred()) return NULL
;
4889 } Py_INCREF(Py_None
);
4890 _resultobj
= Py_None
;
4894 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4895 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4896 PyObject
* _resultobj
;
4900 PyObject
* _argo0
= 0;
4902 PyObject
* _obj1
= 0;
4903 char *_kwnames
[] = { "self","pt", NULL
};
4907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4918 if (! wxPoint_helper(_obj1
, &_arg1
))
4922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4923 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4925 wxPyEndAllowThreads(__tstate
);
4926 if (PyErr_Occurred()) return NULL
;
4927 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4928 _resultobj
= Py_BuildValue("s",_ptemp
);
4932 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4933 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4934 PyObject
* _resultobj
;
4938 PyObject
* _argo0
= 0;
4940 PyObject
* _obj1
= 0;
4941 char *_kwnames
[] = { "self","sz", NULL
};
4945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4956 if (! wxSize_helper(_obj1
, &_arg1
))
4960 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4961 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4963 wxPyEndAllowThreads(__tstate
);
4964 if (PyErr_Occurred()) return NULL
;
4965 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4966 _resultobj
= Py_BuildValue("s",_ptemp
);
4970 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4971 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4972 PyObject
* _resultobj
;
4976 PyObject
* _argo0
= 0;
4978 PyObject
* _obj1
= 0;
4979 char *_kwnames
[] = { "self","pt", NULL
};
4983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4994 if (! wxPoint_helper(_obj1
, &_arg1
))
4998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4999 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
5001 wxPyEndAllowThreads(__tstate
);
5002 if (PyErr_Occurred()) return NULL
;
5003 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
5004 _resultobj
= Py_BuildValue("s",_ptemp
);
5008 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
5009 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5010 PyObject
* _resultobj
;
5014 PyObject
* _argo0
= 0;
5016 PyObject
* _obj1
= 0;
5017 char *_kwnames
[] = { "self","sz", NULL
};
5021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
5024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
5032 if (! wxSize_helper(_obj1
, &_arg1
))
5036 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5037 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
5039 wxPyEndAllowThreads(__tstate
);
5040 if (PyErr_Occurred()) return NULL
;
5041 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5042 _resultobj
= Py_BuildValue("s",_ptemp
);
5046 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
5047 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5048 PyObject
* _resultobj
;
5051 PyObject
* _argo0
= 0;
5052 PyObject
* _obj1
= 0;
5053 char *_kwnames
[] = { "self","tip", NULL
};
5056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
5059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
5066 #if PYTHON_API_VERSION >= 1009
5067 char* tmpPtr
; int tmpSize
;
5068 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5069 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5072 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5074 _arg1
= new wxString(tmpPtr
, tmpSize
);
5076 if (!PyString_Check(_obj1
)) {
5077 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5080 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5084 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5085 wxWindow_SetToolTipString(_arg0
,*_arg1
);
5087 wxPyEndAllowThreads(__tstate
);
5088 if (PyErr_Occurred()) return NULL
;
5089 } Py_INCREF(Py_None
);
5090 _resultobj
= Py_None
;
5098 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
5099 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5100 PyObject
* _resultobj
;
5103 PyObject
* _argo0
= 0;
5104 PyObject
* _argo1
= 0;
5105 char *_kwnames
[] = { "self","tooltip", NULL
};
5108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
5111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
5118 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5119 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
5120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
5125 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5126 wxWindow_SetToolTip(_arg0
,_arg1
);
5128 wxPyEndAllowThreads(__tstate
);
5129 if (PyErr_Occurred()) return NULL
;
5130 } Py_INCREF(Py_None
);
5131 _resultobj
= Py_None
;
5135 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
5136 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5137 PyObject
* _resultobj
;
5138 wxToolTip
* _result
;
5140 PyObject
* _argo0
= 0;
5141 char *_kwnames
[] = { "self", NULL
};
5144 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
5147 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5148 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
5154 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5155 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
5157 wxPyEndAllowThreads(__tstate
);
5158 if (PyErr_Occurred()) return NULL
;
5159 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5163 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
5164 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5165 PyObject
* _resultobj
;
5168 PyObject
* _argo0
= 0;
5169 PyObject
* _argo1
= 0;
5170 char *_kwnames
[] = { "self","sizer", NULL
};
5173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
5176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
5183 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5184 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
5185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
5190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5191 wxWindow_SetSizer(_arg0
,_arg1
);
5193 wxPyEndAllowThreads(__tstate
);
5194 if (PyErr_Occurred()) return NULL
;
5195 } Py_INCREF(Py_None
);
5196 _resultobj
= Py_None
;
5200 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
5201 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5202 PyObject
* _resultobj
;
5205 PyObject
* _argo0
= 0;
5206 char *_kwnames
[] = { "self", NULL
};
5209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
5212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5220 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
5222 wxPyEndAllowThreads(__tstate
);
5223 if (PyErr_Occurred()) return NULL
;
5224 }{ _resultobj
= wxPyMake_wxSizer(_result
); }
5228 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5229 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5230 PyObject
* _resultobj
;
5231 wxValidator
* _result
;
5233 PyObject
* _argo0
= 0;
5234 char *_kwnames
[] = { "self", NULL
};
5237 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
5240 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5241 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5242 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5247 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5248 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5250 wxPyEndAllowThreads(__tstate
);
5251 if (PyErr_Occurred()) return NULL
;
5252 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5256 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5257 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5258 PyObject
* _resultobj
;
5260 wxValidator
* _arg1
;
5261 PyObject
* _argo0
= 0;
5262 PyObject
* _argo1
= 0;
5263 char *_kwnames
[] = { "self","validator", NULL
};
5266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5276 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5277 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5283 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5284 wxWindow_SetValidator(_arg0
,*_arg1
);
5286 wxPyEndAllowThreads(__tstate
);
5287 if (PyErr_Occurred()) return NULL
;
5288 } Py_INCREF(Py_None
);
5289 _resultobj
= Py_None
;
5293 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5294 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5295 PyObject
* _resultobj
;
5297 wxDropTarget
* _arg1
;
5298 PyObject
* _argo0
= 0;
5299 PyObject
* _argo1
= 0;
5300 char *_kwnames
[] = { "self","target", NULL
};
5303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
5306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5313 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5314 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5320 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5321 wxWindow_SetDropTarget(_arg0
,_arg1
);
5323 wxPyEndAllowThreads(__tstate
);
5324 if (PyErr_Occurred()) return NULL
;
5325 } Py_INCREF(Py_None
);
5326 _resultobj
= Py_None
;
5330 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5331 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5332 PyObject
* _resultobj
;
5333 wxDropTarget
* _result
;
5335 PyObject
* _argo0
= 0;
5336 char *_kwnames
[] = { "self", NULL
};
5340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5351 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5353 wxPyEndAllowThreads(__tstate
);
5354 if (PyErr_Occurred()) return NULL
;
5356 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5357 _resultobj
= Py_BuildValue("s",_ptemp
);
5360 _resultobj
= Py_None
;
5365 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5366 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5367 PyObject
* _resultobj
;
5370 PyObject
* _argo0
= 0;
5371 char *_kwnames
[] = { "self", NULL
};
5375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5386 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5388 wxPyEndAllowThreads(__tstate
);
5389 if (PyErr_Occurred()) return NULL
;
5390 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5391 _resultobj
= Py_BuildValue("s",_ptemp
);
5395 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5396 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5397 PyObject
* _resultobj
;
5400 PyObject
* _argo0
= 0;
5401 PyObject
* _argo1
= 0;
5402 char *_kwnames
[] = { "self","caret", NULL
};
5405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5415 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5416 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5423 wxWindow_SetCaret(_arg0
,_arg1
);
5425 wxPyEndAllowThreads(__tstate
);
5426 if (PyErr_Occurred()) return NULL
;
5427 } Py_INCREF(Py_None
);
5428 _resultobj
= Py_None
;
5432 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5433 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5434 PyObject
* _resultobj
;
5437 PyObject
* _argo0
= 0;
5438 char *_kwnames
[] = { "self", NULL
};
5442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5452 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5453 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5455 wxPyEndAllowThreads(__tstate
);
5456 if (PyErr_Occurred()) return NULL
;
5458 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5459 _resultobj
= Py_BuildValue("s",_ptemp
);
5462 _resultobj
= Py_None
;
5467 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5468 static PyObject
*_wrap_wxWindow_Freeze(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5469 PyObject
* _resultobj
;
5471 PyObject
* _argo0
= 0;
5472 char *_kwnames
[] = { "self", NULL
};
5475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Freeze",_kwnames
,&_argo0
))
5478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5485 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5486 wxWindow_Freeze(_arg0
);
5488 wxPyEndAllowThreads(__tstate
);
5489 if (PyErr_Occurred()) return NULL
;
5490 } Py_INCREF(Py_None
);
5491 _resultobj
= Py_None
;
5495 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5496 static PyObject
*_wrap_wxWindow_Thaw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5497 PyObject
* _resultobj
;
5499 PyObject
* _argo0
= 0;
5500 char *_kwnames
[] = { "self", NULL
};
5503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Thaw",_kwnames
,&_argo0
))
5506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5514 wxWindow_Thaw(_arg0
);
5516 wxPyEndAllowThreads(__tstate
);
5517 if (PyErr_Occurred()) return NULL
;
5518 } Py_INCREF(Py_None
);
5519 _resultobj
= Py_None
;
5523 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5524 static PyObject
*_wrap_wxWindow_Update(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5525 PyObject
* _resultobj
;
5527 PyObject
* _argo0
= 0;
5528 char *_kwnames
[] = { "self", NULL
};
5531 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Update",_kwnames
,&_argo0
))
5534 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5535 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5541 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5542 wxWindow_Update(_arg0
);
5544 wxPyEndAllowThreads(__tstate
);
5545 if (PyErr_Occurred()) return NULL
;
5546 } Py_INCREF(Py_None
);
5547 _resultobj
= Py_None
;
5551 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5552 static PyObject
*_wrap_wxWindow_GetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5553 PyObject
* _resultobj
;
5556 PyObject
* _argo0
= 0;
5557 char *_kwnames
[] = { "self", NULL
};
5560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHelpText",_kwnames
,&_argo0
))
5563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5570 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5571 _result
= new wxString (wxWindow_GetHelpText(_arg0
));
5573 wxPyEndAllowThreads(__tstate
);
5574 if (PyErr_Occurred()) return NULL
;
5576 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5584 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5585 static PyObject
*_wrap_wxWindow_SetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5586 PyObject
* _resultobj
;
5589 PyObject
* _argo0
= 0;
5590 PyObject
* _obj1
= 0;
5591 char *_kwnames
[] = { "self","helpText", NULL
};
5594 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpText",_kwnames
,&_argo0
,&_obj1
))
5597 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5598 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5599 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5604 #if PYTHON_API_VERSION >= 1009
5605 char* tmpPtr
; int tmpSize
;
5606 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5607 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5610 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5612 _arg1
= new wxString(tmpPtr
, tmpSize
);
5614 if (!PyString_Check(_obj1
)) {
5615 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5618 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5622 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5623 wxWindow_SetHelpText(_arg0
,*_arg1
);
5625 wxPyEndAllowThreads(__tstate
);
5626 if (PyErr_Occurred()) return NULL
;
5627 } Py_INCREF(Py_None
);
5628 _resultobj
= Py_None
;
5636 #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0))
5637 static PyObject
*_wrap_wxWindow_SetHelpTextForId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5638 PyObject
* _resultobj
;
5641 PyObject
* _argo0
= 0;
5642 PyObject
* _obj1
= 0;
5643 char *_kwnames
[] = { "self","text", NULL
};
5646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpTextForId",_kwnames
,&_argo0
,&_obj1
))
5649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p.");
5656 #if PYTHON_API_VERSION >= 1009
5657 char* tmpPtr
; int tmpSize
;
5658 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5659 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5662 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5664 _arg1
= new wxString(tmpPtr
, tmpSize
);
5666 if (!PyString_Check(_obj1
)) {
5667 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5670 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5675 wxWindow_SetHelpTextForId(_arg0
,*_arg1
);
5677 wxPyEndAllowThreads(__tstate
);
5678 if (PyErr_Occurred()) return NULL
;
5679 } Py_INCREF(Py_None
);
5680 _resultobj
= Py_None
;
5688 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5689 static PyObject
*_wrap_wxWindow_ScrollLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5690 PyObject
* _resultobj
;
5694 PyObject
* _argo0
= 0;
5695 char *_kwnames
[] = { "self","lines", NULL
};
5698 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollLines",_kwnames
,&_argo0
,&_arg1
))
5701 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5702 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5703 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5708 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5709 _result
= (bool )wxWindow_ScrollLines(_arg0
,_arg1
);
5711 wxPyEndAllowThreads(__tstate
);
5712 if (PyErr_Occurred()) return NULL
;
5713 } _resultobj
= Py_BuildValue("i",_result
);
5717 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5718 static PyObject
*_wrap_wxWindow_ScrollPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5719 PyObject
* _resultobj
;
5723 PyObject
* _argo0
= 0;
5724 char *_kwnames
[] = { "self","pages", NULL
};
5727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollPages",_kwnames
,&_argo0
,&_arg1
))
5730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5737 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5738 _result
= (bool )wxWindow_ScrollPages(_arg0
,_arg1
);
5740 wxPyEndAllowThreads(__tstate
);
5741 if (PyErr_Occurred()) return NULL
;
5742 } _resultobj
= Py_BuildValue("i",_result
);
5746 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5747 static PyObject
*_wrap_wxWindow_LineUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5748 PyObject
* _resultobj
;
5751 PyObject
* _argo0
= 0;
5752 char *_kwnames
[] = { "self", NULL
};
5755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineUp",_kwnames
,&_argo0
))
5758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5766 _result
= (bool )wxWindow_LineUp(_arg0
);
5768 wxPyEndAllowThreads(__tstate
);
5769 if (PyErr_Occurred()) return NULL
;
5770 } _resultobj
= Py_BuildValue("i",_result
);
5774 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5775 static PyObject
*_wrap_wxWindow_LineDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5776 PyObject
* _resultobj
;
5779 PyObject
* _argo0
= 0;
5780 char *_kwnames
[] = { "self", NULL
};
5783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineDown",_kwnames
,&_argo0
))
5786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5794 _result
= (bool )wxWindow_LineDown(_arg0
);
5796 wxPyEndAllowThreads(__tstate
);
5797 if (PyErr_Occurred()) return NULL
;
5798 } _resultobj
= Py_BuildValue("i",_result
);
5802 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5803 static PyObject
*_wrap_wxWindow_PageUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5804 PyObject
* _resultobj
;
5807 PyObject
* _argo0
= 0;
5808 char *_kwnames
[] = { "self", NULL
};
5811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageUp",_kwnames
,&_argo0
))
5814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5822 _result
= (bool )wxWindow_PageUp(_arg0
);
5824 wxPyEndAllowThreads(__tstate
);
5825 if (PyErr_Occurred()) return NULL
;
5826 } _resultobj
= Py_BuildValue("i",_result
);
5830 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5831 static PyObject
*_wrap_wxWindow_PageDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5832 PyObject
* _resultobj
;
5835 PyObject
* _argo0
= 0;
5836 char *_kwnames
[] = { "self", NULL
};
5839 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageDown",_kwnames
,&_argo0
))
5842 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5843 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5844 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5850 _result
= (bool )wxWindow_PageDown(_arg0
);
5852 wxPyEndAllowThreads(__tstate
);
5853 if (PyErr_Occurred()) return NULL
;
5854 } _resultobj
= Py_BuildValue("i",_result
);
5858 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5859 PyObject
* _resultobj
;
5861 char *_kwnames
[] = { NULL
};
5864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
5867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5868 _result
= (wxWindow
*)wxWindow::FindFocus();
5870 wxPyEndAllowThreads(__tstate
);
5871 if (PyErr_Occurred()) return NULL
;
5872 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5876 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5877 PyObject
* _resultobj
;
5879 char *_kwnames
[] = { NULL
};
5882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
5885 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5886 _result
= (int )wxWindow::NewControlId();
5888 wxPyEndAllowThreads(__tstate
);
5889 if (PyErr_Occurred()) return NULL
;
5890 } _resultobj
= Py_BuildValue("i",_result
);
5894 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5895 PyObject
* _resultobj
;
5898 char *_kwnames
[] = { "id", NULL
};
5901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
5904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5905 _result
= (int )wxWindow::NextControlId(_arg0
);
5907 wxPyEndAllowThreads(__tstate
);
5908 if (PyErr_Occurred()) return NULL
;
5909 } _resultobj
= Py_BuildValue("i",_result
);
5913 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5914 PyObject
* _resultobj
;
5917 char *_kwnames
[] = { "id", NULL
};
5920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
5923 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5924 _result
= (int )wxWindow::PrevControlId(_arg0
);
5926 wxPyEndAllowThreads(__tstate
);
5927 if (PyErr_Occurred()) return NULL
;
5928 } _resultobj
= Py_BuildValue("i",_result
);
5932 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5933 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5934 PyObject
* _resultobj
;
5936 wxAcceleratorTable
* _arg1
;
5937 PyObject
* _argo0
= 0;
5938 PyObject
* _argo1
= 0;
5939 char *_kwnames
[] = { "self","accel", NULL
};
5942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
5945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5952 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5953 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
5954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5960 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
5962 wxPyEndAllowThreads(__tstate
);
5963 if (PyErr_Occurred()) return NULL
;
5964 } Py_INCREF(Py_None
);
5965 _resultobj
= Py_None
;
5969 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5970 static PyObject
*_wrap_wxWindow_GetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5971 PyObject
* _resultobj
;
5972 wxAcceleratorTable
* _result
;
5974 PyObject
* _argo0
= 0;
5975 char *_kwnames
[] = { "self", NULL
};
5979 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAcceleratorTable",_kwnames
,&_argo0
))
5982 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5983 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5989 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5990 _result
= (wxAcceleratorTable
*)wxWindow_GetAcceleratorTable(_arg0
);
5992 wxPyEndAllowThreads(__tstate
);
5993 if (PyErr_Occurred()) return NULL
;
5995 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorTable_p");
5996 _resultobj
= Py_BuildValue("s",_ptemp
);
5999 _resultobj
= Py_None
;
6004 #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
6005 static PyObject
*_wrap_wxWindow_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6006 PyObject
* _resultobj
;
6009 PyObject
* _argo0
= 0;
6010 char *_kwnames
[] = { "self", NULL
};
6013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDefaultItem",_kwnames
,&_argo0
))
6016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p.");
6023 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6024 _result
= (wxButton
*)wxWindow_GetDefaultItem(_arg0
);
6026 wxPyEndAllowThreads(__tstate
);
6027 if (PyErr_Occurred()) return NULL
;
6028 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6032 #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
6033 static PyObject
*_wrap_wxWindow_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6034 PyObject
* _resultobj
;
6037 PyObject
* _argo0
= 0;
6038 PyObject
* _argo1
= 0;
6039 char *_kwnames
[] = { "self","btn", NULL
};
6042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
6045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p.");
6052 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6053 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
6054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxButton_p.");
6059 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6060 wxWindow_SetDefaultItem(_arg0
,_arg1
);
6062 wxPyEndAllowThreads(__tstate
);
6063 if (PyErr_Occurred()) return NULL
;
6064 } Py_INCREF(Py_None
);
6065 _resultobj
= Py_None
;
6069 static void *SwigwxPanelTowxWindow(void *ptr
) {
6072 src
= (wxPanel
*) ptr
;
6073 dest
= (wxWindow
*) src
;
6074 return (void *) dest
;
6077 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
6080 src
= (wxPanel
*) ptr
;
6081 dest
= (wxEvtHandler
*) src
;
6082 return (void *) dest
;
6085 static void *SwigwxPanelTowxObject(void *ptr
) {
6088 src
= (wxPanel
*) ptr
;
6089 dest
= (wxObject
*) src
;
6090 return (void *) dest
;
6093 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6094 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6095 PyObject
* _resultobj
;
6099 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
6100 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6101 long _arg4
= (long ) wxTAB_TRAVERSAL
;
6102 char * _arg5
= (char *) "panel";
6103 PyObject
* _argo0
= 0;
6105 PyObject
* _obj2
= 0;
6107 PyObject
* _obj3
= 0;
6108 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
6124 if (! wxPoint_helper(_obj2
, &_arg2
))
6130 if (! wxSize_helper(_obj3
, &_arg3
))
6134 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6135 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6137 wxPyEndAllowThreads(__tstate
);
6138 if (PyErr_Occurred()) return NULL
;
6140 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
6141 _resultobj
= Py_BuildValue("s",_ptemp
);
6144 _resultobj
= Py_None
;
6149 #define new_wxPrePanel() (new wxPanel())
6150 static PyObject
*_wrap_new_wxPrePanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6151 PyObject
* _resultobj
;
6153 char *_kwnames
[] = { NULL
};
6157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrePanel",_kwnames
))
6160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6161 _result
= (wxPanel
*)new_wxPrePanel();
6163 wxPyEndAllowThreads(__tstate
);
6164 if (PyErr_Occurred()) return NULL
;
6166 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
6167 _resultobj
= Py_BuildValue("s",_ptemp
);
6170 _resultobj
= Py_None
;
6175 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6176 static PyObject
*_wrap_wxPanel_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6177 PyObject
* _resultobj
;
6182 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6183 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6184 long _arg5
= (long ) wxTAB_TRAVERSAL
;
6185 char * _arg6
= (char *) "panel";
6186 PyObject
* _argo0
= 0;
6187 PyObject
* _argo1
= 0;
6189 PyObject
* _obj3
= 0;
6191 PyObject
* _obj4
= 0;
6192 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxPanel_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
6200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
6205 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6206 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
6214 if (! wxPoint_helper(_obj3
, &_arg3
))
6220 if (! wxSize_helper(_obj4
, &_arg4
))
6224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6225 _result
= (bool )wxPanel_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6227 wxPyEndAllowThreads(__tstate
);
6228 if (PyErr_Occurred()) return NULL
;
6229 } _resultobj
= Py_BuildValue("i",_result
);
6233 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
6234 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6235 PyObject
* _resultobj
;
6237 PyObject
* _argo0
= 0;
6238 char *_kwnames
[] = { "self", NULL
};
6241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
6244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
6246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
6251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6252 wxPanel_InitDialog(_arg0
);
6254 wxPyEndAllowThreads(__tstate
);
6255 if (PyErr_Occurred()) return NULL
;
6256 } Py_INCREF(Py_None
);
6257 _resultobj
= Py_None
;
6261 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
6262 wxScrolledWindow
*src
;
6264 src
= (wxScrolledWindow
*) ptr
;
6265 dest
= (wxPanel
*) src
;
6266 return (void *) dest
;
6269 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
6270 wxScrolledWindow
*src
;
6272 src
= (wxScrolledWindow
*) ptr
;
6273 dest
= (wxWindow
*) src
;
6274 return (void *) dest
;
6277 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
6278 wxScrolledWindow
*src
;
6280 src
= (wxScrolledWindow
*) ptr
;
6281 dest
= (wxEvtHandler
*) src
;
6282 return (void *) dest
;
6285 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
6286 wxScrolledWindow
*src
;
6288 src
= (wxScrolledWindow
*) ptr
;
6289 dest
= (wxObject
*) src
;
6290 return (void *) dest
;
6293 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6294 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6295 PyObject
* _resultobj
;
6296 wxScrolledWindow
* _result
;
6298 wxWindowID _arg1
= (wxWindowID
) -1;
6299 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
6300 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6301 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6302 char * _arg5
= (char *) "scrolledWindow";
6303 PyObject
* _argo0
= 0;
6305 PyObject
* _obj2
= 0;
6307 PyObject
* _obj3
= 0;
6308 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6324 if (! wxPoint_helper(_obj2
, &_arg2
))
6330 if (! wxSize_helper(_obj3
, &_arg3
))
6334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6335 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6337 wxPyEndAllowThreads(__tstate
);
6338 if (PyErr_Occurred()) return NULL
;
6340 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6341 _resultobj
= Py_BuildValue("s",_ptemp
);
6344 _resultobj
= Py_None
;
6349 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6350 static PyObject
*_wrap_new_wxPreScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6351 PyObject
* _resultobj
;
6352 wxScrolledWindow
* _result
;
6353 char *_kwnames
[] = { NULL
};
6357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreScrolledWindow",_kwnames
))
6360 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6361 _result
= (wxScrolledWindow
*)new_wxPreScrolledWindow();
6363 wxPyEndAllowThreads(__tstate
);
6364 if (PyErr_Occurred()) return NULL
;
6366 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6367 _resultobj
= Py_BuildValue("s",_ptemp
);
6370 _resultobj
= Py_None
;
6375 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6376 static PyObject
*_wrap_wxScrolledWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6377 PyObject
* _resultobj
;
6379 wxScrolledWindow
* _arg0
;
6381 wxWindowID _arg2
= (wxWindowID
) -1;
6382 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6383 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6384 long _arg5
= (long ) wxHSCROLL
|wxVSCROLL
;
6385 char * _arg6
= (char *) "scrolledWindow";
6386 PyObject
* _argo0
= 0;
6387 PyObject
* _argo1
= 0;
6389 PyObject
* _obj3
= 0;
6391 PyObject
* _obj4
= 0;
6392 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iOOls:wxScrolledWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6405 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6406 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6414 if (! wxPoint_helper(_obj3
, &_arg3
))
6420 if (! wxSize_helper(_obj4
, &_arg4
))
6424 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6425 _result
= (bool )wxScrolledWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6427 wxPyEndAllowThreads(__tstate
);
6428 if (PyErr_Occurred()) return NULL
;
6429 } _resultobj
= Py_BuildValue("i",_result
);
6433 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6434 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6435 PyObject
* _resultobj
;
6436 wxScrolledWindow
* _arg0
;
6439 PyObject
* _argo0
= 0;
6442 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6454 _arg1
= (bool ) tempbool1
;
6455 _arg2
= (bool ) tempbool2
;
6457 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6458 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6460 wxPyEndAllowThreads(__tstate
);
6461 if (PyErr_Occurred()) return NULL
;
6462 } Py_INCREF(Py_None
);
6463 _resultobj
= Py_None
;
6467 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6468 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6469 PyObject
* _resultobj
;
6471 wxScrolledWindow
* _arg0
;
6473 PyObject
* _argo0
= 0;
6474 char *_kwnames
[] = { "self","orient", NULL
};
6477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6487 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6488 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6490 wxPyEndAllowThreads(__tstate
);
6491 if (PyErr_Occurred()) return NULL
;
6492 } _resultobj
= Py_BuildValue("i",_result
);
6496 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6497 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6498 PyObject
* _resultobj
;
6499 wxScrolledWindow
* _arg0
;
6504 PyObject
* _argo0
= 0;
6505 char *_kwnames
[] = { "self", NULL
};
6514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6524 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6525 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6527 wxPyEndAllowThreads(__tstate
);
6528 if (PyErr_Occurred()) return NULL
;
6529 } Py_INCREF(Py_None
);
6530 _resultobj
= Py_None
;
6533 o
= PyInt_FromLong((long) (*_arg1
));
6534 _resultobj
= t_output_helper(_resultobj
, o
);
6538 o
= PyInt_FromLong((long) (*_arg2
));
6539 _resultobj
= t_output_helper(_resultobj
, o
);
6544 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6545 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6546 PyObject
* _resultobj
;
6548 wxScrolledWindow
* _arg0
;
6549 PyObject
* _argo0
= 0;
6550 char *_kwnames
[] = { "self", NULL
};
6553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6564 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6566 wxPyEndAllowThreads(__tstate
);
6567 if (PyErr_Occurred()) return NULL
;
6568 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6572 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6573 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6574 PyObject
* _resultobj
;
6575 wxScrolledWindow
* _arg0
;
6580 PyObject
* _argo0
= 0;
6581 char *_kwnames
[] = { "self", NULL
};
6590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6601 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6603 wxPyEndAllowThreads(__tstate
);
6604 if (PyErr_Occurred()) return NULL
;
6605 } Py_INCREF(Py_None
);
6606 _resultobj
= Py_None
;
6609 o
= PyInt_FromLong((long) (*_arg1
));
6610 _resultobj
= t_output_helper(_resultobj
, o
);
6614 o
= PyInt_FromLong((long) (*_arg2
));
6615 _resultobj
= t_output_helper(_resultobj
, o
);
6620 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6621 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6622 PyObject
* _resultobj
;
6624 wxScrolledWindow
* _arg0
;
6625 PyObject
* _argo0
= 0;
6626 char *_kwnames
[] = { "self", NULL
};
6629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6639 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6640 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6642 wxPyEndAllowThreads(__tstate
);
6643 if (PyErr_Occurred()) return NULL
;
6644 } _resultobj
= Py_BuildValue("i",_result
);
6648 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6649 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6650 PyObject
* _resultobj
;
6651 wxScrolledWindow
* _arg0
;
6653 PyObject
* _argo0
= 0;
6654 PyObject
* _argo1
= 0;
6655 char *_kwnames
[] = { "self","dc", NULL
};
6658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6661 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6662 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6663 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6668 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6669 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6675 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6676 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6678 wxPyEndAllowThreads(__tstate
);
6679 if (PyErr_Occurred()) return NULL
;
6680 } Py_INCREF(Py_None
);
6681 _resultobj
= Py_None
;
6685 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6686 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6687 PyObject
* _resultobj
;
6688 wxScrolledWindow
* _arg0
;
6691 PyObject
* _argo0
= 0;
6692 char *_kwnames
[] = { "self","x","y", NULL
};
6695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6705 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6706 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6708 wxPyEndAllowThreads(__tstate
);
6709 if (PyErr_Occurred()) return NULL
;
6710 } Py_INCREF(Py_None
);
6711 _resultobj
= Py_None
;
6715 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6716 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6717 PyObject
* _resultobj
;
6718 wxScrolledWindow
* _arg0
;
6723 int _arg5
= (int ) 0;
6724 int _arg6
= (int ) 0;
6725 int _arg7
= (int ) FALSE
;
6726 PyObject
* _argo0
= 0;
6727 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6741 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6743 wxPyEndAllowThreads(__tstate
);
6744 if (PyErr_Occurred()) return NULL
;
6745 } Py_INCREF(Py_None
);
6746 _resultobj
= Py_None
;
6750 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6751 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6752 PyObject
* _resultobj
;
6753 wxScrolledWindow
* _arg0
;
6756 PyObject
* _argo0
= 0;
6757 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6770 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6771 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6773 wxPyEndAllowThreads(__tstate
);
6774 if (PyErr_Occurred()) return NULL
;
6775 } Py_INCREF(Py_None
);
6776 _resultobj
= Py_None
;
6780 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6781 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6782 PyObject
* _resultobj
;
6783 wxScrolledWindow
* _arg0
;
6785 PyObject
* _argo0
= 0;
6786 PyObject
* _argo1
= 0;
6787 char *_kwnames
[] = { "self","window", NULL
};
6790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6800 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6801 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6802 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6808 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6810 wxPyEndAllowThreads(__tstate
);
6811 if (PyErr_Occurred()) return NULL
;
6812 } Py_INCREF(Py_None
);
6813 _resultobj
= Py_None
;
6817 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6818 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6819 PyObject
* _resultobj
;
6820 wxScrolledWindow
* _arg0
;
6825 PyObject
* _argo0
= 0;
6826 char *_kwnames
[] = { "self", NULL
};
6835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6846 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6848 wxPyEndAllowThreads(__tstate
);
6849 if (PyErr_Occurred()) return NULL
;
6850 } Py_INCREF(Py_None
);
6851 _resultobj
= Py_None
;
6854 o
= PyInt_FromLong((long) (*_arg1
));
6855 _resultobj
= t_output_helper(_resultobj
, o
);
6859 o
= PyInt_FromLong((long) (*_arg2
));
6860 _resultobj
= t_output_helper(_resultobj
, o
);
6865 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6866 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6867 PyObject
* _resultobj
;
6868 wxScrolledWindow
* _arg0
;
6875 PyObject
* _argo0
= 0;
6876 char *_kwnames
[] = { "self","x","y", NULL
};
6885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6895 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6896 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6898 wxPyEndAllowThreads(__tstate
);
6899 if (PyErr_Occurred()) return NULL
;
6900 } Py_INCREF(Py_None
);
6901 _resultobj
= Py_None
;
6904 o
= PyInt_FromLong((long) (*_arg3
));
6905 _resultobj
= t_output_helper(_resultobj
, o
);
6909 o
= PyInt_FromLong((long) (*_arg4
));
6910 _resultobj
= t_output_helper(_resultobj
, o
);
6915 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6916 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6917 PyObject
* _resultobj
;
6918 wxScrolledWindow
* _arg0
;
6925 PyObject
* _argo0
= 0;
6926 char *_kwnames
[] = { "self","x","y", NULL
};
6935 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6938 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6939 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6940 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6945 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6946 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6948 wxPyEndAllowThreads(__tstate
);
6949 if (PyErr_Occurred()) return NULL
;
6950 } Py_INCREF(Py_None
);
6951 _resultobj
= Py_None
;
6954 o
= PyInt_FromLong((long) (*_arg3
));
6955 _resultobj
= t_output_helper(_resultobj
, o
);
6959 o
= PyInt_FromLong((long) (*_arg4
));
6960 _resultobj
= t_output_helper(_resultobj
, o
);
6965 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6966 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6967 PyObject
* _resultobj
;
6968 wxScrolledWindow
* _arg0
;
6971 PyObject
* _argo0
= 0;
6972 char *_kwnames
[] = { "self","xs","ys", NULL
};
6975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6985 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6986 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6988 wxPyEndAllowThreads(__tstate
);
6989 if (PyErr_Occurred()) return NULL
;
6990 } Py_INCREF(Py_None
);
6991 _resultobj
= Py_None
;
6995 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6996 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6997 PyObject
* _resultobj
;
6999 wxScrolledWindow
* _arg0
;
7000 PyObject
* _argo0
= 0;
7001 char *_kwnames
[] = { "self", NULL
};
7004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
7007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
7009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
7014 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7015 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
7017 wxPyEndAllowThreads(__tstate
);
7018 if (PyErr_Occurred()) return NULL
;
7019 } _resultobj
= Py_BuildValue("d",_result
);
7023 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
7024 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7025 PyObject
* _resultobj
;
7027 wxScrolledWindow
* _arg0
;
7028 PyObject
* _argo0
= 0;
7029 char *_kwnames
[] = { "self", NULL
};
7032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
7035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
7037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
7042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7043 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
7045 wxPyEndAllowThreads(__tstate
);
7046 if (PyErr_Occurred()) return NULL
;
7047 } _resultobj
= Py_BuildValue("d",_result
);
7051 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
7052 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7053 PyObject
* _resultobj
;
7054 wxScrolledWindow
* _arg0
;
7055 PyObject
* _argo0
= 0;
7056 char *_kwnames
[] = { "self", NULL
};
7059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
7062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
7064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
7069 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7070 wxScrolledWindow_AdjustScrollbars(_arg0
);
7072 wxPyEndAllowThreads(__tstate
);
7073 if (PyErr_Occurred()) return NULL
;
7074 } Py_INCREF(Py_None
);
7075 _resultobj
= Py_None
;
7079 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
7082 src
= (wxMenu
*) ptr
;
7083 dest
= (wxEvtHandler
*) src
;
7084 return (void *) dest
;
7087 static void *SwigwxMenuTowxObject(void *ptr
) {
7090 src
= (wxMenu
*) ptr
;
7091 dest
= (wxObject
*) src
;
7092 return (void *) dest
;
7095 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
7096 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7097 PyObject
* _resultobj
;
7099 wxString
* _arg0
= (wxString
*) &wxEmptyString
;
7100 long _arg1
= (long ) 0;
7101 PyObject
* _obj0
= 0;
7102 char *_kwnames
[] = { "title","style", NULL
};
7106 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
7110 #if PYTHON_API_VERSION >= 1009
7111 char* tmpPtr
; int tmpSize
;
7112 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
7113 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7116 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
7118 _arg0
= new wxString(tmpPtr
, tmpSize
);
7120 if (!PyString_Check(_obj0
)) {
7121 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7124 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
7128 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7129 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
7131 wxPyEndAllowThreads(__tstate
);
7132 if (PyErr_Occurred()) return NULL
;
7134 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
7135 _resultobj
= Py_BuildValue("s",_ptemp
);
7138 _resultobj
= Py_None
;
7147 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7148 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7149 PyObject
* _resultobj
;
7153 wxString
* _arg3
= (wxString
*) &wxEmptyString
;
7154 int _arg4
= (int ) FALSE
;
7155 PyObject
* _argo0
= 0;
7156 PyObject
* _obj2
= 0;
7157 PyObject
* _obj3
= 0;
7158 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
7161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
7164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
7171 #if PYTHON_API_VERSION >= 1009
7172 char* tmpPtr
; int tmpSize
;
7173 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7174 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7177 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7179 _arg2
= new wxString(tmpPtr
, tmpSize
);
7181 if (!PyString_Check(_obj2
)) {
7182 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7185 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7190 #if PYTHON_API_VERSION >= 1009
7191 char* tmpPtr
; int tmpSize
;
7192 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
7193 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7196 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
7198 _arg3
= new wxString(tmpPtr
, tmpSize
);
7200 if (!PyString_Check(_obj3
)) {
7201 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7204 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
7208 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7209 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
7211 wxPyEndAllowThreads(__tstate
);
7212 if (PyErr_Occurred()) return NULL
;
7213 } Py_INCREF(Py_None
);
7214 _resultobj
= Py_None
;
7226 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7227 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7228 PyObject
* _resultobj
;
7233 wxString
* _arg4
= (wxString
*) &wxEmptyString
;
7234 PyObject
* _argo0
= 0;
7235 PyObject
* _obj2
= 0;
7236 PyObject
* _argo3
= 0;
7237 PyObject
* _obj4
= 0;
7238 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
7241 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
7244 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7245 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7246 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7251 #if PYTHON_API_VERSION >= 1009
7252 char* tmpPtr
; int tmpSize
;
7253 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7254 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7257 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7259 _arg2
= new wxString(tmpPtr
, tmpSize
);
7261 if (!PyString_Check(_obj2
)) {
7262 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7265 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7269 if (_argo3
== Py_None
) { _arg3
= NULL
; }
7270 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
7271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7277 #if PYTHON_API_VERSION >= 1009
7278 char* tmpPtr
; int tmpSize
;
7279 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
7280 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7283 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
7285 _arg4
= new wxString(tmpPtr
, tmpSize
);
7287 if (!PyString_Check(_obj4
)) {
7288 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7291 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
7295 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7296 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
7298 wxPyEndAllowThreads(__tstate
);
7299 if (PyErr_Occurred()) return NULL
;
7300 } Py_INCREF(Py_None
);
7301 _resultobj
= Py_None
;
7313 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7314 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7315 PyObject
* _resultobj
;
7318 PyObject
* _argo0
= 0;
7319 PyObject
* _argo1
= 0;
7320 char *_kwnames
[] = { "self","item", NULL
};
7323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
7326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7333 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7334 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7335 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7341 wxMenu_AppendItem(_arg0
,_arg1
);
7343 wxPyEndAllowThreads(__tstate
);
7344 if (PyErr_Occurred()) return NULL
;
7345 } Py_INCREF(Py_None
);
7346 _resultobj
= Py_None
;
7350 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7351 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7352 PyObject
* _resultobj
;
7354 PyObject
* _argo0
= 0;
7355 char *_kwnames
[] = { "self", NULL
};
7358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7368 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7369 wxMenu_AppendSeparator(_arg0
);
7371 wxPyEndAllowThreads(__tstate
);
7372 if (PyErr_Occurred()) return NULL
;
7373 } Py_INCREF(Py_None
);
7374 _resultobj
= Py_None
;
7378 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7379 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7380 PyObject
* _resultobj
;
7382 PyObject
* _argo0
= 0;
7383 char *_kwnames
[] = { "self", NULL
};
7386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7397 wxMenu_Break(_arg0
);
7399 wxPyEndAllowThreads(__tstate
);
7400 if (PyErr_Occurred()) return NULL
;
7401 } Py_INCREF(Py_None
);
7402 _resultobj
= Py_None
;
7406 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7407 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7408 PyObject
* _resultobj
;
7412 PyObject
* _argo0
= 0;
7414 char *_kwnames
[] = { "self","id","flag", NULL
};
7417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7426 _arg2
= (bool ) tempbool2
;
7428 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7429 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7431 wxPyEndAllowThreads(__tstate
);
7432 if (PyErr_Occurred()) return NULL
;
7433 } Py_INCREF(Py_None
);
7434 _resultobj
= Py_None
;
7438 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7439 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7440 PyObject
* _resultobj
;
7444 PyObject
* _argo0
= 0;
7445 char *_kwnames
[] = { "self","id", NULL
};
7448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7459 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7461 wxPyEndAllowThreads(__tstate
);
7462 if (PyErr_Occurred()) return NULL
;
7463 } _resultobj
= Py_BuildValue("i",_result
);
7467 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7468 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7469 PyObject
* _resultobj
;
7473 PyObject
* _argo0
= 0;
7475 char *_kwnames
[] = { "self","id","enable", NULL
};
7478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7487 _arg2
= (bool ) tempbool2
;
7489 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7490 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7492 wxPyEndAllowThreads(__tstate
);
7493 if (PyErr_Occurred()) return NULL
;
7494 } Py_INCREF(Py_None
);
7495 _resultobj
= Py_None
;
7499 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7500 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7501 PyObject
* _resultobj
;
7505 PyObject
* _argo0
= 0;
7506 char *_kwnames
[] = { "self","id", NULL
};
7509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7520 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7522 wxPyEndAllowThreads(__tstate
);
7523 if (PyErr_Occurred()) return NULL
;
7524 } _resultobj
= Py_BuildValue("i",_result
);
7528 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7529 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7530 PyObject
* _resultobj
;
7534 PyObject
* _argo0
= 0;
7535 PyObject
* _obj1
= 0;
7536 char *_kwnames
[] = { "self","itemString", NULL
};
7539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7549 #if PYTHON_API_VERSION >= 1009
7550 char* tmpPtr
; int tmpSize
;
7551 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7552 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7555 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7557 _arg1
= new wxString(tmpPtr
, tmpSize
);
7559 if (!PyString_Check(_obj1
)) {
7560 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7563 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7567 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7568 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7570 wxPyEndAllowThreads(__tstate
);
7571 if (PyErr_Occurred()) return NULL
;
7572 } _resultobj
= Py_BuildValue("i",_result
);
7580 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7581 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7582 PyObject
* _resultobj
;
7583 wxMenuItem
* _result
;
7586 PyObject
* _argo0
= 0;
7587 char *_kwnames
[] = { "self","id", NULL
};
7590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7601 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7603 wxPyEndAllowThreads(__tstate
);
7604 if (PyErr_Occurred()) return NULL
;
7605 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7609 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7610 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7611 PyObject
* _resultobj
;
7614 PyObject
* _argo0
= 0;
7615 char *_kwnames
[] = { "self", NULL
};
7618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7629 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7631 wxPyEndAllowThreads(__tstate
);
7632 if (PyErr_Occurred()) return NULL
;
7634 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7642 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7643 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7644 PyObject
* _resultobj
;
7647 PyObject
* _argo0
= 0;
7648 PyObject
* _obj1
= 0;
7649 char *_kwnames
[] = { "self","title", NULL
};
7652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7662 #if PYTHON_API_VERSION >= 1009
7663 char* tmpPtr
; int tmpSize
;
7664 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7665 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7668 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7670 _arg1
= new wxString(tmpPtr
, tmpSize
);
7672 if (!PyString_Check(_obj1
)) {
7673 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7676 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7680 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7681 wxMenu_SetTitle(_arg0
,*_arg1
);
7683 wxPyEndAllowThreads(__tstate
);
7684 if (PyErr_Occurred()) return NULL
;
7685 } Py_INCREF(Py_None
);
7686 _resultobj
= Py_None
;
7694 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7695 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7696 PyObject
* _resultobj
;
7700 PyObject
* _argo0
= 0;
7701 char *_kwnames
[] = { "self","id", NULL
};
7704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7707 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7708 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7714 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7715 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7717 wxPyEndAllowThreads(__tstate
);
7718 if (PyErr_Occurred()) return NULL
;
7720 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7728 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7729 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7730 PyObject
* _resultobj
;
7734 PyObject
* _argo0
= 0;
7735 PyObject
* _obj2
= 0;
7736 char *_kwnames
[] = { "self","id","label", NULL
};
7739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7742 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7743 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7749 #if PYTHON_API_VERSION >= 1009
7750 char* tmpPtr
; int tmpSize
;
7751 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7752 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7755 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7757 _arg2
= new wxString(tmpPtr
, tmpSize
);
7759 if (!PyString_Check(_obj2
)) {
7760 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7763 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7767 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7768 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7770 wxPyEndAllowThreads(__tstate
);
7771 if (PyErr_Occurred()) return NULL
;
7772 } Py_INCREF(Py_None
);
7773 _resultobj
= Py_None
;
7781 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7782 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7783 PyObject
* _resultobj
;
7787 PyObject
* _argo0
= 0;
7788 char *_kwnames
[] = { "self","id", NULL
};
7791 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7794 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7795 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7801 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7802 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7804 wxPyEndAllowThreads(__tstate
);
7805 if (PyErr_Occurred()) return NULL
;
7807 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7815 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7816 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7817 PyObject
* _resultobj
;
7821 PyObject
* _argo0
= 0;
7822 PyObject
* _obj2
= 0;
7823 char *_kwnames
[] = { "self","id","helpString", NULL
};
7826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7829 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7830 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7831 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7836 #if PYTHON_API_VERSION >= 1009
7837 char* tmpPtr
; int tmpSize
;
7838 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7839 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7842 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7844 _arg2
= new wxString(tmpPtr
, tmpSize
);
7846 if (!PyString_Check(_obj2
)) {
7847 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7850 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7854 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7855 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7857 wxPyEndAllowThreads(__tstate
);
7858 if (PyErr_Occurred()) return NULL
;
7859 } Py_INCREF(Py_None
);
7860 _resultobj
= Py_None
;
7868 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7869 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7870 PyObject
* _resultobj
;
7872 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7873 PyObject
* _argo0
= 0;
7874 PyObject
* _argo1
= 0;
7875 char *_kwnames
[] = { "self","source", NULL
};
7878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_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_UpdateUI. Expected _wxMenu_p.");
7888 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7889 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7895 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7896 wxMenu_UpdateUI(_arg0
,_arg1
);
7898 wxPyEndAllowThreads(__tstate
);
7899 if (PyErr_Occurred()) return NULL
;
7900 } Py_INCREF(Py_None
);
7901 _resultobj
= Py_None
;
7905 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7906 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7907 PyObject
* _resultobj
;
7911 PyObject
* _argo0
= 0;
7912 char *_kwnames
[] = { "self","id", NULL
};
7915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7926 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7928 wxPyEndAllowThreads(__tstate
);
7929 if (PyErr_Occurred()) return NULL
;
7930 } _resultobj
= Py_BuildValue("i",_result
);
7934 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7935 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7936 PyObject
* _resultobj
;
7940 PyObject
* _argo0
= 0;
7941 PyObject
* _argo1
= 0;
7942 char *_kwnames
[] = { "self","item", NULL
};
7945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7955 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7956 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7962 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7963 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7965 wxPyEndAllowThreads(__tstate
);
7966 if (PyErr_Occurred()) return NULL
;
7967 } _resultobj
= Py_BuildValue("i",_result
);
7971 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7972 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7973 PyObject
* _resultobj
;
7978 PyObject
* _argo0
= 0;
7979 PyObject
* _argo2
= 0;
7980 char *_kwnames
[] = { "self","pos","item", NULL
};
7983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7993 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7994 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
8000 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8001 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
8003 wxPyEndAllowThreads(__tstate
);
8004 if (PyErr_Occurred()) return NULL
;
8005 } _resultobj
= Py_BuildValue("i",_result
);
8009 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8010 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8011 PyObject
* _resultobj
;
8012 wxMenuItem
* _result
;
8015 PyObject
* _argo0
= 0;
8016 char *_kwnames
[] = { "self","id", NULL
};
8019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
8022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
8029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8030 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
8032 wxPyEndAllowThreads(__tstate
);
8033 if (PyErr_Occurred()) return NULL
;
8034 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8038 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8039 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8040 PyObject
* _resultobj
;
8041 wxMenuItem
* _result
;
8044 PyObject
* _argo0
= 0;
8045 PyObject
* _argo1
= 0;
8046 char *_kwnames
[] = { "self","item", NULL
};
8049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
8052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
8059 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8060 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
8061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
8066 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8067 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
8069 wxPyEndAllowThreads(__tstate
);
8070 if (PyErr_Occurred()) return NULL
;
8071 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8075 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
8076 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8077 PyObject
* _resultobj
;
8079 PyObject
* _argo0
= 0;
8080 char *_kwnames
[] = { "self", NULL
};
8083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
8086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
8093 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8094 wxMenu_Destroy(_arg0
);
8096 wxPyEndAllowThreads(__tstate
);
8097 if (PyErr_Occurred()) return NULL
;
8098 } Py_INCREF(Py_None
);
8099 _resultobj
= Py_None
;
8103 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
8104 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8105 PyObject
* _resultobj
;
8109 PyObject
* _argo0
= 0;
8110 char *_kwnames
[] = { "self","id", NULL
};
8113 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
8116 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8117 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8118 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
8123 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8124 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
8126 wxPyEndAllowThreads(__tstate
);
8127 if (PyErr_Occurred()) return NULL
;
8128 } _resultobj
= Py_BuildValue("i",_result
);
8132 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
8133 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8134 PyObject
* _resultobj
;
8138 PyObject
* _argo0
= 0;
8139 PyObject
* _argo1
= 0;
8140 char *_kwnames
[] = { "self","item", NULL
};
8143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
8146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
8153 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8154 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
8155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
8160 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8161 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
8163 wxPyEndAllowThreads(__tstate
);
8164 if (PyErr_Occurred()) return NULL
;
8165 } _resultobj
= Py_BuildValue("i",_result
);
8169 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
8170 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8171 PyObject
* _resultobj
;
8174 PyObject
* _argo0
= 0;
8175 char *_kwnames
[] = { "self", NULL
};
8178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
8181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
8188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8189 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
8191 wxPyEndAllowThreads(__tstate
);
8192 if (PyErr_Occurred()) return NULL
;
8193 } _resultobj
= Py_BuildValue("i",_result
);
8197 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
8198 wxMenuItemList
& list
= self
->GetMenuItems();
8199 return wxPy_ConvertList(&list
, "wxMenuItem");
8201 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8202 PyObject
* _resultobj
;
8205 PyObject
* _argo0
= 0;
8206 char *_kwnames
[] = { "self", NULL
};
8209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
8212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
8219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8220 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
8222 wxPyEndAllowThreads(__tstate
);
8223 if (PyErr_Occurred()) return NULL
;
8225 _resultobj
= _result
;
8230 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
8231 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8232 PyObject
* _resultobj
;
8234 wxEvtHandler
* _arg1
;
8235 PyObject
* _argo0
= 0;
8236 PyObject
* _argo1
= 0;
8237 char *_kwnames
[] = { "self","handler", NULL
};
8240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
8243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
8250 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8251 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
8252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
8257 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8258 wxMenu_SetEventHandler(_arg0
,_arg1
);
8260 wxPyEndAllowThreads(__tstate
);
8261 if (PyErr_Occurred()) return NULL
;
8262 } Py_INCREF(Py_None
);
8263 _resultobj
= Py_None
;
8267 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
8268 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8269 PyObject
* _resultobj
;
8270 wxEvtHandler
* _result
;
8272 PyObject
* _argo0
= 0;
8273 char *_kwnames
[] = { "self", NULL
};
8276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
8279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
8286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8287 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
8289 wxPyEndAllowThreads(__tstate
);
8290 if (PyErr_Occurred()) return NULL
;
8291 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8295 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
8296 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8297 PyObject
* _resultobj
;
8300 PyObject
* _argo0
= 0;
8301 PyObject
* _argo1
= 0;
8302 char *_kwnames
[] = { "self","win", NULL
};
8305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
8308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
8315 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8316 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
8322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8323 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
8325 wxPyEndAllowThreads(__tstate
);
8326 if (PyErr_Occurred()) return NULL
;
8327 } Py_INCREF(Py_None
);
8328 _resultobj
= Py_None
;
8332 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
8333 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8334 PyObject
* _resultobj
;
8337 PyObject
* _argo0
= 0;
8338 char *_kwnames
[] = { "self", NULL
};
8341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8352 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8354 wxPyEndAllowThreads(__tstate
);
8355 if (PyErr_Occurred()) return NULL
;
8356 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8360 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8361 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8362 PyObject
* _resultobj
;
8365 PyObject
* _argo0
= 0;
8366 char *_kwnames
[] = { "self", NULL
};
8369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8380 _result
= (long )wxMenu_GetStyle(_arg0
);
8382 wxPyEndAllowThreads(__tstate
);
8383 if (PyErr_Occurred()) return NULL
;
8384 } _resultobj
= Py_BuildValue("l",_result
);
8388 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8389 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8390 PyObject
* _resultobj
;
8393 PyObject
* _argo0
= 0;
8394 char *_kwnames
[] = { "self", NULL
};
8397 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8400 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8401 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8402 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8407 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8408 _result
= (bool )wxMenu_IsAttached(_arg0
);
8410 wxPyEndAllowThreads(__tstate
);
8411 if (PyErr_Occurred()) return NULL
;
8412 } _resultobj
= Py_BuildValue("i",_result
);
8416 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8417 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8418 PyObject
* _resultobj
;
8421 PyObject
* _argo0
= 0;
8422 PyObject
* _argo1
= 0;
8423 char *_kwnames
[] = { "self","parent", NULL
};
8426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8436 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8437 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8444 wxMenu_SetParent(_arg0
,_arg1
);
8446 wxPyEndAllowThreads(__tstate
);
8447 if (PyErr_Occurred()) return NULL
;
8448 } Py_INCREF(Py_None
);
8449 _resultobj
= Py_None
;
8453 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8454 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8455 PyObject
* _resultobj
;
8458 PyObject
* _argo0
= 0;
8459 char *_kwnames
[] = { "self", NULL
};
8462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8472 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8473 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8475 wxPyEndAllowThreads(__tstate
);
8476 if (PyErr_Occurred()) return NULL
;
8477 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8481 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8484 src
= (wxMenuBar
*) ptr
;
8485 dest
= (wxWindow
*) src
;
8486 return (void *) dest
;
8489 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8492 src
= (wxMenuBar
*) ptr
;
8493 dest
= (wxEvtHandler
*) src
;
8494 return (void *) dest
;
8497 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8500 src
= (wxMenuBar
*) ptr
;
8501 dest
= (wxObject
*) src
;
8502 return (void *) dest
;
8505 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8506 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8507 PyObject
* _resultobj
;
8508 wxMenuBar
* _result
;
8509 long _arg0
= (long ) 0;
8510 char *_kwnames
[] = { "style", NULL
};
8514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8517 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8518 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8520 wxPyEndAllowThreads(__tstate
);
8521 if (PyErr_Occurred()) return NULL
;
8523 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8524 _resultobj
= Py_BuildValue("s",_ptemp
);
8527 _resultobj
= Py_None
;
8532 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8533 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8534 PyObject
* _resultobj
;
8539 PyObject
* _argo0
= 0;
8540 PyObject
* _argo1
= 0;
8541 PyObject
* _obj2
= 0;
8542 char *_kwnames
[] = { "self","menu","title", NULL
};
8545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8555 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8556 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8562 #if PYTHON_API_VERSION >= 1009
8563 char* tmpPtr
; int tmpSize
;
8564 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8565 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8568 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8570 _arg2
= new wxString(tmpPtr
, tmpSize
);
8572 if (!PyString_Check(_obj2
)) {
8573 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8576 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8580 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8581 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8583 wxPyEndAllowThreads(__tstate
);
8584 if (PyErr_Occurred()) return NULL
;
8585 } _resultobj
= Py_BuildValue("i",_result
);
8593 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8594 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8595 PyObject
* _resultobj
;
8601 PyObject
* _argo0
= 0;
8602 PyObject
* _argo2
= 0;
8603 PyObject
* _obj3
= 0;
8604 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8617 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8618 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8624 #if PYTHON_API_VERSION >= 1009
8625 char* tmpPtr
; int tmpSize
;
8626 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8627 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8630 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8632 _arg3
= new wxString(tmpPtr
, tmpSize
);
8634 if (!PyString_Check(_obj3
)) {
8635 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8638 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8643 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8645 wxPyEndAllowThreads(__tstate
);
8646 if (PyErr_Occurred()) return NULL
;
8647 } _resultobj
= Py_BuildValue("i",_result
);
8655 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8656 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8657 PyObject
* _resultobj
;
8660 PyObject
* _argo0
= 0;
8661 char *_kwnames
[] = { "self", NULL
};
8664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8667 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8668 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8675 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8677 wxPyEndAllowThreads(__tstate
);
8678 if (PyErr_Occurred()) return NULL
;
8679 } _resultobj
= Py_BuildValue("i",_result
);
8683 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8684 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8685 PyObject
* _resultobj
;
8689 PyObject
* _argo0
= 0;
8690 char *_kwnames
[] = { "self","pos", NULL
};
8693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8696 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8697 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8704 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8706 wxPyEndAllowThreads(__tstate
);
8707 if (PyErr_Occurred()) return NULL
;
8708 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8712 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8713 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8714 PyObject
* _resultobj
;
8720 PyObject
* _argo0
= 0;
8721 PyObject
* _argo2
= 0;
8722 PyObject
* _obj3
= 0;
8723 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8736 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8737 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8743 #if PYTHON_API_VERSION >= 1009
8744 char* tmpPtr
; int tmpSize
;
8745 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8746 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8749 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8751 _arg3
= new wxString(tmpPtr
, tmpSize
);
8753 if (!PyString_Check(_obj3
)) {
8754 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8757 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8761 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8762 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8764 wxPyEndAllowThreads(__tstate
);
8765 if (PyErr_Occurred()) return NULL
;
8766 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8774 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8775 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8776 PyObject
* _resultobj
;
8780 PyObject
* _argo0
= 0;
8781 char *_kwnames
[] = { "self","pos", NULL
};
8784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8795 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8797 wxPyEndAllowThreads(__tstate
);
8798 if (PyErr_Occurred()) return NULL
;
8799 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8803 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8804 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8805 PyObject
* _resultobj
;
8809 PyObject
* _argo0
= 0;
8811 char *_kwnames
[] = { "self","pos","enable", NULL
};
8814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8823 _arg2
= (bool ) tempbool2
;
8825 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8826 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8828 wxPyEndAllowThreads(__tstate
);
8829 if (PyErr_Occurred()) return NULL
;
8830 } Py_INCREF(Py_None
);
8831 _resultobj
= Py_None
;
8835 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8836 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8837 PyObject
* _resultobj
;
8841 PyObject
* _argo0
= 0;
8842 PyObject
* _obj2
= 0;
8843 char *_kwnames
[] = { "self","pos","label", NULL
};
8846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8856 #if PYTHON_API_VERSION >= 1009
8857 char* tmpPtr
; int tmpSize
;
8858 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8859 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8862 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8864 _arg2
= new wxString(tmpPtr
, tmpSize
);
8866 if (!PyString_Check(_obj2
)) {
8867 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8870 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8875 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8877 wxPyEndAllowThreads(__tstate
);
8878 if (PyErr_Occurred()) return NULL
;
8879 } Py_INCREF(Py_None
);
8880 _resultobj
= Py_None
;
8888 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8889 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8890 PyObject
* _resultobj
;
8894 PyObject
* _argo0
= 0;
8895 char *_kwnames
[] = { "self","pos", NULL
};
8898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8901 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8902 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8903 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8908 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8909 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8911 wxPyEndAllowThreads(__tstate
);
8912 if (PyErr_Occurred()) return NULL
;
8914 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8922 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8923 static PyObject
*_wrap_wxMenuBar_FindMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8924 PyObject
* _resultobj
;
8928 PyObject
* _argo0
= 0;
8929 PyObject
* _obj1
= 0;
8930 char *_kwnames
[] = { "self","title", NULL
};
8933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuBar_FindMenu",_kwnames
,&_argo0
,&_obj1
))
8936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8943 #if PYTHON_API_VERSION >= 1009
8944 char* tmpPtr
; int tmpSize
;
8945 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8946 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8949 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8951 _arg1
= new wxString(tmpPtr
, tmpSize
);
8953 if (!PyString_Check(_obj1
)) {
8954 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8957 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8962 _result
= (int )wxMenuBar_FindMenu(_arg0
,*_arg1
);
8964 wxPyEndAllowThreads(__tstate
);
8965 if (PyErr_Occurred()) return NULL
;
8966 } _resultobj
= Py_BuildValue("i",_result
);
8974 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8975 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8976 PyObject
* _resultobj
;
8981 PyObject
* _argo0
= 0;
8982 PyObject
* _obj1
= 0;
8983 PyObject
* _obj2
= 0;
8984 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8997 #if PYTHON_API_VERSION >= 1009
8998 char* tmpPtr
; int tmpSize
;
8999 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9000 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9003 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9005 _arg1
= new wxString(tmpPtr
, tmpSize
);
9007 if (!PyString_Check(_obj1
)) {
9008 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9011 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9015 #if PYTHON_API_VERSION >= 1009
9016 char* tmpPtr
; int tmpSize
;
9017 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9018 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9021 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9023 _arg2
= new wxString(tmpPtr
, tmpSize
);
9025 if (!PyString_Check(_obj2
)) {
9026 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9029 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9033 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9034 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
9036 wxPyEndAllowThreads(__tstate
);
9037 if (PyErr_Occurred()) return NULL
;
9038 } _resultobj
= Py_BuildValue("i",_result
);
9050 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
9051 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9052 PyObject
* _resultobj
;
9053 wxMenuItem
* _result
;
9056 PyObject
* _argo0
= 0;
9057 char *_kwnames
[] = { "self","id", NULL
};
9060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
9063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
9070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9071 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
9073 wxPyEndAllowThreads(__tstate
);
9074 if (PyErr_Occurred()) return NULL
;
9075 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9079 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
9080 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9081 PyObject
* _resultobj
;
9085 PyObject
* _argo0
= 0;
9087 char *_kwnames
[] = { "self","id","enable", NULL
};
9090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
9093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
9099 _arg2
= (bool ) tempbool2
;
9101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9102 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
9104 wxPyEndAllowThreads(__tstate
);
9105 if (PyErr_Occurred()) return NULL
;
9106 } Py_INCREF(Py_None
);
9107 _resultobj
= Py_None
;
9111 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
9112 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9113 PyObject
* _resultobj
;
9117 PyObject
* _argo0
= 0;
9119 char *_kwnames
[] = { "self","id","check", NULL
};
9122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
9125 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9126 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9127 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
9131 _arg2
= (bool ) tempbool2
;
9133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9134 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
9136 wxPyEndAllowThreads(__tstate
);
9137 if (PyErr_Occurred()) return NULL
;
9138 } Py_INCREF(Py_None
);
9139 _resultobj
= Py_None
;
9143 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
9144 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9145 PyObject
* _resultobj
;
9149 PyObject
* _argo0
= 0;
9150 char *_kwnames
[] = { "self","id", NULL
};
9153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
9156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
9163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9164 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
9166 wxPyEndAllowThreads(__tstate
);
9167 if (PyErr_Occurred()) return NULL
;
9168 } _resultobj
= Py_BuildValue("i",_result
);
9172 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
9173 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9174 PyObject
* _resultobj
;
9178 PyObject
* _argo0
= 0;
9179 char *_kwnames
[] = { "self","id", NULL
};
9182 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
9185 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9186 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9187 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
9192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9193 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
9195 wxPyEndAllowThreads(__tstate
);
9196 if (PyErr_Occurred()) return NULL
;
9197 } _resultobj
= Py_BuildValue("i",_result
);
9201 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
9202 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9203 PyObject
* _resultobj
;
9207 PyObject
* _argo0
= 0;
9208 PyObject
* _obj2
= 0;
9209 char *_kwnames
[] = { "self","id","label", NULL
};
9212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
9215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
9222 #if PYTHON_API_VERSION >= 1009
9223 char* tmpPtr
; int tmpSize
;
9224 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9225 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9228 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9230 _arg2
= new wxString(tmpPtr
, tmpSize
);
9232 if (!PyString_Check(_obj2
)) {
9233 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9236 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9240 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9241 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
9243 wxPyEndAllowThreads(__tstate
);
9244 if (PyErr_Occurred()) return NULL
;
9245 } Py_INCREF(Py_None
);
9246 _resultobj
= Py_None
;
9254 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
9255 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9256 PyObject
* _resultobj
;
9260 PyObject
* _argo0
= 0;
9261 char *_kwnames
[] = { "self","id", NULL
};
9264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
9267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
9274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9275 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
9277 wxPyEndAllowThreads(__tstate
);
9278 if (PyErr_Occurred()) return NULL
;
9280 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9288 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
9289 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9290 PyObject
* _resultobj
;
9294 PyObject
* _argo0
= 0;
9295 PyObject
* _obj2
= 0;
9296 char *_kwnames
[] = { "self","id","helpString", NULL
};
9299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
9302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
9309 #if PYTHON_API_VERSION >= 1009
9310 char* tmpPtr
; int tmpSize
;
9311 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9312 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9315 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9317 _arg2
= new wxString(tmpPtr
, tmpSize
);
9319 if (!PyString_Check(_obj2
)) {
9320 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9323 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9327 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9328 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
9330 wxPyEndAllowThreads(__tstate
);
9331 if (PyErr_Occurred()) return NULL
;
9332 } Py_INCREF(Py_None
);
9333 _resultobj
= Py_None
;
9341 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9342 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9343 PyObject
* _resultobj
;
9347 PyObject
* _argo0
= 0;
9348 char *_kwnames
[] = { "self","id", NULL
};
9351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9361 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9362 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9364 wxPyEndAllowThreads(__tstate
);
9365 if (PyErr_Occurred()) return NULL
;
9367 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9375 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9378 src
= (wxMenuItem
*) ptr
;
9379 dest
= (wxObject
*) src
;
9380 return (void *) dest
;
9383 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9384 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9385 PyObject
* _resultobj
;
9386 wxMenuItem
* _result
;
9387 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9388 int _arg1
= (int ) wxID_SEPARATOR
;
9389 wxString
* _arg2
= (wxString
*) &wxEmptyString
;
9390 wxString
* _arg3
= (wxString
*) &wxEmptyString
;
9391 bool _arg4
= (bool ) FALSE
;
9392 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9393 PyObject
* _argo0
= 0;
9394 PyObject
* _obj2
= 0;
9395 PyObject
* _obj3
= 0;
9396 int tempbool4
= (int) FALSE
;
9397 PyObject
* _argo5
= 0;
9398 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9413 #if PYTHON_API_VERSION >= 1009
9414 char* tmpPtr
; int tmpSize
;
9415 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9416 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9419 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9421 _arg2
= new wxString(tmpPtr
, tmpSize
);
9423 if (!PyString_Check(_obj2
)) {
9424 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9427 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9432 #if PYTHON_API_VERSION >= 1009
9433 char* tmpPtr
; int tmpSize
;
9434 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9435 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9438 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9440 _arg3
= new wxString(tmpPtr
, tmpSize
);
9442 if (!PyString_Check(_obj3
)) {
9443 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9446 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9449 _arg4
= (bool ) tempbool4
;
9451 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9452 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9459 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9461 wxPyEndAllowThreads(__tstate
);
9462 if (PyErr_Occurred()) return NULL
;
9464 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9465 _resultobj
= Py_BuildValue("s",_ptemp
);
9468 _resultobj
= Py_None
;
9481 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9482 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9483 PyObject
* _resultobj
;
9486 PyObject
* _argo0
= 0;
9487 char *_kwnames
[] = { "self", NULL
};
9490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9500 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9501 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9503 wxPyEndAllowThreads(__tstate
);
9504 if (PyErr_Occurred()) return NULL
;
9505 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9509 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9510 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9511 PyObject
* _resultobj
;
9514 PyObject
* _argo0
= 0;
9515 char *_kwnames
[] = { "self","id", NULL
};
9518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9529 wxMenuItem_SetId(_arg0
,_arg1
);
9531 wxPyEndAllowThreads(__tstate
);
9532 if (PyErr_Occurred()) return NULL
;
9533 } Py_INCREF(Py_None
);
9534 _resultobj
= Py_None
;
9538 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9539 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9540 PyObject
* _resultobj
;
9543 PyObject
* _argo0
= 0;
9544 char *_kwnames
[] = { "self", NULL
};
9547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9557 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9558 _result
= (int )wxMenuItem_GetId(_arg0
);
9560 wxPyEndAllowThreads(__tstate
);
9561 if (PyErr_Occurred()) return NULL
;
9562 } _resultobj
= Py_BuildValue("i",_result
);
9566 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9567 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9568 PyObject
* _resultobj
;
9571 PyObject
* _argo0
= 0;
9572 char *_kwnames
[] = { "self", NULL
};
9575 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9578 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9579 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9580 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9585 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9586 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9588 wxPyEndAllowThreads(__tstate
);
9589 if (PyErr_Occurred()) return NULL
;
9590 } _resultobj
= Py_BuildValue("i",_result
);
9594 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9595 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9596 PyObject
* _resultobj
;
9599 PyObject
* _argo0
= 0;
9600 PyObject
* _obj1
= 0;
9601 char *_kwnames
[] = { "self","str", NULL
};
9604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9614 #if PYTHON_API_VERSION >= 1009
9615 char* tmpPtr
; int tmpSize
;
9616 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9617 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9620 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9622 _arg1
= new wxString(tmpPtr
, tmpSize
);
9624 if (!PyString_Check(_obj1
)) {
9625 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9628 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9632 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9633 wxMenuItem_SetText(_arg0
,*_arg1
);
9635 wxPyEndAllowThreads(__tstate
);
9636 if (PyErr_Occurred()) return NULL
;
9637 } Py_INCREF(Py_None
);
9638 _resultobj
= Py_None
;
9646 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9647 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9648 PyObject
* _resultobj
;
9651 PyObject
* _argo0
= 0;
9652 char *_kwnames
[] = { "self", NULL
};
9655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9666 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9668 wxPyEndAllowThreads(__tstate
);
9669 if (PyErr_Occurred()) return NULL
;
9671 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9679 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9680 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9681 PyObject
* _resultobj
;
9684 PyObject
* _argo0
= 0;
9685 char *_kwnames
[] = { "self", NULL
};
9688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9698 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9699 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9700 _result
= (wxString
*) &_result_ref
;
9702 wxPyEndAllowThreads(__tstate
);
9703 if (PyErr_Occurred()) return NULL
;
9705 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9710 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9711 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9712 PyObject
* _resultobj
;
9715 PyObject
* _argo0
= 0;
9717 char *_kwnames
[] = { "self","checkable", NULL
};
9720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9729 _arg1
= (bool ) tempbool1
;
9731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9732 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9734 wxPyEndAllowThreads(__tstate
);
9735 if (PyErr_Occurred()) return NULL
;
9736 } Py_INCREF(Py_None
);
9737 _resultobj
= Py_None
;
9741 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9742 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9743 PyObject
* _resultobj
;
9746 PyObject
* _argo0
= 0;
9747 char *_kwnames
[] = { "self", NULL
};
9750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9760 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9761 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9763 wxPyEndAllowThreads(__tstate
);
9764 if (PyErr_Occurred()) return NULL
;
9765 } _resultobj
= Py_BuildValue("i",_result
);
9769 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9770 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9771 PyObject
* _resultobj
;
9774 PyObject
* _argo0
= 0;
9775 char *_kwnames
[] = { "self", NULL
};
9778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9789 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9791 wxPyEndAllowThreads(__tstate
);
9792 if (PyErr_Occurred()) return NULL
;
9793 } _resultobj
= Py_BuildValue("i",_result
);
9797 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9798 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9799 PyObject
* _resultobj
;
9802 PyObject
* _argo0
= 0;
9803 PyObject
* _argo1
= 0;
9804 char *_kwnames
[] = { "self","menu", NULL
};
9807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9810 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9811 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9817 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9818 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9825 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9827 wxPyEndAllowThreads(__tstate
);
9828 if (PyErr_Occurred()) return NULL
;
9829 } Py_INCREF(Py_None
);
9830 _resultobj
= Py_None
;
9834 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9835 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9836 PyObject
* _resultobj
;
9839 PyObject
* _argo0
= 0;
9840 char *_kwnames
[] = { "self", NULL
};
9843 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9846 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9847 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9848 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9853 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9854 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9856 wxPyEndAllowThreads(__tstate
);
9857 if (PyErr_Occurred()) return NULL
;
9858 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9862 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9863 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9864 PyObject
* _resultobj
;
9866 bool _arg1
= (bool ) TRUE
;
9867 PyObject
* _argo0
= 0;
9868 int tempbool1
= (int) TRUE
;
9869 char *_kwnames
[] = { "self","enable", NULL
};
9872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9881 _arg1
= (bool ) tempbool1
;
9883 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9884 wxMenuItem_Enable(_arg0
,_arg1
);
9886 wxPyEndAllowThreads(__tstate
);
9887 if (PyErr_Occurred()) return NULL
;
9888 } Py_INCREF(Py_None
);
9889 _resultobj
= Py_None
;
9893 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9894 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9895 PyObject
* _resultobj
;
9898 PyObject
* _argo0
= 0;
9899 char *_kwnames
[] = { "self", NULL
};
9902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9905 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9906 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9907 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9912 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9913 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9915 wxPyEndAllowThreads(__tstate
);
9916 if (PyErr_Occurred()) return NULL
;
9917 } _resultobj
= Py_BuildValue("i",_result
);
9921 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9922 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9923 PyObject
* _resultobj
;
9925 bool _arg1
= (bool ) TRUE
;
9926 PyObject
* _argo0
= 0;
9927 int tempbool1
= (int) TRUE
;
9928 char *_kwnames
[] = { "self","check", NULL
};
9931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9940 _arg1
= (bool ) tempbool1
;
9942 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9943 wxMenuItem_Check(_arg0
,_arg1
);
9945 wxPyEndAllowThreads(__tstate
);
9946 if (PyErr_Occurred()) return NULL
;
9947 } Py_INCREF(Py_None
);
9948 _resultobj
= Py_None
;
9952 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9953 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9954 PyObject
* _resultobj
;
9957 PyObject
* _argo0
= 0;
9958 char *_kwnames
[] = { "self", NULL
};
9961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9972 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9974 wxPyEndAllowThreads(__tstate
);
9975 if (PyErr_Occurred()) return NULL
;
9976 } _resultobj
= Py_BuildValue("i",_result
);
9980 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9981 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9982 PyObject
* _resultobj
;
9984 PyObject
* _argo0
= 0;
9985 char *_kwnames
[] = { "self", NULL
};
9988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9999 wxMenuItem_Toggle(_arg0
);
10001 wxPyEndAllowThreads(__tstate
);
10002 if (PyErr_Occurred()) return NULL
;
10003 } Py_INCREF(Py_None
);
10004 _resultobj
= Py_None
;
10008 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
10009 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10010 PyObject
* _resultobj
;
10011 wxMenuItem
* _arg0
;
10013 PyObject
* _argo0
= 0;
10014 PyObject
* _obj1
= 0;
10015 char *_kwnames
[] = { "self","str", NULL
};
10018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
10021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
10028 #if PYTHON_API_VERSION >= 1009
10029 char* tmpPtr
; int tmpSize
;
10030 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
10031 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10034 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
10036 _arg1
= new wxString(tmpPtr
, tmpSize
);
10038 if (!PyString_Check(_obj1
)) {
10039 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10042 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
10046 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10047 wxMenuItem_SetHelp(_arg0
,*_arg1
);
10049 wxPyEndAllowThreads(__tstate
);
10050 if (PyErr_Occurred()) return NULL
;
10051 } Py_INCREF(Py_None
);
10052 _resultobj
= Py_None
;
10060 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
10061 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10062 PyObject
* _resultobj
;
10063 wxString
* _result
;
10064 wxMenuItem
* _arg0
;
10065 PyObject
* _argo0
= 0;
10066 char *_kwnames
[] = { "self", NULL
};
10069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
10072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
10079 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10080 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
10081 _result
= (wxString
*) &_result_ref
;
10083 wxPyEndAllowThreads(__tstate
);
10084 if (PyErr_Occurred()) return NULL
;
10086 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
10091 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
10092 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10093 PyObject
* _resultobj
;
10094 wxAcceleratorEntry
* _result
;
10095 wxMenuItem
* _arg0
;
10096 PyObject
* _argo0
= 0;
10097 char *_kwnames
[] = { "self", NULL
};
10101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
10104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
10111 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10112 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
10114 wxPyEndAllowThreads(__tstate
);
10115 if (PyErr_Occurred()) return NULL
;
10117 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
10118 _resultobj
= Py_BuildValue("s",_ptemp
);
10120 Py_INCREF(Py_None
);
10121 _resultobj
= Py_None
;
10126 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
10127 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10128 PyObject
* _resultobj
;
10129 wxMenuItem
* _arg0
;
10130 wxAcceleratorEntry
* _arg1
;
10131 PyObject
* _argo0
= 0;
10132 PyObject
* _argo1
= 0;
10133 char *_kwnames
[] = { "self","accel", NULL
};
10136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
10139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
10146 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10147 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
10148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
10153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10154 wxMenuItem_SetAccel(_arg0
,_arg1
);
10156 wxPyEndAllowThreads(__tstate
);
10157 if (PyErr_Occurred()) return NULL
;
10158 } Py_INCREF(Py_None
);
10159 _resultobj
= Py_None
;
10163 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10164 PyObject
* _resultobj
;
10165 wxString
* _result
;
10167 PyObject
* _obj0
= 0;
10168 char *_kwnames
[] = { "text", NULL
};
10171 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
10174 #if PYTHON_API_VERSION >= 1009
10175 char* tmpPtr
; int tmpSize
;
10176 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
10177 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10180 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
10182 _arg0
= new wxString(tmpPtr
, tmpSize
);
10184 if (!PyString_Check(_obj0
)) {
10185 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10188 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
10192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10193 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
10195 wxPyEndAllowThreads(__tstate
);
10196 if (PyErr_Occurred()) return NULL
;
10198 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
10210 static PyMethodDef windowscMethods
[] = {
10211 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
10212 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10213 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10214 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10215 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10216 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
10217 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10218 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
10219 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10220 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10221 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10222 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10223 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10224 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10225 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10226 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
10227 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10228 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
10229 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10230 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10231 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10232 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10233 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10234 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10235 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10236 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10237 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10238 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10239 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10240 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
10241 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10242 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10243 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10244 { "wxMenuBar_FindMenu", (PyCFunction
) _wrap_wxMenuBar_FindMenu
, METH_VARARGS
| METH_KEYWORDS
},
10245 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10246 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10247 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
10248 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10249 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10250 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10251 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
10252 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10253 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
10254 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
10255 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10256 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
10257 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
10258 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10259 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10260 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10261 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10262 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10263 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
10264 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
10265 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
10266 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
10267 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10268 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
10269 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10270 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10271 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
10272 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
10273 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
10274 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10275 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10276 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10277 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10278 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10279 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10280 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10281 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
10282 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10283 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10284 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10285 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
10286 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
10287 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10288 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
10289 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
10290 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
10291 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
10292 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10293 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
10294 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
10295 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
10296 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10297 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10298 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10299 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10300 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10301 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10302 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
10303 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
10304 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10305 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
10306 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10307 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
10308 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10309 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
10310 { "wxScrolledWindow_Create", (PyCFunction
) _wrap_wxScrolledWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10311 { "new_wxPreScrolledWindow", (PyCFunction
) _wrap_new_wxPreScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10312 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10313 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10314 { "wxPanel_Create", (PyCFunction
) _wrap_wxPanel_Create
, METH_VARARGS
| METH_KEYWORDS
},
10315 { "new_wxPrePanel", (PyCFunction
) _wrap_new_wxPrePanel
, METH_VARARGS
| METH_KEYWORDS
},
10316 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
10317 { "wxWindow_SetDefaultItem", (PyCFunction
) _wrap_wxWindow_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10318 { "wxWindow_GetDefaultItem", (PyCFunction
) _wrap_wxWindow_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10319 { "wxWindow_GetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_GetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10320 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10321 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10322 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10323 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10324 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10325 { "wxWindow_PageDown", (PyCFunction
) _wrap_wxWindow_PageDown
, METH_VARARGS
| METH_KEYWORDS
},
10326 { "wxWindow_PageUp", (PyCFunction
) _wrap_wxWindow_PageUp
, METH_VARARGS
| METH_KEYWORDS
},
10327 { "wxWindow_LineDown", (PyCFunction
) _wrap_wxWindow_LineDown
, METH_VARARGS
| METH_KEYWORDS
},
10328 { "wxWindow_LineUp", (PyCFunction
) _wrap_wxWindow_LineUp
, METH_VARARGS
| METH_KEYWORDS
},
10329 { "wxWindow_ScrollPages", (PyCFunction
) _wrap_wxWindow_ScrollPages
, METH_VARARGS
| METH_KEYWORDS
},
10330 { "wxWindow_ScrollLines", (PyCFunction
) _wrap_wxWindow_ScrollLines
, METH_VARARGS
| METH_KEYWORDS
},
10331 { "wxWindow_SetHelpTextForId", (PyCFunction
) _wrap_wxWindow_SetHelpTextForId
, METH_VARARGS
| METH_KEYWORDS
},
10332 { "wxWindow_SetHelpText", (PyCFunction
) _wrap_wxWindow_SetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10333 { "wxWindow_GetHelpText", (PyCFunction
) _wrap_wxWindow_GetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10334 { "wxWindow_Update", (PyCFunction
) _wrap_wxWindow_Update
, METH_VARARGS
| METH_KEYWORDS
},
10335 { "wxWindow_Thaw", (PyCFunction
) _wrap_wxWindow_Thaw
, METH_VARARGS
| METH_KEYWORDS
},
10336 { "wxWindow_Freeze", (PyCFunction
) _wrap_wxWindow_Freeze
, METH_VARARGS
| METH_KEYWORDS
},
10337 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10338 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10339 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10340 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10341 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10342 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10343 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10344 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10345 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10346 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10347 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10348 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10349 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10350 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10351 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10352 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10353 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10354 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10355 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10356 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10357 { "wxWindow_UpdateWindowUI", (PyCFunction
) _wrap_wxWindow_UpdateWindowUI
, METH_VARARGS
| METH_KEYWORDS
},
10358 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10359 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10360 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10361 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10362 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10363 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10364 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10365 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10366 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10367 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10368 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10369 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10370 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10371 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10372 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10373 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10374 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10375 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10376 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10377 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10378 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10379 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10380 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10381 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10382 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10383 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10384 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10385 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10386 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10387 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10388 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10389 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10390 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10391 { "wxWindow_RefreshRect", (PyCFunction
) _wrap_wxWindow_RefreshRect
, METH_VARARGS
| METH_KEYWORDS
},
10392 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10393 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10394 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10395 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10396 { "wxWindow_RemoveEventHandler", (PyCFunction
) _wrap_wxWindow_RemoveEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10397 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10398 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10399 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10400 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10401 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10402 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10403 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10404 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10405 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10406 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10407 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10408 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10409 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10410 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10411 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10412 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10413 { "wxWindow_HitTest", (PyCFunction
) _wrap_wxWindow_HitTest
, METH_VARARGS
| METH_KEYWORDS
},
10414 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10415 { "wxWindow_HasScrollbar", (PyCFunction
) _wrap_wxWindow_HasScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10416 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10417 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10418 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10419 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10420 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10421 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10422 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10423 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10424 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10425 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10426 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10427 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10428 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10429 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10430 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10431 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10432 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10433 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10434 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10435 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10436 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10437 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10438 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10439 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10440 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10441 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10442 { "wxWindow_GetClientRect", (PyCFunction
) _wrap_wxWindow_GetClientRect
, METH_VARARGS
| METH_KEYWORDS
},
10443 { "wxWindow_GetClientAreaOrigin", (PyCFunction
) _wrap_wxWindow_GetClientAreaOrigin
, METH_VARARGS
| METH_KEYWORDS
},
10444 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10445 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10446 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10447 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10448 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10449 { "wxWindow_GetBorder", (PyCFunction
) _wrap_wxWindow_GetBorder
, METH_VARARGS
| METH_KEYWORDS
},
10450 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10451 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10452 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10453 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10454 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10455 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10456 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10457 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10458 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10459 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10460 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10461 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10462 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10463 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10464 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10465 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10466 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10467 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10468 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10469 { "wxWindow_Create", (PyCFunction
) _wrap_wxWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10470 { "new_wxPreWindow", (PyCFunction
) _wrap_new_wxPreWindow
, METH_VARARGS
| METH_KEYWORDS
},
10471 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10472 { "wxPyValidator__setCallbackInfo", (PyCFunction
) _wrap_wxPyValidator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
10473 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10474 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10475 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10476 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10477 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10478 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10479 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10480 { "wxEvtHandler__setOORInfo", (PyCFunction
) _wrap_wxEvtHandler__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
10481 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10482 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10483 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10484 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10485 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10486 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10487 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10488 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10489 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10490 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10491 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10498 * This table is used by the pointer type-checker
10500 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10501 { "_signed_long","_long",0},
10502 { "_wxPrintQuality","_wxCoord",0},
10503 { "_wxPrintQuality","_int",0},
10504 { "_wxPrintQuality","_signed_int",0},
10505 { "_wxPrintQuality","_unsigned_int",0},
10506 { "_wxPrintQuality","_wxWindowID",0},
10507 { "_wxPrintQuality","_uint",0},
10508 { "_wxPrintQuality","_EBool",0},
10509 { "_wxPrintQuality","_size_t",0},
10510 { "_wxPrintQuality","_time_t",0},
10511 { "_byte","_unsigned_char",0},
10512 { "_long","_unsigned_long",0},
10513 { "_long","_signed_long",0},
10514 { "_size_t","_wxCoord",0},
10515 { "_size_t","_wxPrintQuality",0},
10516 { "_size_t","_time_t",0},
10517 { "_size_t","_unsigned_int",0},
10518 { "_size_t","_int",0},
10519 { "_size_t","_wxWindowID",0},
10520 { "_size_t","_uint",0},
10521 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10522 { "_uint","_wxCoord",0},
10523 { "_uint","_wxPrintQuality",0},
10524 { "_uint","_time_t",0},
10525 { "_uint","_size_t",0},
10526 { "_uint","_unsigned_int",0},
10527 { "_uint","_int",0},
10528 { "_uint","_wxWindowID",0},
10529 { "_wxChar","_char",0},
10530 { "_char","_wxChar",0},
10531 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10532 { "_EBool","_wxCoord",0},
10533 { "_EBool","_wxPrintQuality",0},
10534 { "_EBool","_signed_int",0},
10535 { "_EBool","_int",0},
10536 { "_EBool","_wxWindowID",0},
10537 { "_unsigned_long","_long",0},
10538 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10539 { "_signed_int","_wxCoord",0},
10540 { "_signed_int","_wxPrintQuality",0},
10541 { "_signed_int","_EBool",0},
10542 { "_signed_int","_wxWindowID",0},
10543 { "_signed_int","_int",0},
10544 { "_WXTYPE","_short",0},
10545 { "_WXTYPE","_signed_short",0},
10546 { "_WXTYPE","_unsigned_short",0},
10547 { "_unsigned_short","_WXTYPE",0},
10548 { "_unsigned_short","_short",0},
10549 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10550 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10551 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10552 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10553 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10554 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10555 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10556 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10557 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10558 { "_signed_short","_WXTYPE",0},
10559 { "_signed_short","_short",0},
10560 { "_unsigned_char","_byte",0},
10561 { "_unsigned_int","_wxCoord",0},
10562 { "_unsigned_int","_wxPrintQuality",0},
10563 { "_unsigned_int","_time_t",0},
10564 { "_unsigned_int","_size_t",0},
10565 { "_unsigned_int","_uint",0},
10566 { "_unsigned_int","_wxWindowID",0},
10567 { "_unsigned_int","_int",0},
10568 { "_short","_WXTYPE",0},
10569 { "_short","_unsigned_short",0},
10570 { "_short","_signed_short",0},
10571 { "_wxWindowID","_wxCoord",0},
10572 { "_wxWindowID","_wxPrintQuality",0},
10573 { "_wxWindowID","_time_t",0},
10574 { "_wxWindowID","_size_t",0},
10575 { "_wxWindowID","_EBool",0},
10576 { "_wxWindowID","_uint",0},
10577 { "_wxWindowID","_int",0},
10578 { "_wxWindowID","_signed_int",0},
10579 { "_wxWindowID","_unsigned_int",0},
10580 { "_int","_wxCoord",0},
10581 { "_int","_wxPrintQuality",0},
10582 { "_int","_time_t",0},
10583 { "_int","_size_t",0},
10584 { "_int","_EBool",0},
10585 { "_int","_uint",0},
10586 { "_int","_wxWindowID",0},
10587 { "_int","_unsigned_int",0},
10588 { "_int","_signed_int",0},
10589 { "_time_t","_wxCoord",0},
10590 { "_time_t","_wxPrintQuality",0},
10591 { "_time_t","_unsigned_int",0},
10592 { "_time_t","_int",0},
10593 { "_time_t","_wxWindowID",0},
10594 { "_time_t","_uint",0},
10595 { "_time_t","_size_t",0},
10596 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10597 { "_wxCoord","_int",0},
10598 { "_wxCoord","_signed_int",0},
10599 { "_wxCoord","_unsigned_int",0},
10600 { "_wxCoord","_wxWindowID",0},
10601 { "_wxCoord","_uint",0},
10602 { "_wxCoord","_EBool",0},
10603 { "_wxCoord","_size_t",0},
10604 { "_wxCoord","_time_t",0},
10605 { "_wxCoord","_wxPrintQuality",0},
10606 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10607 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10608 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10609 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10610 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10611 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10612 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10613 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10614 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10615 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10618 static PyObject
*SWIG_globals
;
10622 SWIGEXPORT(void) initwindowsc() {
10624 SWIG_globals
= SWIG_newvarlink();
10625 m
= Py_InitModule("windowsc", windowscMethods
);
10626 d
= PyModule_GetDict(m
);
10629 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10630 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);