2 * FILE : src/msw/windows.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initwindowsc
56 #define SWIG_name "windowsc"
59 #include <wx/menuitem.h>
60 #include <wx/tooltip.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "String type required";
95 static wxString
wxPyEmptyStr("");
97 class wxPyValidator
: public wxValidator
{
98 DECLARE_DYNAMIC_CLASS(wxPyValidator
);
106 wxObject
* Clone() const {
107 wxPyValidator
* ptr
= NULL
;
108 wxPyValidator
* self
= (wxPyValidator
*)this;
110 wxPyBeginBlockThreads();
111 if (self
->m_myInst
.findCallback("Clone")) {
113 ro
= self
->m_myInst
.callCallbackObj(Py_BuildValue("()"));
115 SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxPyValidator_p");
119 wxPyEndBlockThreads();
121 // This is very dangerous!!! But is the only way I could find
122 // to squash a memory leak. Currently it is okay, but if the
123 // validator architecture in wxWindows ever changes, problems
130 DEC_PYCALLBACK_BOOL_WXWIN(Validate
);
131 DEC_PYCALLBACK_BOOL_(TransferToWindow
);
132 DEC_PYCALLBACK_BOOL_(TransferFromWindow
);
137 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator
, wxValidator
, Validate
);
138 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferToWindow
);
139 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferFromWindow
);
141 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator
, wxValidator
);
144 wxWindow
* wxWindow_FromHWND(unsigned long hWnd
) {
145 wxWindow
* win
= new wxWindow
;
147 win
->SubclassWin(hWnd
);
153 static PyObject
*_wrap_wxWindow_FromHWND(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
154 PyObject
* _resultobj
;
157 char *_kwnames
[] = { "hWnd", NULL
};
160 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxWindow_FromHWND",_kwnames
,&_arg0
))
163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
164 _result
= (wxWindow
*)wxWindow_FromHWND(_arg0
);
166 wxPyEndAllowThreads(__tstate
);
167 if (PyErr_Occurred()) return NULL
;
168 }{ _resultobj
= wxPyMake_wxObject(_result
); }
172 static void *SwigwxEvtHandlerTowxObject(void *ptr
) {
175 src
= (wxEvtHandler
*) ptr
;
176 dest
= (wxObject
*) src
;
177 return (void *) dest
;
180 #define new_wxEvtHandler() (new wxEvtHandler())
181 static PyObject
*_wrap_new_wxEvtHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
182 PyObject
* _resultobj
;
183 wxEvtHandler
* _result
;
184 char *_kwnames
[] = { NULL
};
188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEvtHandler",_kwnames
))
191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
192 _result
= (wxEvtHandler
*)new_wxEvtHandler();
194 wxPyEndAllowThreads(__tstate
);
195 if (PyErr_Occurred()) return NULL
;
197 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxEvtHandler_p");
198 _resultobj
= Py_BuildValue("s",_ptemp
);
201 _resultobj
= Py_None
;
206 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
207 static PyObject
*_wrap_wxEvtHandler_ProcessEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
208 PyObject
* _resultobj
;
210 wxEvtHandler
* _arg0
;
212 PyObject
* _argo0
= 0;
213 PyObject
* _argo1
= 0;
214 char *_kwnames
[] = { "self","event", NULL
};
217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_ProcessEvent",_kwnames
,&_argo0
,&_argo1
))
220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
227 if (_argo1
== Py_None
) { _arg1
= NULL
; }
228 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
234 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
235 _result
= (bool )wxEvtHandler_ProcessEvent(_arg0
,*_arg1
);
237 wxPyEndAllowThreads(__tstate
);
238 if (PyErr_Occurred()) return NULL
;
239 } _resultobj
= Py_BuildValue("i",_result
);
243 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
244 static PyObject
*_wrap_wxEvtHandler_AddPendingEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
245 PyObject
* _resultobj
;
246 wxEvtHandler
* _arg0
;
248 PyObject
* _argo0
= 0;
249 PyObject
* _argo1
= 0;
250 char *_kwnames
[] = { "self","event", NULL
};
253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_AddPendingEvent",_kwnames
,&_argo0
,&_argo1
))
256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
263 if (_argo1
== Py_None
) { _arg1
= NULL
; }
264 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
270 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
271 wxEvtHandler_AddPendingEvent(_arg0
,*_arg1
);
273 wxPyEndAllowThreads(__tstate
);
274 if (PyErr_Occurred()) return NULL
;
275 } Py_INCREF(Py_None
);
276 _resultobj
= Py_None
;
280 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
281 static PyObject
*_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
282 PyObject
* _resultobj
;
284 wxEvtHandler
* _arg0
;
285 PyObject
* _argo0
= 0;
286 char *_kwnames
[] = { "self", NULL
};
289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames
,&_argo0
))
292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
299 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
300 _result
= (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0
);
302 wxPyEndAllowThreads(__tstate
);
303 if (PyErr_Occurred()) return NULL
;
304 } _resultobj
= Py_BuildValue("i",_result
);
308 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
309 static PyObject
*_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
310 PyObject
* _resultobj
;
311 wxEvtHandler
* _arg0
;
313 PyObject
* _argo0
= 0;
315 char *_kwnames
[] = { "self","enabled", NULL
};
318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames
,&_argo0
,&tempbool1
))
321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
327 _arg1
= (bool ) tempbool1
;
329 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
330 wxEvtHandler_SetEvtHandlerEnabled(_arg0
,_arg1
);
332 wxPyEndAllowThreads(__tstate
);
333 if (PyErr_Occurred()) return NULL
;
334 } Py_INCREF(Py_None
);
335 _resultobj
= Py_None
;
339 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
340 static PyObject
*_wrap_wxEvtHandler_GetNextHandler(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_GetNextHandler",_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_GetNextHandler. Expected _wxEvtHandler_p.");
358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
359 _result
= (wxEvtHandler
*)wxEvtHandler_GetNextHandler(_arg0
);
361 wxPyEndAllowThreads(__tstate
);
362 if (PyErr_Occurred()) return NULL
;
363 }{ _resultobj
= wxPyMake_wxObject(_result
); }
367 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
368 static PyObject
*_wrap_wxEvtHandler_GetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
369 PyObject
* _resultobj
;
370 wxEvtHandler
* _result
;
371 wxEvtHandler
* _arg0
;
372 PyObject
* _argo0
= 0;
373 char *_kwnames
[] = { "self", NULL
};
376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetPreviousHandler",_kwnames
,&_argo0
))
379 if (_argo0
== Py_None
) { _arg0
= NULL
; }
380 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
386 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
387 _result
= (wxEvtHandler
*)wxEvtHandler_GetPreviousHandler(_arg0
);
389 wxPyEndAllowThreads(__tstate
);
390 if (PyErr_Occurred()) return NULL
;
391 }{ _resultobj
= wxPyMake_wxObject(_result
); }
395 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
396 static PyObject
*_wrap_wxEvtHandler_SetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
397 PyObject
* _resultobj
;
398 wxEvtHandler
* _arg0
;
399 wxEvtHandler
* _arg1
;
400 PyObject
* _argo0
= 0;
401 PyObject
* _argo1
= 0;
402 char *_kwnames
[] = { "self","handler", NULL
};
405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetNextHandler",_kwnames
,&_argo0
,&_argo1
))
408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
415 if (_argo1
== Py_None
) { _arg1
= NULL
; }
416 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
423 wxEvtHandler_SetNextHandler(_arg0
,_arg1
);
425 wxPyEndAllowThreads(__tstate
);
426 if (PyErr_Occurred()) return NULL
;
427 } Py_INCREF(Py_None
);
428 _resultobj
= Py_None
;
432 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
433 static PyObject
*_wrap_wxEvtHandler_SetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
434 PyObject
* _resultobj
;
435 wxEvtHandler
* _arg0
;
436 wxEvtHandler
* _arg1
;
437 PyObject
* _argo0
= 0;
438 PyObject
* _argo1
= 0;
439 char *_kwnames
[] = { "self","handler", NULL
};
442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetPreviousHandler",_kwnames
,&_argo0
,&_argo1
))
445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
452 if (_argo1
== Py_None
) { _arg1
= NULL
; }
453 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
460 wxEvtHandler_SetPreviousHandler(_arg0
,_arg1
);
462 wxPyEndAllowThreads(__tstate
);
463 if (PyErr_Occurred()) return NULL
;
464 } Py_INCREF(Py_None
);
465 _resultobj
= Py_None
;
469 static void wxEvtHandler_Connect(wxEvtHandler
*self
,int id
,int lastId
,int eventType
,PyObject
* func
) {
470 if (PyCallable_Check(func
)) {
471 self
->Connect(id
, lastId
, eventType
,
472 (wxObjectEventFunction
) &wxPyCallback::EventThunker
,
473 new wxPyCallback(func
));
475 else if (func
== Py_None
) {
476 self
->Disconnect(id
, lastId
, eventType
,
477 (wxObjectEventFunction
)
478 &wxPyCallback::EventThunker
);
481 PyErr_SetString(PyExc_TypeError
, "Expected callable object or None.");
484 static PyObject
*_wrap_wxEvtHandler_Connect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
485 PyObject
* _resultobj
;
486 wxEvtHandler
* _arg0
;
491 PyObject
* _argo0
= 0;
492 PyObject
* _obj4
= 0;
493 char *_kwnames
[] = { "self","id","lastId","eventType","func", NULL
};
496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiO:wxEvtHandler_Connect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_obj4
))
499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
510 wxEvtHandler_Connect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
512 wxPyEndAllowThreads(__tstate
);
513 if (PyErr_Occurred()) return NULL
;
514 } Py_INCREF(Py_None
);
515 _resultobj
= Py_None
;
519 static bool wxEvtHandler_Disconnect(wxEvtHandler
*self
,int id
,int lastId
,wxEventType eventType
) {
520 return self
->Disconnect(id
, lastId
, eventType
,
521 (wxObjectEventFunction
)
522 &wxPyCallback::EventThunker
);
524 static PyObject
*_wrap_wxEvtHandler_Disconnect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
525 PyObject
* _resultobj
;
527 wxEvtHandler
* _arg0
;
529 int _arg2
= (int ) -1;
530 wxEventType _arg3
= (wxEventType
) wxEVT_NULL
;
531 PyObject
* _argo0
= 0;
532 char *_kwnames
[] = { "self","id","lastId","eventType", NULL
};
535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxEvtHandler_Disconnect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
546 _result
= (bool )wxEvtHandler_Disconnect(_arg0
,_arg1
,_arg2
,_arg3
);
548 wxPyEndAllowThreads(__tstate
);
549 if (PyErr_Occurred()) return NULL
;
550 } _resultobj
= Py_BuildValue("i",_result
);
554 static void wxEvtHandler__setOORInfo(wxEvtHandler
*self
,PyObject
* _self
) {
555 self
->SetClientObject(new wxPyClientData(_self
));
557 static PyObject
*_wrap_wxEvtHandler__setOORInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
558 PyObject
* _resultobj
;
559 wxEvtHandler
* _arg0
;
561 PyObject
* _argo0
= 0;
562 PyObject
* _obj1
= 0;
563 char *_kwnames
[] = { "self","_self", NULL
};
566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler__setOORInfo",_kwnames
,&_argo0
,&_obj1
))
569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p.");
579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
580 wxEvtHandler__setOORInfo(_arg0
,_arg1
);
582 wxPyEndAllowThreads(__tstate
);
583 if (PyErr_Occurred()) return NULL
;
584 } Py_INCREF(Py_None
);
585 _resultobj
= Py_None
;
589 static void *SwigwxValidatorTowxEvtHandler(void *ptr
) {
592 src
= (wxValidator
*) ptr
;
593 dest
= (wxEvtHandler
*) src
;
594 return (void *) dest
;
597 static void *SwigwxValidatorTowxObject(void *ptr
) {
600 src
= (wxValidator
*) ptr
;
601 dest
= (wxObject
*) src
;
602 return (void *) dest
;
605 #define new_wxValidator() (new wxValidator())
606 static PyObject
*_wrap_new_wxValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
607 PyObject
* _resultobj
;
608 wxValidator
* _result
;
609 char *_kwnames
[] = { NULL
};
613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxValidator",_kwnames
))
616 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
617 _result
= (wxValidator
*)new_wxValidator();
619 wxPyEndAllowThreads(__tstate
);
620 if (PyErr_Occurred()) return NULL
;
622 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxValidator_p");
623 _resultobj
= Py_BuildValue("s",_ptemp
);
626 _resultobj
= Py_None
;
631 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
632 static PyObject
*_wrap_wxValidator_Clone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
633 PyObject
* _resultobj
;
634 wxValidator
* _result
;
636 PyObject
* _argo0
= 0;
637 char *_kwnames
[] = { "self", NULL
};
640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_Clone",_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_Clone. Expected _wxValidator_p.");
650 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
651 _result
= (wxValidator
*)wxValidator_Clone(_arg0
);
653 wxPyEndAllowThreads(__tstate
);
654 if (PyErr_Occurred()) return NULL
;
655 }{ _resultobj
= wxPyMake_wxObject(_result
); }
659 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
660 static PyObject
*_wrap_wxValidator_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
661 PyObject
* _resultobj
;
664 PyObject
* _argo0
= 0;
665 char *_kwnames
[] = { "self", NULL
};
668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_GetWindow",_kwnames
,&_argo0
))
671 if (_argo0
== Py_None
) { _arg0
= NULL
; }
672 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
673 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
678 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
679 _result
= (wxWindow
*)wxValidator_GetWindow(_arg0
);
681 wxPyEndAllowThreads(__tstate
);
682 if (PyErr_Occurred()) return NULL
;
683 }{ _resultobj
= wxPyMake_wxObject(_result
); }
687 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
688 static PyObject
*_wrap_wxValidator_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
689 PyObject
* _resultobj
;
692 PyObject
* _argo0
= 0;
693 PyObject
* _argo1
= 0;
694 char *_kwnames
[] = { "self","window", NULL
};
697 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxValidator_SetWindow",_kwnames
,&_argo0
,&_argo1
))
700 if (_argo0
== Py_None
) { _arg0
= NULL
; }
701 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
702 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
707 if (_argo1
== Py_None
) { _arg1
= NULL
; }
708 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
714 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
715 wxValidator_SetWindow(_arg0
,_arg1
);
717 wxPyEndAllowThreads(__tstate
);
718 if (PyErr_Occurred()) return NULL
;
719 } Py_INCREF(Py_None
);
720 _resultobj
= Py_None
;
724 static PyObject
*_wrap_wxValidator_IsSilent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
725 PyObject
* _resultobj
;
727 char *_kwnames
[] = { NULL
};
730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxValidator_IsSilent",_kwnames
))
733 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
734 _result
= (bool )wxValidator::IsSilent();
736 wxPyEndAllowThreads(__tstate
);
737 if (PyErr_Occurred()) return NULL
;
738 } _resultobj
= Py_BuildValue("i",_result
);
742 static PyObject
*_wrap_wxValidator_SetBellOnError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
743 PyObject
* _resultobj
;
744 int _arg0
= (int ) TRUE
;
745 char *_kwnames
[] = { "doIt", NULL
};
748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxValidator_SetBellOnError",_kwnames
,&_arg0
))
751 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
752 wxValidator::SetBellOnError(_arg0
);
754 wxPyEndAllowThreads(__tstate
);
755 if (PyErr_Occurred()) return NULL
;
756 } Py_INCREF(Py_None
);
757 _resultobj
= Py_None
;
761 static void *SwigwxPyValidatorTowxValidator(void *ptr
) {
764 src
= (wxPyValidator
*) ptr
;
765 dest
= (wxValidator
*) src
;
766 return (void *) dest
;
769 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr
) {
772 src
= (wxPyValidator
*) ptr
;
773 dest
= (wxEvtHandler
*) src
;
774 return (void *) dest
;
777 static void *SwigwxPyValidatorTowxObject(void *ptr
) {
780 src
= (wxPyValidator
*) ptr
;
781 dest
= (wxObject
*) src
;
782 return (void *) dest
;
785 #define new_wxPyValidator() (new wxPyValidator())
786 static PyObject
*_wrap_new_wxPyValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
787 PyObject
* _resultobj
;
788 wxPyValidator
* _result
;
789 char *_kwnames
[] = { NULL
};
793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPyValidator",_kwnames
))
796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
797 _result
= (wxPyValidator
*)new_wxPyValidator();
799 wxPyEndAllowThreads(__tstate
);
800 if (PyErr_Occurred()) return NULL
;
802 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyValidator_p");
803 _resultobj
= Py_BuildValue("s",_ptemp
);
806 _resultobj
= Py_None
;
811 #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
812 static PyObject
*_wrap_wxPyValidator__setCallbackInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
813 PyObject
* _resultobj
;
814 wxPyValidator
* _arg0
;
817 int _arg3
= (int ) TRUE
;
818 PyObject
* _argo0
= 0;
819 PyObject
* _obj1
= 0;
820 PyObject
* _obj2
= 0;
821 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyValidator_p")) {
829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p.");
840 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
841 wxPyValidator__setCallbackInfo(_arg0
,_arg1
,_arg2
,_arg3
);
843 wxPyEndAllowThreads(__tstate
);
844 if (PyErr_Occurred()) return NULL
;
845 } Py_INCREF(Py_None
);
846 _resultobj
= Py_None
;
850 static void *SwigwxWindowTowxEvtHandler(void *ptr
) {
853 src
= (wxWindow
*) ptr
;
854 dest
= (wxEvtHandler
*) src
;
855 return (void *) dest
;
858 static void *SwigwxWindowTowxObject(void *ptr
) {
861 src
= (wxWindow
*) ptr
;
862 dest
= (wxObject
*) src
;
863 return (void *) dest
;
866 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
867 static PyObject
*_wrap_new_wxWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
868 PyObject
* _resultobj
;
872 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
873 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
874 long _arg4
= (long ) 0;
875 char * _arg5
= (char *) "panel";
876 PyObject
* _argo0
= 0;
878 PyObject
* _obj2
= 0;
880 PyObject
* _obj3
= 0;
881 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
897 if (! wxPoint_helper(_obj2
, &_arg2
))
903 if (! wxSize_helper(_obj3
, &_arg3
))
907 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
908 _result
= (wxWindow
*)new_wxWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
910 wxPyEndAllowThreads(__tstate
);
911 if (PyErr_Occurred()) return NULL
;
913 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
914 _resultobj
= Py_BuildValue("s",_ptemp
);
917 _resultobj
= Py_None
;
922 #define new_wxPreWindow() (new wxWindow())
923 static PyObject
*_wrap_new_wxPreWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
924 PyObject
* _resultobj
;
926 char *_kwnames
[] = { NULL
};
930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreWindow",_kwnames
))
933 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
934 _result
= (wxWindow
*)new_wxPreWindow();
936 wxPyEndAllowThreads(__tstate
);
937 if (PyErr_Occurred()) return NULL
;
939 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
940 _resultobj
= Py_BuildValue("s",_ptemp
);
943 _resultobj
= Py_None
;
948 #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
949 static PyObject
*_wrap_wxWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
950 PyObject
* _resultobj
;
955 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
956 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
957 long _arg5
= (long ) 0;
958 char * _arg6
= (char *) "panel";
959 PyObject
* _argo0
= 0;
960 PyObject
* _argo1
= 0;
962 PyObject
* _obj3
= 0;
964 PyObject
* _obj4
= 0;
965 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p.");
978 if (_argo1
== Py_None
) { _arg1
= NULL
; }
979 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p.");
987 if (! wxPoint_helper(_obj3
, &_arg3
))
993 if (! wxSize_helper(_obj4
, &_arg4
))
997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
998 _result
= (bool )wxWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
1000 wxPyEndAllowThreads(__tstate
);
1001 if (PyErr_Occurred()) return NULL
;
1002 } _resultobj
= Py_BuildValue("i",_result
);
1006 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
1007 static PyObject
*_wrap_wxWindow_CaptureMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1008 PyObject
* _resultobj
;
1010 PyObject
* _argo0
= 0;
1011 char *_kwnames
[] = { "self", NULL
};
1014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_CaptureMouse",_kwnames
,&_argo0
))
1017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
1024 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1025 wxWindow_CaptureMouse(_arg0
);
1027 wxPyEndAllowThreads(__tstate
);
1028 if (PyErr_Occurred()) return NULL
;
1029 } Py_INCREF(Py_None
);
1030 _resultobj
= Py_None
;
1034 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
1035 static PyObject
*_wrap_wxWindow_Center(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1036 PyObject
* _resultobj
;
1038 int _arg1
= (int ) wxBOTH
;
1039 PyObject
* _argo0
= 0;
1040 char *_kwnames
[] = { "self","direction", NULL
};
1043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Center",_kwnames
,&_argo0
,&_arg1
))
1046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1054 wxWindow_Center(_arg0
,_arg1
);
1056 wxPyEndAllowThreads(__tstate
);
1057 if (PyErr_Occurred()) return NULL
;
1058 } Py_INCREF(Py_None
);
1059 _resultobj
= Py_None
;
1063 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1064 static PyObject
*_wrap_wxWindow_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1065 PyObject
* _resultobj
;
1067 int _arg1
= (int ) wxBOTH
;
1068 PyObject
* _argo0
= 0;
1069 char *_kwnames
[] = { "self","direction", NULL
};
1072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Centre",_kwnames
,&_argo0
,&_arg1
))
1075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1082 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1083 wxWindow_Centre(_arg0
,_arg1
);
1085 wxPyEndAllowThreads(__tstate
);
1086 if (PyErr_Occurred()) return NULL
;
1087 } Py_INCREF(Py_None
);
1088 _resultobj
= Py_None
;
1092 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1093 static PyObject
*_wrap_wxWindow_CentreOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1094 PyObject
* _resultobj
;
1096 int _arg1
= (int ) wxBOTH
;
1097 PyObject
* _argo0
= 0;
1098 char *_kwnames
[] = { "self","direction", NULL
};
1101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnParent",_kwnames
,&_argo0
,&_arg1
))
1104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1111 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1112 wxWindow_CentreOnParent(_arg0
,_arg1
);
1114 wxPyEndAllowThreads(__tstate
);
1115 if (PyErr_Occurred()) return NULL
;
1116 } Py_INCREF(Py_None
);
1117 _resultobj
= Py_None
;
1121 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1122 static PyObject
*_wrap_wxWindow_CenterOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1123 PyObject
* _resultobj
;
1125 int _arg1
= (int ) wxBOTH
;
1126 PyObject
* _argo0
= 0;
1127 char *_kwnames
[] = { "self","direction", NULL
};
1130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnParent",_kwnames
,&_argo0
,&_arg1
))
1133 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1134 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1135 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1140 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1141 wxWindow_CenterOnParent(_arg0
,_arg1
);
1143 wxPyEndAllowThreads(__tstate
);
1144 if (PyErr_Occurred()) return NULL
;
1145 } Py_INCREF(Py_None
);
1146 _resultobj
= Py_None
;
1150 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1151 static PyObject
*_wrap_wxWindow_CentreOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1152 PyObject
* _resultobj
;
1154 int _arg1
= (int ) wxBOTH
;
1155 PyObject
* _argo0
= 0;
1156 char *_kwnames
[] = { "self","direction", NULL
};
1159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnScreen",_kwnames
,&_argo0
,&_arg1
))
1162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1169 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1170 wxWindow_CentreOnScreen(_arg0
,_arg1
);
1172 wxPyEndAllowThreads(__tstate
);
1173 if (PyErr_Occurred()) return NULL
;
1174 } Py_INCREF(Py_None
);
1175 _resultobj
= Py_None
;
1179 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1180 static PyObject
*_wrap_wxWindow_CenterOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1181 PyObject
* _resultobj
;
1183 int _arg1
= (int ) wxBOTH
;
1184 PyObject
* _argo0
= 0;
1185 char *_kwnames
[] = { "self","direction", NULL
};
1188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnScreen",_kwnames
,&_argo0
,&_arg1
))
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_CenterOnScreen. Expected _wxWindow_p.");
1198 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1199 wxWindow_CenterOnScreen(_arg0
,_arg1
);
1201 wxPyEndAllowThreads(__tstate
);
1202 if (PyErr_Occurred()) return NULL
;
1203 } Py_INCREF(Py_None
);
1204 _resultobj
= Py_None
;
1208 #define wxWindow_Clear(_swigobj) (_swigobj->Clear())
1209 static PyObject
*_wrap_wxWindow_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1210 PyObject
* _resultobj
;
1212 PyObject
* _argo0
= 0;
1213 char *_kwnames
[] = { "self", NULL
};
1216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Clear",_kwnames
,&_argo0
))
1219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1227 wxWindow_Clear(_arg0
);
1229 wxPyEndAllowThreads(__tstate
);
1230 if (PyErr_Occurred()) return NULL
;
1231 } Py_INCREF(Py_None
);
1232 _resultobj
= Py_None
;
1236 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1237 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1238 PyObject
* _resultobj
;
1242 PyObject
* _argo0
= 0;
1244 PyObject
* _obj1
= 0;
1246 PyObject
* _obj2
= 0;
1247 char *_kwnames
[] = { "self","x","y", NULL
};
1250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1260 temp
= (int) PyInt_AsLong(_obj1
);
1264 temp0
= (int) PyInt_AsLong(_obj2
);
1268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1269 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1271 wxPyEndAllowThreads(__tstate
);
1272 if (PyErr_Occurred()) return NULL
;
1273 } Py_INCREF(Py_None
);
1274 _resultobj
= Py_None
;
1277 o
= PyInt_FromLong((long) (*_arg1
));
1278 _resultobj
= t_output_helper(_resultobj
, o
);
1282 o
= PyInt_FromLong((long) (*_arg2
));
1283 _resultobj
= t_output_helper(_resultobj
, o
);
1288 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1289 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1290 PyObject
* _resultobj
;
1294 PyObject
* _argo0
= 0;
1296 PyObject
* _obj1
= 0;
1297 char *_kwnames
[] = { "self","pt", NULL
};
1301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1312 if (! wxPoint_helper(_obj1
, &_arg1
))
1316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1317 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1319 wxPyEndAllowThreads(__tstate
);
1320 if (PyErr_Occurred()) return NULL
;
1321 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1322 _resultobj
= Py_BuildValue("s",_ptemp
);
1326 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1327 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1328 PyObject
* _resultobj
;
1331 int _arg1
= (int ) FALSE
;
1332 PyObject
* _argo0
= 0;
1333 char *_kwnames
[] = { "self","force", NULL
};
1336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
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_Close. Expected _wxWindow_p.");
1346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1347 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1349 wxPyEndAllowThreads(__tstate
);
1350 if (PyErr_Occurred()) return NULL
;
1351 } _resultobj
= Py_BuildValue("i",_result
);
1355 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1356 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1357 PyObject
* _resultobj
;
1360 PyObject
* _argo0
= 0;
1361 char *_kwnames
[] = { "self", NULL
};
1364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1375 _result
= (bool )wxWindow_Destroy(_arg0
);
1377 wxPyEndAllowThreads(__tstate
);
1378 if (PyErr_Occurred()) return NULL
;
1379 } _resultobj
= Py_BuildValue("i",_result
);
1383 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1384 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1385 PyObject
* _resultobj
;
1387 PyObject
* _argo0
= 0;
1388 char *_kwnames
[] = { "self", NULL
};
1391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1401 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1402 wxWindow_DestroyChildren(_arg0
);
1404 wxPyEndAllowThreads(__tstate
);
1405 if (PyErr_Occurred()) return NULL
;
1406 } Py_INCREF(Py_None
);
1407 _resultobj
= Py_None
;
1411 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1412 static PyObject
*_wrap_wxWindow_IsBeingDeleted(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1413 PyObject
* _resultobj
;
1416 PyObject
* _argo0
= 0;
1417 char *_kwnames
[] = { "self", NULL
};
1420 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsBeingDeleted",_kwnames
,&_argo0
))
1423 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1424 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1425 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1430 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1431 _result
= (bool )wxWindow_IsBeingDeleted(_arg0
);
1433 wxPyEndAllowThreads(__tstate
);
1434 if (PyErr_Occurred()) return NULL
;
1435 } _resultobj
= Py_BuildValue("i",_result
);
1439 #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0))
1440 static PyObject
*_wrap_wxWindow_DragAcceptFiles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1441 PyObject
* _resultobj
;
1444 PyObject
* _argo0
= 0;
1446 char *_kwnames
[] = { "self","accept", NULL
};
1449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_DragAcceptFiles",_kwnames
,&_argo0
,&tempbool1
))
1452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p.");
1458 _arg1
= (bool ) tempbool1
;
1460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1461 wxWindow_DragAcceptFiles(_arg0
,_arg1
);
1463 wxPyEndAllowThreads(__tstate
);
1464 if (PyErr_Occurred()) return NULL
;
1465 } Py_INCREF(Py_None
);
1466 _resultobj
= Py_None
;
1470 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1471 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1472 PyObject
* _resultobj
;
1475 PyObject
* _argo0
= 0;
1477 char *_kwnames
[] = { "self","enable", NULL
};
1480 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1483 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1484 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1485 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1489 _arg1
= (bool ) tempbool1
;
1491 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1492 wxWindow_Enable(_arg0
,_arg1
);
1494 wxPyEndAllowThreads(__tstate
);
1495 if (PyErr_Occurred()) return NULL
;
1496 } Py_INCREF(Py_None
);
1497 _resultobj
= Py_None
;
1501 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1502 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1503 PyObject
* _resultobj
;
1507 PyObject
* _argo0
= 0;
1508 char *_kwnames
[] = { "self","id", NULL
};
1511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1522 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1524 wxPyEndAllowThreads(__tstate
);
1525 if (PyErr_Occurred()) return NULL
;
1526 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1530 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1531 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1532 PyObject
* _resultobj
;
1536 PyObject
* _argo0
= 0;
1537 PyObject
* _obj1
= 0;
1538 char *_kwnames
[] = { "self","name", NULL
};
1541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1551 #if PYTHON_API_VERSION >= 1009
1552 char* tmpPtr
; int tmpSize
;
1553 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1554 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1557 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1559 _arg1
= new wxString(tmpPtr
, tmpSize
);
1561 if (!PyString_Check(_obj1
)) {
1562 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1565 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1570 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1572 wxPyEndAllowThreads(__tstate
);
1573 if (PyErr_Occurred()) return NULL
;
1574 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1582 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1583 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1584 PyObject
* _resultobj
;
1586 PyObject
* _argo0
= 0;
1587 char *_kwnames
[] = { "self", NULL
};
1590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_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_Fit. Expected _wxWindow_p.");
1600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1601 wxWindow_Fit(_arg0
);
1603 wxPyEndAllowThreads(__tstate
);
1604 if (PyErr_Occurred()) return NULL
;
1605 } Py_INCREF(Py_None
);
1606 _resultobj
= Py_None
;
1610 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1611 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1612 PyObject
* _resultobj
;
1615 PyObject
* _argo0
= 0;
1616 char *_kwnames
[] = { "self", NULL
};
1620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1631 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1633 wxPyEndAllowThreads(__tstate
);
1634 if (PyErr_Occurred()) return NULL
;
1635 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1636 _resultobj
= Py_BuildValue("s",_ptemp
);
1640 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1641 wxWindowList
& list
= self
->GetChildren();
1642 return wxPy_ConvertList(&list
, "wxWindow");
1644 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1645 PyObject
* _resultobj
;
1648 PyObject
* _argo0
= 0;
1649 char *_kwnames
[] = { "self", NULL
};
1652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1662 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1663 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1665 wxPyEndAllowThreads(__tstate
);
1666 if (PyErr_Occurred()) return NULL
;
1668 _resultobj
= _result
;
1673 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1674 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1675 PyObject
* _resultobj
;
1678 PyObject
* _argo0
= 0;
1679 char *_kwnames
[] = { "self", NULL
};
1682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1693 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1695 wxPyEndAllowThreads(__tstate
);
1696 if (PyErr_Occurred()) return NULL
;
1697 } _resultobj
= Py_BuildValue("i",_result
);
1701 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1702 static PyObject
*_wrap_wxWindow_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1703 PyObject
* _resultobj
;
1706 PyObject
* _argo0
= 0;
1707 char *_kwnames
[] = { "self", NULL
};
1710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharWidth",_kwnames
,&_argo0
))
1713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1721 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1723 wxPyEndAllowThreads(__tstate
);
1724 if (PyErr_Occurred()) return NULL
;
1725 } _resultobj
= Py_BuildValue("i",_result
);
1729 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1730 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1731 PyObject
* _resultobj
;
1737 PyObject
* _argo0
= 0;
1738 char *_kwnames
[] = { "self", NULL
};
1747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_kwnames
,&_argo0
))
1750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1757 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1758 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1760 wxPyEndAllowThreads(__tstate
);
1761 if (PyErr_Occurred()) return NULL
;
1762 } Py_INCREF(Py_None
);
1763 _resultobj
= Py_None
;
1766 o
= PyInt_FromLong((long) (*_arg1
));
1767 _resultobj
= t_output_helper(_resultobj
, o
);
1771 o
= PyInt_FromLong((long) (*_arg2
));
1772 _resultobj
= t_output_helper(_resultobj
, o
);
1777 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1778 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1779 PyObject
* _resultobj
;
1782 PyObject
* _argo0
= 0;
1783 char *_kwnames
[] = { "self", NULL
};
1787 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1790 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1791 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1792 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1797 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1798 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1800 wxPyEndAllowThreads(__tstate
);
1801 if (PyErr_Occurred()) return NULL
;
1802 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1803 _resultobj
= Py_BuildValue("s",_ptemp
);
1807 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1808 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1809 PyObject
* _resultobj
;
1810 wxLayoutConstraints
* _result
;
1812 PyObject
* _argo0
= 0;
1813 char *_kwnames
[] = { "self", NULL
};
1817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1827 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1828 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1830 wxPyEndAllowThreads(__tstate
);
1831 if (PyErr_Occurred()) return NULL
;
1833 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1834 _resultobj
= Py_BuildValue("s",_ptemp
);
1837 _resultobj
= Py_None
;
1842 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1843 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1844 PyObject
* _resultobj
;
1845 wxEvtHandler
* _result
;
1847 PyObject
* _argo0
= 0;
1848 char *_kwnames
[] = { "self", NULL
};
1851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1862 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1864 wxPyEndAllowThreads(__tstate
);
1865 if (PyErr_Occurred()) return NULL
;
1866 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1870 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1871 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1872 PyObject
* _resultobj
;
1875 PyObject
* _argo0
= 0;
1876 char *_kwnames
[] = { "self", NULL
};
1880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_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_GetFont. Expected _wxWindow_p.");
1890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1891 _result
= new wxFont (wxWindow_GetFont(_arg0
));
1893 wxPyEndAllowThreads(__tstate
);
1894 if (PyErr_Occurred()) return NULL
;
1895 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
1896 _resultobj
= Py_BuildValue("s",_ptemp
);
1900 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1901 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1902 PyObject
* _resultobj
;
1905 PyObject
* _argo0
= 0;
1906 char *_kwnames
[] = { "self", NULL
};
1910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1920 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1921 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1923 wxPyEndAllowThreads(__tstate
);
1924 if (PyErr_Occurred()) return NULL
;
1925 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1926 _resultobj
= Py_BuildValue("s",_ptemp
);
1930 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1931 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1932 PyObject
* _resultobj
;
1935 PyObject
* _argo0
= 0;
1936 char *_kwnames
[] = { "self", NULL
};
1939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_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_GetGrandParent. Expected _wxWindow_p.");
1949 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1950 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1952 wxPyEndAllowThreads(__tstate
);
1953 if (PyErr_Occurred()) return NULL
;
1954 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1958 static long wxWindow_GetHandle(wxWindow
*self
) {
1959 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1961 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1962 PyObject
* _resultobj
;
1965 PyObject
* _argo0
= 0;
1966 char *_kwnames
[] = { "self", NULL
};
1969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_kwnames
,&_argo0
))
1972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
1979 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1980 _result
= (long )wxWindow_GetHandle(_arg0
);
1982 wxPyEndAllowThreads(__tstate
);
1983 if (PyErr_Occurred()) return NULL
;
1984 } _resultobj
= Py_BuildValue("l",_result
);
1988 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1989 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1990 PyObject
* _resultobj
;
1993 PyObject
* _argo0
= 0;
1994 char *_kwnames
[] = { "self", NULL
};
1997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
2000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
2007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2008 _result
= (int )wxWindow_GetId(_arg0
);
2010 wxPyEndAllowThreads(__tstate
);
2011 if (PyErr_Occurred()) return NULL
;
2012 } _resultobj
= Py_BuildValue("i",_result
);
2016 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
2017 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2018 PyObject
* _resultobj
;
2021 PyObject
* _argo0
= 0;
2022 char *_kwnames
[] = { "self", NULL
};
2025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
2028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
2035 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2036 _result
= new wxString (wxWindow_GetLabel(_arg0
));
2038 wxPyEndAllowThreads(__tstate
);
2039 if (PyErr_Occurred()) return NULL
;
2041 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2049 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
2050 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2051 PyObject
* _resultobj
;
2054 PyObject
* _argo0
= 0;
2055 PyObject
* _obj1
= 0;
2056 char *_kwnames
[] = { "self","label", NULL
};
2059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
2062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2069 #if PYTHON_API_VERSION >= 1009
2070 char* tmpPtr
; int tmpSize
;
2071 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2072 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2075 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2077 _arg1
= new wxString(tmpPtr
, tmpSize
);
2079 if (!PyString_Check(_obj1
)) {
2080 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2083 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2087 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2088 wxWindow_SetLabel(_arg0
,*_arg1
);
2090 wxPyEndAllowThreads(__tstate
);
2091 if (PyErr_Occurred()) return NULL
;
2092 } Py_INCREF(Py_None
);
2093 _resultobj
= Py_None
;
2101 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2102 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2103 PyObject
* _resultobj
;
2106 PyObject
* _argo0
= 0;
2107 char *_kwnames
[] = { "self", NULL
};
2110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2120 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2121 _result
= new wxString (wxWindow_GetName(_arg0
));
2123 wxPyEndAllowThreads(__tstate
);
2124 if (PyErr_Occurred()) return NULL
;
2126 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2134 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2135 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2136 PyObject
* _resultobj
;
2139 PyObject
* _argo0
= 0;
2140 char *_kwnames
[] = { "self", NULL
};
2143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2153 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2154 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2156 wxPyEndAllowThreads(__tstate
);
2157 if (PyErr_Occurred()) return NULL
;
2158 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2162 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2163 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2164 PyObject
* _resultobj
;
2170 PyObject
* _argo0
= 0;
2171 char *_kwnames
[] = { "self", NULL
};
2180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2190 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2191 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2193 wxPyEndAllowThreads(__tstate
);
2194 if (PyErr_Occurred()) return NULL
;
2195 } Py_INCREF(Py_None
);
2196 _resultobj
= Py_None
;
2199 o
= PyInt_FromLong((long) (*_arg1
));
2200 _resultobj
= t_output_helper(_resultobj
, o
);
2204 o
= PyInt_FromLong((long) (*_arg2
));
2205 _resultobj
= t_output_helper(_resultobj
, o
);
2210 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2211 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2212 PyObject
* _resultobj
;
2215 PyObject
* _argo0
= 0;
2216 char *_kwnames
[] = { "self", NULL
};
2220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2230 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2231 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2233 wxPyEndAllowThreads(__tstate
);
2234 if (PyErr_Occurred()) return NULL
;
2235 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2236 _resultobj
= Py_BuildValue("s",_ptemp
);
2240 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2241 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2242 PyObject
* _resultobj
;
2245 PyObject
* _argo0
= 0;
2246 char *_kwnames
[] = { "self", NULL
};
2250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2261 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2263 wxPyEndAllowThreads(__tstate
);
2264 if (PyErr_Occurred()) return NULL
;
2265 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2266 _resultobj
= Py_BuildValue("s",_ptemp
);
2270 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2271 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2272 PyObject
* _resultobj
;
2276 PyObject
* _argo0
= 0;
2277 char *_kwnames
[] = { "self","orientation", NULL
};
2280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2291 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2293 wxPyEndAllowThreads(__tstate
);
2294 if (PyErr_Occurred()) return NULL
;
2295 } _resultobj
= Py_BuildValue("i",_result
);
2299 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2300 static PyObject
*_wrap_wxWindow_GetScrollPos(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_GetScrollPos",_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_GetScrollPos. Expected _wxWindow_p.");
2319 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2320 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2322 wxPyEndAllowThreads(__tstate
);
2323 if (PyErr_Occurred()) return NULL
;
2324 } _resultobj
= Py_BuildValue("i",_result
);
2328 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2329 static PyObject
*_wrap_wxWindow_GetScrollRange(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_GetScrollRange",_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_GetScrollRange. Expected _wxWindow_p.");
2348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2349 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2351 wxPyEndAllowThreads(__tstate
);
2352 if (PyErr_Occurred()) return NULL
;
2353 } _resultobj
= Py_BuildValue("i",_result
);
2357 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2358 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2359 PyObject
* _resultobj
;
2365 PyObject
* _argo0
= 0;
2366 char *_kwnames
[] = { "self", NULL
};
2375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2385 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2386 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2388 wxPyEndAllowThreads(__tstate
);
2389 if (PyErr_Occurred()) return NULL
;
2390 } Py_INCREF(Py_None
);
2391 _resultobj
= Py_None
;
2394 o
= PyInt_FromLong((long) (*_arg1
));
2395 _resultobj
= t_output_helper(_resultobj
, o
);
2399 o
= PyInt_FromLong((long) (*_arg2
));
2400 _resultobj
= t_output_helper(_resultobj
, o
);
2405 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2406 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2407 PyObject
* _resultobj
;
2410 PyObject
* _argo0
= 0;
2411 char *_kwnames
[] = { "self", NULL
};
2415 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2425 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2426 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2428 wxPyEndAllowThreads(__tstate
);
2429 if (PyErr_Occurred()) return NULL
;
2430 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2431 _resultobj
= Py_BuildValue("s",_ptemp
);
2435 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2436 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2437 PyObject
* _resultobj
;
2444 PyObject
* _argo0
= 0;
2445 PyObject
* _obj1
= 0;
2446 char *_kwnames
[] = { "self","string", NULL
};
2455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2465 #if PYTHON_API_VERSION >= 1009
2466 char* tmpPtr
; int tmpSize
;
2467 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2468 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2471 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2473 _arg1
= new wxString(tmpPtr
, tmpSize
);
2475 if (!PyString_Check(_obj1
)) {
2476 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2479 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2483 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2484 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2486 wxPyEndAllowThreads(__tstate
);
2487 if (PyErr_Occurred()) return NULL
;
2488 } Py_INCREF(Py_None
);
2489 _resultobj
= Py_None
;
2492 o
= PyInt_FromLong((long) (*_arg2
));
2493 _resultobj
= t_output_helper(_resultobj
, o
);
2497 o
= PyInt_FromLong((long) (*_arg3
));
2498 _resultobj
= t_output_helper(_resultobj
, o
);
2507 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2508 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2509 PyObject
* _resultobj
;
2520 wxFont
* _arg6
= (wxFont
*) NULL
;
2521 PyObject
* _argo0
= 0;
2522 PyObject
* _obj1
= 0;
2523 PyObject
* _argo6
= 0;
2524 char *_kwnames
[] = { "self","string","font", NULL
};
2539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2549 #if PYTHON_API_VERSION >= 1009
2550 char* tmpPtr
; int tmpSize
;
2551 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2552 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2555 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2557 _arg1
= new wxString(tmpPtr
, tmpSize
);
2559 if (!PyString_Check(_obj1
)) {
2560 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2563 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2567 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2568 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2574 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2575 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2577 wxPyEndAllowThreads(__tstate
);
2578 if (PyErr_Occurred()) return NULL
;
2579 } Py_INCREF(Py_None
);
2580 _resultobj
= Py_None
;
2583 o
= PyInt_FromLong((long) (*_arg2
));
2584 _resultobj
= t_output_helper(_resultobj
, o
);
2588 o
= PyInt_FromLong((long) (*_arg3
));
2589 _resultobj
= t_output_helper(_resultobj
, o
);
2593 o
= PyInt_FromLong((long) (*_arg4
));
2594 _resultobj
= t_output_helper(_resultobj
, o
);
2598 o
= PyInt_FromLong((long) (*_arg5
));
2599 _resultobj
= t_output_helper(_resultobj
, o
);
2608 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2609 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2610 PyObject
* _resultobj
;
2613 PyObject
* _argo0
= 0;
2614 char *_kwnames
[] = { "self", NULL
};
2617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2627 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2628 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2630 wxPyEndAllowThreads(__tstate
);
2631 if (PyErr_Occurred()) return NULL
;
2633 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2641 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2642 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2643 PyObject
* _resultobj
;
2646 PyObject
* _argo0
= 0;
2647 char *_kwnames
[] = { "self", NULL
};
2651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2662 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2664 wxPyEndAllowThreads(__tstate
);
2665 if (PyErr_Occurred()) return NULL
;
2666 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2667 _resultobj
= Py_BuildValue("s",_ptemp
);
2671 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2672 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2673 PyObject
* _resultobj
;
2676 PyObject
* _argo0
= 0;
2677 char *_kwnames
[] = { "self", NULL
};
2680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_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_GetWindowStyleFlag. Expected _wxWindow_p.");
2690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2691 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2693 wxPyEndAllowThreads(__tstate
);
2694 if (PyErr_Occurred()) return NULL
;
2695 } _resultobj
= Py_BuildValue("l",_result
);
2699 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2700 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2701 PyObject
* _resultobj
;
2704 PyObject
* _argo0
= 0;
2705 char *_kwnames
[] = { "self","style", NULL
};
2708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2719 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2721 wxPyEndAllowThreads(__tstate
);
2722 if (PyErr_Occurred()) return NULL
;
2723 } Py_INCREF(Py_None
);
2724 _resultobj
= Py_None
;
2728 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2729 static PyObject
*_wrap_wxWindow_SetWindowStyle(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_SetWindowStyle",_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_SetWindowStyle. Expected _wxWindow_p.");
2747 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2748 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2750 wxPyEndAllowThreads(__tstate
);
2751 if (PyErr_Occurred()) return NULL
;
2752 } Py_INCREF(Py_None
);
2753 _resultobj
= Py_None
;
2757 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2758 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2759 PyObject
* _resultobj
;
2762 PyObject
* _argo0
= 0;
2763 char *_kwnames
[] = { "self", NULL
};
2766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
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_Hide. Expected _wxWindow_p.");
2776 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2777 _result
= (bool )wxWindow_Hide(_arg0
);
2779 wxPyEndAllowThreads(__tstate
);
2780 if (PyErr_Occurred()) return NULL
;
2781 } _resultobj
= Py_BuildValue("i",_result
);
2785 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2786 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2787 PyObject
* _resultobj
;
2789 PyObject
* _argo0
= 0;
2790 char *_kwnames
[] = { "self", NULL
};
2793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2804 wxWindow_InitDialog(_arg0
);
2806 wxPyEndAllowThreads(__tstate
);
2807 if (PyErr_Occurred()) return NULL
;
2808 } Py_INCREF(Py_None
);
2809 _resultobj
= Py_None
;
2813 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2814 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2815 PyObject
* _resultobj
;
2818 PyObject
* _argo0
= 0;
2819 char *_kwnames
[] = { "self", NULL
};
2822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2832 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2833 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2835 wxPyEndAllowThreads(__tstate
);
2836 if (PyErr_Occurred()) return NULL
;
2837 } _resultobj
= Py_BuildValue("i",_result
);
2841 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2842 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2843 PyObject
* _resultobj
;
2848 int _arg3
= (int ) 0;
2849 int _arg4
= (int ) 0;
2850 PyObject
* _argo0
= 0;
2851 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2857 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2858 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2859 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2864 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2865 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2867 wxPyEndAllowThreads(__tstate
);
2868 if (PyErr_Occurred()) return NULL
;
2869 } _resultobj
= Py_BuildValue("i",_result
);
2873 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2874 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2875 PyObject
* _resultobj
;
2879 PyObject
* _argo0
= 0;
2881 PyObject
* _obj1
= 0;
2882 char *_kwnames
[] = { "self","pt", NULL
};
2885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2896 if (! wxPoint_helper(_obj1
, &_arg1
))
2900 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2901 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2903 wxPyEndAllowThreads(__tstate
);
2904 if (PyErr_Occurred()) return NULL
;
2905 } _resultobj
= Py_BuildValue("i",_result
);
2909 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2910 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2911 PyObject
* _resultobj
;
2915 PyObject
* _argo0
= 0;
2917 PyObject
* _obj1
= 0;
2918 char *_kwnames
[] = { "self","rect", NULL
};
2921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2924 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2925 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2932 if (! wxRect_helper(_obj1
, &_arg1
))
2936 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2937 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2939 wxPyEndAllowThreads(__tstate
);
2940 if (PyErr_Occurred()) return NULL
;
2941 } _resultobj
= Py_BuildValue("i",_result
);
2945 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2946 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2947 PyObject
* _resultobj
;
2950 PyObject
* _argo0
= 0;
2951 char *_kwnames
[] = { "self", NULL
};
2954 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
2957 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2958 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2959 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2964 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2965 _result
= (bool )wxWindow_IsRetained(_arg0
);
2967 wxPyEndAllowThreads(__tstate
);
2968 if (PyErr_Occurred()) return NULL
;
2969 } _resultobj
= Py_BuildValue("i",_result
);
2973 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2974 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2975 PyObject
* _resultobj
;
2978 PyObject
* _argo0
= 0;
2979 char *_kwnames
[] = { "self", NULL
};
2982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
2985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2993 _result
= (bool )wxWindow_IsShown(_arg0
);
2995 wxPyEndAllowThreads(__tstate
);
2996 if (PyErr_Occurred()) return NULL
;
2997 } _resultobj
= Py_BuildValue("i",_result
);
3001 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
3002 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3003 PyObject
* _resultobj
;
3006 PyObject
* _argo0
= 0;
3007 char *_kwnames
[] = { "self", NULL
};
3010 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
3013 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3014 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3015 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
3020 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3021 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
3023 wxPyEndAllowThreads(__tstate
);
3024 if (PyErr_Occurred()) return NULL
;
3025 } _resultobj
= Py_BuildValue("i",_result
);
3029 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
3030 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3031 PyObject
* _resultobj
;
3033 PyObject
* _argo0
= 0;
3034 char *_kwnames
[] = { "self", NULL
};
3037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
3040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
3047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3048 wxWindow_Layout(_arg0
);
3050 wxPyEndAllowThreads(__tstate
);
3051 if (PyErr_Occurred()) return NULL
;
3052 } Py_INCREF(Py_None
);
3053 _resultobj
= Py_None
;
3057 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
3058 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3059 PyObject
* _resultobj
;
3064 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
3065 PyObject
* _argo0
= 0;
3066 PyObject
* _argo1
= 0;
3067 PyObject
* _obj2
= 0;
3068 PyObject
* _argo3
= 0;
3069 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
3072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
3075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3082 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3083 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3089 #if PYTHON_API_VERSION >= 1009
3090 char* tmpPtr
; int tmpSize
;
3091 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3092 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3095 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3097 _arg2
= new wxString(tmpPtr
, tmpSize
);
3099 if (!PyString_Check(_obj2
)) {
3100 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3103 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3107 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3108 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3114 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3115 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3117 wxPyEndAllowThreads(__tstate
);
3118 if (PyErr_Occurred()) return NULL
;
3119 } _resultobj
= Py_BuildValue("i",_result
);
3127 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3128 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3129 PyObject
* _resultobj
;
3131 PyObject
* _argo0
= 0;
3132 char *_kwnames
[] = { "self", NULL
};
3135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3146 wxWindow_Lower(_arg0
);
3148 wxPyEndAllowThreads(__tstate
);
3149 if (PyErr_Occurred()) return NULL
;
3150 } Py_INCREF(Py_None
);
3151 _resultobj
= Py_None
;
3155 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3156 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3157 PyObject
* _resultobj
;
3159 bool _arg1
= (bool ) TRUE
;
3160 PyObject
* _argo0
= 0;
3161 int tempbool1
= (int) TRUE
;
3162 char *_kwnames
[] = { "self","flag", NULL
};
3165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3174 _arg1
= (bool ) tempbool1
;
3176 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3177 wxWindow_MakeModal(_arg0
,_arg1
);
3179 wxPyEndAllowThreads(__tstate
);
3180 if (PyErr_Occurred()) return NULL
;
3181 } Py_INCREF(Py_None
);
3182 _resultobj
= Py_None
;
3186 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3187 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3188 PyObject
* _resultobj
;
3192 PyObject
* _argo0
= 0;
3193 char *_kwnames
[] = { "self","x","y", NULL
};
3196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3206 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3207 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3209 wxPyEndAllowThreads(__tstate
);
3210 if (PyErr_Occurred()) return NULL
;
3211 } Py_INCREF(Py_None
);
3212 _resultobj
= Py_None
;
3216 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3217 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3218 PyObject
* _resultobj
;
3221 PyObject
* _argo0
= 0;
3223 PyObject
* _obj1
= 0;
3224 char *_kwnames
[] = { "self","point", NULL
};
3227 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3230 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3231 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3232 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3238 if (! wxPoint_helper(_obj1
, &_arg1
))
3242 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3243 wxWindow_Move(_arg0
,*_arg1
);
3245 wxPyEndAllowThreads(__tstate
);
3246 if (PyErr_Occurred()) return NULL
;
3247 } Py_INCREF(Py_None
);
3248 _resultobj
= Py_None
;
3252 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3253 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3254 PyObject
* _resultobj
;
3255 wxEvtHandler
* _result
;
3257 bool _arg1
= (bool ) FALSE
;
3258 PyObject
* _argo0
= 0;
3259 int tempbool1
= (int) FALSE
;
3260 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3263 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3266 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3267 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3268 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3272 _arg1
= (bool ) tempbool1
;
3274 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3275 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3277 wxPyEndAllowThreads(__tstate
);
3278 if (PyErr_Occurred()) return NULL
;
3279 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3283 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3284 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3285 PyObject
* _resultobj
;
3287 wxEvtHandler
* _arg1
;
3288 PyObject
* _argo0
= 0;
3289 PyObject
* _argo1
= 0;
3290 char *_kwnames
[] = { "self","handler", NULL
};
3293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3303 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3304 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3310 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3311 wxWindow_PushEventHandler(_arg0
,_arg1
);
3313 wxPyEndAllowThreads(__tstate
);
3314 if (PyErr_Occurred()) return NULL
;
3315 } Py_INCREF(Py_None
);
3316 _resultobj
= Py_None
;
3320 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3321 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3322 PyObject
* _resultobj
;
3328 PyObject
* _argo0
= 0;
3329 PyObject
* _argo1
= 0;
3330 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3343 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3344 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3351 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3353 wxPyEndAllowThreads(__tstate
);
3354 if (PyErr_Occurred()) return NULL
;
3355 } _resultobj
= Py_BuildValue("i",_result
);
3359 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3360 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3361 PyObject
* _resultobj
;
3366 PyObject
* _argo0
= 0;
3367 PyObject
* _argo1
= 0;
3369 PyObject
* _obj2
= 0;
3370 char *_kwnames
[] = { "self","menu","pos", NULL
};
3373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3383 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3384 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3391 if (! wxPoint_helper(_obj2
, &_arg2
))
3395 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3396 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3398 wxPyEndAllowThreads(__tstate
);
3399 if (PyErr_Occurred()) return NULL
;
3400 } _resultobj
= Py_BuildValue("i",_result
);
3404 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3405 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3406 PyObject
* _resultobj
;
3408 PyObject
* _argo0
= 0;
3409 char *_kwnames
[] = { "self", NULL
};
3412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3423 wxWindow_Raise(_arg0
);
3425 wxPyEndAllowThreads(__tstate
);
3426 if (PyErr_Occurred()) return NULL
;
3427 } Py_INCREF(Py_None
);
3428 _resultobj
= Py_None
;
3432 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3433 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3434 PyObject
* _resultobj
;
3436 bool _arg1
= (bool ) TRUE
;
3437 wxRect
* _arg2
= (wxRect
*) NULL
;
3438 PyObject
* _argo0
= 0;
3439 int tempbool1
= (int) TRUE
;
3441 PyObject
* _obj2
= 0;
3442 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3454 _arg1
= (bool ) tempbool1
;
3458 if (! wxRect_helper(_obj2
, &_arg2
))
3462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3463 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3465 wxPyEndAllowThreads(__tstate
);
3466 if (PyErr_Occurred()) return NULL
;
3467 } Py_INCREF(Py_None
);
3468 _resultobj
= Py_None
;
3472 #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0))
3473 static PyObject
*_wrap_wxWindow_RefreshRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3474 PyObject
* _resultobj
;
3477 PyObject
* _argo0
= 0;
3479 PyObject
* _obj1
= 0;
3480 char *_kwnames
[] = { "self","rect", NULL
};
3483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RefreshRect",_kwnames
,&_argo0
,&_obj1
))
3486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p.");
3494 if (! wxRect_helper(_obj1
, &_arg1
))
3498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3499 wxWindow_RefreshRect(_arg0
,*_arg1
);
3501 wxPyEndAllowThreads(__tstate
);
3502 if (PyErr_Occurred()) return NULL
;
3503 } Py_INCREF(Py_None
);
3504 _resultobj
= Py_None
;
3508 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3509 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3510 PyObject
* _resultobj
;
3512 PyObject
* _argo0
= 0;
3513 char *_kwnames
[] = { "self", NULL
};
3516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3527 wxWindow_ReleaseMouse(_arg0
);
3529 wxPyEndAllowThreads(__tstate
);
3530 if (PyErr_Occurred()) return NULL
;
3531 } Py_INCREF(Py_None
);
3532 _resultobj
= Py_None
;
3536 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3537 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3538 PyObject
* _resultobj
;
3541 PyObject
* _argo0
= 0;
3542 PyObject
* _argo1
= 0;
3543 char *_kwnames
[] = { "self","child", NULL
};
3546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3556 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3557 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3564 wxWindow_RemoveChild(_arg0
,_arg1
);
3566 wxPyEndAllowThreads(__tstate
);
3567 if (PyErr_Occurred()) return NULL
;
3568 } Py_INCREF(Py_None
);
3569 _resultobj
= Py_None
;
3573 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3574 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3575 PyObject
* _resultobj
;
3579 PyObject
* _argo0
= 0;
3580 PyObject
* _argo1
= 0;
3581 char *_kwnames
[] = { "self","newParent", NULL
};
3584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3587 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3588 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3589 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3594 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3595 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3601 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3602 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3604 wxPyEndAllowThreads(__tstate
);
3605 if (PyErr_Occurred()) return NULL
;
3606 } _resultobj
= Py_BuildValue("i",_result
);
3610 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3611 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3612 PyObject
* _resultobj
;
3616 PyObject
* _argo0
= 0;
3618 PyObject
* _obj1
= 0;
3620 PyObject
* _obj2
= 0;
3621 char *_kwnames
[] = { "self","x","y", NULL
};
3624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3634 temp
= (int) PyInt_AsLong(_obj1
);
3638 temp0
= (int) PyInt_AsLong(_obj2
);
3642 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3643 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3645 wxPyEndAllowThreads(__tstate
);
3646 if (PyErr_Occurred()) return NULL
;
3647 } Py_INCREF(Py_None
);
3648 _resultobj
= Py_None
;
3651 o
= PyInt_FromLong((long) (*_arg1
));
3652 _resultobj
= t_output_helper(_resultobj
, o
);
3656 o
= PyInt_FromLong((long) (*_arg2
));
3657 _resultobj
= t_output_helper(_resultobj
, o
);
3662 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3663 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3664 PyObject
* _resultobj
;
3668 PyObject
* _argo0
= 0;
3670 PyObject
* _obj1
= 0;
3671 char *_kwnames
[] = { "self","pt", NULL
};
3675 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3678 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3679 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3680 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3686 if (! wxPoint_helper(_obj1
, &_arg1
))
3690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3691 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3693 wxPyEndAllowThreads(__tstate
);
3694 if (PyErr_Occurred()) return NULL
;
3695 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3696 _resultobj
= Py_BuildValue("s",_ptemp
);
3700 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3701 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3702 PyObject
* _resultobj
;
3706 wxRect
* _arg3
= (wxRect
*) NULL
;
3707 PyObject
* _argo0
= 0;
3709 PyObject
* _obj3
= 0;
3710 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3725 if (! wxRect_helper(_obj3
, &_arg3
))
3729 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3730 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3732 wxPyEndAllowThreads(__tstate
);
3733 if (PyErr_Occurred()) return NULL
;
3734 } Py_INCREF(Py_None
);
3735 _resultobj
= Py_None
;
3739 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3740 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3741 PyObject
* _resultobj
;
3744 PyObject
* _argo0
= 0;
3746 char *_kwnames
[] = { "self","autoLayout", NULL
};
3749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3758 _arg1
= (bool ) tempbool1
;
3760 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3761 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3763 wxPyEndAllowThreads(__tstate
);
3764 if (PyErr_Occurred()) return NULL
;
3765 } Py_INCREF(Py_None
);
3766 _resultobj
= Py_None
;
3770 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3771 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3772 PyObject
* _resultobj
;
3775 PyObject
* _argo0
= 0;
3776 char *_kwnames
[] = { "self", NULL
};
3779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3782 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3783 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3784 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3789 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3790 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3792 wxPyEndAllowThreads(__tstate
);
3793 if (PyErr_Occurred()) return NULL
;
3794 } _resultobj
= Py_BuildValue("i",_result
);
3798 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3799 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3800 PyObject
* _resultobj
;
3803 PyObject
* _argo0
= 0;
3805 PyObject
* _obj1
= 0;
3806 char *_kwnames
[] = { "self","colour", NULL
};
3809 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3812 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3813 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3814 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3820 if (! wxColour_helper(_obj1
, &_arg1
))
3824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3825 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3827 wxPyEndAllowThreads(__tstate
);
3828 if (PyErr_Occurred()) return NULL
;
3829 } Py_INCREF(Py_None
);
3830 _resultobj
= Py_None
;
3834 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3835 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3836 PyObject
* _resultobj
;
3838 wxLayoutConstraints
* _arg1
;
3839 PyObject
* _argo0
= 0;
3840 PyObject
* _argo1
= 0;
3841 char *_kwnames
[] = { "self","constraints", NULL
};
3844 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3847 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3848 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3854 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3855 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3862 wxWindow_SetConstraints(_arg0
,_arg1
);
3864 wxPyEndAllowThreads(__tstate
);
3865 if (PyErr_Occurred()) return NULL
;
3866 } Py_INCREF(Py_None
);
3867 _resultobj
= Py_None
;
3871 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3872 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3873 PyObject
* _resultobj
;
3875 wxLayoutConstraints
* _arg1
;
3876 PyObject
* _argo0
= 0;
3877 PyObject
* _argo1
= 0;
3878 char *_kwnames
[] = { "self","constraints", NULL
};
3881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3891 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3892 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3899 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3901 wxPyEndAllowThreads(__tstate
);
3902 if (PyErr_Occurred()) return NULL
;
3903 } Py_INCREF(Py_None
);
3904 _resultobj
= Py_None
;
3908 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3909 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3910 PyObject
* _resultobj
;
3912 PyObject
* _argo0
= 0;
3913 char *_kwnames
[] = { "self", NULL
};
3916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3926 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3927 wxWindow_SetFocus(_arg0
);
3929 wxPyEndAllowThreads(__tstate
);
3930 if (PyErr_Occurred()) return NULL
;
3931 } Py_INCREF(Py_None
);
3932 _resultobj
= Py_None
;
3936 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3937 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3938 PyObject
* _resultobj
;
3941 PyObject
* _argo0
= 0;
3942 char *_kwnames
[] = { "self", NULL
};
3945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3956 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3958 wxPyEndAllowThreads(__tstate
);
3959 if (PyErr_Occurred()) return NULL
;
3960 } _resultobj
= Py_BuildValue("i",_result
);
3964 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3965 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3966 PyObject
* _resultobj
;
3969 PyObject
* _argo0
= 0;
3970 PyObject
* _argo1
= 0;
3971 char *_kwnames
[] = { "self","font", NULL
};
3974 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
3977 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3978 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3984 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3985 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3991 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3992 wxWindow_SetFont(_arg0
,*_arg1
);
3994 wxPyEndAllowThreads(__tstate
);
3995 if (PyErr_Occurred()) return NULL
;
3996 } Py_INCREF(Py_None
);
3997 _resultobj
= Py_None
;
4001 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
4002 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4003 PyObject
* _resultobj
;
4006 PyObject
* _argo0
= 0;
4008 PyObject
* _obj1
= 0;
4009 char *_kwnames
[] = { "self","colour", NULL
};
4012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
4015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
4023 if (! wxColour_helper(_obj1
, &_arg1
))
4027 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4028 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
4030 wxPyEndAllowThreads(__tstate
);
4031 if (PyErr_Occurred()) return NULL
;
4032 } Py_INCREF(Py_None
);
4033 _resultobj
= Py_None
;
4037 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
4038 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4039 PyObject
* _resultobj
;
4042 PyObject
* _argo0
= 0;
4043 char *_kwnames
[] = { "self","id", NULL
};
4046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
4049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
4056 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4057 wxWindow_SetId(_arg0
,_arg1
);
4059 wxPyEndAllowThreads(__tstate
);
4060 if (PyErr_Occurred()) return NULL
;
4061 } Py_INCREF(Py_None
);
4062 _resultobj
= Py_None
;
4066 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4067 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4068 PyObject
* _resultobj
;
4071 PyObject
* _argo0
= 0;
4072 PyObject
* _obj1
= 0;
4073 char *_kwnames
[] = { "self","name", NULL
};
4076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
4079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4086 #if PYTHON_API_VERSION >= 1009
4087 char* tmpPtr
; int tmpSize
;
4088 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4089 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4092 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4094 _arg1
= new wxString(tmpPtr
, tmpSize
);
4096 if (!PyString_Check(_obj1
)) {
4097 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4100 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4104 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4105 wxWindow_SetName(_arg0
,*_arg1
);
4107 wxPyEndAllowThreads(__tstate
);
4108 if (PyErr_Occurred()) return NULL
;
4109 } Py_INCREF(Py_None
);
4110 _resultobj
= Py_None
;
4118 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4119 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4120 PyObject
* _resultobj
;
4126 int _arg5
= (int ) TRUE
;
4127 PyObject
* _argo0
= 0;
4128 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4142 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4144 wxPyEndAllowThreads(__tstate
);
4145 if (PyErr_Occurred()) return NULL
;
4146 } Py_INCREF(Py_None
);
4147 _resultobj
= Py_None
;
4151 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4152 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4153 PyObject
* _resultobj
;
4157 bool _arg3
= (bool ) TRUE
;
4158 PyObject
* _argo0
= 0;
4159 int tempbool3
= (int) TRUE
;
4160 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4166 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4167 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4172 _arg3
= (bool ) tempbool3
;
4174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4175 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4177 wxPyEndAllowThreads(__tstate
);
4178 if (PyErr_Occurred()) return NULL
;
4179 } Py_INCREF(Py_None
);
4180 _resultobj
= Py_None
;
4184 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4185 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4186 PyObject
* _resultobj
;
4192 int _arg5
= (int ) wxSIZE_AUTO
;
4193 PyObject
* _argo0
= 0;
4194 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4207 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4208 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4210 wxPyEndAllowThreads(__tstate
);
4211 if (PyErr_Occurred()) return NULL
;
4212 } Py_INCREF(Py_None
);
4213 _resultobj
= Py_None
;
4217 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4218 self
->SetSize(size
);
4220 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4221 PyObject
* _resultobj
;
4224 PyObject
* _argo0
= 0;
4226 PyObject
* _obj1
= 0;
4227 char *_kwnames
[] = { "self","size", NULL
};
4230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4241 if (! wxSize_helper(_obj1
, &_arg1
))
4245 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4246 wxWindow_SetSize(_arg0
,*_arg1
);
4248 wxPyEndAllowThreads(__tstate
);
4249 if (PyErr_Occurred()) return NULL
;
4250 } Py_INCREF(Py_None
);
4251 _resultobj
= Py_None
;
4255 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4258 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4259 PyObject
* _resultobj
;
4262 PyObject
* _argo0
= 0;
4264 PyObject
* _obj1
= 0;
4265 char *_kwnames
[] = { "self","pos", NULL
};
4268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
4271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4279 if (! wxPoint_helper(_obj1
, &_arg1
))
4283 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4284 wxWindow_SetPosition(_arg0
,*_arg1
);
4286 wxPyEndAllowThreads(__tstate
);
4287 if (PyErr_Occurred()) return NULL
;
4288 } Py_INCREF(Py_None
);
4289 _resultobj
= Py_None
;
4293 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4294 self
->SetSize(rect
, sizeFlags
);
4296 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4297 PyObject
* _resultobj
;
4300 int _arg2
= (int ) wxSIZE_AUTO
;
4301 PyObject
* _argo0
= 0;
4303 PyObject
* _obj1
= 0;
4304 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4318 if (! wxRect_helper(_obj1
, &_arg1
))
4322 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4323 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4325 wxPyEndAllowThreads(__tstate
);
4326 if (PyErr_Occurred()) return NULL
;
4327 } Py_INCREF(Py_None
);
4328 _resultobj
= Py_None
;
4332 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4333 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4334 PyObject
* _resultobj
;
4336 int _arg1
= (int ) -1;
4337 int _arg2
= (int ) -1;
4338 int _arg3
= (int ) -1;
4339 int _arg4
= (int ) -1;
4340 int _arg5
= (int ) -1;
4341 int _arg6
= (int ) -1;
4342 PyObject
* _argo0
= 0;
4343 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4356 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4357 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4359 wxPyEndAllowThreads(__tstate
);
4360 if (PyErr_Occurred()) return NULL
;
4361 } Py_INCREF(Py_None
);
4362 _resultobj
= Py_None
;
4366 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4367 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4368 PyObject
* _resultobj
;
4372 PyObject
* _argo0
= 0;
4373 char *_kwnames
[] = { "self","width","height", NULL
};
4376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4379 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4380 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4386 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4387 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4389 wxPyEndAllowThreads(__tstate
);
4390 if (PyErr_Occurred()) return NULL
;
4391 } Py_INCREF(Py_None
);
4392 _resultobj
= Py_None
;
4396 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4397 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4398 PyObject
* _resultobj
;
4401 PyObject
* _argo0
= 0;
4403 PyObject
* _obj1
= 0;
4404 char *_kwnames
[] = { "self","size", NULL
};
4407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4418 if (! wxSize_helper(_obj1
, &_arg1
))
4422 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4423 wxWindow_SetClientSize(_arg0
,*_arg1
);
4425 wxPyEndAllowThreads(__tstate
);
4426 if (PyErr_Occurred()) return NULL
;
4427 } Py_INCREF(Py_None
);
4428 _resultobj
= Py_None
;
4432 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4433 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4434 PyObject
* _resultobj
;
4437 PyObject
* _argo0
= 0;
4438 PyObject
* _argo1
= 0;
4439 char *_kwnames
[] = { "self","cursor", NULL
};
4442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
4445 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4446 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4447 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4452 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4453 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4459 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4460 wxWindow_SetCursor(_arg0
,*_arg1
);
4462 wxPyEndAllowThreads(__tstate
);
4463 if (PyErr_Occurred()) return NULL
;
4464 } Py_INCREF(Py_None
);
4465 _resultobj
= Py_None
;
4469 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4470 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4471 PyObject
* _resultobj
;
4473 wxEvtHandler
* _arg1
;
4474 PyObject
* _argo0
= 0;
4475 PyObject
* _argo1
= 0;
4476 char *_kwnames
[] = { "self","handler", NULL
};
4479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4489 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4490 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4496 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4497 wxWindow_SetEventHandler(_arg0
,_arg1
);
4499 wxPyEndAllowThreads(__tstate
);
4500 if (PyErr_Occurred()) return NULL
;
4501 } Py_INCREF(Py_None
);
4502 _resultobj
= Py_None
;
4506 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4507 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4508 PyObject
* _resultobj
;
4511 PyObject
* _argo0
= 0;
4512 char *_kwnames
[] = { "self","exStyle", NULL
};
4515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4525 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4526 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4528 wxPyEndAllowThreads(__tstate
);
4529 if (PyErr_Occurred()) return NULL
;
4530 } Py_INCREF(Py_None
);
4531 _resultobj
= Py_None
;
4535 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4536 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4537 PyObject
* _resultobj
;
4540 PyObject
* _argo0
= 0;
4541 PyObject
* _obj1
= 0;
4542 char *_kwnames
[] = { "self","title", NULL
};
4545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4555 #if PYTHON_API_VERSION >= 1009
4556 char* tmpPtr
; int tmpSize
;
4557 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4558 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4561 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4563 _arg1
= new wxString(tmpPtr
, tmpSize
);
4565 if (!PyString_Check(_obj1
)) {
4566 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4569 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4573 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4574 wxWindow_SetTitle(_arg0
,*_arg1
);
4576 wxPyEndAllowThreads(__tstate
);
4577 if (PyErr_Occurred()) return NULL
;
4578 } Py_INCREF(Py_None
);
4579 _resultobj
= Py_None
;
4587 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4588 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4589 PyObject
* _resultobj
;
4592 bool _arg1
= (bool ) TRUE
;
4593 PyObject
* _argo0
= 0;
4594 int tempbool1
= (int) TRUE
;
4595 char *_kwnames
[] = { "self","show", NULL
};
4598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4607 _arg1
= (bool ) tempbool1
;
4609 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4610 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4612 wxPyEndAllowThreads(__tstate
);
4613 if (PyErr_Occurred()) return NULL
;
4614 } _resultobj
= Py_BuildValue("i",_result
);
4618 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4619 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4620 PyObject
* _resultobj
;
4623 PyObject
* _argo0
= 0;
4624 char *_kwnames
[] = { "self", NULL
};
4627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4637 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4638 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4640 wxPyEndAllowThreads(__tstate
);
4641 if (PyErr_Occurred()) return NULL
;
4642 } _resultobj
= Py_BuildValue("i",_result
);
4646 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4647 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4648 PyObject
* _resultobj
;
4651 PyObject
* _argo0
= 0;
4652 char *_kwnames
[] = { "self", NULL
};
4655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4666 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4668 wxPyEndAllowThreads(__tstate
);
4669 if (PyErr_Occurred()) return NULL
;
4670 } _resultobj
= Py_BuildValue("i",_result
);
4674 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4675 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4676 PyObject
* _resultobj
;
4679 PyObject
* _argo0
= 0;
4680 char *_kwnames
[] = { "self", NULL
};
4683 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4686 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4687 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4688 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4693 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4694 _result
= (bool )wxWindow_Validate(_arg0
);
4696 wxPyEndAllowThreads(__tstate
);
4697 if (PyErr_Occurred()) return NULL
;
4698 } _resultobj
= Py_BuildValue("i",_result
);
4702 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4703 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4704 PyObject
* _resultobj
;
4708 PyObject
* _argo0
= 0;
4709 char *_kwnames
[] = { "self","x","y", NULL
};
4712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4723 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4725 wxPyEndAllowThreads(__tstate
);
4726 if (PyErr_Occurred()) return NULL
;
4727 } Py_INCREF(Py_None
);
4728 _resultobj
= Py_None
;
4732 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4733 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4734 PyObject
* _resultobj
;
4738 PyObject
* _argo0
= 0;
4740 PyObject
* _obj1
= 0;
4741 char *_kwnames
[] = { "self","pt", NULL
};
4745 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4748 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4749 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4750 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4756 if (! wxPoint_helper(_obj1
, &_arg1
))
4760 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4761 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4763 wxPyEndAllowThreads(__tstate
);
4764 if (PyErr_Occurred()) return NULL
;
4765 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4766 _resultobj
= Py_BuildValue("s",_ptemp
);
4770 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4771 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4772 PyObject
* _resultobj
;
4776 PyObject
* _argo0
= 0;
4778 PyObject
* _obj1
= 0;
4779 char *_kwnames
[] = { "self","sz", NULL
};
4783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4794 if (! wxSize_helper(_obj1
, &_arg1
))
4798 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4799 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4801 wxPyEndAllowThreads(__tstate
);
4802 if (PyErr_Occurred()) return NULL
;
4803 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4804 _resultobj
= Py_BuildValue("s",_ptemp
);
4808 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4809 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4810 PyObject
* _resultobj
;
4814 PyObject
* _argo0
= 0;
4816 PyObject
* _obj1
= 0;
4817 char *_kwnames
[] = { "self","pt", NULL
};
4821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4832 if (! wxPoint_helper(_obj1
, &_arg1
))
4836 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4837 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4839 wxPyEndAllowThreads(__tstate
);
4840 if (PyErr_Occurred()) return NULL
;
4841 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4842 _resultobj
= Py_BuildValue("s",_ptemp
);
4846 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4847 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4848 PyObject
* _resultobj
;
4852 PyObject
* _argo0
= 0;
4854 PyObject
* _obj1
= 0;
4855 char *_kwnames
[] = { "self","sz", NULL
};
4859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4870 if (! wxSize_helper(_obj1
, &_arg1
))
4874 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4875 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4877 wxPyEndAllowThreads(__tstate
);
4878 if (PyErr_Occurred()) return NULL
;
4879 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4880 _resultobj
= Py_BuildValue("s",_ptemp
);
4884 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4885 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4886 PyObject
* _resultobj
;
4889 PyObject
* _argo0
= 0;
4890 PyObject
* _obj1
= 0;
4891 char *_kwnames
[] = { "self","tip", NULL
};
4894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4904 #if PYTHON_API_VERSION >= 1009
4905 char* tmpPtr
; int tmpSize
;
4906 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4907 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4910 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4912 _arg1
= new wxString(tmpPtr
, tmpSize
);
4914 if (!PyString_Check(_obj1
)) {
4915 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4918 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4923 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4925 wxPyEndAllowThreads(__tstate
);
4926 if (PyErr_Occurred()) return NULL
;
4927 } Py_INCREF(Py_None
);
4928 _resultobj
= Py_None
;
4936 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4937 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4938 PyObject
* _resultobj
;
4941 PyObject
* _argo0
= 0;
4942 PyObject
* _argo1
= 0;
4943 char *_kwnames
[] = { "self","tooltip", NULL
};
4946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4956 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4957 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4964 wxWindow_SetToolTip(_arg0
,_arg1
);
4966 wxPyEndAllowThreads(__tstate
);
4967 if (PyErr_Occurred()) return NULL
;
4968 } Py_INCREF(Py_None
);
4969 _resultobj
= Py_None
;
4973 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4974 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4975 PyObject
* _resultobj
;
4976 wxToolTip
* _result
;
4978 PyObject
* _argo0
= 0;
4979 char *_kwnames
[] = { "self", NULL
};
4982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
4985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
4993 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
4995 wxPyEndAllowThreads(__tstate
);
4996 if (PyErr_Occurred()) return NULL
;
4997 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5001 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
5002 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5003 PyObject
* _resultobj
;
5006 PyObject
* _argo0
= 0;
5007 PyObject
* _argo1
= 0;
5008 char *_kwnames
[] = { "self","sizer", NULL
};
5011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
5014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
5021 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5022 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
5023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
5028 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5029 wxWindow_SetSizer(_arg0
,_arg1
);
5031 wxPyEndAllowThreads(__tstate
);
5032 if (PyErr_Occurred()) return NULL
;
5033 } Py_INCREF(Py_None
);
5034 _resultobj
= Py_None
;
5038 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
5039 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5040 PyObject
* _resultobj
;
5043 PyObject
* _argo0
= 0;
5044 char *_kwnames
[] = { "self", NULL
};
5047 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
5050 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5051 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5052 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5057 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5058 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
5060 wxPyEndAllowThreads(__tstate
);
5061 if (PyErr_Occurred()) return NULL
;
5062 }{ _resultobj
= wxPyMake_wxSizer(_result
); }
5066 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5067 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5068 PyObject
* _resultobj
;
5069 wxValidator
* _result
;
5071 PyObject
* _argo0
= 0;
5072 char *_kwnames
[] = { "self", NULL
};
5075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
5078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5085 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5086 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5088 wxPyEndAllowThreads(__tstate
);
5089 if (PyErr_Occurred()) return NULL
;
5090 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5094 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5095 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5096 PyObject
* _resultobj
;
5098 wxValidator
* _arg1
;
5099 PyObject
* _argo0
= 0;
5100 PyObject
* _argo1
= 0;
5101 char *_kwnames
[] = { "self","validator", NULL
};
5104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5114 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5115 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5121 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5122 wxWindow_SetValidator(_arg0
,*_arg1
);
5124 wxPyEndAllowThreads(__tstate
);
5125 if (PyErr_Occurred()) return NULL
;
5126 } Py_INCREF(Py_None
);
5127 _resultobj
= Py_None
;
5131 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5132 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5133 PyObject
* _resultobj
;
5135 wxDropTarget
* _arg1
;
5136 PyObject
* _argo0
= 0;
5137 PyObject
* _argo1
= 0;
5138 char *_kwnames
[] = { "self","target", NULL
};
5141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
5144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5151 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5152 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5158 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5159 wxWindow_SetDropTarget(_arg0
,_arg1
);
5161 wxPyEndAllowThreads(__tstate
);
5162 if (PyErr_Occurred()) return NULL
;
5163 } Py_INCREF(Py_None
);
5164 _resultobj
= Py_None
;
5168 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5169 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5170 PyObject
* _resultobj
;
5171 wxDropTarget
* _result
;
5173 PyObject
* _argo0
= 0;
5174 char *_kwnames
[] = { "self", NULL
};
5178 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5181 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5182 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5183 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5189 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5191 wxPyEndAllowThreads(__tstate
);
5192 if (PyErr_Occurred()) return NULL
;
5194 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5195 _resultobj
= Py_BuildValue("s",_ptemp
);
5198 _resultobj
= Py_None
;
5203 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5204 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5205 PyObject
* _resultobj
;
5208 PyObject
* _argo0
= 0;
5209 char *_kwnames
[] = { "self", NULL
};
5213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5224 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5226 wxPyEndAllowThreads(__tstate
);
5227 if (PyErr_Occurred()) return NULL
;
5228 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5229 _resultobj
= Py_BuildValue("s",_ptemp
);
5233 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5234 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5235 PyObject
* _resultobj
;
5238 PyObject
* _argo0
= 0;
5239 PyObject
* _argo1
= 0;
5240 char *_kwnames
[] = { "self","caret", NULL
};
5243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5253 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5254 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5260 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5261 wxWindow_SetCaret(_arg0
,_arg1
);
5263 wxPyEndAllowThreads(__tstate
);
5264 if (PyErr_Occurred()) return NULL
;
5265 } Py_INCREF(Py_None
);
5266 _resultobj
= Py_None
;
5270 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5271 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5272 PyObject
* _resultobj
;
5275 PyObject
* _argo0
= 0;
5276 char *_kwnames
[] = { "self", NULL
};
5280 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5283 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5284 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5291 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5293 wxPyEndAllowThreads(__tstate
);
5294 if (PyErr_Occurred()) return NULL
;
5296 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5297 _resultobj
= Py_BuildValue("s",_ptemp
);
5300 _resultobj
= Py_None
;
5305 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5306 static PyObject
*_wrap_wxWindow_Freeze(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5307 PyObject
* _resultobj
;
5309 PyObject
* _argo0
= 0;
5310 char *_kwnames
[] = { "self", NULL
};
5313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Freeze",_kwnames
,&_argo0
))
5316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5324 wxWindow_Freeze(_arg0
);
5326 wxPyEndAllowThreads(__tstate
);
5327 if (PyErr_Occurred()) return NULL
;
5328 } Py_INCREF(Py_None
);
5329 _resultobj
= Py_None
;
5333 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5334 static PyObject
*_wrap_wxWindow_Thaw(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5335 PyObject
* _resultobj
;
5337 PyObject
* _argo0
= 0;
5338 char *_kwnames
[] = { "self", NULL
};
5341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Thaw",_kwnames
,&_argo0
))
5344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5352 wxWindow_Thaw(_arg0
);
5354 wxPyEndAllowThreads(__tstate
);
5355 if (PyErr_Occurred()) return NULL
;
5356 } Py_INCREF(Py_None
);
5357 _resultobj
= Py_None
;
5361 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5362 static PyObject
*_wrap_wxWindow_Update(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5363 PyObject
* _resultobj
;
5365 PyObject
* _argo0
= 0;
5366 char *_kwnames
[] = { "self", NULL
};
5369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Update",_kwnames
,&_argo0
))
5372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5379 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5380 wxWindow_Update(_arg0
);
5382 wxPyEndAllowThreads(__tstate
);
5383 if (PyErr_Occurred()) return NULL
;
5384 } Py_INCREF(Py_None
);
5385 _resultobj
= Py_None
;
5389 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5390 static PyObject
*_wrap_wxWindow_GetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5391 PyObject
* _resultobj
;
5394 PyObject
* _argo0
= 0;
5395 char *_kwnames
[] = { "self", NULL
};
5398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHelpText",_kwnames
,&_argo0
))
5401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5409 _result
= new wxString (wxWindow_GetHelpText(_arg0
));
5411 wxPyEndAllowThreads(__tstate
);
5412 if (PyErr_Occurred()) return NULL
;
5414 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5422 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5423 static PyObject
*_wrap_wxWindow_SetHelpText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5424 PyObject
* _resultobj
;
5427 PyObject
* _argo0
= 0;
5428 PyObject
* _obj1
= 0;
5429 char *_kwnames
[] = { "self","helpText", NULL
};
5432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetHelpText",_kwnames
,&_argo0
,&_obj1
))
5435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5442 #if PYTHON_API_VERSION >= 1009
5443 char* tmpPtr
; int tmpSize
;
5444 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5445 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5448 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5450 _arg1
= new wxString(tmpPtr
, tmpSize
);
5452 if (!PyString_Check(_obj1
)) {
5453 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5456 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5460 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5461 wxWindow_SetHelpText(_arg0
,*_arg1
);
5463 wxPyEndAllowThreads(__tstate
);
5464 if (PyErr_Occurred()) return NULL
;
5465 } Py_INCREF(Py_None
);
5466 _resultobj
= Py_None
;
5474 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5475 static PyObject
*_wrap_wxWindow_ScrollLines(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5476 PyObject
* _resultobj
;
5480 PyObject
* _argo0
= 0;
5481 char *_kwnames
[] = { "self","lines", NULL
};
5484 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollLines",_kwnames
,&_argo0
,&_arg1
))
5487 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5488 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5495 _result
= (bool )wxWindow_ScrollLines(_arg0
,_arg1
);
5497 wxPyEndAllowThreads(__tstate
);
5498 if (PyErr_Occurred()) return NULL
;
5499 } _resultobj
= Py_BuildValue("i",_result
);
5503 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5504 static PyObject
*_wrap_wxWindow_ScrollPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5505 PyObject
* _resultobj
;
5509 PyObject
* _argo0
= 0;
5510 char *_kwnames
[] = { "self","pages", NULL
};
5513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_ScrollPages",_kwnames
,&_argo0
,&_arg1
))
5516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5523 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5524 _result
= (bool )wxWindow_ScrollPages(_arg0
,_arg1
);
5526 wxPyEndAllowThreads(__tstate
);
5527 if (PyErr_Occurred()) return NULL
;
5528 } _resultobj
= Py_BuildValue("i",_result
);
5532 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5533 static PyObject
*_wrap_wxWindow_LineUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5534 PyObject
* _resultobj
;
5537 PyObject
* _argo0
= 0;
5538 char *_kwnames
[] = { "self", NULL
};
5541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineUp",_kwnames
,&_argo0
))
5544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5551 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5552 _result
= (bool )wxWindow_LineUp(_arg0
);
5554 wxPyEndAllowThreads(__tstate
);
5555 if (PyErr_Occurred()) return NULL
;
5556 } _resultobj
= Py_BuildValue("i",_result
);
5560 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5561 static PyObject
*_wrap_wxWindow_LineDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5562 PyObject
* _resultobj
;
5565 PyObject
* _argo0
= 0;
5566 char *_kwnames
[] = { "self", NULL
};
5569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_LineDown",_kwnames
,&_argo0
))
5572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5579 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5580 _result
= (bool )wxWindow_LineDown(_arg0
);
5582 wxPyEndAllowThreads(__tstate
);
5583 if (PyErr_Occurred()) return NULL
;
5584 } _resultobj
= Py_BuildValue("i",_result
);
5588 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5589 static PyObject
*_wrap_wxWindow_PageUp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5590 PyObject
* _resultobj
;
5593 PyObject
* _argo0
= 0;
5594 char *_kwnames
[] = { "self", NULL
};
5597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageUp",_kwnames
,&_argo0
))
5600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5607 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5608 _result
= (bool )wxWindow_PageUp(_arg0
);
5610 wxPyEndAllowThreads(__tstate
);
5611 if (PyErr_Occurred()) return NULL
;
5612 } _resultobj
= Py_BuildValue("i",_result
);
5616 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5617 static PyObject
*_wrap_wxWindow_PageDown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5618 PyObject
* _resultobj
;
5621 PyObject
* _argo0
= 0;
5622 char *_kwnames
[] = { "self", NULL
};
5625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_PageDown",_kwnames
,&_argo0
))
5628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5635 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5636 _result
= (bool )wxWindow_PageDown(_arg0
);
5638 wxPyEndAllowThreads(__tstate
);
5639 if (PyErr_Occurred()) return NULL
;
5640 } _resultobj
= Py_BuildValue("i",_result
);
5644 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5645 PyObject
* _resultobj
;
5647 char *_kwnames
[] = { NULL
};
5650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
5653 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5654 _result
= (wxWindow
*)wxWindow::FindFocus();
5656 wxPyEndAllowThreads(__tstate
);
5657 if (PyErr_Occurred()) return NULL
;
5658 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5662 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5663 PyObject
* _resultobj
;
5665 char *_kwnames
[] = { NULL
};
5668 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
5671 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5672 _result
= (int )wxWindow::NewControlId();
5674 wxPyEndAllowThreads(__tstate
);
5675 if (PyErr_Occurred()) return NULL
;
5676 } _resultobj
= Py_BuildValue("i",_result
);
5680 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5681 PyObject
* _resultobj
;
5684 char *_kwnames
[] = { "id", NULL
};
5687 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
5690 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5691 _result
= (int )wxWindow::NextControlId(_arg0
);
5693 wxPyEndAllowThreads(__tstate
);
5694 if (PyErr_Occurred()) return NULL
;
5695 } _resultobj
= Py_BuildValue("i",_result
);
5699 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5700 PyObject
* _resultobj
;
5703 char *_kwnames
[] = { "id", NULL
};
5706 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
5709 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5710 _result
= (int )wxWindow::PrevControlId(_arg0
);
5712 wxPyEndAllowThreads(__tstate
);
5713 if (PyErr_Occurred()) return NULL
;
5714 } _resultobj
= Py_BuildValue("i",_result
);
5718 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5719 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5720 PyObject
* _resultobj
;
5722 wxAcceleratorTable
* _arg1
;
5723 PyObject
* _argo0
= 0;
5724 PyObject
* _argo1
= 0;
5725 char *_kwnames
[] = { "self","accel", NULL
};
5728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
5731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5738 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5739 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
5740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5745 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5746 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
5748 wxPyEndAllowThreads(__tstate
);
5749 if (PyErr_Occurred()) return NULL
;
5750 } Py_INCREF(Py_None
);
5751 _resultobj
= Py_None
;
5755 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5756 static PyObject
*_wrap_wxWindow_GetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5757 PyObject
* _resultobj
;
5758 wxAcceleratorTable
* _result
;
5760 PyObject
* _argo0
= 0;
5761 char *_kwnames
[] = { "self", NULL
};
5765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAcceleratorTable",_kwnames
,&_argo0
))
5768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5776 _result
= (wxAcceleratorTable
*)wxWindow_GetAcceleratorTable(_arg0
);
5778 wxPyEndAllowThreads(__tstate
);
5779 if (PyErr_Occurred()) return NULL
;
5781 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorTable_p");
5782 _resultobj
= Py_BuildValue("s",_ptemp
);
5785 _resultobj
= Py_None
;
5790 #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0))
5791 static PyObject
*_wrap_wxWindow_OnPaint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5792 PyObject
* _resultobj
;
5794 wxPaintEvent
* _arg1
;
5795 PyObject
* _argo0
= 0;
5796 PyObject
* _argo1
= 0;
5797 char *_kwnames
[] = { "self","event", NULL
};
5800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_OnPaint",_kwnames
,&_argo0
,&_argo1
))
5803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p.");
5810 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5811 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPaintEvent_p")) {
5812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p.");
5817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5818 wxWindow_OnPaint(_arg0
,*_arg1
);
5820 wxPyEndAllowThreads(__tstate
);
5821 if (PyErr_Occurred()) return NULL
;
5822 } Py_INCREF(Py_None
);
5823 _resultobj
= Py_None
;
5827 static void *SwigwxPanelTowxWindow(void *ptr
) {
5830 src
= (wxPanel
*) ptr
;
5831 dest
= (wxWindow
*) src
;
5832 return (void *) dest
;
5835 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5838 src
= (wxPanel
*) ptr
;
5839 dest
= (wxEvtHandler
*) src
;
5840 return (void *) dest
;
5843 static void *SwigwxPanelTowxObject(void *ptr
) {
5846 src
= (wxPanel
*) ptr
;
5847 dest
= (wxObject
*) src
;
5848 return (void *) dest
;
5851 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5852 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5853 PyObject
* _resultobj
;
5857 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5858 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5859 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5860 char * _arg5
= (char *) "panel";
5861 PyObject
* _argo0
= 0;
5863 PyObject
* _obj2
= 0;
5865 PyObject
* _obj3
= 0;
5866 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5882 if (! wxPoint_helper(_obj2
, &_arg2
))
5888 if (! wxSize_helper(_obj3
, &_arg3
))
5892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5893 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5895 wxPyEndAllowThreads(__tstate
);
5896 if (PyErr_Occurred()) return NULL
;
5898 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5899 _resultobj
= Py_BuildValue("s",_ptemp
);
5902 _resultobj
= Py_None
;
5907 #define new_wxPrePanel() (new wxPanel())
5908 static PyObject
*_wrap_new_wxPrePanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5909 PyObject
* _resultobj
;
5911 char *_kwnames
[] = { NULL
};
5915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrePanel",_kwnames
))
5918 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5919 _result
= (wxPanel
*)new_wxPrePanel();
5921 wxPyEndAllowThreads(__tstate
);
5922 if (PyErr_Occurred()) return NULL
;
5924 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5925 _resultobj
= Py_BuildValue("s",_ptemp
);
5928 _resultobj
= Py_None
;
5933 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5934 static PyObject
*_wrap_wxPanel_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5935 PyObject
* _resultobj
;
5940 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5941 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5942 long _arg5
= (long ) wxTAB_TRAVERSAL
;
5943 char * _arg6
= (char *) "panel";
5944 PyObject
* _argo0
= 0;
5945 PyObject
* _argo1
= 0;
5947 PyObject
* _obj3
= 0;
5949 PyObject
* _obj4
= 0;
5950 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
5953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxPanel_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
5963 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5964 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
5965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
5972 if (! wxPoint_helper(_obj3
, &_arg3
))
5978 if (! wxSize_helper(_obj4
, &_arg4
))
5982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
5983 _result
= (bool )wxPanel_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5985 wxPyEndAllowThreads(__tstate
);
5986 if (PyErr_Occurred()) return NULL
;
5987 } _resultobj
= Py_BuildValue("i",_result
);
5991 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5992 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5993 PyObject
* _resultobj
;
5995 PyObject
* _argo0
= 0;
5996 char *_kwnames
[] = { "self", NULL
};
5999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
6002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
6004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
6009 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6010 wxPanel_InitDialog(_arg0
);
6012 wxPyEndAllowThreads(__tstate
);
6013 if (PyErr_Occurred()) return NULL
;
6014 } Py_INCREF(Py_None
);
6015 _resultobj
= Py_None
;
6019 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
6020 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6021 PyObject
* _resultobj
;
6024 PyObject
* _argo0
= 0;
6025 char *_kwnames
[] = { "self", NULL
};
6028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
6031 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6032 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
6033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
6038 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6039 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
6041 wxPyEndAllowThreads(__tstate
);
6042 if (PyErr_Occurred()) return NULL
;
6043 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6047 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
6048 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6049 PyObject
* _resultobj
;
6052 PyObject
* _argo0
= 0;
6053 PyObject
* _argo1
= 0;
6054 char *_kwnames
[] = { "self","btn", NULL
};
6057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
6060 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6061 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
6062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
6067 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6068 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
6069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
6074 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6075 wxPanel_SetDefaultItem(_arg0
,_arg1
);
6077 wxPyEndAllowThreads(__tstate
);
6078 if (PyErr_Occurred()) return NULL
;
6079 } Py_INCREF(Py_None
);
6080 _resultobj
= Py_None
;
6084 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
6085 wxScrolledWindow
*src
;
6087 src
= (wxScrolledWindow
*) ptr
;
6088 dest
= (wxPanel
*) src
;
6089 return (void *) dest
;
6092 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
6093 wxScrolledWindow
*src
;
6095 src
= (wxScrolledWindow
*) ptr
;
6096 dest
= (wxWindow
*) src
;
6097 return (void *) dest
;
6100 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
6101 wxScrolledWindow
*src
;
6103 src
= (wxScrolledWindow
*) ptr
;
6104 dest
= (wxEvtHandler
*) src
;
6105 return (void *) dest
;
6108 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
6109 wxScrolledWindow
*src
;
6111 src
= (wxScrolledWindow
*) ptr
;
6112 dest
= (wxObject
*) src
;
6113 return (void *) dest
;
6116 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6117 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6118 PyObject
* _resultobj
;
6119 wxScrolledWindow
* _result
;
6121 wxWindowID _arg1
= (wxWindowID
) -1;
6122 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
6123 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6124 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6125 char * _arg5
= (char *) "scrolledWindow";
6126 PyObject
* _argo0
= 0;
6128 PyObject
* _obj2
= 0;
6130 PyObject
* _obj3
= 0;
6131 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6147 if (! wxPoint_helper(_obj2
, &_arg2
))
6153 if (! wxSize_helper(_obj3
, &_arg3
))
6157 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6158 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6160 wxPyEndAllowThreads(__tstate
);
6161 if (PyErr_Occurred()) return NULL
;
6163 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6164 _resultobj
= Py_BuildValue("s",_ptemp
);
6167 _resultobj
= Py_None
;
6172 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6173 static PyObject
*_wrap_new_wxPreScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6174 PyObject
* _resultobj
;
6175 wxScrolledWindow
* _result
;
6176 char *_kwnames
[] = { NULL
};
6180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreScrolledWindow",_kwnames
))
6183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6184 _result
= (wxScrolledWindow
*)new_wxPreScrolledWindow();
6186 wxPyEndAllowThreads(__tstate
);
6187 if (PyErr_Occurred()) return NULL
;
6189 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6190 _resultobj
= Py_BuildValue("s",_ptemp
);
6193 _resultobj
= Py_None
;
6198 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6199 static PyObject
*_wrap_wxScrolledWindow_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6200 PyObject
* _resultobj
;
6202 wxScrolledWindow
* _arg0
;
6204 wxWindowID _arg2
= (wxWindowID
) -1;
6205 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
6206 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
6207 long _arg5
= (long ) wxHSCROLL
|wxVSCROLL
;
6208 char * _arg6
= (char *) "scrolledWindow";
6209 PyObject
* _argo0
= 0;
6210 PyObject
* _argo1
= 0;
6212 PyObject
* _obj3
= 0;
6214 PyObject
* _obj4
= 0;
6215 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
6218 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|iOOls:wxScrolledWindow_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
6221 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6222 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6228 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6229 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6237 if (! wxPoint_helper(_obj3
, &_arg3
))
6243 if (! wxSize_helper(_obj4
, &_arg4
))
6247 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6248 _result
= (bool )wxScrolledWindow_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
6250 wxPyEndAllowThreads(__tstate
);
6251 if (PyErr_Occurred()) return NULL
;
6252 } _resultobj
= Py_BuildValue("i",_result
);
6256 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6257 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6258 PyObject
* _resultobj
;
6259 wxScrolledWindow
* _arg0
;
6262 PyObject
* _argo0
= 0;
6265 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6277 _arg1
= (bool ) tempbool1
;
6278 _arg2
= (bool ) tempbool2
;
6280 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6281 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6283 wxPyEndAllowThreads(__tstate
);
6284 if (PyErr_Occurred()) return NULL
;
6285 } Py_INCREF(Py_None
);
6286 _resultobj
= Py_None
;
6290 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6291 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6292 PyObject
* _resultobj
;
6294 wxScrolledWindow
* _arg0
;
6296 PyObject
* _argo0
= 0;
6297 char *_kwnames
[] = { "self","orient", NULL
};
6300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6310 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6311 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6313 wxPyEndAllowThreads(__tstate
);
6314 if (PyErr_Occurred()) return NULL
;
6315 } _resultobj
= Py_BuildValue("i",_result
);
6319 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6320 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6321 PyObject
* _resultobj
;
6322 wxScrolledWindow
* _arg0
;
6327 PyObject
* _argo0
= 0;
6328 char *_kwnames
[] = { "self", NULL
};
6337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6347 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6348 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6350 wxPyEndAllowThreads(__tstate
);
6351 if (PyErr_Occurred()) return NULL
;
6352 } Py_INCREF(Py_None
);
6353 _resultobj
= Py_None
;
6356 o
= PyInt_FromLong((long) (*_arg1
));
6357 _resultobj
= t_output_helper(_resultobj
, o
);
6361 o
= PyInt_FromLong((long) (*_arg2
));
6362 _resultobj
= t_output_helper(_resultobj
, o
);
6367 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6368 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6369 PyObject
* _resultobj
;
6371 wxScrolledWindow
* _arg0
;
6372 PyObject
* _argo0
= 0;
6373 char *_kwnames
[] = { "self", NULL
};
6376 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6379 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6380 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6381 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6386 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6387 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6389 wxPyEndAllowThreads(__tstate
);
6390 if (PyErr_Occurred()) return NULL
;
6391 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6395 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6396 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6397 PyObject
* _resultobj
;
6398 wxScrolledWindow
* _arg0
;
6403 PyObject
* _argo0
= 0;
6404 char *_kwnames
[] = { "self", NULL
};
6413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6424 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6426 wxPyEndAllowThreads(__tstate
);
6427 if (PyErr_Occurred()) return NULL
;
6428 } Py_INCREF(Py_None
);
6429 _resultobj
= Py_None
;
6432 o
= PyInt_FromLong((long) (*_arg1
));
6433 _resultobj
= t_output_helper(_resultobj
, o
);
6437 o
= PyInt_FromLong((long) (*_arg2
));
6438 _resultobj
= t_output_helper(_resultobj
, o
);
6443 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6444 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6445 PyObject
* _resultobj
;
6447 wxScrolledWindow
* _arg0
;
6448 PyObject
* _argo0
= 0;
6449 char *_kwnames
[] = { "self", NULL
};
6452 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6463 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6465 wxPyEndAllowThreads(__tstate
);
6466 if (PyErr_Occurred()) return NULL
;
6467 } _resultobj
= Py_BuildValue("i",_result
);
6471 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6472 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6473 PyObject
* _resultobj
;
6474 wxScrolledWindow
* _arg0
;
6476 PyObject
* _argo0
= 0;
6477 PyObject
* _argo1
= 0;
6478 char *_kwnames
[] = { "self","dc", NULL
};
6481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6491 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6492 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6498 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6499 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6501 wxPyEndAllowThreads(__tstate
);
6502 if (PyErr_Occurred()) return NULL
;
6503 } Py_INCREF(Py_None
);
6504 _resultobj
= Py_None
;
6508 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6509 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6510 PyObject
* _resultobj
;
6511 wxScrolledWindow
* _arg0
;
6514 PyObject
* _argo0
= 0;
6515 char *_kwnames
[] = { "self","x","y", NULL
};
6518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6528 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6529 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6531 wxPyEndAllowThreads(__tstate
);
6532 if (PyErr_Occurred()) return NULL
;
6533 } Py_INCREF(Py_None
);
6534 _resultobj
= Py_None
;
6538 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6539 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6540 PyObject
* _resultobj
;
6541 wxScrolledWindow
* _arg0
;
6546 int _arg5
= (int ) 0;
6547 int _arg6
= (int ) 0;
6548 int _arg7
= (int ) FALSE
;
6549 PyObject
* _argo0
= 0;
6550 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
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_SetScrollbars. Expected _wxScrolledWindow_p.");
6563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6564 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6566 wxPyEndAllowThreads(__tstate
);
6567 if (PyErr_Occurred()) return NULL
;
6568 } Py_INCREF(Py_None
);
6569 _resultobj
= Py_None
;
6573 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6574 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6575 PyObject
* _resultobj
;
6576 wxScrolledWindow
* _arg0
;
6579 PyObject
* _argo0
= 0;
6580 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6583 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6586 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6587 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6594 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6596 wxPyEndAllowThreads(__tstate
);
6597 if (PyErr_Occurred()) return NULL
;
6598 } Py_INCREF(Py_None
);
6599 _resultobj
= Py_None
;
6603 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6604 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6605 PyObject
* _resultobj
;
6606 wxScrolledWindow
* _arg0
;
6608 PyObject
* _argo0
= 0;
6609 PyObject
* _argo1
= 0;
6610 char *_kwnames
[] = { "self","window", NULL
};
6613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6623 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6624 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6630 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6631 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6633 wxPyEndAllowThreads(__tstate
);
6634 if (PyErr_Occurred()) return NULL
;
6635 } Py_INCREF(Py_None
);
6636 _resultobj
= Py_None
;
6640 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6641 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6642 PyObject
* _resultobj
;
6643 wxScrolledWindow
* _arg0
;
6648 PyObject
* _argo0
= 0;
6649 char *_kwnames
[] = { "self", NULL
};
6658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
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_GetViewStart. Expected _wxScrolledWindow_p.");
6668 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6669 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6671 wxPyEndAllowThreads(__tstate
);
6672 if (PyErr_Occurred()) return NULL
;
6673 } Py_INCREF(Py_None
);
6674 _resultobj
= Py_None
;
6677 o
= PyInt_FromLong((long) (*_arg1
));
6678 _resultobj
= t_output_helper(_resultobj
, o
);
6682 o
= PyInt_FromLong((long) (*_arg2
));
6683 _resultobj
= t_output_helper(_resultobj
, o
);
6688 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6689 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6690 PyObject
* _resultobj
;
6691 wxScrolledWindow
* _arg0
;
6698 PyObject
* _argo0
= 0;
6699 char *_kwnames
[] = { "self","x","y", NULL
};
6708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6719 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6721 wxPyEndAllowThreads(__tstate
);
6722 if (PyErr_Occurred()) return NULL
;
6723 } Py_INCREF(Py_None
);
6724 _resultobj
= Py_None
;
6727 o
= PyInt_FromLong((long) (*_arg3
));
6728 _resultobj
= t_output_helper(_resultobj
, o
);
6732 o
= PyInt_FromLong((long) (*_arg4
));
6733 _resultobj
= t_output_helper(_resultobj
, o
);
6738 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6739 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6740 PyObject
* _resultobj
;
6741 wxScrolledWindow
* _arg0
;
6748 PyObject
* _argo0
= 0;
6749 char *_kwnames
[] = { "self","x","y", NULL
};
6758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6769 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6771 wxPyEndAllowThreads(__tstate
);
6772 if (PyErr_Occurred()) return NULL
;
6773 } Py_INCREF(Py_None
);
6774 _resultobj
= Py_None
;
6777 o
= PyInt_FromLong((long) (*_arg3
));
6778 _resultobj
= t_output_helper(_resultobj
, o
);
6782 o
= PyInt_FromLong((long) (*_arg4
));
6783 _resultobj
= t_output_helper(_resultobj
, o
);
6788 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6789 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6790 PyObject
* _resultobj
;
6791 wxScrolledWindow
* _arg0
;
6794 PyObject
* _argo0
= 0;
6795 char *_kwnames
[] = { "self","xs","ys", NULL
};
6798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6808 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6809 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6811 wxPyEndAllowThreads(__tstate
);
6812 if (PyErr_Occurred()) return NULL
;
6813 } Py_INCREF(Py_None
);
6814 _resultobj
= Py_None
;
6818 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6819 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6820 PyObject
* _resultobj
;
6822 wxScrolledWindow
* _arg0
;
6823 PyObject
* _argo0
= 0;
6824 char *_kwnames
[] = { "self", NULL
};
6827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6830 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6831 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6837 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6838 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6840 wxPyEndAllowThreads(__tstate
);
6841 if (PyErr_Occurred()) return NULL
;
6842 } _resultobj
= Py_BuildValue("d",_result
);
6846 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6847 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6848 PyObject
* _resultobj
;
6850 wxScrolledWindow
* _arg0
;
6851 PyObject
* _argo0
= 0;
6852 char *_kwnames
[] = { "self", NULL
};
6855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6865 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6866 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6868 wxPyEndAllowThreads(__tstate
);
6869 if (PyErr_Occurred()) return NULL
;
6870 } _resultobj
= Py_BuildValue("d",_result
);
6874 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6875 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6876 PyObject
* _resultobj
;
6877 wxScrolledWindow
* _arg0
;
6878 PyObject
* _argo0
= 0;
6879 char *_kwnames
[] = { "self", NULL
};
6882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6892 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6893 wxScrolledWindow_AdjustScrollbars(_arg0
);
6895 wxPyEndAllowThreads(__tstate
);
6896 if (PyErr_Occurred()) return NULL
;
6897 } Py_INCREF(Py_None
);
6898 _resultobj
= Py_None
;
6902 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6905 src
= (wxMenu
*) ptr
;
6906 dest
= (wxEvtHandler
*) src
;
6907 return (void *) dest
;
6910 static void *SwigwxMenuTowxObject(void *ptr
) {
6913 src
= (wxMenu
*) ptr
;
6914 dest
= (wxObject
*) src
;
6915 return (void *) dest
;
6918 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6919 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6920 PyObject
* _resultobj
;
6922 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6923 long _arg1
= (long ) 0;
6924 PyObject
* _obj0
= 0;
6925 char *_kwnames
[] = { "title","style", NULL
};
6929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6933 #if PYTHON_API_VERSION >= 1009
6934 char* tmpPtr
; int tmpSize
;
6935 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6936 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6939 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6941 _arg0
= new wxString(tmpPtr
, tmpSize
);
6943 if (!PyString_Check(_obj0
)) {
6944 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6947 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6951 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
6952 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6954 wxPyEndAllowThreads(__tstate
);
6955 if (PyErr_Occurred()) return NULL
;
6957 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6958 _resultobj
= Py_BuildValue("s",_ptemp
);
6961 _resultobj
= Py_None
;
6970 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6971 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6972 PyObject
* _resultobj
;
6976 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6977 int _arg4
= (int ) FALSE
;
6978 PyObject
* _argo0
= 0;
6979 PyObject
* _obj2
= 0;
6980 PyObject
* _obj3
= 0;
6981 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6984 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6987 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6988 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6989 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6994 #if PYTHON_API_VERSION >= 1009
6995 char* tmpPtr
; int tmpSize
;
6996 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6997 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7000 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7002 _arg2
= new wxString(tmpPtr
, tmpSize
);
7004 if (!PyString_Check(_obj2
)) {
7005 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7008 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7013 #if PYTHON_API_VERSION >= 1009
7014 char* tmpPtr
; int tmpSize
;
7015 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
7016 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7019 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
7021 _arg3
= new wxString(tmpPtr
, tmpSize
);
7023 if (!PyString_Check(_obj3
)) {
7024 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7027 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
7031 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7032 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
7034 wxPyEndAllowThreads(__tstate
);
7035 if (PyErr_Occurred()) return NULL
;
7036 } Py_INCREF(Py_None
);
7037 _resultobj
= Py_None
;
7049 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7050 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7051 PyObject
* _resultobj
;
7056 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
7057 PyObject
* _argo0
= 0;
7058 PyObject
* _obj2
= 0;
7059 PyObject
* _argo3
= 0;
7060 PyObject
* _obj4
= 0;
7061 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
7064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
7067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7074 #if PYTHON_API_VERSION >= 1009
7075 char* tmpPtr
; int tmpSize
;
7076 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7077 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7080 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7082 _arg2
= new wxString(tmpPtr
, tmpSize
);
7084 if (!PyString_Check(_obj2
)) {
7085 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7088 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7092 if (_argo3
== Py_None
) { _arg3
= NULL
; }
7093 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
7094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7100 #if PYTHON_API_VERSION >= 1009
7101 char* tmpPtr
; int tmpSize
;
7102 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
7103 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7106 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
7108 _arg4
= new wxString(tmpPtr
, tmpSize
);
7110 if (!PyString_Check(_obj4
)) {
7111 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7114 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
7118 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7119 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
7121 wxPyEndAllowThreads(__tstate
);
7122 if (PyErr_Occurred()) return NULL
;
7123 } Py_INCREF(Py_None
);
7124 _resultobj
= Py_None
;
7136 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7137 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7138 PyObject
* _resultobj
;
7141 PyObject
* _argo0
= 0;
7142 PyObject
* _argo1
= 0;
7143 char *_kwnames
[] = { "self","item", NULL
};
7146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
7149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7156 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7157 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7164 wxMenu_AppendItem(_arg0
,_arg1
);
7166 wxPyEndAllowThreads(__tstate
);
7167 if (PyErr_Occurred()) return NULL
;
7168 } Py_INCREF(Py_None
);
7169 _resultobj
= Py_None
;
7173 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7174 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7175 PyObject
* _resultobj
;
7177 PyObject
* _argo0
= 0;
7178 char *_kwnames
[] = { "self", NULL
};
7181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7191 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7192 wxMenu_AppendSeparator(_arg0
);
7194 wxPyEndAllowThreads(__tstate
);
7195 if (PyErr_Occurred()) return NULL
;
7196 } Py_INCREF(Py_None
);
7197 _resultobj
= Py_None
;
7201 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7202 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7203 PyObject
* _resultobj
;
7205 PyObject
* _argo0
= 0;
7206 char *_kwnames
[] = { "self", NULL
};
7209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7220 wxMenu_Break(_arg0
);
7222 wxPyEndAllowThreads(__tstate
);
7223 if (PyErr_Occurred()) return NULL
;
7224 } Py_INCREF(Py_None
);
7225 _resultobj
= Py_None
;
7229 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7230 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7231 PyObject
* _resultobj
;
7235 PyObject
* _argo0
= 0;
7237 char *_kwnames
[] = { "self","id","flag", NULL
};
7240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7249 _arg2
= (bool ) tempbool2
;
7251 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7252 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7254 wxPyEndAllowThreads(__tstate
);
7255 if (PyErr_Occurred()) return NULL
;
7256 } Py_INCREF(Py_None
);
7257 _resultobj
= Py_None
;
7261 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7262 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7263 PyObject
* _resultobj
;
7267 PyObject
* _argo0
= 0;
7268 char *_kwnames
[] = { "self","id", NULL
};
7271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7282 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7284 wxPyEndAllowThreads(__tstate
);
7285 if (PyErr_Occurred()) return NULL
;
7286 } _resultobj
= Py_BuildValue("i",_result
);
7290 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7291 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7292 PyObject
* _resultobj
;
7296 PyObject
* _argo0
= 0;
7298 char *_kwnames
[] = { "self","id","enable", NULL
};
7301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7310 _arg2
= (bool ) tempbool2
;
7312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7313 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7315 wxPyEndAllowThreads(__tstate
);
7316 if (PyErr_Occurred()) return NULL
;
7317 } Py_INCREF(Py_None
);
7318 _resultobj
= Py_None
;
7322 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7323 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7324 PyObject
* _resultobj
;
7328 PyObject
* _argo0
= 0;
7329 char *_kwnames
[] = { "self","id", NULL
};
7332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7342 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7343 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7345 wxPyEndAllowThreads(__tstate
);
7346 if (PyErr_Occurred()) return NULL
;
7347 } _resultobj
= Py_BuildValue("i",_result
);
7351 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7352 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7353 PyObject
* _resultobj
;
7357 PyObject
* _argo0
= 0;
7358 PyObject
* _obj1
= 0;
7359 char *_kwnames
[] = { "self","itemString", NULL
};
7362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7372 #if PYTHON_API_VERSION >= 1009
7373 char* tmpPtr
; int tmpSize
;
7374 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7375 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7378 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7380 _arg1
= new wxString(tmpPtr
, tmpSize
);
7382 if (!PyString_Check(_obj1
)) {
7383 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7386 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7390 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7391 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7393 wxPyEndAllowThreads(__tstate
);
7394 if (PyErr_Occurred()) return NULL
;
7395 } _resultobj
= Py_BuildValue("i",_result
);
7403 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7404 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7405 PyObject
* _resultobj
;
7406 wxMenuItem
* _result
;
7409 PyObject
* _argo0
= 0;
7410 char *_kwnames
[] = { "self","id", NULL
};
7413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7423 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7424 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7426 wxPyEndAllowThreads(__tstate
);
7427 if (PyErr_Occurred()) return NULL
;
7428 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7432 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7433 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7434 PyObject
* _resultobj
;
7437 PyObject
* _argo0
= 0;
7438 char *_kwnames
[] = { "self", NULL
};
7441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7452 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7454 wxPyEndAllowThreads(__tstate
);
7455 if (PyErr_Occurred()) return NULL
;
7457 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7465 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7466 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7467 PyObject
* _resultobj
;
7470 PyObject
* _argo0
= 0;
7471 PyObject
* _obj1
= 0;
7472 char *_kwnames
[] = { "self","title", NULL
};
7475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7485 #if PYTHON_API_VERSION >= 1009
7486 char* tmpPtr
; int tmpSize
;
7487 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7488 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7491 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7493 _arg1
= new wxString(tmpPtr
, tmpSize
);
7495 if (!PyString_Check(_obj1
)) {
7496 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7499 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7503 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7504 wxMenu_SetTitle(_arg0
,*_arg1
);
7506 wxPyEndAllowThreads(__tstate
);
7507 if (PyErr_Occurred()) return NULL
;
7508 } Py_INCREF(Py_None
);
7509 _resultobj
= Py_None
;
7517 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7518 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7519 PyObject
* _resultobj
;
7523 PyObject
* _argo0
= 0;
7524 char *_kwnames
[] = { "self","id", NULL
};
7527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7538 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7540 wxPyEndAllowThreads(__tstate
);
7541 if (PyErr_Occurred()) return NULL
;
7543 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7551 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7552 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7553 PyObject
* _resultobj
;
7557 PyObject
* _argo0
= 0;
7558 PyObject
* _obj2
= 0;
7559 char *_kwnames
[] = { "self","id","label", NULL
};
7562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7572 #if PYTHON_API_VERSION >= 1009
7573 char* tmpPtr
; int tmpSize
;
7574 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7575 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7578 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7580 _arg2
= new wxString(tmpPtr
, tmpSize
);
7582 if (!PyString_Check(_obj2
)) {
7583 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7586 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7590 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7591 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7593 wxPyEndAllowThreads(__tstate
);
7594 if (PyErr_Occurred()) return NULL
;
7595 } Py_INCREF(Py_None
);
7596 _resultobj
= Py_None
;
7604 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7605 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7606 PyObject
* _resultobj
;
7610 PyObject
* _argo0
= 0;
7611 char *_kwnames
[] = { "self","id", NULL
};
7614 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7617 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7618 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7624 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7625 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7627 wxPyEndAllowThreads(__tstate
);
7628 if (PyErr_Occurred()) return NULL
;
7630 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7638 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7639 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7640 PyObject
* _resultobj
;
7644 PyObject
* _argo0
= 0;
7645 PyObject
* _obj2
= 0;
7646 char *_kwnames
[] = { "self","id","helpString", NULL
};
7649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7659 #if PYTHON_API_VERSION >= 1009
7660 char* tmpPtr
; int tmpSize
;
7661 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7662 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7665 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7667 _arg2
= new wxString(tmpPtr
, tmpSize
);
7669 if (!PyString_Check(_obj2
)) {
7670 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7673 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7677 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7678 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7680 wxPyEndAllowThreads(__tstate
);
7681 if (PyErr_Occurred()) return NULL
;
7682 } Py_INCREF(Py_None
);
7683 _resultobj
= Py_None
;
7691 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7692 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7693 PyObject
* _resultobj
;
7695 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7696 PyObject
* _argo0
= 0;
7697 PyObject
* _argo1
= 0;
7698 char *_kwnames
[] = { "self","source", NULL
};
7701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7711 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7712 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7719 wxMenu_UpdateUI(_arg0
,_arg1
);
7721 wxPyEndAllowThreads(__tstate
);
7722 if (PyErr_Occurred()) return NULL
;
7723 } Py_INCREF(Py_None
);
7724 _resultobj
= Py_None
;
7728 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7729 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7730 PyObject
* _resultobj
;
7734 PyObject
* _argo0
= 0;
7735 char *_kwnames
[] = { "self","id", NULL
};
7738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7748 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7749 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7751 wxPyEndAllowThreads(__tstate
);
7752 if (PyErr_Occurred()) return NULL
;
7753 } _resultobj
= Py_BuildValue("i",_result
);
7757 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7758 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7759 PyObject
* _resultobj
;
7763 PyObject
* _argo0
= 0;
7764 PyObject
* _argo1
= 0;
7765 char *_kwnames
[] = { "self","item", NULL
};
7768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7778 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7779 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7785 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7786 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7788 wxPyEndAllowThreads(__tstate
);
7789 if (PyErr_Occurred()) return NULL
;
7790 } _resultobj
= Py_BuildValue("i",_result
);
7794 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7795 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7796 PyObject
* _resultobj
;
7801 PyObject
* _argo0
= 0;
7802 PyObject
* _argo2
= 0;
7803 char *_kwnames
[] = { "self","pos","item", NULL
};
7806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7816 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7817 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7823 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7824 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7826 wxPyEndAllowThreads(__tstate
);
7827 if (PyErr_Occurred()) return NULL
;
7828 } _resultobj
= Py_BuildValue("i",_result
);
7832 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7833 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7834 PyObject
* _resultobj
;
7835 wxMenuItem
* _result
;
7838 PyObject
* _argo0
= 0;
7839 char *_kwnames
[] = { "self","id", NULL
};
7842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7852 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7853 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7855 wxPyEndAllowThreads(__tstate
);
7856 if (PyErr_Occurred()) return NULL
;
7857 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7861 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7862 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7863 PyObject
* _resultobj
;
7864 wxMenuItem
* _result
;
7867 PyObject
* _argo0
= 0;
7868 PyObject
* _argo1
= 0;
7869 char *_kwnames
[] = { "self","item", NULL
};
7872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7882 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7883 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7889 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7890 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7892 wxPyEndAllowThreads(__tstate
);
7893 if (PyErr_Occurred()) return NULL
;
7894 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7898 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7899 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7900 PyObject
* _resultobj
;
7902 PyObject
* _argo0
= 0;
7903 char *_kwnames
[] = { "self", NULL
};
7906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7916 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7917 wxMenu_Destroy(_arg0
);
7919 wxPyEndAllowThreads(__tstate
);
7920 if (PyErr_Occurred()) return NULL
;
7921 } Py_INCREF(Py_None
);
7922 _resultobj
= Py_None
;
7926 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7927 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7928 PyObject
* _resultobj
;
7932 PyObject
* _argo0
= 0;
7933 char *_kwnames
[] = { "self","id", NULL
};
7936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7939 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7940 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7946 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7947 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7949 wxPyEndAllowThreads(__tstate
);
7950 if (PyErr_Occurred()) return NULL
;
7951 } _resultobj
= Py_BuildValue("i",_result
);
7955 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7956 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7957 PyObject
* _resultobj
;
7961 PyObject
* _argo0
= 0;
7962 PyObject
* _argo1
= 0;
7963 char *_kwnames
[] = { "self","item", NULL
};
7966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7976 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7977 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7978 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7983 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
7984 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7986 wxPyEndAllowThreads(__tstate
);
7987 if (PyErr_Occurred()) return NULL
;
7988 } _resultobj
= Py_BuildValue("i",_result
);
7992 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7993 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7994 PyObject
* _resultobj
;
7997 PyObject
* _argo0
= 0;
7998 char *_kwnames
[] = { "self", NULL
};
8001 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
8004 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8005 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8006 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
8011 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8012 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
8014 wxPyEndAllowThreads(__tstate
);
8015 if (PyErr_Occurred()) return NULL
;
8016 } _resultobj
= Py_BuildValue("i",_result
);
8020 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
8021 wxMenuItemList
& list
= self
->GetMenuItems();
8022 return wxPy_ConvertList(&list
, "wxMenuItem");
8024 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8025 PyObject
* _resultobj
;
8028 PyObject
* _argo0
= 0;
8029 char *_kwnames
[] = { "self", NULL
};
8032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
8035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
8042 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8043 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
8045 wxPyEndAllowThreads(__tstate
);
8046 if (PyErr_Occurred()) return NULL
;
8048 _resultobj
= _result
;
8053 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
8054 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8055 PyObject
* _resultobj
;
8057 wxEvtHandler
* _arg1
;
8058 PyObject
* _argo0
= 0;
8059 PyObject
* _argo1
= 0;
8060 char *_kwnames
[] = { "self","handler", NULL
};
8063 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
8066 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8067 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8068 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
8073 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8074 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
8075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
8080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8081 wxMenu_SetEventHandler(_arg0
,_arg1
);
8083 wxPyEndAllowThreads(__tstate
);
8084 if (PyErr_Occurred()) return NULL
;
8085 } Py_INCREF(Py_None
);
8086 _resultobj
= Py_None
;
8090 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
8091 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8092 PyObject
* _resultobj
;
8093 wxEvtHandler
* _result
;
8095 PyObject
* _argo0
= 0;
8096 char *_kwnames
[] = { "self", NULL
};
8099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
8102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
8109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8110 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
8112 wxPyEndAllowThreads(__tstate
);
8113 if (PyErr_Occurred()) return NULL
;
8114 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8118 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
8119 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8120 PyObject
* _resultobj
;
8123 PyObject
* _argo0
= 0;
8124 PyObject
* _argo1
= 0;
8125 char *_kwnames
[] = { "self","win", NULL
};
8128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
8131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
8138 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8139 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
8145 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8146 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
8148 wxPyEndAllowThreads(__tstate
);
8149 if (PyErr_Occurred()) return NULL
;
8150 } Py_INCREF(Py_None
);
8151 _resultobj
= Py_None
;
8155 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
8156 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8157 PyObject
* _resultobj
;
8160 PyObject
* _argo0
= 0;
8161 char *_kwnames
[] = { "self", NULL
};
8164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8174 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8175 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8177 wxPyEndAllowThreads(__tstate
);
8178 if (PyErr_Occurred()) return NULL
;
8179 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8183 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8184 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8185 PyObject
* _resultobj
;
8188 PyObject
* _argo0
= 0;
8189 char *_kwnames
[] = { "self", NULL
};
8192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8202 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8203 _result
= (long )wxMenu_GetStyle(_arg0
);
8205 wxPyEndAllowThreads(__tstate
);
8206 if (PyErr_Occurred()) return NULL
;
8207 } _resultobj
= Py_BuildValue("l",_result
);
8211 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8212 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8213 PyObject
* _resultobj
;
8216 PyObject
* _argo0
= 0;
8217 char *_kwnames
[] = { "self", NULL
};
8220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8230 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8231 _result
= (bool )wxMenu_IsAttached(_arg0
);
8233 wxPyEndAllowThreads(__tstate
);
8234 if (PyErr_Occurred()) return NULL
;
8235 } _resultobj
= Py_BuildValue("i",_result
);
8239 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8240 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8241 PyObject
* _resultobj
;
8244 PyObject
* _argo0
= 0;
8245 PyObject
* _argo1
= 0;
8246 char *_kwnames
[] = { "self","parent", NULL
};
8249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8259 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8260 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8266 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8267 wxMenu_SetParent(_arg0
,_arg1
);
8269 wxPyEndAllowThreads(__tstate
);
8270 if (PyErr_Occurred()) return NULL
;
8271 } Py_INCREF(Py_None
);
8272 _resultobj
= Py_None
;
8276 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8277 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8278 PyObject
* _resultobj
;
8281 PyObject
* _argo0
= 0;
8282 char *_kwnames
[] = { "self", NULL
};
8285 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8288 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8289 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8290 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8295 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8296 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8298 wxPyEndAllowThreads(__tstate
);
8299 if (PyErr_Occurred()) return NULL
;
8300 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8304 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8307 src
= (wxMenuBar
*) ptr
;
8308 dest
= (wxWindow
*) src
;
8309 return (void *) dest
;
8312 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8315 src
= (wxMenuBar
*) ptr
;
8316 dest
= (wxEvtHandler
*) src
;
8317 return (void *) dest
;
8320 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8323 src
= (wxMenuBar
*) ptr
;
8324 dest
= (wxObject
*) src
;
8325 return (void *) dest
;
8328 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8329 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8330 PyObject
* _resultobj
;
8331 wxMenuBar
* _result
;
8332 long _arg0
= (long ) 0;
8333 char *_kwnames
[] = { "style", NULL
};
8337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8340 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8341 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8343 wxPyEndAllowThreads(__tstate
);
8344 if (PyErr_Occurred()) return NULL
;
8346 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8347 _resultobj
= Py_BuildValue("s",_ptemp
);
8350 _resultobj
= Py_None
;
8355 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8356 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8357 PyObject
* _resultobj
;
8362 PyObject
* _argo0
= 0;
8363 PyObject
* _argo1
= 0;
8364 PyObject
* _obj2
= 0;
8365 char *_kwnames
[] = { "self","menu","title", NULL
};
8368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8378 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8379 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8385 #if PYTHON_API_VERSION >= 1009
8386 char* tmpPtr
; int tmpSize
;
8387 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8388 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8391 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8393 _arg2
= new wxString(tmpPtr
, tmpSize
);
8395 if (!PyString_Check(_obj2
)) {
8396 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8399 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8403 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8404 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8406 wxPyEndAllowThreads(__tstate
);
8407 if (PyErr_Occurred()) return NULL
;
8408 } _resultobj
= Py_BuildValue("i",_result
);
8416 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8417 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8418 PyObject
* _resultobj
;
8424 PyObject
* _argo0
= 0;
8425 PyObject
* _argo2
= 0;
8426 PyObject
* _obj3
= 0;
8427 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8440 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8441 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8442 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8447 #if PYTHON_API_VERSION >= 1009
8448 char* tmpPtr
; int tmpSize
;
8449 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8450 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8453 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8455 _arg3
= new wxString(tmpPtr
, tmpSize
);
8457 if (!PyString_Check(_obj3
)) {
8458 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8461 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8465 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8466 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8468 wxPyEndAllowThreads(__tstate
);
8469 if (PyErr_Occurred()) return NULL
;
8470 } _resultobj
= Py_BuildValue("i",_result
);
8478 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8479 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8480 PyObject
* _resultobj
;
8483 PyObject
* _argo0
= 0;
8484 char *_kwnames
[] = { "self", NULL
};
8487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8497 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8498 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8500 wxPyEndAllowThreads(__tstate
);
8501 if (PyErr_Occurred()) return NULL
;
8502 } _resultobj
= Py_BuildValue("i",_result
);
8506 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8507 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8508 PyObject
* _resultobj
;
8512 PyObject
* _argo0
= 0;
8513 char *_kwnames
[] = { "self","pos", NULL
};
8516 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8519 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8520 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8521 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8527 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8529 wxPyEndAllowThreads(__tstate
);
8530 if (PyErr_Occurred()) return NULL
;
8531 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8535 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8536 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8537 PyObject
* _resultobj
;
8543 PyObject
* _argo0
= 0;
8544 PyObject
* _argo2
= 0;
8545 PyObject
* _obj3
= 0;
8546 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8549 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8552 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8553 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8554 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8559 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8560 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8566 #if PYTHON_API_VERSION >= 1009
8567 char* tmpPtr
; int tmpSize
;
8568 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8569 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8572 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8574 _arg3
= new wxString(tmpPtr
, tmpSize
);
8576 if (!PyString_Check(_obj3
)) {
8577 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8580 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8584 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8585 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8587 wxPyEndAllowThreads(__tstate
);
8588 if (PyErr_Occurred()) return NULL
;
8589 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8597 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8598 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8599 PyObject
* _resultobj
;
8603 PyObject
* _argo0
= 0;
8604 char *_kwnames
[] = { "self","pos", NULL
};
8607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
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_Remove. Expected _wxMenuBar_p.");
8617 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8618 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8620 wxPyEndAllowThreads(__tstate
);
8621 if (PyErr_Occurred()) return NULL
;
8622 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8626 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8627 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8628 PyObject
* _resultobj
;
8632 PyObject
* _argo0
= 0;
8634 char *_kwnames
[] = { "self","pos","enable", NULL
};
8637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8646 _arg2
= (bool ) tempbool2
;
8648 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8649 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8651 wxPyEndAllowThreads(__tstate
);
8652 if (PyErr_Occurred()) return NULL
;
8653 } Py_INCREF(Py_None
);
8654 _resultobj
= Py_None
;
8658 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8659 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8660 PyObject
* _resultobj
;
8664 PyObject
* _argo0
= 0;
8665 PyObject
* _obj2
= 0;
8666 char *_kwnames
[] = { "self","pos","label", NULL
};
8669 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8672 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8673 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8674 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8679 #if PYTHON_API_VERSION >= 1009
8680 char* tmpPtr
; int tmpSize
;
8681 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8682 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8685 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8687 _arg2
= new wxString(tmpPtr
, tmpSize
);
8689 if (!PyString_Check(_obj2
)) {
8690 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8693 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8697 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8698 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8700 wxPyEndAllowThreads(__tstate
);
8701 if (PyErr_Occurred()) return NULL
;
8702 } Py_INCREF(Py_None
);
8703 _resultobj
= Py_None
;
8711 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8712 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8713 PyObject
* _resultobj
;
8717 PyObject
* _argo0
= 0;
8718 char *_kwnames
[] = { "self","pos", NULL
};
8721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8732 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8734 wxPyEndAllowThreads(__tstate
);
8735 if (PyErr_Occurred()) return NULL
;
8737 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8745 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8746 static PyObject
*_wrap_wxMenuBar_FindMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8747 PyObject
* _resultobj
;
8751 PyObject
* _argo0
= 0;
8752 PyObject
* _obj1
= 0;
8753 char *_kwnames
[] = { "self","title", NULL
};
8756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuBar_FindMenu",_kwnames
,&_argo0
,&_obj1
))
8759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8766 #if PYTHON_API_VERSION >= 1009
8767 char* tmpPtr
; int tmpSize
;
8768 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8769 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8772 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8774 _arg1
= new wxString(tmpPtr
, tmpSize
);
8776 if (!PyString_Check(_obj1
)) {
8777 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8780 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8784 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8785 _result
= (int )wxMenuBar_FindMenu(_arg0
,*_arg1
);
8787 wxPyEndAllowThreads(__tstate
);
8788 if (PyErr_Occurred()) return NULL
;
8789 } _resultobj
= Py_BuildValue("i",_result
);
8797 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8798 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8799 PyObject
* _resultobj
;
8804 PyObject
* _argo0
= 0;
8805 PyObject
* _obj1
= 0;
8806 PyObject
* _obj2
= 0;
8807 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8813 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8814 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8820 #if PYTHON_API_VERSION >= 1009
8821 char* tmpPtr
; int tmpSize
;
8822 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8823 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8826 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8828 _arg1
= new wxString(tmpPtr
, tmpSize
);
8830 if (!PyString_Check(_obj1
)) {
8831 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8834 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8838 #if PYTHON_API_VERSION >= 1009
8839 char* tmpPtr
; int tmpSize
;
8840 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8841 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8844 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8846 _arg2
= new wxString(tmpPtr
, tmpSize
);
8848 if (!PyString_Check(_obj2
)) {
8849 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8852 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8856 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8857 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8859 wxPyEndAllowThreads(__tstate
);
8860 if (PyErr_Occurred()) return NULL
;
8861 } _resultobj
= Py_BuildValue("i",_result
);
8873 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8874 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8875 PyObject
* _resultobj
;
8876 wxMenuItem
* _result
;
8879 PyObject
* _argo0
= 0;
8880 char *_kwnames
[] = { "self","id", NULL
};
8883 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8886 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8887 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8894 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8896 wxPyEndAllowThreads(__tstate
);
8897 if (PyErr_Occurred()) return NULL
;
8898 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8902 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8903 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8904 PyObject
* _resultobj
;
8908 PyObject
* _argo0
= 0;
8910 char *_kwnames
[] = { "self","id","enable", NULL
};
8913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8916 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8917 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8918 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8922 _arg2
= (bool ) tempbool2
;
8924 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8925 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8927 wxPyEndAllowThreads(__tstate
);
8928 if (PyErr_Occurred()) return NULL
;
8929 } Py_INCREF(Py_None
);
8930 _resultobj
= Py_None
;
8934 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8935 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8936 PyObject
* _resultobj
;
8940 PyObject
* _argo0
= 0;
8942 char *_kwnames
[] = { "self","id","check", NULL
};
8945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8954 _arg2
= (bool ) tempbool2
;
8956 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8957 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8959 wxPyEndAllowThreads(__tstate
);
8960 if (PyErr_Occurred()) return NULL
;
8961 } Py_INCREF(Py_None
);
8962 _resultobj
= Py_None
;
8966 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8967 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8968 PyObject
* _resultobj
;
8972 PyObject
* _argo0
= 0;
8973 char *_kwnames
[] = { "self","id", NULL
};
8976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8986 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
8987 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8989 wxPyEndAllowThreads(__tstate
);
8990 if (PyErr_Occurred()) return NULL
;
8991 } _resultobj
= Py_BuildValue("i",_result
);
8995 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8996 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8997 PyObject
* _resultobj
;
9001 PyObject
* _argo0
= 0;
9002 char *_kwnames
[] = { "self","id", NULL
};
9005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
9008 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9009 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
9015 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9016 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
9018 wxPyEndAllowThreads(__tstate
);
9019 if (PyErr_Occurred()) return NULL
;
9020 } _resultobj
= Py_BuildValue("i",_result
);
9024 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
9025 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9026 PyObject
* _resultobj
;
9030 PyObject
* _argo0
= 0;
9031 PyObject
* _obj2
= 0;
9032 char *_kwnames
[] = { "self","id","label", NULL
};
9035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
9038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
9045 #if PYTHON_API_VERSION >= 1009
9046 char* tmpPtr
; int tmpSize
;
9047 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9048 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9051 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9053 _arg2
= new wxString(tmpPtr
, tmpSize
);
9055 if (!PyString_Check(_obj2
)) {
9056 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9059 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9063 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9064 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
9066 wxPyEndAllowThreads(__tstate
);
9067 if (PyErr_Occurred()) return NULL
;
9068 } Py_INCREF(Py_None
);
9069 _resultobj
= Py_None
;
9077 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
9078 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9079 PyObject
* _resultobj
;
9083 PyObject
* _argo0
= 0;
9084 char *_kwnames
[] = { "self","id", NULL
};
9087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
9090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
9097 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9098 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
9100 wxPyEndAllowThreads(__tstate
);
9101 if (PyErr_Occurred()) return NULL
;
9103 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9111 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
9112 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9113 PyObject
* _resultobj
;
9117 PyObject
* _argo0
= 0;
9118 PyObject
* _obj2
= 0;
9119 char *_kwnames
[] = { "self","id","helpString", NULL
};
9122 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
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_SetHelpString. Expected _wxMenuBar_p.");
9132 #if PYTHON_API_VERSION >= 1009
9133 char* tmpPtr
; int tmpSize
;
9134 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9135 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9138 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9140 _arg2
= new wxString(tmpPtr
, tmpSize
);
9142 if (!PyString_Check(_obj2
)) {
9143 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9146 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9151 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
9153 wxPyEndAllowThreads(__tstate
);
9154 if (PyErr_Occurred()) return NULL
;
9155 } Py_INCREF(Py_None
);
9156 _resultobj
= Py_None
;
9164 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9165 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9166 PyObject
* _resultobj
;
9170 PyObject
* _argo0
= 0;
9171 char *_kwnames
[] = { "self","id", NULL
};
9174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9184 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9185 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9187 wxPyEndAllowThreads(__tstate
);
9188 if (PyErr_Occurred()) return NULL
;
9190 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9198 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9201 src
= (wxMenuItem
*) ptr
;
9202 dest
= (wxObject
*) src
;
9203 return (void *) dest
;
9206 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9207 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9208 PyObject
* _resultobj
;
9209 wxMenuItem
* _result
;
9210 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9211 int _arg1
= (int ) wxID_SEPARATOR
;
9212 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9213 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9214 bool _arg4
= (bool ) FALSE
;
9215 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9216 PyObject
* _argo0
= 0;
9217 PyObject
* _obj2
= 0;
9218 PyObject
* _obj3
= 0;
9219 int tempbool4
= (int) FALSE
;
9220 PyObject
* _argo5
= 0;
9221 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9236 #if PYTHON_API_VERSION >= 1009
9237 char* tmpPtr
; int tmpSize
;
9238 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9239 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9242 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9244 _arg2
= new wxString(tmpPtr
, tmpSize
);
9246 if (!PyString_Check(_obj2
)) {
9247 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9250 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9255 #if PYTHON_API_VERSION >= 1009
9256 char* tmpPtr
; int tmpSize
;
9257 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9258 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9261 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9263 _arg3
= new wxString(tmpPtr
, tmpSize
);
9265 if (!PyString_Check(_obj3
)) {
9266 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9269 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9272 _arg4
= (bool ) tempbool4
;
9274 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9275 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9282 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9284 wxPyEndAllowThreads(__tstate
);
9285 if (PyErr_Occurred()) return NULL
;
9287 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9288 _resultobj
= Py_BuildValue("s",_ptemp
);
9291 _resultobj
= Py_None
;
9304 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9305 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9306 PyObject
* _resultobj
;
9309 PyObject
* _argo0
= 0;
9310 char *_kwnames
[] = { "self", NULL
};
9313 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9316 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9317 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9318 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9323 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9324 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9326 wxPyEndAllowThreads(__tstate
);
9327 if (PyErr_Occurred()) return NULL
;
9328 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9332 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9333 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9334 PyObject
* _resultobj
;
9337 PyObject
* _argo0
= 0;
9338 char *_kwnames
[] = { "self","id", NULL
};
9341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9352 wxMenuItem_SetId(_arg0
,_arg1
);
9354 wxPyEndAllowThreads(__tstate
);
9355 if (PyErr_Occurred()) return NULL
;
9356 } Py_INCREF(Py_None
);
9357 _resultobj
= Py_None
;
9361 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9362 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9363 PyObject
* _resultobj
;
9366 PyObject
* _argo0
= 0;
9367 char *_kwnames
[] = { "self", NULL
};
9370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9380 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9381 _result
= (int )wxMenuItem_GetId(_arg0
);
9383 wxPyEndAllowThreads(__tstate
);
9384 if (PyErr_Occurred()) return NULL
;
9385 } _resultobj
= Py_BuildValue("i",_result
);
9389 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9390 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9391 PyObject
* _resultobj
;
9394 PyObject
* _argo0
= 0;
9395 char *_kwnames
[] = { "self", NULL
};
9398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9408 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9409 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9411 wxPyEndAllowThreads(__tstate
);
9412 if (PyErr_Occurred()) return NULL
;
9413 } _resultobj
= Py_BuildValue("i",_result
);
9417 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9418 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9419 PyObject
* _resultobj
;
9422 PyObject
* _argo0
= 0;
9423 PyObject
* _obj1
= 0;
9424 char *_kwnames
[] = { "self","str", NULL
};
9427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9437 #if PYTHON_API_VERSION >= 1009
9438 char* tmpPtr
; int tmpSize
;
9439 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9440 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9443 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9445 _arg1
= new wxString(tmpPtr
, tmpSize
);
9447 if (!PyString_Check(_obj1
)) {
9448 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9451 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9455 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9456 wxMenuItem_SetText(_arg0
,*_arg1
);
9458 wxPyEndAllowThreads(__tstate
);
9459 if (PyErr_Occurred()) return NULL
;
9460 } Py_INCREF(Py_None
);
9461 _resultobj
= Py_None
;
9469 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9470 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9471 PyObject
* _resultobj
;
9474 PyObject
* _argo0
= 0;
9475 char *_kwnames
[] = { "self", NULL
};
9478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9488 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9489 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9491 wxPyEndAllowThreads(__tstate
);
9492 if (PyErr_Occurred()) return NULL
;
9494 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9502 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9503 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9504 PyObject
* _resultobj
;
9507 PyObject
* _argo0
= 0;
9508 char *_kwnames
[] = { "self", NULL
};
9511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9521 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9522 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9523 _result
= (wxString
*) &_result_ref
;
9525 wxPyEndAllowThreads(__tstate
);
9526 if (PyErr_Occurred()) return NULL
;
9528 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9533 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9534 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9535 PyObject
* _resultobj
;
9538 PyObject
* _argo0
= 0;
9540 char *_kwnames
[] = { "self","checkable", NULL
};
9543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9552 _arg1
= (bool ) tempbool1
;
9554 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9555 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9557 wxPyEndAllowThreads(__tstate
);
9558 if (PyErr_Occurred()) return NULL
;
9559 } Py_INCREF(Py_None
);
9560 _resultobj
= Py_None
;
9564 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9565 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9566 PyObject
* _resultobj
;
9569 PyObject
* _argo0
= 0;
9570 char *_kwnames
[] = { "self", NULL
};
9573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9583 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9584 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9586 wxPyEndAllowThreads(__tstate
);
9587 if (PyErr_Occurred()) return NULL
;
9588 } _resultobj
= Py_BuildValue("i",_result
);
9592 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9593 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9594 PyObject
* _resultobj
;
9597 PyObject
* _argo0
= 0;
9598 char *_kwnames
[] = { "self", NULL
};
9601 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9604 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9605 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9606 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9611 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9612 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9614 wxPyEndAllowThreads(__tstate
);
9615 if (PyErr_Occurred()) return NULL
;
9616 } _resultobj
= Py_BuildValue("i",_result
);
9620 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9621 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9622 PyObject
* _resultobj
;
9625 PyObject
* _argo0
= 0;
9626 PyObject
* _argo1
= 0;
9627 char *_kwnames
[] = { "self","menu", NULL
};
9630 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9633 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9634 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9635 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9640 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9641 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9647 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9648 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9650 wxPyEndAllowThreads(__tstate
);
9651 if (PyErr_Occurred()) return NULL
;
9652 } Py_INCREF(Py_None
);
9653 _resultobj
= Py_None
;
9657 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9658 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9659 PyObject
* _resultobj
;
9662 PyObject
* _argo0
= 0;
9663 char *_kwnames
[] = { "self", NULL
};
9666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9676 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9677 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9679 wxPyEndAllowThreads(__tstate
);
9680 if (PyErr_Occurred()) return NULL
;
9681 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9685 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9686 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9687 PyObject
* _resultobj
;
9689 bool _arg1
= (bool ) TRUE
;
9690 PyObject
* _argo0
= 0;
9691 int tempbool1
= (int) TRUE
;
9692 char *_kwnames
[] = { "self","enable", NULL
};
9695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9704 _arg1
= (bool ) tempbool1
;
9706 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9707 wxMenuItem_Enable(_arg0
,_arg1
);
9709 wxPyEndAllowThreads(__tstate
);
9710 if (PyErr_Occurred()) return NULL
;
9711 } Py_INCREF(Py_None
);
9712 _resultobj
= Py_None
;
9716 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9717 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9718 PyObject
* _resultobj
;
9721 PyObject
* _argo0
= 0;
9722 char *_kwnames
[] = { "self", NULL
};
9725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9735 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9736 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9738 wxPyEndAllowThreads(__tstate
);
9739 if (PyErr_Occurred()) return NULL
;
9740 } _resultobj
= Py_BuildValue("i",_result
);
9744 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9745 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9746 PyObject
* _resultobj
;
9748 bool _arg1
= (bool ) TRUE
;
9749 PyObject
* _argo0
= 0;
9750 int tempbool1
= (int) TRUE
;
9751 char *_kwnames
[] = { "self","check", NULL
};
9754 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9757 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9758 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9759 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9763 _arg1
= (bool ) tempbool1
;
9765 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9766 wxMenuItem_Check(_arg0
,_arg1
);
9768 wxPyEndAllowThreads(__tstate
);
9769 if (PyErr_Occurred()) return NULL
;
9770 } Py_INCREF(Py_None
);
9771 _resultobj
= Py_None
;
9775 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9776 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9777 PyObject
* _resultobj
;
9780 PyObject
* _argo0
= 0;
9781 char *_kwnames
[] = { "self", NULL
};
9784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9795 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9797 wxPyEndAllowThreads(__tstate
);
9798 if (PyErr_Occurred()) return NULL
;
9799 } _resultobj
= Py_BuildValue("i",_result
);
9803 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9804 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9805 PyObject
* _resultobj
;
9807 PyObject
* _argo0
= 0;
9808 char *_kwnames
[] = { "self", NULL
};
9811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9822 wxMenuItem_Toggle(_arg0
);
9824 wxPyEndAllowThreads(__tstate
);
9825 if (PyErr_Occurred()) return NULL
;
9826 } Py_INCREF(Py_None
);
9827 _resultobj
= Py_None
;
9831 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9832 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9833 PyObject
* _resultobj
;
9836 PyObject
* _argo0
= 0;
9837 PyObject
* _obj1
= 0;
9838 char *_kwnames
[] = { "self","str", NULL
};
9841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9851 #if PYTHON_API_VERSION >= 1009
9852 char* tmpPtr
; int tmpSize
;
9853 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9854 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9857 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9859 _arg1
= new wxString(tmpPtr
, tmpSize
);
9861 if (!PyString_Check(_obj1
)) {
9862 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9865 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9869 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9870 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9872 wxPyEndAllowThreads(__tstate
);
9873 if (PyErr_Occurred()) return NULL
;
9874 } Py_INCREF(Py_None
);
9875 _resultobj
= Py_None
;
9883 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9884 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9885 PyObject
* _resultobj
;
9888 PyObject
* _argo0
= 0;
9889 char *_kwnames
[] = { "self", NULL
};
9892 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9895 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9896 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9902 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9903 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9904 _result
= (wxString
*) &_result_ref
;
9906 wxPyEndAllowThreads(__tstate
);
9907 if (PyErr_Occurred()) return NULL
;
9909 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9914 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9915 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9916 PyObject
* _resultobj
;
9917 wxAcceleratorEntry
* _result
;
9919 PyObject
* _argo0
= 0;
9920 char *_kwnames
[] = { "self", NULL
};
9924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9927 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9928 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9929 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9934 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9935 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9937 wxPyEndAllowThreads(__tstate
);
9938 if (PyErr_Occurred()) return NULL
;
9940 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9941 _resultobj
= Py_BuildValue("s",_ptemp
);
9944 _resultobj
= Py_None
;
9949 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9950 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9951 PyObject
* _resultobj
;
9953 wxAcceleratorEntry
* _arg1
;
9954 PyObject
* _argo0
= 0;
9955 PyObject
* _argo1
= 0;
9956 char *_kwnames
[] = { "self","accel", NULL
};
9959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9969 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9970 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9976 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
9977 wxMenuItem_SetAccel(_arg0
,_arg1
);
9979 wxPyEndAllowThreads(__tstate
);
9980 if (PyErr_Occurred()) return NULL
;
9981 } Py_INCREF(Py_None
);
9982 _resultobj
= Py_None
;
9986 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9987 PyObject
* _resultobj
;
9990 PyObject
* _obj0
= 0;
9991 char *_kwnames
[] = { "text", NULL
};
9994 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9997 #if PYTHON_API_VERSION >= 1009
9998 char* tmpPtr
; int tmpSize
;
9999 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
10000 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10003 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
10005 _arg0
= new wxString(tmpPtr
, tmpSize
);
10007 if (!PyString_Check(_obj0
)) {
10008 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
10011 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
10015 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10016 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
10018 wxPyEndAllowThreads(__tstate
);
10019 if (PyErr_Occurred()) return NULL
;
10021 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
10033 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
10034 static PyObject
*_wrap_wxMenuItem_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10035 PyObject
* _resultobj
;
10036 wxMenuItem
* _arg0
;
10038 PyObject
* _argo0
= 0;
10039 PyObject
* _argo1
= 0;
10040 char *_kwnames
[] = { "self","font", NULL
};
10043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetFont",_kwnames
,&_argo0
,&_argo1
))
10046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
10053 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10054 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
10055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
10060 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10061 wxMenuItem_SetFont(_arg0
,*_arg1
);
10063 wxPyEndAllowThreads(__tstate
);
10064 if (PyErr_Occurred()) return NULL
;
10065 } Py_INCREF(Py_None
);
10066 _resultobj
= Py_None
;
10070 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
10071 static PyObject
*_wrap_wxMenuItem_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10072 PyObject
* _resultobj
;
10074 wxMenuItem
* _arg0
;
10075 PyObject
* _argo0
= 0;
10076 char *_kwnames
[] = { "self", NULL
};
10080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetFont",_kwnames
,&_argo0
))
10083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
10090 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10091 _result
= new wxFont (wxMenuItem_GetFont(_arg0
));
10093 wxPyEndAllowThreads(__tstate
);
10094 if (PyErr_Occurred()) return NULL
;
10095 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxFont_p");
10096 _resultobj
= Py_BuildValue("s",_ptemp
);
10100 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
10101 static PyObject
*_wrap_wxMenuItem_SetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10102 PyObject
* _resultobj
;
10103 wxMenuItem
* _arg0
;
10105 PyObject
* _argo0
= 0;
10107 PyObject
* _obj1
= 0;
10108 char *_kwnames
[] = { "self","colText", NULL
};
10111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetTextColour",_kwnames
,&_argo0
,&_obj1
))
10114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
10122 if (! wxColour_helper(_obj1
, &_arg1
))
10126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10127 wxMenuItem_SetTextColour(_arg0
,*_arg1
);
10129 wxPyEndAllowThreads(__tstate
);
10130 if (PyErr_Occurred()) return NULL
;
10131 } Py_INCREF(Py_None
);
10132 _resultobj
= Py_None
;
10136 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
10137 static PyObject
*_wrap_wxMenuItem_GetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10138 PyObject
* _resultobj
;
10139 wxColour
* _result
;
10140 wxMenuItem
* _arg0
;
10141 PyObject
* _argo0
= 0;
10142 char *_kwnames
[] = { "self", NULL
};
10146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetTextColour",_kwnames
,&_argo0
))
10149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
10156 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10157 _result
= new wxColour (wxMenuItem_GetTextColour(_arg0
));
10159 wxPyEndAllowThreads(__tstate
);
10160 if (PyErr_Occurred()) return NULL
;
10161 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10162 _resultobj
= Py_BuildValue("s",_ptemp
);
10166 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
10167 static PyObject
*_wrap_wxMenuItem_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10168 PyObject
* _resultobj
;
10169 wxMenuItem
* _arg0
;
10171 PyObject
* _argo0
= 0;
10173 PyObject
* _obj1
= 0;
10174 char *_kwnames
[] = { "self","colBack", NULL
};
10177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
10180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
10188 if (! wxColour_helper(_obj1
, &_arg1
))
10192 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10193 wxMenuItem_SetBackgroundColour(_arg0
,*_arg1
);
10195 wxPyEndAllowThreads(__tstate
);
10196 if (PyErr_Occurred()) return NULL
;
10197 } Py_INCREF(Py_None
);
10198 _resultobj
= Py_None
;
10202 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
10203 static PyObject
*_wrap_wxMenuItem_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10204 PyObject
* _resultobj
;
10205 wxColour
* _result
;
10206 wxMenuItem
* _arg0
;
10207 PyObject
* _argo0
= 0;
10208 char *_kwnames
[] = { "self", NULL
};
10212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetBackgroundColour",_kwnames
,&_argo0
))
10215 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10216 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10217 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
10222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10223 _result
= new wxColour (wxMenuItem_GetBackgroundColour(_arg0
));
10225 wxPyEndAllowThreads(__tstate
);
10226 if (PyErr_Occurred()) return NULL
;
10227 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10228 _resultobj
= Py_BuildValue("s",_ptemp
);
10232 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
10233 static PyObject
*_wrap_wxMenuItem_SetBitmaps(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10234 PyObject
* _resultobj
;
10235 wxMenuItem
* _arg0
;
10237 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10238 PyObject
* _argo0
= 0;
10239 PyObject
* _argo1
= 0;
10240 PyObject
* _argo2
= 0;
10241 char *_kwnames
[] = { "self","bmpChecked","bmpUnchecked", NULL
};
10244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxMenuItem_SetBitmaps",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
10254 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10255 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10261 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10262 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10268 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10269 wxMenuItem_SetBitmaps(_arg0
,*_arg1
,*_arg2
);
10271 wxPyEndAllowThreads(__tstate
);
10272 if (PyErr_Occurred()) return NULL
;
10273 } Py_INCREF(Py_None
);
10274 _resultobj
= Py_None
;
10278 #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
10279 static PyObject
*_wrap_wxMenuItem_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10280 PyObject
* _resultobj
;
10281 wxMenuItem
* _arg0
;
10283 PyObject
* _argo0
= 0;
10284 PyObject
* _argo1
= 0;
10285 char *_kwnames
[] = { "self","bmpChecked", NULL
};
10288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
10291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p.");
10298 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10299 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p.");
10305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10306 wxMenuItem_SetBitmap(_arg0
,*_arg1
);
10308 wxPyEndAllowThreads(__tstate
);
10309 if (PyErr_Occurred()) return NULL
;
10310 } Py_INCREF(Py_None
);
10311 _resultobj
= Py_None
;
10315 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
10316 static PyObject
*_wrap_wxMenuItem_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10317 PyObject
* _resultobj
;
10318 wxBitmap
* _result
;
10319 wxMenuItem
* _arg0
;
10320 bool _arg1
= (bool ) TRUE
;
10321 PyObject
* _argo0
= 0;
10322 int tempbool1
= (int) TRUE
;
10323 char *_kwnames
[] = { "self","bChecked", NULL
};
10327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_GetBitmap",_kwnames
,&_argo0
,&tempbool1
))
10330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
10336 _arg1
= (bool ) tempbool1
;
10338 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10339 _result
= new wxBitmap (wxMenuItem_GetBitmap(_arg0
,_arg1
));
10341 wxPyEndAllowThreads(__tstate
);
10342 if (PyErr_Occurred()) return NULL
;
10343 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
10344 _resultobj
= Py_BuildValue("s",_ptemp
);
10348 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
10349 static PyObject
*_wrap_wxMenuItem_SetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10350 PyObject
* _resultobj
;
10351 wxMenuItem
* _arg0
;
10353 PyObject
* _argo0
= 0;
10354 char *_kwnames
[] = { "self","nWidth", NULL
};
10357 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetMarginWidth",_kwnames
,&_argo0
,&_arg1
))
10360 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10361 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10362 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
10367 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10368 wxMenuItem_SetMarginWidth(_arg0
,_arg1
);
10370 wxPyEndAllowThreads(__tstate
);
10371 if (PyErr_Occurred()) return NULL
;
10372 } Py_INCREF(Py_None
);
10373 _resultobj
= Py_None
;
10377 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
10378 static PyObject
*_wrap_wxMenuItem_GetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10379 PyObject
* _resultobj
;
10381 wxMenuItem
* _arg0
;
10382 PyObject
* _argo0
= 0;
10383 char *_kwnames
[] = { "self", NULL
};
10386 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMarginWidth",_kwnames
,&_argo0
))
10389 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10390 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
10396 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10397 _result
= (int )wxMenuItem_GetMarginWidth(_arg0
);
10399 wxPyEndAllowThreads(__tstate
);
10400 if (PyErr_Occurred()) return NULL
;
10401 } _resultobj
= Py_BuildValue("i",_result
);
10405 static PyObject
*_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10406 PyObject
* _resultobj
;
10408 char *_kwnames
[] = { NULL
};
10411 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxMenuItem_GetDefaultMarginWidth",_kwnames
))
10414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10415 _result
= (int )wxMenuItem::GetDefaultMarginWidth();
10417 wxPyEndAllowThreads(__tstate
);
10418 if (PyErr_Occurred()) return NULL
;
10419 } _resultobj
= Py_BuildValue("i",_result
);
10423 #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn())
10424 static PyObject
*_wrap_wxMenuItem_IsOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10425 PyObject
* _resultobj
;
10427 wxMenuItem
* _arg0
;
10428 PyObject
* _argo0
= 0;
10429 char *_kwnames
[] = { "self", NULL
};
10432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsOwnerDrawn",_kwnames
,&_argo0
))
10435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p.");
10442 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10443 _result
= (bool )wxMenuItem_IsOwnerDrawn(_arg0
);
10445 wxPyEndAllowThreads(__tstate
);
10446 if (PyErr_Occurred()) return NULL
;
10447 } _resultobj
= Py_BuildValue("i",_result
);
10451 #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn())
10452 static PyObject
*_wrap_wxMenuItem_ResetOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10453 PyObject
* _resultobj
;
10454 wxMenuItem
* _arg0
;
10455 PyObject
* _argo0
= 0;
10456 char *_kwnames
[] = { "self", NULL
};
10459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_ResetOwnerDrawn",_kwnames
,&_argo0
))
10462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p.");
10469 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
10470 wxMenuItem_ResetOwnerDrawn(_arg0
);
10472 wxPyEndAllowThreads(__tstate
);
10473 if (PyErr_Occurred()) return NULL
;
10474 } Py_INCREF(Py_None
);
10475 _resultobj
= Py_None
;
10479 static PyMethodDef windowscMethods
[] = {
10480 { "wxMenuItem_ResetOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_ResetOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10481 { "wxMenuItem_IsOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_IsOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10482 { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetDefaultMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10483 { "wxMenuItem_GetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10484 { "wxMenuItem_SetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_SetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10485 { "wxMenuItem_GetBitmap", (PyCFunction
) _wrap_wxMenuItem_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10486 { "wxMenuItem_SetBitmap", (PyCFunction
) _wrap_wxMenuItem_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10487 { "wxMenuItem_SetBitmaps", (PyCFunction
) _wrap_wxMenuItem_SetBitmaps
, METH_VARARGS
| METH_KEYWORDS
},
10488 { "wxMenuItem_GetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10489 { "wxMenuItem_SetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10490 { "wxMenuItem_GetTextColour", (PyCFunction
) _wrap_wxMenuItem_GetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10491 { "wxMenuItem_SetTextColour", (PyCFunction
) _wrap_wxMenuItem_SetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10492 { "wxMenuItem_GetFont", (PyCFunction
) _wrap_wxMenuItem_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10493 { "wxMenuItem_SetFont", (PyCFunction
) _wrap_wxMenuItem_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10494 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
10495 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10496 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10497 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10498 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10499 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
10500 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10501 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
10502 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10503 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10504 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10505 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10506 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10507 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10508 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10509 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
10510 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10511 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
10512 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10513 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10514 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10515 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10516 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10517 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10518 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10519 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10520 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10521 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10522 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10523 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
10524 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10525 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10526 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10527 { "wxMenuBar_FindMenu", (PyCFunction
) _wrap_wxMenuBar_FindMenu
, METH_VARARGS
| METH_KEYWORDS
},
10528 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10529 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10530 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
10531 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10532 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10533 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10534 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
10535 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10536 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
10537 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
10538 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10539 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
10540 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
10541 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10542 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10543 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10544 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10545 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10546 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
10547 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
10548 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
10549 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
10550 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10551 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
10552 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10553 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10554 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
10555 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
10556 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
10557 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10558 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10559 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10560 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10561 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10562 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10563 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10564 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
10565 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10566 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10567 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10568 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
10569 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
10570 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10571 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
10572 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
10573 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
10574 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
10575 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10576 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
10577 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
10578 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
10579 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10580 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10581 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10582 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10583 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10584 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10585 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
10586 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
10587 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10588 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
10589 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10590 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
10591 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10592 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
10593 { "wxScrolledWindow_Create", (PyCFunction
) _wrap_wxScrolledWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10594 { "new_wxPreScrolledWindow", (PyCFunction
) _wrap_new_wxPreScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10595 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10596 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10597 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10598 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10599 { "wxPanel_Create", (PyCFunction
) _wrap_wxPanel_Create
, METH_VARARGS
| METH_KEYWORDS
},
10600 { "new_wxPrePanel", (PyCFunction
) _wrap_new_wxPrePanel
, METH_VARARGS
| METH_KEYWORDS
},
10601 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
10602 { "wxWindow_OnPaint", (PyCFunction
) _wrap_wxWindow_OnPaint
, METH_VARARGS
| METH_KEYWORDS
},
10603 { "wxWindow_GetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_GetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10604 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10605 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10606 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10607 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10608 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10609 { "wxWindow_PageDown", (PyCFunction
) _wrap_wxWindow_PageDown
, METH_VARARGS
| METH_KEYWORDS
},
10610 { "wxWindow_PageUp", (PyCFunction
) _wrap_wxWindow_PageUp
, METH_VARARGS
| METH_KEYWORDS
},
10611 { "wxWindow_LineDown", (PyCFunction
) _wrap_wxWindow_LineDown
, METH_VARARGS
| METH_KEYWORDS
},
10612 { "wxWindow_LineUp", (PyCFunction
) _wrap_wxWindow_LineUp
, METH_VARARGS
| METH_KEYWORDS
},
10613 { "wxWindow_ScrollPages", (PyCFunction
) _wrap_wxWindow_ScrollPages
, METH_VARARGS
| METH_KEYWORDS
},
10614 { "wxWindow_ScrollLines", (PyCFunction
) _wrap_wxWindow_ScrollLines
, METH_VARARGS
| METH_KEYWORDS
},
10615 { "wxWindow_SetHelpText", (PyCFunction
) _wrap_wxWindow_SetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10616 { "wxWindow_GetHelpText", (PyCFunction
) _wrap_wxWindow_GetHelpText
, METH_VARARGS
| METH_KEYWORDS
},
10617 { "wxWindow_Update", (PyCFunction
) _wrap_wxWindow_Update
, METH_VARARGS
| METH_KEYWORDS
},
10618 { "wxWindow_Thaw", (PyCFunction
) _wrap_wxWindow_Thaw
, METH_VARARGS
| METH_KEYWORDS
},
10619 { "wxWindow_Freeze", (PyCFunction
) _wrap_wxWindow_Freeze
, METH_VARARGS
| METH_KEYWORDS
},
10620 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10621 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10622 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10623 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10624 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10625 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10626 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10627 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10628 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10629 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10630 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10631 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10632 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10633 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10634 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10635 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10636 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10637 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10638 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10639 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10640 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10641 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10642 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10643 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10644 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10645 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10646 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10647 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10648 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10649 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10650 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10651 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10652 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10653 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10654 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10655 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10656 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10657 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10658 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10659 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10660 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10661 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10662 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10663 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10664 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10665 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10666 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10667 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10668 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10669 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10670 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10671 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10672 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10673 { "wxWindow_RefreshRect", (PyCFunction
) _wrap_wxWindow_RefreshRect
, METH_VARARGS
| METH_KEYWORDS
},
10674 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10675 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10676 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10677 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10678 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10679 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10680 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10681 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10682 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10683 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10684 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10685 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10686 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10687 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10688 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10689 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10690 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10691 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10692 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10693 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10694 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10695 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10696 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10697 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10698 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10699 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10700 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10701 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10702 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10703 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10704 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10705 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10706 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10707 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10708 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10709 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10710 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10711 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10712 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10713 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10714 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10715 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10716 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10717 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10718 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10719 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10720 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10721 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10722 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10723 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10724 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10725 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10726 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10727 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10728 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10729 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10730 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10731 { "wxWindow_DragAcceptFiles", (PyCFunction
) _wrap_wxWindow_DragAcceptFiles
, METH_VARARGS
| METH_KEYWORDS
},
10732 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10733 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10734 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10735 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10736 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10737 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10738 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10739 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10740 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10741 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10742 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10743 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10744 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10745 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10746 { "wxWindow_Create", (PyCFunction
) _wrap_wxWindow_Create
, METH_VARARGS
| METH_KEYWORDS
},
10747 { "new_wxPreWindow", (PyCFunction
) _wrap_new_wxPreWindow
, METH_VARARGS
| METH_KEYWORDS
},
10748 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10749 { "wxPyValidator__setCallbackInfo", (PyCFunction
) _wrap_wxPyValidator__setCallbackInfo
, METH_VARARGS
| METH_KEYWORDS
},
10750 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10751 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10752 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10753 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10754 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10755 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10756 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10757 { "wxEvtHandler__setOORInfo", (PyCFunction
) _wrap_wxEvtHandler__setOORInfo
, METH_VARARGS
| METH_KEYWORDS
},
10758 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10759 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10760 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10761 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10762 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10763 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10764 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10765 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10766 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10767 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10768 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10769 { "wxWindow_FromHWND", (PyCFunction
) _wrap_wxWindow_FromHWND
, METH_VARARGS
| METH_KEYWORDS
},
10776 * This table is used by the pointer type-checker
10778 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10779 { "_signed_long","_long",0},
10780 { "_wxPrintQuality","_wxCoord",0},
10781 { "_wxPrintQuality","_int",0},
10782 { "_wxPrintQuality","_signed_int",0},
10783 { "_wxPrintQuality","_unsigned_int",0},
10784 { "_wxPrintQuality","_wxWindowID",0},
10785 { "_wxPrintQuality","_uint",0},
10786 { "_wxPrintQuality","_EBool",0},
10787 { "_wxPrintQuality","_size_t",0},
10788 { "_wxPrintQuality","_time_t",0},
10789 { "_byte","_unsigned_char",0},
10790 { "_long","_unsigned_long",0},
10791 { "_long","_signed_long",0},
10792 { "_size_t","_wxCoord",0},
10793 { "_size_t","_wxPrintQuality",0},
10794 { "_size_t","_time_t",0},
10795 { "_size_t","_unsigned_int",0},
10796 { "_size_t","_int",0},
10797 { "_size_t","_wxWindowID",0},
10798 { "_size_t","_uint",0},
10799 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10800 { "_uint","_wxCoord",0},
10801 { "_uint","_wxPrintQuality",0},
10802 { "_uint","_time_t",0},
10803 { "_uint","_size_t",0},
10804 { "_uint","_unsigned_int",0},
10805 { "_uint","_int",0},
10806 { "_uint","_wxWindowID",0},
10807 { "_wxChar","_char",0},
10808 { "_char","_wxChar",0},
10809 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10810 { "_EBool","_wxCoord",0},
10811 { "_EBool","_wxPrintQuality",0},
10812 { "_EBool","_signed_int",0},
10813 { "_EBool","_int",0},
10814 { "_EBool","_wxWindowID",0},
10815 { "_unsigned_long","_long",0},
10816 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10817 { "_signed_int","_wxCoord",0},
10818 { "_signed_int","_wxPrintQuality",0},
10819 { "_signed_int","_EBool",0},
10820 { "_signed_int","_wxWindowID",0},
10821 { "_signed_int","_int",0},
10822 { "_WXTYPE","_short",0},
10823 { "_WXTYPE","_signed_short",0},
10824 { "_WXTYPE","_unsigned_short",0},
10825 { "_unsigned_short","_WXTYPE",0},
10826 { "_unsigned_short","_short",0},
10827 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10828 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10829 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10830 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10831 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10832 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10833 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10834 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10835 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10836 { "_signed_short","_WXTYPE",0},
10837 { "_signed_short","_short",0},
10838 { "_unsigned_char","_byte",0},
10839 { "_unsigned_int","_wxCoord",0},
10840 { "_unsigned_int","_wxPrintQuality",0},
10841 { "_unsigned_int","_time_t",0},
10842 { "_unsigned_int","_size_t",0},
10843 { "_unsigned_int","_uint",0},
10844 { "_unsigned_int","_wxWindowID",0},
10845 { "_unsigned_int","_int",0},
10846 { "_short","_WXTYPE",0},
10847 { "_short","_unsigned_short",0},
10848 { "_short","_signed_short",0},
10849 { "_wxWindowID","_wxCoord",0},
10850 { "_wxWindowID","_wxPrintQuality",0},
10851 { "_wxWindowID","_time_t",0},
10852 { "_wxWindowID","_size_t",0},
10853 { "_wxWindowID","_EBool",0},
10854 { "_wxWindowID","_uint",0},
10855 { "_wxWindowID","_int",0},
10856 { "_wxWindowID","_signed_int",0},
10857 { "_wxWindowID","_unsigned_int",0},
10858 { "_int","_wxCoord",0},
10859 { "_int","_wxPrintQuality",0},
10860 { "_int","_time_t",0},
10861 { "_int","_size_t",0},
10862 { "_int","_EBool",0},
10863 { "_int","_uint",0},
10864 { "_int","_wxWindowID",0},
10865 { "_int","_unsigned_int",0},
10866 { "_int","_signed_int",0},
10867 { "_time_t","_wxCoord",0},
10868 { "_time_t","_wxPrintQuality",0},
10869 { "_time_t","_unsigned_int",0},
10870 { "_time_t","_int",0},
10871 { "_time_t","_wxWindowID",0},
10872 { "_time_t","_uint",0},
10873 { "_time_t","_size_t",0},
10874 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10875 { "_wxCoord","_int",0},
10876 { "_wxCoord","_signed_int",0},
10877 { "_wxCoord","_unsigned_int",0},
10878 { "_wxCoord","_wxWindowID",0},
10879 { "_wxCoord","_uint",0},
10880 { "_wxCoord","_EBool",0},
10881 { "_wxCoord","_size_t",0},
10882 { "_wxCoord","_time_t",0},
10883 { "_wxCoord","_wxPrintQuality",0},
10884 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10885 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10886 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10887 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10888 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10889 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10890 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10891 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10892 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10893 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10896 static PyObject
*SWIG_globals
;
10900 SWIGEXPORT(void) initwindowsc() {
10902 SWIG_globals
= SWIG_newvarlink();
10903 m
= Py_InitModule("windowsc", windowscMethods
);
10904 d
= PyModule_GetDict(m
);
10907 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10908 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);