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 is required for parameter";
95 static wxString
wxPyEmptyStr("");
97 class wxPyValidator
: public wxValidator
{
98 DECLARE_DYNAMIC_CLASS(wxPyValidator
);
106 wxObject
* wxPyValidator::Clone() const {
107 wxPyValidator
* ptr
= NULL
;
108 wxPyValidator
* self
= (wxPyValidator
*)this;
110 bool doSave
= wxPyRestoreThread();
111 if (self
->m_myInst
.findCallback("Clone")) {
113 ro
= self
->m_myInst
.callCallbackObj(Py_BuildValue("()"));
115 SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxPyValidator_p");
119 // This is very dangerous!!! But is the only way I could find
120 // to squash a memory leak. Currently it is okay, but if the
121 // validator architecture in wxWindows ever changes, problems
125 wxPySaveThread(doSave
);
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_FindFocus() {
145 return wxWindow::FindFocus();
148 wxWindow
* wxWindow_FromHWND(unsigned long hWnd
) {
149 wxWindow
* win
= new wxWindow
;
151 win
->SubclassWin(hWnd
);
155 int wxWindow_NewControlId() {
156 return wxWindow::NewControlId();
158 int wxWindow_NextControlId(int id
) {
159 return wxWindow::NextControlId(id
);
161 int wxWindow_PrevControlId(int id
) {
162 return wxWindow::PrevControlId(id
);
167 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
168 PyObject
* _resultobj
;
170 char *_kwnames
[] = { NULL
};
173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
176 wxPy_BEGIN_ALLOW_THREADS
;
177 _result
= (wxWindow
*)wxWindow_FindFocus();
179 wxPy_END_ALLOW_THREADS
;
180 if (PyErr_Occurred()) return NULL
;
181 }{ _resultobj
= wxPyMake_wxObject(_result
); }
185 static PyObject
*_wrap_wxWindow_FromHWND(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
186 PyObject
* _resultobj
;
189 char *_kwnames
[] = { "hWnd", NULL
};
192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxWindow_FromHWND",_kwnames
,&_arg0
))
195 wxPy_BEGIN_ALLOW_THREADS
;
196 _result
= (wxWindow
*)wxWindow_FromHWND(_arg0
);
198 wxPy_END_ALLOW_THREADS
;
199 if (PyErr_Occurred()) return NULL
;
200 }{ _resultobj
= wxPyMake_wxObject(_result
); }
204 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
205 PyObject
* _resultobj
;
207 char *_kwnames
[] = { NULL
};
210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
213 wxPy_BEGIN_ALLOW_THREADS
;
214 _result
= (int )wxWindow_NewControlId();
216 wxPy_END_ALLOW_THREADS
;
217 if (PyErr_Occurred()) return NULL
;
218 } _resultobj
= Py_BuildValue("i",_result
);
222 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
223 PyObject
* _resultobj
;
226 char *_kwnames
[] = { "id", NULL
};
229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
232 wxPy_BEGIN_ALLOW_THREADS
;
233 _result
= (int )wxWindow_NextControlId(_arg0
);
235 wxPy_END_ALLOW_THREADS
;
236 if (PyErr_Occurred()) return NULL
;
237 } _resultobj
= Py_BuildValue("i",_result
);
241 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
242 PyObject
* _resultobj
;
245 char *_kwnames
[] = { "id", NULL
};
248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
251 wxPy_BEGIN_ALLOW_THREADS
;
252 _result
= (int )wxWindow_PrevControlId(_arg0
);
254 wxPy_END_ALLOW_THREADS
;
255 if (PyErr_Occurred()) return NULL
;
256 } _resultobj
= Py_BuildValue("i",_result
);
260 static void *SwigwxEvtHandlerTowxObject(void *ptr
) {
263 src
= (wxEvtHandler
*) ptr
;
264 dest
= (wxObject
*) src
;
265 return (void *) dest
;
268 #define new_wxEvtHandler() (new wxEvtHandler())
269 static PyObject
*_wrap_new_wxEvtHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
270 PyObject
* _resultobj
;
271 wxEvtHandler
* _result
;
272 char *_kwnames
[] = { NULL
};
276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEvtHandler",_kwnames
))
279 wxPy_BEGIN_ALLOW_THREADS
;
280 _result
= (wxEvtHandler
*)new_wxEvtHandler();
282 wxPy_END_ALLOW_THREADS
;
283 if (PyErr_Occurred()) return NULL
;
285 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxEvtHandler_p");
286 _resultobj
= Py_BuildValue("s",_ptemp
);
289 _resultobj
= Py_None
;
294 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
295 static PyObject
*_wrap_wxEvtHandler_ProcessEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
296 PyObject
* _resultobj
;
298 wxEvtHandler
* _arg0
;
300 PyObject
* _argo0
= 0;
301 PyObject
* _argo1
= 0;
302 char *_kwnames
[] = { "self","event", NULL
};
305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_ProcessEvent",_kwnames
,&_argo0
,&_argo1
))
308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
315 if (_argo1
== Py_None
) { _arg1
= NULL
; }
316 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
322 wxPy_BEGIN_ALLOW_THREADS
;
323 _result
= (bool )wxEvtHandler_ProcessEvent(_arg0
,*_arg1
);
325 wxPy_END_ALLOW_THREADS
;
326 if (PyErr_Occurred()) return NULL
;
327 } _resultobj
= Py_BuildValue("i",_result
);
331 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
332 static PyObject
*_wrap_wxEvtHandler_AddPendingEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
333 PyObject
* _resultobj
;
334 wxEvtHandler
* _arg0
;
336 PyObject
* _argo0
= 0;
337 PyObject
* _argo1
= 0;
338 char *_kwnames
[] = { "self","event", NULL
};
341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_AddPendingEvent",_kwnames
,&_argo0
,&_argo1
))
344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
351 if (_argo1
== Py_None
) { _arg1
= NULL
; }
352 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
358 wxPy_BEGIN_ALLOW_THREADS
;
359 wxEvtHandler_AddPendingEvent(_arg0
,*_arg1
);
361 wxPy_END_ALLOW_THREADS
;
362 if (PyErr_Occurred()) return NULL
;
363 } Py_INCREF(Py_None
);
364 _resultobj
= Py_None
;
368 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
369 static PyObject
*_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
370 PyObject
* _resultobj
;
372 wxEvtHandler
* _arg0
;
373 PyObject
* _argo0
= 0;
374 char *_kwnames
[] = { "self", NULL
};
377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames
,&_argo0
))
380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
387 wxPy_BEGIN_ALLOW_THREADS
;
388 _result
= (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0
);
390 wxPy_END_ALLOW_THREADS
;
391 if (PyErr_Occurred()) return NULL
;
392 } _resultobj
= Py_BuildValue("i",_result
);
396 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
397 static PyObject
*_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
398 PyObject
* _resultobj
;
399 wxEvtHandler
* _arg0
;
401 PyObject
* _argo0
= 0;
403 char *_kwnames
[] = { "self","enabled", NULL
};
406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames
,&_argo0
,&tempbool1
))
409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
415 _arg1
= (bool ) tempbool1
;
417 wxPy_BEGIN_ALLOW_THREADS
;
418 wxEvtHandler_SetEvtHandlerEnabled(_arg0
,_arg1
);
420 wxPy_END_ALLOW_THREADS
;
421 if (PyErr_Occurred()) return NULL
;
422 } Py_INCREF(Py_None
);
423 _resultobj
= Py_None
;
427 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
428 static PyObject
*_wrap_wxEvtHandler_GetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
429 PyObject
* _resultobj
;
430 wxEvtHandler
* _result
;
431 wxEvtHandler
* _arg0
;
432 PyObject
* _argo0
= 0;
433 char *_kwnames
[] = { "self", NULL
};
436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetNextHandler",_kwnames
,&_argo0
))
439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
446 wxPy_BEGIN_ALLOW_THREADS
;
447 _result
= (wxEvtHandler
*)wxEvtHandler_GetNextHandler(_arg0
);
449 wxPy_END_ALLOW_THREADS
;
450 if (PyErr_Occurred()) return NULL
;
451 }{ _resultobj
= wxPyMake_wxObject(_result
); }
455 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
456 static PyObject
*_wrap_wxEvtHandler_GetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
457 PyObject
* _resultobj
;
458 wxEvtHandler
* _result
;
459 wxEvtHandler
* _arg0
;
460 PyObject
* _argo0
= 0;
461 char *_kwnames
[] = { "self", NULL
};
464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetPreviousHandler",_kwnames
,&_argo0
))
467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
474 wxPy_BEGIN_ALLOW_THREADS
;
475 _result
= (wxEvtHandler
*)wxEvtHandler_GetPreviousHandler(_arg0
);
477 wxPy_END_ALLOW_THREADS
;
478 if (PyErr_Occurred()) return NULL
;
479 }{ _resultobj
= wxPyMake_wxObject(_result
); }
483 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
484 static PyObject
*_wrap_wxEvtHandler_SetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
485 PyObject
* _resultobj
;
486 wxEvtHandler
* _arg0
;
487 wxEvtHandler
* _arg1
;
488 PyObject
* _argo0
= 0;
489 PyObject
* _argo1
= 0;
490 char *_kwnames
[] = { "self","handler", NULL
};
493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetNextHandler",_kwnames
,&_argo0
,&_argo1
))
496 if (_argo0
== Py_None
) { _arg0
= NULL
; }
497 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
503 if (_argo1
== Py_None
) { _arg1
= NULL
; }
504 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
510 wxPy_BEGIN_ALLOW_THREADS
;
511 wxEvtHandler_SetNextHandler(_arg0
,_arg1
);
513 wxPy_END_ALLOW_THREADS
;
514 if (PyErr_Occurred()) return NULL
;
515 } Py_INCREF(Py_None
);
516 _resultobj
= Py_None
;
520 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
521 static PyObject
*_wrap_wxEvtHandler_SetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
522 PyObject
* _resultobj
;
523 wxEvtHandler
* _arg0
;
524 wxEvtHandler
* _arg1
;
525 PyObject
* _argo0
= 0;
526 PyObject
* _argo1
= 0;
527 char *_kwnames
[] = { "self","handler", NULL
};
530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetPreviousHandler",_kwnames
,&_argo0
,&_argo1
))
533 if (_argo0
== Py_None
) { _arg0
= NULL
; }
534 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
540 if (_argo1
== Py_None
) { _arg1
= NULL
; }
541 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
542 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
547 wxPy_BEGIN_ALLOW_THREADS
;
548 wxEvtHandler_SetPreviousHandler(_arg0
,_arg1
);
550 wxPy_END_ALLOW_THREADS
;
551 if (PyErr_Occurred()) return NULL
;
552 } Py_INCREF(Py_None
);
553 _resultobj
= Py_None
;
557 static void wxEvtHandler_Connect(wxEvtHandler
*self
,int id
,int lastId
,int eventType
,PyObject
* func
) {
558 if (PyCallable_Check(func
)) {
559 self
->Connect(id
, lastId
, eventType
,
560 (wxObjectEventFunction
) &wxPyCallback::EventThunker
,
561 new wxPyCallback(func
));
564 static PyObject
*_wrap_wxEvtHandler_Connect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
565 PyObject
* _resultobj
;
566 wxEvtHandler
* _arg0
;
571 PyObject
* _argo0
= 0;
572 PyObject
* _obj4
= 0;
573 char *_kwnames
[] = { "self","id","lastId","eventType","func", NULL
};
576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiO:wxEvtHandler_Connect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_obj4
))
579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
589 wxPy_BEGIN_ALLOW_THREADS
;
590 wxEvtHandler_Connect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
592 wxPy_END_ALLOW_THREADS
;
593 if (PyErr_Occurred()) return NULL
;
594 } Py_INCREF(Py_None
);
595 _resultobj
= Py_None
;
599 static bool wxEvtHandler_Disconnect(wxEvtHandler
*self
,int id
,int lastId
,wxEventType eventType
) {
600 return self
->Disconnect(id
, lastId
, eventType
,
601 (wxObjectEventFunction
)
602 &wxPyCallback::EventThunker
);
604 static PyObject
*_wrap_wxEvtHandler_Disconnect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
605 PyObject
* _resultobj
;
607 wxEvtHandler
* _arg0
;
609 int _arg2
= (int ) -1;
610 wxEventType _arg3
= (wxEventType
) wxEVT_NULL
;
611 PyObject
* _argo0
= 0;
612 char *_kwnames
[] = { "self","id","lastId","eventType", NULL
};
615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxEvtHandler_Disconnect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
625 wxPy_BEGIN_ALLOW_THREADS
;
626 _result
= (bool )wxEvtHandler_Disconnect(_arg0
,_arg1
,_arg2
,_arg3
);
628 wxPy_END_ALLOW_THREADS
;
629 if (PyErr_Occurred()) return NULL
;
630 } _resultobj
= Py_BuildValue("i",_result
);
634 static void *SwigwxValidatorTowxEvtHandler(void *ptr
) {
637 src
= (wxValidator
*) ptr
;
638 dest
= (wxEvtHandler
*) src
;
639 return (void *) dest
;
642 static void *SwigwxValidatorTowxObject(void *ptr
) {
645 src
= (wxValidator
*) ptr
;
646 dest
= (wxObject
*) src
;
647 return (void *) dest
;
650 #define new_wxValidator() (new wxValidator())
651 static PyObject
*_wrap_new_wxValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
652 PyObject
* _resultobj
;
653 wxValidator
* _result
;
654 char *_kwnames
[] = { NULL
};
658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxValidator",_kwnames
))
661 wxPy_BEGIN_ALLOW_THREADS
;
662 _result
= (wxValidator
*)new_wxValidator();
664 wxPy_END_ALLOW_THREADS
;
665 if (PyErr_Occurred()) return NULL
;
667 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxValidator_p");
668 _resultobj
= Py_BuildValue("s",_ptemp
);
671 _resultobj
= Py_None
;
676 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
677 static PyObject
*_wrap_wxValidator_Clone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
678 PyObject
* _resultobj
;
679 wxValidator
* _result
;
681 PyObject
* _argo0
= 0;
682 char *_kwnames
[] = { "self", NULL
};
685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_Clone",_kwnames
,&_argo0
))
688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
695 wxPy_BEGIN_ALLOW_THREADS
;
696 _result
= (wxValidator
*)wxValidator_Clone(_arg0
);
698 wxPy_END_ALLOW_THREADS
;
699 if (PyErr_Occurred()) return NULL
;
700 }{ _resultobj
= wxPyMake_wxObject(_result
); }
704 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
705 static PyObject
*_wrap_wxValidator_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
706 PyObject
* _resultobj
;
709 PyObject
* _argo0
= 0;
710 char *_kwnames
[] = { "self", NULL
};
713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_GetWindow",_kwnames
,&_argo0
))
716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
723 wxPy_BEGIN_ALLOW_THREADS
;
724 _result
= (wxWindow
*)wxValidator_GetWindow(_arg0
);
726 wxPy_END_ALLOW_THREADS
;
727 if (PyErr_Occurred()) return NULL
;
728 }{ _resultobj
= wxPyMake_wxObject(_result
); }
732 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
733 static PyObject
*_wrap_wxValidator_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
734 PyObject
* _resultobj
;
737 PyObject
* _argo0
= 0;
738 PyObject
* _argo1
= 0;
739 char *_kwnames
[] = { "self","window", NULL
};
742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxValidator_SetWindow",_kwnames
,&_argo0
,&_argo1
))
745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
752 if (_argo1
== Py_None
) { _arg1
= NULL
; }
753 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
759 wxPy_BEGIN_ALLOW_THREADS
;
760 wxValidator_SetWindow(_arg0
,_arg1
);
762 wxPy_END_ALLOW_THREADS
;
763 if (PyErr_Occurred()) return NULL
;
764 } Py_INCREF(Py_None
);
765 _resultobj
= Py_None
;
769 static PyObject
*_wrap_wxValidator_IsSilent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
770 PyObject
* _resultobj
;
772 char *_kwnames
[] = { NULL
};
775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxValidator_IsSilent",_kwnames
))
778 wxPy_BEGIN_ALLOW_THREADS
;
779 _result
= (bool )wxValidator::IsSilent();
781 wxPy_END_ALLOW_THREADS
;
782 if (PyErr_Occurred()) return NULL
;
783 } _resultobj
= Py_BuildValue("i",_result
);
787 static PyObject
*_wrap_wxValidator_SetBellOnError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
788 PyObject
* _resultobj
;
789 int _arg0
= (int ) TRUE
;
790 char *_kwnames
[] = { "doIt", NULL
};
793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxValidator_SetBellOnError",_kwnames
,&_arg0
))
796 wxPy_BEGIN_ALLOW_THREADS
;
797 wxValidator::SetBellOnError(_arg0
);
799 wxPy_END_ALLOW_THREADS
;
800 if (PyErr_Occurred()) return NULL
;
801 } Py_INCREF(Py_None
);
802 _resultobj
= Py_None
;
806 static void *SwigwxPyValidatorTowxValidator(void *ptr
) {
809 src
= (wxPyValidator
*) ptr
;
810 dest
= (wxValidator
*) src
;
811 return (void *) dest
;
814 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr
) {
817 src
= (wxPyValidator
*) ptr
;
818 dest
= (wxEvtHandler
*) src
;
819 return (void *) dest
;
822 static void *SwigwxPyValidatorTowxObject(void *ptr
) {
825 src
= (wxPyValidator
*) ptr
;
826 dest
= (wxObject
*) src
;
827 return (void *) dest
;
830 #define new_wxPyValidator() (new wxPyValidator())
831 static PyObject
*_wrap_new_wxPyValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
832 PyObject
* _resultobj
;
833 wxPyValidator
* _result
;
834 char *_kwnames
[] = { NULL
};
838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPyValidator",_kwnames
))
841 wxPy_BEGIN_ALLOW_THREADS
;
842 _result
= (wxPyValidator
*)new_wxPyValidator();
844 wxPy_END_ALLOW_THREADS
;
845 if (PyErr_Occurred()) return NULL
;
847 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyValidator_p");
848 _resultobj
= Py_BuildValue("s",_ptemp
);
851 _resultobj
= Py_None
;
856 #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2))
857 static PyObject
*_wrap_wxPyValidator__setSelf(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
858 PyObject
* _resultobj
;
859 wxPyValidator
* _arg0
;
862 int _arg3
= (int ) TRUE
;
863 PyObject
* _argo0
= 0;
864 PyObject
* _obj1
= 0;
865 PyObject
* _obj2
= 0;
866 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPyValidator__setSelf",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyValidator_p")) {
874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p.");
885 wxPy_BEGIN_ALLOW_THREADS
;
886 wxPyValidator__setSelf(_arg0
,_arg1
,_arg2
,_arg3
);
888 wxPy_END_ALLOW_THREADS
;
889 if (PyErr_Occurred()) return NULL
;
890 } Py_INCREF(Py_None
);
891 _resultobj
= Py_None
;
895 static void *SwigwxWindowTowxEvtHandler(void *ptr
) {
898 src
= (wxWindow
*) ptr
;
899 dest
= (wxEvtHandler
*) src
;
900 return (void *) dest
;
903 static void *SwigwxWindowTowxObject(void *ptr
) {
906 src
= (wxWindow
*) ptr
;
907 dest
= (wxObject
*) src
;
908 return (void *) dest
;
911 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
912 static PyObject
*_wrap_new_wxWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
913 PyObject
* _resultobj
;
917 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
918 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
919 long _arg4
= (long ) 0;
920 char * _arg5
= (char *) "panel";
921 PyObject
* _argo0
= 0;
923 PyObject
* _obj2
= 0;
925 PyObject
* _obj3
= 0;
926 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
942 if (! wxPoint_helper(_obj2
, &_arg2
))
948 if (! wxSize_helper(_obj3
, &_arg3
))
952 wxPy_BEGIN_ALLOW_THREADS
;
953 _result
= (wxWindow
*)new_wxWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
955 wxPy_END_ALLOW_THREADS
;
956 if (PyErr_Occurred()) return NULL
;
958 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
959 _resultobj
= Py_BuildValue("s",_ptemp
);
962 _resultobj
= Py_None
;
967 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
968 static PyObject
*_wrap_wxWindow_CaptureMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
969 PyObject
* _resultobj
;
971 PyObject
* _argo0
= 0;
972 char *_kwnames
[] = { "self", NULL
};
975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_CaptureMouse",_kwnames
,&_argo0
))
978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
985 wxPy_BEGIN_ALLOW_THREADS
;
986 wxWindow_CaptureMouse(_arg0
);
988 wxPy_END_ALLOW_THREADS
;
989 if (PyErr_Occurred()) return NULL
;
990 } Py_INCREF(Py_None
);
991 _resultobj
= Py_None
;
995 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
996 static PyObject
*_wrap_wxWindow_Center(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
997 PyObject
* _resultobj
;
999 int _arg1
= (int ) wxBOTH
;
1000 PyObject
* _argo0
= 0;
1001 char *_kwnames
[] = { "self","direction", NULL
};
1004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Center",_kwnames
,&_argo0
,&_arg1
))
1007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1014 wxPy_BEGIN_ALLOW_THREADS
;
1015 wxWindow_Center(_arg0
,_arg1
);
1017 wxPy_END_ALLOW_THREADS
;
1018 if (PyErr_Occurred()) return NULL
;
1019 } Py_INCREF(Py_None
);
1020 _resultobj
= Py_None
;
1024 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1025 static PyObject
*_wrap_wxWindow_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1026 PyObject
* _resultobj
;
1028 int _arg1
= (int ) wxBOTH
;
1029 PyObject
* _argo0
= 0;
1030 char *_kwnames
[] = { "self","direction", NULL
};
1033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Centre",_kwnames
,&_argo0
,&_arg1
))
1036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1043 wxPy_BEGIN_ALLOW_THREADS
;
1044 wxWindow_Centre(_arg0
,_arg1
);
1046 wxPy_END_ALLOW_THREADS
;
1047 if (PyErr_Occurred()) return NULL
;
1048 } Py_INCREF(Py_None
);
1049 _resultobj
= Py_None
;
1053 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1054 static PyObject
*_wrap_wxWindow_CentreOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1055 PyObject
* _resultobj
;
1057 int _arg1
= (int ) wxBOTH
;
1058 PyObject
* _argo0
= 0;
1059 char *_kwnames
[] = { "self","direction", NULL
};
1062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnParent",_kwnames
,&_argo0
,&_arg1
))
1065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1072 wxPy_BEGIN_ALLOW_THREADS
;
1073 wxWindow_CentreOnParent(_arg0
,_arg1
);
1075 wxPy_END_ALLOW_THREADS
;
1076 if (PyErr_Occurred()) return NULL
;
1077 } Py_INCREF(Py_None
);
1078 _resultobj
= Py_None
;
1082 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1083 static PyObject
*_wrap_wxWindow_CenterOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1084 PyObject
* _resultobj
;
1086 int _arg1
= (int ) wxBOTH
;
1087 PyObject
* _argo0
= 0;
1088 char *_kwnames
[] = { "self","direction", NULL
};
1091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnParent",_kwnames
,&_argo0
,&_arg1
))
1094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1101 wxPy_BEGIN_ALLOW_THREADS
;
1102 wxWindow_CenterOnParent(_arg0
,_arg1
);
1104 wxPy_END_ALLOW_THREADS
;
1105 if (PyErr_Occurred()) return NULL
;
1106 } Py_INCREF(Py_None
);
1107 _resultobj
= Py_None
;
1111 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1112 static PyObject
*_wrap_wxWindow_CentreOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1113 PyObject
* _resultobj
;
1115 int _arg1
= (int ) wxBOTH
;
1116 PyObject
* _argo0
= 0;
1117 char *_kwnames
[] = { "self","direction", NULL
};
1120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnScreen",_kwnames
,&_argo0
,&_arg1
))
1123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1130 wxPy_BEGIN_ALLOW_THREADS
;
1131 wxWindow_CentreOnScreen(_arg0
,_arg1
);
1133 wxPy_END_ALLOW_THREADS
;
1134 if (PyErr_Occurred()) return NULL
;
1135 } Py_INCREF(Py_None
);
1136 _resultobj
= Py_None
;
1140 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1141 static PyObject
*_wrap_wxWindow_CenterOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1142 PyObject
* _resultobj
;
1144 int _arg1
= (int ) wxBOTH
;
1145 PyObject
* _argo0
= 0;
1146 char *_kwnames
[] = { "self","direction", NULL
};
1149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnScreen",_kwnames
,&_argo0
,&_arg1
))
1152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1159 wxPy_BEGIN_ALLOW_THREADS
;
1160 wxWindow_CenterOnScreen(_arg0
,_arg1
);
1162 wxPy_END_ALLOW_THREADS
;
1163 if (PyErr_Occurred()) return NULL
;
1164 } Py_INCREF(Py_None
);
1165 _resultobj
= Py_None
;
1169 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1170 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1171 PyObject
* _resultobj
;
1175 PyObject
* _argo0
= 0;
1177 PyObject
* _obj1
= 0;
1179 PyObject
* _obj2
= 0;
1180 char *_kwnames
[] = { "self","x","y", NULL
};
1183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1193 temp
= (int) PyInt_AsLong(_obj1
);
1197 temp0
= (int) PyInt_AsLong(_obj2
);
1201 wxPy_BEGIN_ALLOW_THREADS
;
1202 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1204 wxPy_END_ALLOW_THREADS
;
1205 if (PyErr_Occurred()) return NULL
;
1206 } Py_INCREF(Py_None
);
1207 _resultobj
= Py_None
;
1210 o
= PyInt_FromLong((long) (*_arg1
));
1211 _resultobj
= t_output_helper(_resultobj
, o
);
1215 o
= PyInt_FromLong((long) (*_arg2
));
1216 _resultobj
= t_output_helper(_resultobj
, o
);
1221 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1222 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1223 PyObject
* _resultobj
;
1227 PyObject
* _argo0
= 0;
1229 PyObject
* _obj1
= 0;
1230 char *_kwnames
[] = { "self","pt", NULL
};
1234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1245 if (! wxPoint_helper(_obj1
, &_arg1
))
1249 wxPy_BEGIN_ALLOW_THREADS
;
1250 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1252 wxPy_END_ALLOW_THREADS
;
1253 if (PyErr_Occurred()) return NULL
;
1254 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1255 _resultobj
= Py_BuildValue("s",_ptemp
);
1259 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1260 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1261 PyObject
* _resultobj
;
1264 int _arg1
= (int ) FALSE
;
1265 PyObject
* _argo0
= 0;
1266 char *_kwnames
[] = { "self","force", NULL
};
1269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
1272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1279 wxPy_BEGIN_ALLOW_THREADS
;
1280 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1282 wxPy_END_ALLOW_THREADS
;
1283 if (PyErr_Occurred()) return NULL
;
1284 } _resultobj
= Py_BuildValue("i",_result
);
1288 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1289 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1290 PyObject
* _resultobj
;
1293 PyObject
* _argo0
= 0;
1294 char *_kwnames
[] = { "self", NULL
};
1297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1300 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1301 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1307 wxPy_BEGIN_ALLOW_THREADS
;
1308 _result
= (bool )wxWindow_Destroy(_arg0
);
1310 wxPy_END_ALLOW_THREADS
;
1311 if (PyErr_Occurred()) return NULL
;
1312 } _resultobj
= Py_BuildValue("i",_result
);
1316 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1317 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1318 PyObject
* _resultobj
;
1320 PyObject
* _argo0
= 0;
1321 char *_kwnames
[] = { "self", NULL
};
1324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1334 wxPy_BEGIN_ALLOW_THREADS
;
1335 wxWindow_DestroyChildren(_arg0
);
1337 wxPy_END_ALLOW_THREADS
;
1338 if (PyErr_Occurred()) return NULL
;
1339 } Py_INCREF(Py_None
);
1340 _resultobj
= Py_None
;
1344 #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0))
1345 static PyObject
*_wrap_wxWindow_DragAcceptFiles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1346 PyObject
* _resultobj
;
1349 PyObject
* _argo0
= 0;
1351 char *_kwnames
[] = { "self","accept", NULL
};
1354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_DragAcceptFiles",_kwnames
,&_argo0
,&tempbool1
))
1357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p.");
1363 _arg1
= (bool ) tempbool1
;
1365 wxPy_BEGIN_ALLOW_THREADS
;
1366 wxWindow_DragAcceptFiles(_arg0
,_arg1
);
1368 wxPy_END_ALLOW_THREADS
;
1369 if (PyErr_Occurred()) return NULL
;
1370 } Py_INCREF(Py_None
);
1371 _resultobj
= Py_None
;
1375 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1376 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1377 PyObject
* _resultobj
;
1380 PyObject
* _argo0
= 0;
1382 char *_kwnames
[] = { "self","enable", NULL
};
1385 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1388 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1389 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1390 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1394 _arg1
= (bool ) tempbool1
;
1396 wxPy_BEGIN_ALLOW_THREADS
;
1397 wxWindow_Enable(_arg0
,_arg1
);
1399 wxPy_END_ALLOW_THREADS
;
1400 if (PyErr_Occurred()) return NULL
;
1401 } Py_INCREF(Py_None
);
1402 _resultobj
= Py_None
;
1406 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1407 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1408 PyObject
* _resultobj
;
1412 PyObject
* _argo0
= 0;
1413 char *_kwnames
[] = { "self","id", NULL
};
1416 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1419 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1420 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1421 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1426 wxPy_BEGIN_ALLOW_THREADS
;
1427 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1429 wxPy_END_ALLOW_THREADS
;
1430 if (PyErr_Occurred()) return NULL
;
1431 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1435 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1436 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1437 PyObject
* _resultobj
;
1441 PyObject
* _argo0
= 0;
1442 PyObject
* _obj1
= 0;
1443 char *_kwnames
[] = { "self","name", NULL
};
1446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1456 #if PYTHON_API_VERSION >= 1009
1457 char* tmpPtr
; int tmpSize
;
1458 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1459 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1462 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1464 _arg1
= new wxString(tmpPtr
, tmpSize
);
1466 if (!PyString_Check(_obj1
)) {
1467 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1470 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1474 wxPy_BEGIN_ALLOW_THREADS
;
1475 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1477 wxPy_END_ALLOW_THREADS
;
1478 if (PyErr_Occurred()) return NULL
;
1479 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1487 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1488 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1489 PyObject
* _resultobj
;
1491 PyObject
* _argo0
= 0;
1492 char *_kwnames
[] = { "self", NULL
};
1495 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_kwnames
,&_argo0
))
1498 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1499 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1500 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1505 wxPy_BEGIN_ALLOW_THREADS
;
1506 wxWindow_Fit(_arg0
);
1508 wxPy_END_ALLOW_THREADS
;
1509 if (PyErr_Occurred()) return NULL
;
1510 } Py_INCREF(Py_None
);
1511 _resultobj
= Py_None
;
1515 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1516 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1517 PyObject
* _resultobj
;
1520 PyObject
* _argo0
= 0;
1521 char *_kwnames
[] = { "self", NULL
};
1525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1535 wxPy_BEGIN_ALLOW_THREADS
;
1536 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1538 wxPy_END_ALLOW_THREADS
;
1539 if (PyErr_Occurred()) return NULL
;
1540 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1541 _resultobj
= Py_BuildValue("s",_ptemp
);
1545 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1546 wxWindowList
& list
= self
->GetChildren();
1547 return wxPy_ConvertList(&list
, "wxWindow");
1549 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1550 PyObject
* _resultobj
;
1553 PyObject
* _argo0
= 0;
1554 char *_kwnames
[] = { "self", NULL
};
1557 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1560 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1561 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1562 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1567 wxPy_BEGIN_ALLOW_THREADS
;
1568 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1570 wxPy_END_ALLOW_THREADS
;
1571 if (PyErr_Occurred()) return NULL
;
1573 _resultobj
= _result
;
1578 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1579 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1580 PyObject
* _resultobj
;
1583 PyObject
* _argo0
= 0;
1584 char *_kwnames
[] = { "self", NULL
};
1587 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1590 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1591 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1597 wxPy_BEGIN_ALLOW_THREADS
;
1598 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1600 wxPy_END_ALLOW_THREADS
;
1601 if (PyErr_Occurred()) return NULL
;
1602 } _resultobj
= Py_BuildValue("i",_result
);
1606 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1607 static PyObject
*_wrap_wxWindow_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1608 PyObject
* _resultobj
;
1611 PyObject
* _argo0
= 0;
1612 char *_kwnames
[] = { "self", NULL
};
1615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharWidth",_kwnames
,&_argo0
))
1618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1625 wxPy_BEGIN_ALLOW_THREADS
;
1626 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1628 wxPy_END_ALLOW_THREADS
;
1629 if (PyErr_Occurred()) return NULL
;
1630 } _resultobj
= Py_BuildValue("i",_result
);
1634 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1635 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1636 PyObject
* _resultobj
;
1642 PyObject
* _argo0
= 0;
1643 char *_kwnames
[] = { "self", NULL
};
1652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_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_GetClientSizeTuple. Expected _wxWindow_p.");
1662 wxPy_BEGIN_ALLOW_THREADS
;
1663 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1665 wxPy_END_ALLOW_THREADS
;
1666 if (PyErr_Occurred()) return NULL
;
1667 } Py_INCREF(Py_None
);
1668 _resultobj
= Py_None
;
1671 o
= PyInt_FromLong((long) (*_arg1
));
1672 _resultobj
= t_output_helper(_resultobj
, o
);
1676 o
= PyInt_FromLong((long) (*_arg2
));
1677 _resultobj
= t_output_helper(_resultobj
, o
);
1682 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1683 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1684 PyObject
* _resultobj
;
1687 PyObject
* _argo0
= 0;
1688 char *_kwnames
[] = { "self", NULL
};
1692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1702 wxPy_BEGIN_ALLOW_THREADS
;
1703 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1705 wxPy_END_ALLOW_THREADS
;
1706 if (PyErr_Occurred()) return NULL
;
1707 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1708 _resultobj
= Py_BuildValue("s",_ptemp
);
1712 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1713 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1714 PyObject
* _resultobj
;
1715 wxLayoutConstraints
* _result
;
1717 PyObject
* _argo0
= 0;
1718 char *_kwnames
[] = { "self", NULL
};
1722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1732 wxPy_BEGIN_ALLOW_THREADS
;
1733 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1735 wxPy_END_ALLOW_THREADS
;
1736 if (PyErr_Occurred()) return NULL
;
1738 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1739 _resultobj
= Py_BuildValue("s",_ptemp
);
1742 _resultobj
= Py_None
;
1747 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1748 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1749 PyObject
* _resultobj
;
1750 wxEvtHandler
* _result
;
1752 PyObject
* _argo0
= 0;
1753 char *_kwnames
[] = { "self", NULL
};
1756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1766 wxPy_BEGIN_ALLOW_THREADS
;
1767 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1769 wxPy_END_ALLOW_THREADS
;
1770 if (PyErr_Occurred()) return NULL
;
1771 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1775 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1776 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1777 PyObject
* _resultobj
;
1780 PyObject
* _argo0
= 0;
1781 char *_kwnames
[] = { "self", NULL
};
1785 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_kwnames
,&_argo0
))
1788 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1789 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1790 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1795 wxPy_BEGIN_ALLOW_THREADS
;
1796 wxFont
& _result_ref
= wxWindow_GetFont(_arg0
);
1797 _result
= (wxFont
*) &_result_ref
;
1799 wxPy_END_ALLOW_THREADS
;
1800 if (PyErr_Occurred()) return NULL
;
1802 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
1803 _resultobj
= Py_BuildValue("s",_ptemp
);
1806 _resultobj
= Py_None
;
1811 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1812 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1813 PyObject
* _resultobj
;
1816 PyObject
* _argo0
= 0;
1817 char *_kwnames
[] = { "self", NULL
};
1821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1831 wxPy_BEGIN_ALLOW_THREADS
;
1832 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1834 wxPy_END_ALLOW_THREADS
;
1835 if (PyErr_Occurred()) return NULL
;
1836 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1837 _resultobj
= Py_BuildValue("s",_ptemp
);
1841 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1842 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1843 PyObject
* _resultobj
;
1846 PyObject
* _argo0
= 0;
1847 char *_kwnames
[] = { "self", NULL
};
1850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_kwnames
,&_argo0
))
1853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1860 wxPy_BEGIN_ALLOW_THREADS
;
1861 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1863 wxPy_END_ALLOW_THREADS
;
1864 if (PyErr_Occurred()) return NULL
;
1865 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1869 static long wxWindow_GetHandle(wxWindow
*self
) {
1870 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1872 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1873 PyObject
* _resultobj
;
1876 PyObject
* _argo0
= 0;
1877 char *_kwnames
[] = { "self", NULL
};
1880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_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_GetHandle. Expected _wxWindow_p.");
1890 wxPy_BEGIN_ALLOW_THREADS
;
1891 _result
= (long )wxWindow_GetHandle(_arg0
);
1893 wxPy_END_ALLOW_THREADS
;
1894 if (PyErr_Occurred()) return NULL
;
1895 } _resultobj
= Py_BuildValue("l",_result
);
1899 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1900 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1901 PyObject
* _resultobj
;
1904 PyObject
* _argo0
= 0;
1905 char *_kwnames
[] = { "self", NULL
};
1908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
1911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
1918 wxPy_BEGIN_ALLOW_THREADS
;
1919 _result
= (int )wxWindow_GetId(_arg0
);
1921 wxPy_END_ALLOW_THREADS
;
1922 if (PyErr_Occurred()) return NULL
;
1923 } _resultobj
= Py_BuildValue("i",_result
);
1927 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1928 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1929 PyObject
* _resultobj
;
1932 PyObject
* _argo0
= 0;
1933 char *_kwnames
[] = { "self", NULL
};
1936 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
1939 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1940 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
1946 wxPy_BEGIN_ALLOW_THREADS
;
1947 _result
= new wxString (wxWindow_GetLabel(_arg0
));
1949 wxPy_END_ALLOW_THREADS
;
1950 if (PyErr_Occurred()) return NULL
;
1952 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1960 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1961 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1962 PyObject
* _resultobj
;
1965 PyObject
* _argo0
= 0;
1966 PyObject
* _obj1
= 0;
1967 char *_kwnames
[] = { "self","label", NULL
};
1970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
1973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
1980 #if PYTHON_API_VERSION >= 1009
1981 char* tmpPtr
; int tmpSize
;
1982 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1983 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1986 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1988 _arg1
= new wxString(tmpPtr
, tmpSize
);
1990 if (!PyString_Check(_obj1
)) {
1991 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1994 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1998 wxPy_BEGIN_ALLOW_THREADS
;
1999 wxWindow_SetLabel(_arg0
,*_arg1
);
2001 wxPy_END_ALLOW_THREADS
;
2002 if (PyErr_Occurred()) return NULL
;
2003 } Py_INCREF(Py_None
);
2004 _resultobj
= Py_None
;
2012 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2013 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2014 PyObject
* _resultobj
;
2017 PyObject
* _argo0
= 0;
2018 char *_kwnames
[] = { "self", NULL
};
2021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2031 wxPy_BEGIN_ALLOW_THREADS
;
2032 _result
= new wxString (wxWindow_GetName(_arg0
));
2034 wxPy_END_ALLOW_THREADS
;
2035 if (PyErr_Occurred()) return NULL
;
2037 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2045 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2046 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2047 PyObject
* _resultobj
;
2050 PyObject
* _argo0
= 0;
2051 char *_kwnames
[] = { "self", NULL
};
2054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2064 wxPy_BEGIN_ALLOW_THREADS
;
2065 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2067 wxPy_END_ALLOW_THREADS
;
2068 if (PyErr_Occurred()) return NULL
;
2069 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2073 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2074 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2075 PyObject
* _resultobj
;
2081 PyObject
* _argo0
= 0;
2082 char *_kwnames
[] = { "self", NULL
};
2091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2101 wxPy_BEGIN_ALLOW_THREADS
;
2102 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2104 wxPy_END_ALLOW_THREADS
;
2105 if (PyErr_Occurred()) return NULL
;
2106 } Py_INCREF(Py_None
);
2107 _resultobj
= Py_None
;
2110 o
= PyInt_FromLong((long) (*_arg1
));
2111 _resultobj
= t_output_helper(_resultobj
, o
);
2115 o
= PyInt_FromLong((long) (*_arg2
));
2116 _resultobj
= t_output_helper(_resultobj
, o
);
2121 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2122 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2123 PyObject
* _resultobj
;
2126 PyObject
* _argo0
= 0;
2127 char *_kwnames
[] = { "self", NULL
};
2131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2141 wxPy_BEGIN_ALLOW_THREADS
;
2142 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2144 wxPy_END_ALLOW_THREADS
;
2145 if (PyErr_Occurred()) return NULL
;
2146 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2147 _resultobj
= Py_BuildValue("s",_ptemp
);
2151 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2152 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2153 PyObject
* _resultobj
;
2156 PyObject
* _argo0
= 0;
2157 char *_kwnames
[] = { "self", NULL
};
2161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2171 wxPy_BEGIN_ALLOW_THREADS
;
2172 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2174 wxPy_END_ALLOW_THREADS
;
2175 if (PyErr_Occurred()) return NULL
;
2176 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2177 _resultobj
= Py_BuildValue("s",_ptemp
);
2181 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2182 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2183 PyObject
* _resultobj
;
2187 PyObject
* _argo0
= 0;
2188 char *_kwnames
[] = { "self","orientation", NULL
};
2191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2201 wxPy_BEGIN_ALLOW_THREADS
;
2202 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2204 wxPy_END_ALLOW_THREADS
;
2205 if (PyErr_Occurred()) return NULL
;
2206 } _resultobj
= Py_BuildValue("i",_result
);
2210 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2211 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2212 PyObject
* _resultobj
;
2216 PyObject
* _argo0
= 0;
2217 char *_kwnames
[] = { "self","orientation", NULL
};
2220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
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_GetScrollPos. Expected _wxWindow_p.");
2230 wxPy_BEGIN_ALLOW_THREADS
;
2231 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2233 wxPy_END_ALLOW_THREADS
;
2234 if (PyErr_Occurred()) return NULL
;
2235 } _resultobj
= Py_BuildValue("i",_result
);
2239 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2240 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2241 PyObject
* _resultobj
;
2245 PyObject
* _argo0
= 0;
2246 char *_kwnames
[] = { "self","orientation", NULL
};
2249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2252 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2253 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2259 wxPy_BEGIN_ALLOW_THREADS
;
2260 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2262 wxPy_END_ALLOW_THREADS
;
2263 if (PyErr_Occurred()) return NULL
;
2264 } _resultobj
= Py_BuildValue("i",_result
);
2268 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2269 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2270 PyObject
* _resultobj
;
2276 PyObject
* _argo0
= 0;
2277 char *_kwnames
[] = { "self", NULL
};
2286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2296 wxPy_BEGIN_ALLOW_THREADS
;
2297 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2299 wxPy_END_ALLOW_THREADS
;
2300 if (PyErr_Occurred()) return NULL
;
2301 } Py_INCREF(Py_None
);
2302 _resultobj
= Py_None
;
2305 o
= PyInt_FromLong((long) (*_arg1
));
2306 _resultobj
= t_output_helper(_resultobj
, o
);
2310 o
= PyInt_FromLong((long) (*_arg2
));
2311 _resultobj
= t_output_helper(_resultobj
, o
);
2316 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2317 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2318 PyObject
* _resultobj
;
2321 PyObject
* _argo0
= 0;
2322 char *_kwnames
[] = { "self", NULL
};
2326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2336 wxPy_BEGIN_ALLOW_THREADS
;
2337 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2339 wxPy_END_ALLOW_THREADS
;
2340 if (PyErr_Occurred()) return NULL
;
2341 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2342 _resultobj
= Py_BuildValue("s",_ptemp
);
2346 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2347 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2348 PyObject
* _resultobj
;
2355 PyObject
* _argo0
= 0;
2356 PyObject
* _obj1
= 0;
2357 char *_kwnames
[] = { "self","string", NULL
};
2366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2376 #if PYTHON_API_VERSION >= 1009
2377 char* tmpPtr
; int tmpSize
;
2378 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2379 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2382 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2384 _arg1
= new wxString(tmpPtr
, tmpSize
);
2386 if (!PyString_Check(_obj1
)) {
2387 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2390 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2394 wxPy_BEGIN_ALLOW_THREADS
;
2395 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2397 wxPy_END_ALLOW_THREADS
;
2398 if (PyErr_Occurred()) return NULL
;
2399 } Py_INCREF(Py_None
);
2400 _resultobj
= Py_None
;
2403 o
= PyInt_FromLong((long) (*_arg2
));
2404 _resultobj
= t_output_helper(_resultobj
, o
);
2408 o
= PyInt_FromLong((long) (*_arg3
));
2409 _resultobj
= t_output_helper(_resultobj
, o
);
2418 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2419 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2420 PyObject
* _resultobj
;
2431 wxFont
* _arg6
= (wxFont
*) NULL
;
2432 PyObject
* _argo0
= 0;
2433 PyObject
* _obj1
= 0;
2434 PyObject
* _argo6
= 0;
2435 char *_kwnames
[] = { "self","string","font", NULL
};
2450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2460 #if PYTHON_API_VERSION >= 1009
2461 char* tmpPtr
; int tmpSize
;
2462 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2463 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2466 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2468 _arg1
= new wxString(tmpPtr
, tmpSize
);
2470 if (!PyString_Check(_obj1
)) {
2471 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2474 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2478 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2479 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2485 wxPy_BEGIN_ALLOW_THREADS
;
2486 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2488 wxPy_END_ALLOW_THREADS
;
2489 if (PyErr_Occurred()) return NULL
;
2490 } Py_INCREF(Py_None
);
2491 _resultobj
= Py_None
;
2494 o
= PyInt_FromLong((long) (*_arg2
));
2495 _resultobj
= t_output_helper(_resultobj
, o
);
2499 o
= PyInt_FromLong((long) (*_arg3
));
2500 _resultobj
= t_output_helper(_resultobj
, o
);
2504 o
= PyInt_FromLong((long) (*_arg4
));
2505 _resultobj
= t_output_helper(_resultobj
, o
);
2509 o
= PyInt_FromLong((long) (*_arg5
));
2510 _resultobj
= t_output_helper(_resultobj
, o
);
2519 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2520 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2521 PyObject
* _resultobj
;
2524 PyObject
* _argo0
= 0;
2525 char *_kwnames
[] = { "self", NULL
};
2528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2531 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2532 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2533 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2538 wxPy_BEGIN_ALLOW_THREADS
;
2539 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2541 wxPy_END_ALLOW_THREADS
;
2542 if (PyErr_Occurred()) return NULL
;
2544 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2552 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2553 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2554 PyObject
* _resultobj
;
2557 PyObject
* _argo0
= 0;
2558 char *_kwnames
[] = { "self", NULL
};
2562 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2565 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2566 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2567 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2572 wxPy_BEGIN_ALLOW_THREADS
;
2573 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2575 wxPy_END_ALLOW_THREADS
;
2576 if (PyErr_Occurred()) return NULL
;
2577 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2578 _resultobj
= Py_BuildValue("s",_ptemp
);
2582 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2583 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2584 PyObject
* _resultobj
;
2587 PyObject
* _argo0
= 0;
2588 char *_kwnames
[] = { "self", NULL
};
2591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2594 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2595 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2596 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2601 wxPy_BEGIN_ALLOW_THREADS
;
2602 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2604 wxPy_END_ALLOW_THREADS
;
2605 if (PyErr_Occurred()) return NULL
;
2606 } _resultobj
= Py_BuildValue("l",_result
);
2610 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2611 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2612 PyObject
* _resultobj
;
2615 PyObject
* _argo0
= 0;
2616 char *_kwnames
[] = { "self","style", NULL
};
2619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2629 wxPy_BEGIN_ALLOW_THREADS
;
2630 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2632 wxPy_END_ALLOW_THREADS
;
2633 if (PyErr_Occurred()) return NULL
;
2634 } Py_INCREF(Py_None
);
2635 _resultobj
= Py_None
;
2639 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2640 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2641 PyObject
* _resultobj
;
2644 PyObject
* _argo0
= 0;
2645 char *_kwnames
[] = { "self","style", NULL
};
2648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
2651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2658 wxPy_BEGIN_ALLOW_THREADS
;
2659 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2661 wxPy_END_ALLOW_THREADS
;
2662 if (PyErr_Occurred()) return NULL
;
2663 } Py_INCREF(Py_None
);
2664 _resultobj
= Py_None
;
2668 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2669 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2670 PyObject
* _resultobj
;
2673 PyObject
* _argo0
= 0;
2674 char *_kwnames
[] = { "self", NULL
};
2677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
2680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2687 wxPy_BEGIN_ALLOW_THREADS
;
2688 _result
= (bool )wxWindow_Hide(_arg0
);
2690 wxPy_END_ALLOW_THREADS
;
2691 if (PyErr_Occurred()) return NULL
;
2692 } _resultobj
= Py_BuildValue("i",_result
);
2696 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2697 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2698 PyObject
* _resultobj
;
2700 PyObject
* _argo0
= 0;
2701 char *_kwnames
[] = { "self", NULL
};
2704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2707 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2708 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2709 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2714 wxPy_BEGIN_ALLOW_THREADS
;
2715 wxWindow_InitDialog(_arg0
);
2717 wxPy_END_ALLOW_THREADS
;
2718 if (PyErr_Occurred()) return NULL
;
2719 } Py_INCREF(Py_None
);
2720 _resultobj
= Py_None
;
2724 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2725 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2726 PyObject
* _resultobj
;
2729 PyObject
* _argo0
= 0;
2730 char *_kwnames
[] = { "self", NULL
};
2733 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2736 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2737 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2743 wxPy_BEGIN_ALLOW_THREADS
;
2744 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2746 wxPy_END_ALLOW_THREADS
;
2747 if (PyErr_Occurred()) return NULL
;
2748 } _resultobj
= Py_BuildValue("i",_result
);
2752 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2753 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2754 PyObject
* _resultobj
;
2759 int _arg3
= (int ) 0;
2760 int _arg4
= (int ) 0;
2761 PyObject
* _argo0
= 0;
2762 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2775 wxPy_BEGIN_ALLOW_THREADS
;
2776 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2778 wxPy_END_ALLOW_THREADS
;
2779 if (PyErr_Occurred()) return NULL
;
2780 } _resultobj
= Py_BuildValue("i",_result
);
2784 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2785 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2786 PyObject
* _resultobj
;
2790 PyObject
* _argo0
= 0;
2792 PyObject
* _obj1
= 0;
2793 char *_kwnames
[] = { "self","pt", NULL
};
2796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2807 if (! wxPoint_helper(_obj1
, &_arg1
))
2811 wxPy_BEGIN_ALLOW_THREADS
;
2812 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2814 wxPy_END_ALLOW_THREADS
;
2815 if (PyErr_Occurred()) return NULL
;
2816 } _resultobj
= Py_BuildValue("i",_result
);
2820 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2821 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2822 PyObject
* _resultobj
;
2826 PyObject
* _argo0
= 0;
2828 PyObject
* _obj1
= 0;
2829 char *_kwnames
[] = { "self","rect", NULL
};
2832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2843 if (! wxRect_helper(_obj1
, &_arg1
))
2847 wxPy_BEGIN_ALLOW_THREADS
;
2848 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2850 wxPy_END_ALLOW_THREADS
;
2851 if (PyErr_Occurred()) return NULL
;
2852 } _resultobj
= Py_BuildValue("i",_result
);
2856 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2857 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2858 PyObject
* _resultobj
;
2861 PyObject
* _argo0
= 0;
2862 char *_kwnames
[] = { "self", NULL
};
2865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
2868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2875 wxPy_BEGIN_ALLOW_THREADS
;
2876 _result
= (bool )wxWindow_IsRetained(_arg0
);
2878 wxPy_END_ALLOW_THREADS
;
2879 if (PyErr_Occurred()) return NULL
;
2880 } _resultobj
= Py_BuildValue("i",_result
);
2884 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2885 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2886 PyObject
* _resultobj
;
2889 PyObject
* _argo0
= 0;
2890 char *_kwnames
[] = { "self", NULL
};
2893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
2896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2903 wxPy_BEGIN_ALLOW_THREADS
;
2904 _result
= (bool )wxWindow_IsShown(_arg0
);
2906 wxPy_END_ALLOW_THREADS
;
2907 if (PyErr_Occurred()) return NULL
;
2908 } _resultobj
= Py_BuildValue("i",_result
);
2912 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
2913 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2914 PyObject
* _resultobj
;
2917 PyObject
* _argo0
= 0;
2918 char *_kwnames
[] = { "self", NULL
};
2921 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
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_IsTopLevel. Expected _wxWindow_p.");
2931 wxPy_BEGIN_ALLOW_THREADS
;
2932 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
2934 wxPy_END_ALLOW_THREADS
;
2935 if (PyErr_Occurred()) return NULL
;
2936 } _resultobj
= Py_BuildValue("i",_result
);
2940 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
2941 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2942 PyObject
* _resultobj
;
2944 PyObject
* _argo0
= 0;
2945 char *_kwnames
[] = { "self", NULL
};
2948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
2951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
2958 wxPy_BEGIN_ALLOW_THREADS
;
2959 wxWindow_Layout(_arg0
);
2961 wxPy_END_ALLOW_THREADS
;
2962 if (PyErr_Occurred()) return NULL
;
2963 } Py_INCREF(Py_None
);
2964 _resultobj
= Py_None
;
2968 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
2969 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2970 PyObject
* _resultobj
;
2975 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
2976 PyObject
* _argo0
= 0;
2977 PyObject
* _argo1
= 0;
2978 PyObject
* _obj2
= 0;
2979 PyObject
* _argo3
= 0;
2980 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
2983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
2986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
2993 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2994 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
2995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3000 #if PYTHON_API_VERSION >= 1009
3001 char* tmpPtr
; int tmpSize
;
3002 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3003 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3006 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3008 _arg2
= new wxString(tmpPtr
, tmpSize
);
3010 if (!PyString_Check(_obj2
)) {
3011 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3014 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3018 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3019 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3025 wxPy_BEGIN_ALLOW_THREADS
;
3026 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3028 wxPy_END_ALLOW_THREADS
;
3029 if (PyErr_Occurred()) return NULL
;
3030 } _resultobj
= Py_BuildValue("i",_result
);
3038 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3039 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3040 PyObject
* _resultobj
;
3042 PyObject
* _argo0
= 0;
3043 char *_kwnames
[] = { "self", NULL
};
3046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3056 wxPy_BEGIN_ALLOW_THREADS
;
3057 wxWindow_Lower(_arg0
);
3059 wxPy_END_ALLOW_THREADS
;
3060 if (PyErr_Occurred()) return NULL
;
3061 } Py_INCREF(Py_None
);
3062 _resultobj
= Py_None
;
3066 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3067 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3068 PyObject
* _resultobj
;
3071 PyObject
* _argo0
= 0;
3073 char *_kwnames
[] = { "self","flag", NULL
};
3076 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3079 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3080 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3081 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3085 _arg1
= (bool ) tempbool1
;
3087 wxPy_BEGIN_ALLOW_THREADS
;
3088 wxWindow_MakeModal(_arg0
,_arg1
);
3090 wxPy_END_ALLOW_THREADS
;
3091 if (PyErr_Occurred()) return NULL
;
3092 } Py_INCREF(Py_None
);
3093 _resultobj
= Py_None
;
3097 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3098 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3099 PyObject
* _resultobj
;
3103 PyObject
* _argo0
= 0;
3104 char *_kwnames
[] = { "self","x","y", NULL
};
3107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3117 wxPy_BEGIN_ALLOW_THREADS
;
3118 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3120 wxPy_END_ALLOW_THREADS
;
3121 if (PyErr_Occurred()) return NULL
;
3122 } Py_INCREF(Py_None
);
3123 _resultobj
= Py_None
;
3127 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3128 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3129 PyObject
* _resultobj
;
3132 PyObject
* _argo0
= 0;
3134 PyObject
* _obj1
= 0;
3135 char *_kwnames
[] = { "self","point", NULL
};
3138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3149 if (! wxPoint_helper(_obj1
, &_arg1
))
3153 wxPy_BEGIN_ALLOW_THREADS
;
3154 wxWindow_Move(_arg0
,*_arg1
);
3156 wxPy_END_ALLOW_THREADS
;
3157 if (PyErr_Occurred()) return NULL
;
3158 } Py_INCREF(Py_None
);
3159 _resultobj
= Py_None
;
3163 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3164 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3165 PyObject
* _resultobj
;
3166 wxEvtHandler
* _result
;
3168 bool _arg1
= (bool ) FALSE
;
3169 PyObject
* _argo0
= 0;
3170 int tempbool1
= (int) FALSE
;
3171 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3183 _arg1
= (bool ) tempbool1
;
3185 wxPy_BEGIN_ALLOW_THREADS
;
3186 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3188 wxPy_END_ALLOW_THREADS
;
3189 if (PyErr_Occurred()) return NULL
;
3190 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3194 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3195 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3196 PyObject
* _resultobj
;
3198 wxEvtHandler
* _arg1
;
3199 PyObject
* _argo0
= 0;
3200 PyObject
* _argo1
= 0;
3201 char *_kwnames
[] = { "self","handler", NULL
};
3204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3214 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3215 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3221 wxPy_BEGIN_ALLOW_THREADS
;
3222 wxWindow_PushEventHandler(_arg0
,_arg1
);
3224 wxPy_END_ALLOW_THREADS
;
3225 if (PyErr_Occurred()) return NULL
;
3226 } Py_INCREF(Py_None
);
3227 _resultobj
= Py_None
;
3231 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3232 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3233 PyObject
* _resultobj
;
3239 PyObject
* _argo0
= 0;
3240 PyObject
* _argo1
= 0;
3241 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3254 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3255 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3261 wxPy_BEGIN_ALLOW_THREADS
;
3262 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3264 wxPy_END_ALLOW_THREADS
;
3265 if (PyErr_Occurred()) return NULL
;
3266 } _resultobj
= Py_BuildValue("i",_result
);
3270 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3271 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3272 PyObject
* _resultobj
;
3277 PyObject
* _argo0
= 0;
3278 PyObject
* _argo1
= 0;
3280 PyObject
* _obj2
= 0;
3281 char *_kwnames
[] = { "self","menu","pos", NULL
};
3284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3294 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3295 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3302 if (! wxPoint_helper(_obj2
, &_arg2
))
3306 wxPy_BEGIN_ALLOW_THREADS
;
3307 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3309 wxPy_END_ALLOW_THREADS
;
3310 if (PyErr_Occurred()) return NULL
;
3311 } _resultobj
= Py_BuildValue("i",_result
);
3315 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3316 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3317 PyObject
* _resultobj
;
3319 PyObject
* _argo0
= 0;
3320 char *_kwnames
[] = { "self", NULL
};
3323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3333 wxPy_BEGIN_ALLOW_THREADS
;
3334 wxWindow_Raise(_arg0
);
3336 wxPy_END_ALLOW_THREADS
;
3337 if (PyErr_Occurred()) return NULL
;
3338 } Py_INCREF(Py_None
);
3339 _resultobj
= Py_None
;
3343 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3344 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3345 PyObject
* _resultobj
;
3347 bool _arg1
= (bool ) TRUE
;
3348 wxRect
* _arg2
= (wxRect
*) NULL
;
3349 PyObject
* _argo0
= 0;
3350 int tempbool1
= (int) TRUE
;
3352 PyObject
* _obj2
= 0;
3353 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3365 _arg1
= (bool ) tempbool1
;
3369 if (! wxRect_helper(_obj2
, &_arg2
))
3373 wxPy_BEGIN_ALLOW_THREADS
;
3374 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3376 wxPy_END_ALLOW_THREADS
;
3377 if (PyErr_Occurred()) return NULL
;
3378 } Py_INCREF(Py_None
);
3379 _resultobj
= Py_None
;
3383 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3384 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3385 PyObject
* _resultobj
;
3387 PyObject
* _argo0
= 0;
3388 char *_kwnames
[] = { "self", NULL
};
3391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3401 wxPy_BEGIN_ALLOW_THREADS
;
3402 wxWindow_ReleaseMouse(_arg0
);
3404 wxPy_END_ALLOW_THREADS
;
3405 if (PyErr_Occurred()) return NULL
;
3406 } Py_INCREF(Py_None
);
3407 _resultobj
= Py_None
;
3411 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3412 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3413 PyObject
* _resultobj
;
3416 PyObject
* _argo0
= 0;
3417 PyObject
* _argo1
= 0;
3418 char *_kwnames
[] = { "self","child", NULL
};
3421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3431 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3432 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3438 wxPy_BEGIN_ALLOW_THREADS
;
3439 wxWindow_RemoveChild(_arg0
,_arg1
);
3441 wxPy_END_ALLOW_THREADS
;
3442 if (PyErr_Occurred()) return NULL
;
3443 } Py_INCREF(Py_None
);
3444 _resultobj
= Py_None
;
3448 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3449 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3450 PyObject
* _resultobj
;
3454 PyObject
* _argo0
= 0;
3455 PyObject
* _argo1
= 0;
3456 char *_kwnames
[] = { "self","newParent", NULL
};
3459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3469 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3470 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3471 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3476 wxPy_BEGIN_ALLOW_THREADS
;
3477 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3479 wxPy_END_ALLOW_THREADS
;
3480 if (PyErr_Occurred()) return NULL
;
3481 } _resultobj
= Py_BuildValue("i",_result
);
3485 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3486 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3487 PyObject
* _resultobj
;
3491 PyObject
* _argo0
= 0;
3493 PyObject
* _obj1
= 0;
3495 PyObject
* _obj2
= 0;
3496 char *_kwnames
[] = { "self","x","y", NULL
};
3499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3509 temp
= (int) PyInt_AsLong(_obj1
);
3513 temp0
= (int) PyInt_AsLong(_obj2
);
3517 wxPy_BEGIN_ALLOW_THREADS
;
3518 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3520 wxPy_END_ALLOW_THREADS
;
3521 if (PyErr_Occurred()) return NULL
;
3522 } Py_INCREF(Py_None
);
3523 _resultobj
= Py_None
;
3526 o
= PyInt_FromLong((long) (*_arg1
));
3527 _resultobj
= t_output_helper(_resultobj
, o
);
3531 o
= PyInt_FromLong((long) (*_arg2
));
3532 _resultobj
= t_output_helper(_resultobj
, o
);
3537 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3538 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3539 PyObject
* _resultobj
;
3543 PyObject
* _argo0
= 0;
3545 PyObject
* _obj1
= 0;
3546 char *_kwnames
[] = { "self","pt", NULL
};
3550 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3553 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3554 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3555 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3561 if (! wxPoint_helper(_obj1
, &_arg1
))
3565 wxPy_BEGIN_ALLOW_THREADS
;
3566 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3568 wxPy_END_ALLOW_THREADS
;
3569 if (PyErr_Occurred()) return NULL
;
3570 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3571 _resultobj
= Py_BuildValue("s",_ptemp
);
3575 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3576 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3577 PyObject
* _resultobj
;
3581 wxRect
* _arg3
= (wxRect
*) NULL
;
3582 PyObject
* _argo0
= 0;
3584 PyObject
* _obj3
= 0;
3585 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3600 if (! wxRect_helper(_obj3
, &_arg3
))
3604 wxPy_BEGIN_ALLOW_THREADS
;
3605 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3607 wxPy_END_ALLOW_THREADS
;
3608 if (PyErr_Occurred()) return NULL
;
3609 } Py_INCREF(Py_None
);
3610 _resultobj
= Py_None
;
3614 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
3615 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3616 PyObject
* _resultobj
;
3618 wxAcceleratorTable
* _arg1
;
3619 PyObject
* _argo0
= 0;
3620 PyObject
* _argo1
= 0;
3621 char *_kwnames
[] = { "self","accel", NULL
};
3624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
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_SetAcceleratorTable. Expected _wxWindow_p.");
3634 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3635 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
3636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
3641 wxPy_BEGIN_ALLOW_THREADS
;
3642 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
3644 wxPy_END_ALLOW_THREADS
;
3645 if (PyErr_Occurred()) return NULL
;
3646 } Py_INCREF(Py_None
);
3647 _resultobj
= Py_None
;
3651 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3652 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3653 PyObject
* _resultobj
;
3656 PyObject
* _argo0
= 0;
3658 char *_kwnames
[] = { "self","autoLayout", NULL
};
3661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3670 _arg1
= (bool ) tempbool1
;
3672 wxPy_BEGIN_ALLOW_THREADS
;
3673 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3675 wxPy_END_ALLOW_THREADS
;
3676 if (PyErr_Occurred()) return NULL
;
3677 } Py_INCREF(Py_None
);
3678 _resultobj
= Py_None
;
3682 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3683 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3684 PyObject
* _resultobj
;
3687 PyObject
* _argo0
= 0;
3688 char *_kwnames
[] = { "self", NULL
};
3691 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3694 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3695 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3696 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3701 wxPy_BEGIN_ALLOW_THREADS
;
3702 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3704 wxPy_END_ALLOW_THREADS
;
3705 if (PyErr_Occurred()) return NULL
;
3706 } _resultobj
= Py_BuildValue("i",_result
);
3710 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3711 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3712 PyObject
* _resultobj
;
3715 PyObject
* _argo0
= 0;
3717 PyObject
* _obj1
= 0;
3718 char *_kwnames
[] = { "self","colour", NULL
};
3721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3732 if (! wxColour_helper(_obj1
, &_arg1
))
3736 wxPy_BEGIN_ALLOW_THREADS
;
3737 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3739 wxPy_END_ALLOW_THREADS
;
3740 if (PyErr_Occurred()) return NULL
;
3741 } Py_INCREF(Py_None
);
3742 _resultobj
= Py_None
;
3746 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3747 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3748 PyObject
* _resultobj
;
3750 wxLayoutConstraints
* _arg1
;
3751 PyObject
* _argo0
= 0;
3752 PyObject
* _argo1
= 0;
3753 char *_kwnames
[] = { "self","constraints", NULL
};
3756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3766 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3767 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3773 wxPy_BEGIN_ALLOW_THREADS
;
3774 wxWindow_SetConstraints(_arg0
,_arg1
);
3776 wxPy_END_ALLOW_THREADS
;
3777 if (PyErr_Occurred()) return NULL
;
3778 } Py_INCREF(Py_None
);
3779 _resultobj
= Py_None
;
3783 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3784 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3785 PyObject
* _resultobj
;
3787 wxLayoutConstraints
* _arg1
;
3788 PyObject
* _argo0
= 0;
3789 PyObject
* _argo1
= 0;
3790 char *_kwnames
[] = { "self","constraints", NULL
};
3793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3803 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3804 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3810 wxPy_BEGIN_ALLOW_THREADS
;
3811 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3813 wxPy_END_ALLOW_THREADS
;
3814 if (PyErr_Occurred()) return NULL
;
3815 } Py_INCREF(Py_None
);
3816 _resultobj
= Py_None
;
3820 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3821 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3822 PyObject
* _resultobj
;
3824 PyObject
* _argo0
= 0;
3825 char *_kwnames
[] = { "self", NULL
};
3828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3838 wxPy_BEGIN_ALLOW_THREADS
;
3839 wxWindow_SetFocus(_arg0
);
3841 wxPy_END_ALLOW_THREADS
;
3842 if (PyErr_Occurred()) return NULL
;
3843 } Py_INCREF(Py_None
);
3844 _resultobj
= Py_None
;
3848 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3849 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3850 PyObject
* _resultobj
;
3853 PyObject
* _argo0
= 0;
3854 char *_kwnames
[] = { "self", NULL
};
3857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3867 wxPy_BEGIN_ALLOW_THREADS
;
3868 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3870 wxPy_END_ALLOW_THREADS
;
3871 if (PyErr_Occurred()) return NULL
;
3872 } _resultobj
= Py_BuildValue("i",_result
);
3876 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3877 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3878 PyObject
* _resultobj
;
3881 PyObject
* _argo0
= 0;
3882 PyObject
* _argo1
= 0;
3883 char *_kwnames
[] = { "self","font", NULL
};
3886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
3889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3896 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3897 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3903 wxPy_BEGIN_ALLOW_THREADS
;
3904 wxWindow_SetFont(_arg0
,*_arg1
);
3906 wxPy_END_ALLOW_THREADS
;
3907 if (PyErr_Occurred()) return NULL
;
3908 } Py_INCREF(Py_None
);
3909 _resultobj
= Py_None
;
3913 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3914 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3915 PyObject
* _resultobj
;
3918 PyObject
* _argo0
= 0;
3920 PyObject
* _obj1
= 0;
3921 char *_kwnames
[] = { "self","colour", NULL
};
3924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
3927 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3928 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3929 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
3935 if (! wxColour_helper(_obj1
, &_arg1
))
3939 wxPy_BEGIN_ALLOW_THREADS
;
3940 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
3942 wxPy_END_ALLOW_THREADS
;
3943 if (PyErr_Occurred()) return NULL
;
3944 } Py_INCREF(Py_None
);
3945 _resultobj
= Py_None
;
3949 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3950 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3951 PyObject
* _resultobj
;
3954 PyObject
* _argo0
= 0;
3955 char *_kwnames
[] = { "self","id", NULL
};
3958 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
3961 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3962 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
3968 wxPy_BEGIN_ALLOW_THREADS
;
3969 wxWindow_SetId(_arg0
,_arg1
);
3971 wxPy_END_ALLOW_THREADS
;
3972 if (PyErr_Occurred()) return NULL
;
3973 } Py_INCREF(Py_None
);
3974 _resultobj
= Py_None
;
3978 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
3979 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3980 PyObject
* _resultobj
;
3983 PyObject
* _argo0
= 0;
3984 PyObject
* _obj1
= 0;
3985 char *_kwnames
[] = { "self","name", NULL
};
3988 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
3991 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3992 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3993 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
3998 #if PYTHON_API_VERSION >= 1009
3999 char* tmpPtr
; int tmpSize
;
4000 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4001 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4004 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4006 _arg1
= new wxString(tmpPtr
, tmpSize
);
4008 if (!PyString_Check(_obj1
)) {
4009 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4012 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4016 wxPy_BEGIN_ALLOW_THREADS
;
4017 wxWindow_SetName(_arg0
,*_arg1
);
4019 wxPy_END_ALLOW_THREADS
;
4020 if (PyErr_Occurred()) return NULL
;
4021 } Py_INCREF(Py_None
);
4022 _resultobj
= Py_None
;
4030 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4031 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4032 PyObject
* _resultobj
;
4038 int _arg5
= (int ) TRUE
;
4039 PyObject
* _argo0
= 0;
4040 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4053 wxPy_BEGIN_ALLOW_THREADS
;
4054 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4056 wxPy_END_ALLOW_THREADS
;
4057 if (PyErr_Occurred()) return NULL
;
4058 } Py_INCREF(Py_None
);
4059 _resultobj
= Py_None
;
4063 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4064 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4065 PyObject
* _resultobj
;
4069 bool _arg3
= (bool ) TRUE
;
4070 PyObject
* _argo0
= 0;
4071 int tempbool3
= (int) TRUE
;
4072 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4078 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4079 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4080 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4084 _arg3
= (bool ) tempbool3
;
4086 wxPy_BEGIN_ALLOW_THREADS
;
4087 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4089 wxPy_END_ALLOW_THREADS
;
4090 if (PyErr_Occurred()) return NULL
;
4091 } Py_INCREF(Py_None
);
4092 _resultobj
= Py_None
;
4096 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4097 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4098 PyObject
* _resultobj
;
4104 int _arg5
= (int ) wxSIZE_AUTO
;
4105 PyObject
* _argo0
= 0;
4106 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4119 wxPy_BEGIN_ALLOW_THREADS
;
4120 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4122 wxPy_END_ALLOW_THREADS
;
4123 if (PyErr_Occurred()) return NULL
;
4124 } Py_INCREF(Py_None
);
4125 _resultobj
= Py_None
;
4129 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4130 self
->SetSize(size
);
4132 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4133 PyObject
* _resultobj
;
4136 PyObject
* _argo0
= 0;
4138 PyObject
* _obj1
= 0;
4139 char *_kwnames
[] = { "self","size", NULL
};
4142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4145 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4146 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4153 if (! wxSize_helper(_obj1
, &_arg1
))
4157 wxPy_BEGIN_ALLOW_THREADS
;
4158 wxWindow_SetSize(_arg0
,*_arg1
);
4160 wxPy_END_ALLOW_THREADS
;
4161 if (PyErr_Occurred()) return NULL
;
4162 } Py_INCREF(Py_None
);
4163 _resultobj
= Py_None
;
4167 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4170 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4171 PyObject
* _resultobj
;
4174 PyObject
* _argo0
= 0;
4176 PyObject
* _obj1
= 0;
4177 char *_kwnames
[] = { "self","pos", NULL
};
4180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
4183 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4184 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4191 if (! wxPoint_helper(_obj1
, &_arg1
))
4195 wxPy_BEGIN_ALLOW_THREADS
;
4196 wxWindow_SetPosition(_arg0
,*_arg1
);
4198 wxPy_END_ALLOW_THREADS
;
4199 if (PyErr_Occurred()) return NULL
;
4200 } Py_INCREF(Py_None
);
4201 _resultobj
= Py_None
;
4205 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4206 self
->SetSize(rect
, sizeFlags
);
4208 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4209 PyObject
* _resultobj
;
4212 int _arg2
= (int ) wxSIZE_AUTO
;
4213 PyObject
* _argo0
= 0;
4215 PyObject
* _obj1
= 0;
4216 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4230 if (! wxRect_helper(_obj1
, &_arg1
))
4234 wxPy_BEGIN_ALLOW_THREADS
;
4235 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4237 wxPy_END_ALLOW_THREADS
;
4238 if (PyErr_Occurred()) return NULL
;
4239 } Py_INCREF(Py_None
);
4240 _resultobj
= Py_None
;
4244 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4245 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4246 PyObject
* _resultobj
;
4248 int _arg1
= (int ) -1;
4249 int _arg2
= (int ) -1;
4250 int _arg3
= (int ) -1;
4251 int _arg4
= (int ) -1;
4252 int _arg5
= (int ) -1;
4253 int _arg6
= (int ) -1;
4254 PyObject
* _argo0
= 0;
4255 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4268 wxPy_BEGIN_ALLOW_THREADS
;
4269 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4271 wxPy_END_ALLOW_THREADS
;
4272 if (PyErr_Occurred()) return NULL
;
4273 } Py_INCREF(Py_None
);
4274 _resultobj
= Py_None
;
4278 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4279 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4280 PyObject
* _resultobj
;
4284 PyObject
* _argo0
= 0;
4285 char *_kwnames
[] = { "self","width","height", NULL
};
4288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4298 wxPy_BEGIN_ALLOW_THREADS
;
4299 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4301 wxPy_END_ALLOW_THREADS
;
4302 if (PyErr_Occurred()) return NULL
;
4303 } Py_INCREF(Py_None
);
4304 _resultobj
= Py_None
;
4308 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4309 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4310 PyObject
* _resultobj
;
4313 PyObject
* _argo0
= 0;
4315 PyObject
* _obj1
= 0;
4316 char *_kwnames
[] = { "self","size", NULL
};
4319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4322 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4323 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4330 if (! wxSize_helper(_obj1
, &_arg1
))
4334 wxPy_BEGIN_ALLOW_THREADS
;
4335 wxWindow_SetClientSize(_arg0
,*_arg1
);
4337 wxPy_END_ALLOW_THREADS
;
4338 if (PyErr_Occurred()) return NULL
;
4339 } Py_INCREF(Py_None
);
4340 _resultobj
= Py_None
;
4344 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4345 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4346 PyObject
* _resultobj
;
4349 PyObject
* _argo0
= 0;
4350 PyObject
* _argo1
= 0;
4351 char *_kwnames
[] = { "self","cursor", NULL
};
4354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
4357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4364 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4365 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4371 wxPy_BEGIN_ALLOW_THREADS
;
4372 wxWindow_SetCursor(_arg0
,*_arg1
);
4374 wxPy_END_ALLOW_THREADS
;
4375 if (PyErr_Occurred()) return NULL
;
4376 } Py_INCREF(Py_None
);
4377 _resultobj
= Py_None
;
4381 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4382 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4383 PyObject
* _resultobj
;
4385 wxEvtHandler
* _arg1
;
4386 PyObject
* _argo0
= 0;
4387 PyObject
* _argo1
= 0;
4388 char *_kwnames
[] = { "self","handler", NULL
};
4391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4401 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4402 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4408 wxPy_BEGIN_ALLOW_THREADS
;
4409 wxWindow_SetEventHandler(_arg0
,_arg1
);
4411 wxPy_END_ALLOW_THREADS
;
4412 if (PyErr_Occurred()) return NULL
;
4413 } Py_INCREF(Py_None
);
4414 _resultobj
= Py_None
;
4418 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4419 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4420 PyObject
* _resultobj
;
4423 PyObject
* _argo0
= 0;
4424 char *_kwnames
[] = { "self","exStyle", NULL
};
4427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4430 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4431 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4432 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4437 wxPy_BEGIN_ALLOW_THREADS
;
4438 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4440 wxPy_END_ALLOW_THREADS
;
4441 if (PyErr_Occurred()) return NULL
;
4442 } Py_INCREF(Py_None
);
4443 _resultobj
= Py_None
;
4447 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4448 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4449 PyObject
* _resultobj
;
4452 PyObject
* _argo0
= 0;
4453 PyObject
* _obj1
= 0;
4454 char *_kwnames
[] = { "self","title", NULL
};
4457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4467 #if PYTHON_API_VERSION >= 1009
4468 char* tmpPtr
; int tmpSize
;
4469 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4470 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4473 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4475 _arg1
= new wxString(tmpPtr
, tmpSize
);
4477 if (!PyString_Check(_obj1
)) {
4478 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4481 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4485 wxPy_BEGIN_ALLOW_THREADS
;
4486 wxWindow_SetTitle(_arg0
,*_arg1
);
4488 wxPy_END_ALLOW_THREADS
;
4489 if (PyErr_Occurred()) return NULL
;
4490 } Py_INCREF(Py_None
);
4491 _resultobj
= Py_None
;
4499 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4500 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4501 PyObject
* _resultobj
;
4505 PyObject
* _argo0
= 0;
4507 char *_kwnames
[] = { "self","show", NULL
};
4510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4519 _arg1
= (bool ) tempbool1
;
4521 wxPy_BEGIN_ALLOW_THREADS
;
4522 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4524 wxPy_END_ALLOW_THREADS
;
4525 if (PyErr_Occurred()) return NULL
;
4526 } _resultobj
= Py_BuildValue("i",_result
);
4530 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4531 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4532 PyObject
* _resultobj
;
4535 PyObject
* _argo0
= 0;
4536 char *_kwnames
[] = { "self", NULL
};
4539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4549 wxPy_BEGIN_ALLOW_THREADS
;
4550 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4552 wxPy_END_ALLOW_THREADS
;
4553 if (PyErr_Occurred()) return NULL
;
4554 } _resultobj
= Py_BuildValue("i",_result
);
4558 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4559 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4560 PyObject
* _resultobj
;
4563 PyObject
* _argo0
= 0;
4564 char *_kwnames
[] = { "self", NULL
};
4567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4577 wxPy_BEGIN_ALLOW_THREADS
;
4578 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4580 wxPy_END_ALLOW_THREADS
;
4581 if (PyErr_Occurred()) return NULL
;
4582 } _resultobj
= Py_BuildValue("i",_result
);
4586 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4587 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4588 PyObject
* _resultobj
;
4591 PyObject
* _argo0
= 0;
4592 char *_kwnames
[] = { "self", NULL
};
4595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4605 wxPy_BEGIN_ALLOW_THREADS
;
4606 _result
= (bool )wxWindow_Validate(_arg0
);
4608 wxPy_END_ALLOW_THREADS
;
4609 if (PyErr_Occurred()) return NULL
;
4610 } _resultobj
= Py_BuildValue("i",_result
);
4614 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4615 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4616 PyObject
* _resultobj
;
4620 PyObject
* _argo0
= 0;
4621 char *_kwnames
[] = { "self","x","y", NULL
};
4624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4627 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4628 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4629 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4634 wxPy_BEGIN_ALLOW_THREADS
;
4635 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4637 wxPy_END_ALLOW_THREADS
;
4638 if (PyErr_Occurred()) return NULL
;
4639 } Py_INCREF(Py_None
);
4640 _resultobj
= Py_None
;
4644 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4645 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4646 PyObject
* _resultobj
;
4650 PyObject
* _argo0
= 0;
4652 PyObject
* _obj1
= 0;
4653 char *_kwnames
[] = { "self","pt", NULL
};
4657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4668 if (! wxPoint_helper(_obj1
, &_arg1
))
4672 wxPy_BEGIN_ALLOW_THREADS
;
4673 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4675 wxPy_END_ALLOW_THREADS
;
4676 if (PyErr_Occurred()) return NULL
;
4677 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4678 _resultobj
= Py_BuildValue("s",_ptemp
);
4682 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4683 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4684 PyObject
* _resultobj
;
4688 PyObject
* _argo0
= 0;
4690 PyObject
* _obj1
= 0;
4691 char *_kwnames
[] = { "self","sz", NULL
};
4695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4706 if (! wxSize_helper(_obj1
, &_arg1
))
4710 wxPy_BEGIN_ALLOW_THREADS
;
4711 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4713 wxPy_END_ALLOW_THREADS
;
4714 if (PyErr_Occurred()) return NULL
;
4715 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4716 _resultobj
= Py_BuildValue("s",_ptemp
);
4720 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4721 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4722 PyObject
* _resultobj
;
4726 PyObject
* _argo0
= 0;
4728 PyObject
* _obj1
= 0;
4729 char *_kwnames
[] = { "self","pt", NULL
};
4733 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4736 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4737 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4744 if (! wxPoint_helper(_obj1
, &_arg1
))
4748 wxPy_BEGIN_ALLOW_THREADS
;
4749 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4751 wxPy_END_ALLOW_THREADS
;
4752 if (PyErr_Occurred()) return NULL
;
4753 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4754 _resultobj
= Py_BuildValue("s",_ptemp
);
4758 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4759 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4760 PyObject
* _resultobj
;
4764 PyObject
* _argo0
= 0;
4766 PyObject
* _obj1
= 0;
4767 char *_kwnames
[] = { "self","sz", NULL
};
4771 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4774 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4775 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4776 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4782 if (! wxSize_helper(_obj1
, &_arg1
))
4786 wxPy_BEGIN_ALLOW_THREADS
;
4787 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4789 wxPy_END_ALLOW_THREADS
;
4790 if (PyErr_Occurred()) return NULL
;
4791 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4792 _resultobj
= Py_BuildValue("s",_ptemp
);
4796 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4797 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4798 PyObject
* _resultobj
;
4801 PyObject
* _argo0
= 0;
4802 PyObject
* _obj1
= 0;
4803 char *_kwnames
[] = { "self","tip", NULL
};
4806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4816 #if PYTHON_API_VERSION >= 1009
4817 char* tmpPtr
; int tmpSize
;
4818 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4819 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4822 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4824 _arg1
= new wxString(tmpPtr
, tmpSize
);
4826 if (!PyString_Check(_obj1
)) {
4827 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4830 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4834 wxPy_BEGIN_ALLOW_THREADS
;
4835 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4837 wxPy_END_ALLOW_THREADS
;
4838 if (PyErr_Occurred()) return NULL
;
4839 } Py_INCREF(Py_None
);
4840 _resultobj
= Py_None
;
4848 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4849 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4850 PyObject
* _resultobj
;
4853 PyObject
* _argo0
= 0;
4854 PyObject
* _argo1
= 0;
4855 char *_kwnames
[] = { "self","tooltip", NULL
};
4858 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4861 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4862 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4863 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4868 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4869 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4875 wxPy_BEGIN_ALLOW_THREADS
;
4876 wxWindow_SetToolTip(_arg0
,_arg1
);
4878 wxPy_END_ALLOW_THREADS
;
4879 if (PyErr_Occurred()) return NULL
;
4880 } Py_INCREF(Py_None
);
4881 _resultobj
= Py_None
;
4885 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4886 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4887 PyObject
* _resultobj
;
4888 wxToolTip
* _result
;
4890 PyObject
* _argo0
= 0;
4891 char *_kwnames
[] = { "self", NULL
};
4894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
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_GetToolTip. Expected _wxWindow_p.");
4904 wxPy_BEGIN_ALLOW_THREADS
;
4905 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
4907 wxPy_END_ALLOW_THREADS
;
4908 if (PyErr_Occurred()) return NULL
;
4909 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4913 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4914 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4915 PyObject
* _resultobj
;
4918 PyObject
* _argo0
= 0;
4919 PyObject
* _argo1
= 0;
4920 char *_kwnames
[] = { "self","sizer", NULL
};
4923 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
4926 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4927 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4928 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4933 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4934 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
4935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4940 wxPy_BEGIN_ALLOW_THREADS
;
4941 wxWindow_SetSizer(_arg0
,_arg1
);
4943 wxPy_END_ALLOW_THREADS
;
4944 if (PyErr_Occurred()) return NULL
;
4945 } Py_INCREF(Py_None
);
4946 _resultobj
= Py_None
;
4950 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
4951 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4952 PyObject
* _resultobj
;
4955 PyObject
* _argo0
= 0;
4956 char *_kwnames
[] = { "self", NULL
};
4959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
4962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
4969 wxPy_BEGIN_ALLOW_THREADS
;
4970 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
4972 wxPy_END_ALLOW_THREADS
;
4973 if (PyErr_Occurred()) return NULL
;
4974 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4978 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
4979 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4980 PyObject
* _resultobj
;
4981 wxValidator
* _result
;
4983 PyObject
* _argo0
= 0;
4984 char *_kwnames
[] = { "self", NULL
};
4987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
4990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
4997 wxPy_BEGIN_ALLOW_THREADS
;
4998 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5000 wxPy_END_ALLOW_THREADS
;
5001 if (PyErr_Occurred()) return NULL
;
5002 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5006 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5007 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5008 PyObject
* _resultobj
;
5010 wxValidator
* _arg1
;
5011 PyObject
* _argo0
= 0;
5012 PyObject
* _argo1
= 0;
5013 char *_kwnames
[] = { "self","validator", NULL
};
5016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5026 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5027 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5028 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5033 wxPy_BEGIN_ALLOW_THREADS
;
5034 wxWindow_SetValidator(_arg0
,*_arg1
);
5036 wxPy_END_ALLOW_THREADS
;
5037 if (PyErr_Occurred()) return NULL
;
5038 } Py_INCREF(Py_None
);
5039 _resultobj
= Py_None
;
5043 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5044 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5045 PyObject
* _resultobj
;
5047 wxDropTarget
* _arg1
;
5048 PyObject
* _argo0
= 0;
5049 PyObject
* _argo1
= 0;
5050 char *_kwnames
[] = { "self","target", NULL
};
5053 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
5056 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5057 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5058 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5063 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5064 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5070 wxPy_BEGIN_ALLOW_THREADS
;
5071 wxWindow_SetDropTarget(_arg0
,_arg1
);
5073 wxPy_END_ALLOW_THREADS
;
5074 if (PyErr_Occurred()) return NULL
;
5075 } Py_INCREF(Py_None
);
5076 _resultobj
= Py_None
;
5080 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5081 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5082 PyObject
* _resultobj
;
5083 wxDropTarget
* _result
;
5085 PyObject
* _argo0
= 0;
5086 char *_kwnames
[] = { "self", NULL
};
5090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5100 wxPy_BEGIN_ALLOW_THREADS
;
5101 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5103 wxPy_END_ALLOW_THREADS
;
5104 if (PyErr_Occurred()) return NULL
;
5106 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5107 _resultobj
= Py_BuildValue("s",_ptemp
);
5110 _resultobj
= Py_None
;
5115 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5116 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5117 PyObject
* _resultobj
;
5120 PyObject
* _argo0
= 0;
5121 char *_kwnames
[] = { "self", NULL
};
5125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5135 wxPy_BEGIN_ALLOW_THREADS
;
5136 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5138 wxPy_END_ALLOW_THREADS
;
5139 if (PyErr_Occurred()) return NULL
;
5140 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5141 _resultobj
= Py_BuildValue("s",_ptemp
);
5145 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5146 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5147 PyObject
* _resultobj
;
5150 PyObject
* _argo0
= 0;
5151 PyObject
* _argo1
= 0;
5152 char *_kwnames
[] = { "self","caret", NULL
};
5155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5165 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5166 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5172 wxPy_BEGIN_ALLOW_THREADS
;
5173 wxWindow_SetCaret(_arg0
,_arg1
);
5175 wxPy_END_ALLOW_THREADS
;
5176 if (PyErr_Occurred()) return NULL
;
5177 } Py_INCREF(Py_None
);
5178 _resultobj
= Py_None
;
5182 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5183 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5184 PyObject
* _resultobj
;
5187 PyObject
* _argo0
= 0;
5188 char *_kwnames
[] = { "self", NULL
};
5192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5195 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5196 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5202 wxPy_BEGIN_ALLOW_THREADS
;
5203 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5205 wxPy_END_ALLOW_THREADS
;
5206 if (PyErr_Occurred()) return NULL
;
5208 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5209 _resultobj
= Py_BuildValue("s",_ptemp
);
5212 _resultobj
= Py_None
;
5217 static void *SwigwxPanelTowxWindow(void *ptr
) {
5220 src
= (wxPanel
*) ptr
;
5221 dest
= (wxWindow
*) src
;
5222 return (void *) dest
;
5225 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5228 src
= (wxPanel
*) ptr
;
5229 dest
= (wxEvtHandler
*) src
;
5230 return (void *) dest
;
5233 static void *SwigwxPanelTowxObject(void *ptr
) {
5236 src
= (wxPanel
*) ptr
;
5237 dest
= (wxObject
*) src
;
5238 return (void *) dest
;
5241 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5242 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5243 PyObject
* _resultobj
;
5247 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5248 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5249 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5250 char * _arg5
= (char *) "panel";
5251 PyObject
* _argo0
= 0;
5253 PyObject
* _obj2
= 0;
5255 PyObject
* _obj3
= 0;
5256 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5272 if (! wxPoint_helper(_obj2
, &_arg2
))
5278 if (! wxSize_helper(_obj3
, &_arg3
))
5282 wxPy_BEGIN_ALLOW_THREADS
;
5283 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5285 wxPy_END_ALLOW_THREADS
;
5286 if (PyErr_Occurred()) return NULL
;
5288 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5289 _resultobj
= Py_BuildValue("s",_ptemp
);
5292 _resultobj
= Py_None
;
5297 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5298 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5299 PyObject
* _resultobj
;
5301 PyObject
* _argo0
= 0;
5302 char *_kwnames
[] = { "self", NULL
};
5305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5315 wxPy_BEGIN_ALLOW_THREADS
;
5316 wxPanel_InitDialog(_arg0
);
5318 wxPy_END_ALLOW_THREADS
;
5319 if (PyErr_Occurred()) return NULL
;
5320 } Py_INCREF(Py_None
);
5321 _resultobj
= Py_None
;
5325 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5326 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5327 PyObject
* _resultobj
;
5330 PyObject
* _argo0
= 0;
5331 char *_kwnames
[] = { "self", NULL
};
5334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
5337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5344 wxPy_BEGIN_ALLOW_THREADS
;
5345 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
5347 wxPy_END_ALLOW_THREADS
;
5348 if (PyErr_Occurred()) return NULL
;
5349 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5353 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5354 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5355 PyObject
* _resultobj
;
5358 PyObject
* _argo0
= 0;
5359 PyObject
* _argo1
= 0;
5360 char *_kwnames
[] = { "self","btn", NULL
};
5363 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
5366 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5367 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5368 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5373 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5374 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
5375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5380 wxPy_BEGIN_ALLOW_THREADS
;
5381 wxPanel_SetDefaultItem(_arg0
,_arg1
);
5383 wxPy_END_ALLOW_THREADS
;
5384 if (PyErr_Occurred()) return NULL
;
5385 } Py_INCREF(Py_None
);
5386 _resultobj
= Py_None
;
5390 static void *SwigwxDialogTowxPanel(void *ptr
) {
5393 src
= (wxDialog
*) ptr
;
5394 dest
= (wxPanel
*) src
;
5395 return (void *) dest
;
5398 static void *SwigwxDialogTowxWindow(void *ptr
) {
5401 src
= (wxDialog
*) ptr
;
5402 dest
= (wxWindow
*) src
;
5403 return (void *) dest
;
5406 static void *SwigwxDialogTowxEvtHandler(void *ptr
) {
5409 src
= (wxDialog
*) ptr
;
5410 dest
= (wxEvtHandler
*) src
;
5411 return (void *) dest
;
5414 static void *SwigwxDialogTowxObject(void *ptr
) {
5417 src
= (wxDialog
*) ptr
;
5418 dest
= (wxObject
*) src
;
5419 return (void *) dest
;
5422 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5423 static PyObject
*_wrap_new_wxDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5424 PyObject
* _resultobj
;
5429 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5430 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5431 long _arg5
= (long ) wxDEFAULT_DIALOG_STYLE
;
5432 char * _arg6
= (char *) "dialogBox";
5433 PyObject
* _argo0
= 0;
5434 PyObject
* _obj2
= 0;
5436 PyObject
* _obj3
= 0;
5438 PyObject
* _obj4
= 0;
5439 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
5443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxDialog",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
5453 #if PYTHON_API_VERSION >= 1009
5454 char* tmpPtr
; int tmpSize
;
5455 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
5456 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5459 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
5461 _arg2
= new wxString(tmpPtr
, tmpSize
);
5463 if (!PyString_Check(_obj2
)) {
5464 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5467 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
5473 if (! wxPoint_helper(_obj3
, &_arg3
))
5479 if (! wxSize_helper(_obj4
, &_arg4
))
5483 wxPy_BEGIN_ALLOW_THREADS
;
5484 _result
= (wxDialog
*)new_wxDialog(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5486 wxPy_END_ALLOW_THREADS
;
5487 if (PyErr_Occurred()) return NULL
;
5489 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
5490 _resultobj
= Py_BuildValue("s",_ptemp
);
5493 _resultobj
= Py_None
;
5502 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
5503 static PyObject
*_wrap_wxDialog_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5504 PyObject
* _resultobj
;
5506 int _arg1
= (int ) wxBOTH
;
5507 PyObject
* _argo0
= 0;
5508 char *_kwnames
[] = { "self","direction", NULL
};
5511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDialog_Centre",_kwnames
,&_argo0
,&_arg1
))
5514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
5521 wxPy_BEGIN_ALLOW_THREADS
;
5522 wxDialog_Centre(_arg0
,_arg1
);
5524 wxPy_END_ALLOW_THREADS
;
5525 if (PyErr_Occurred()) return NULL
;
5526 } Py_INCREF(Py_None
);
5527 _resultobj
= Py_None
;
5531 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
5532 static PyObject
*_wrap_wxDialog_EndModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5533 PyObject
* _resultobj
;
5536 PyObject
* _argo0
= 0;
5537 char *_kwnames
[] = { "self","retCode", NULL
};
5540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_EndModal",_kwnames
,&_argo0
,&_arg1
))
5543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
5550 wxPy_BEGIN_ALLOW_THREADS
;
5551 wxDialog_EndModal(_arg0
,_arg1
);
5553 wxPy_END_ALLOW_THREADS
;
5554 if (PyErr_Occurred()) return NULL
;
5555 } Py_INCREF(Py_None
);
5556 _resultobj
= Py_None
;
5560 #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle())
5561 static PyObject
*_wrap_wxDialog_GetTitle(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:wxDialog_GetTitle",_kwnames
,&_argo0
))
5572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p.");
5579 wxPy_BEGIN_ALLOW_THREADS
;
5580 _result
= new wxString (wxDialog_GetTitle(_arg0
));
5582 wxPy_END_ALLOW_THREADS
;
5583 if (PyErr_Occurred()) return NULL
;
5585 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5593 #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
5594 static PyObject
*_wrap_wxDialog_Iconize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5595 PyObject
* _resultobj
;
5598 PyObject
* _argo0
= 0;
5600 char *_kwnames
[] = { "self","iconize", NULL
};
5603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_Iconize",_kwnames
,&_argo0
,&tempbool1
))
5606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p.");
5612 _arg1
= (bool ) tempbool1
;
5614 wxPy_BEGIN_ALLOW_THREADS
;
5615 wxDialog_Iconize(_arg0
,_arg1
);
5617 wxPy_END_ALLOW_THREADS
;
5618 if (PyErr_Occurred()) return NULL
;
5619 } Py_INCREF(Py_None
);
5620 _resultobj
= Py_None
;
5624 #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized())
5625 static PyObject
*_wrap_wxDialog_IsIconized(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5626 PyObject
* _resultobj
;
5629 PyObject
* _argo0
= 0;
5630 char *_kwnames
[] = { "self", NULL
};
5633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_IsIconized",_kwnames
,&_argo0
))
5636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p.");
5643 wxPy_BEGIN_ALLOW_THREADS
;
5644 _result
= (bool )wxDialog_IsIconized(_arg0
);
5646 wxPy_END_ALLOW_THREADS
;
5647 if (PyErr_Occurred()) return NULL
;
5648 } _resultobj
= Py_BuildValue("i",_result
);
5652 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
5653 static PyObject
*_wrap_wxDialog_SetModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5654 PyObject
* _resultobj
;
5657 PyObject
* _argo0
= 0;
5659 char *_kwnames
[] = { "self","flag", NULL
};
5662 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_SetModal",_kwnames
,&_argo0
,&tempbool1
))
5665 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5666 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5667 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
5671 _arg1
= (bool ) tempbool1
;
5673 wxPy_BEGIN_ALLOW_THREADS
;
5674 wxDialog_SetModal(_arg0
,_arg1
);
5676 wxPy_END_ALLOW_THREADS
;
5677 if (PyErr_Occurred()) return NULL
;
5678 } Py_INCREF(Py_None
);
5679 _resultobj
= Py_None
;
5683 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
5684 static PyObject
*_wrap_wxDialog_IsModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5685 PyObject
* _resultobj
;
5688 PyObject
* _argo0
= 0;
5689 char *_kwnames
[] = { "self", NULL
};
5692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_IsModal",_kwnames
,&_argo0
))
5695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
5702 wxPy_BEGIN_ALLOW_THREADS
;
5703 _result
= (bool )wxDialog_IsModal(_arg0
);
5705 wxPy_END_ALLOW_THREADS
;
5706 if (PyErr_Occurred()) return NULL
;
5707 } _resultobj
= Py_BuildValue("i",_result
);
5711 #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
5712 static PyObject
*_wrap_wxDialog_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5713 PyObject
* _resultobj
;
5716 PyObject
* _argo0
= 0;
5717 PyObject
* _obj1
= 0;
5718 char *_kwnames
[] = { "self","title", NULL
};
5721 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDialog_SetTitle",_kwnames
,&_argo0
,&_obj1
))
5724 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5725 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p.");
5731 #if PYTHON_API_VERSION >= 1009
5732 char* tmpPtr
; int tmpSize
;
5733 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5734 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5737 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5739 _arg1
= new wxString(tmpPtr
, tmpSize
);
5741 if (!PyString_Check(_obj1
)) {
5742 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5745 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5749 wxPy_BEGIN_ALLOW_THREADS
;
5750 wxDialog_SetTitle(_arg0
,*_arg1
);
5752 wxPy_END_ALLOW_THREADS
;
5753 if (PyErr_Occurred()) return NULL
;
5754 } Py_INCREF(Py_None
);
5755 _resultobj
= Py_None
;
5763 #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
5764 static PyObject
*_wrap_wxDialog_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5765 PyObject
* _resultobj
;
5769 PyObject
* _argo0
= 0;
5771 char *_kwnames
[] = { "self","show", NULL
};
5774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_Show",_kwnames
,&_argo0
,&tempbool1
))
5777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p.");
5783 _arg1
= (bool ) tempbool1
;
5785 wxPy_BEGIN_ALLOW_THREADS
;
5786 _result
= (bool )wxDialog_Show(_arg0
,_arg1
);
5788 wxPy_END_ALLOW_THREADS
;
5789 if (PyErr_Occurred()) return NULL
;
5790 } _resultobj
= Py_BuildValue("i",_result
);
5794 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
5795 static PyObject
*_wrap_wxDialog_ShowModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5796 PyObject
* _resultobj
;
5799 PyObject
* _argo0
= 0;
5800 char *_kwnames
[] = { "self", NULL
};
5803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_ShowModal",_kwnames
,&_argo0
))
5806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
5813 wxPy_BEGIN_ALLOW_THREADS
;
5814 _result
= (int )wxDialog_ShowModal(_arg0
);
5816 wxPy_END_ALLOW_THREADS
;
5817 if (PyErr_Occurred()) return NULL
;
5818 } _resultobj
= Py_BuildValue("i",_result
);
5822 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
5823 static PyObject
*_wrap_wxDialog_GetReturnCode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5824 PyObject
* _resultobj
;
5827 PyObject
* _argo0
= 0;
5828 char *_kwnames
[] = { "self", NULL
};
5831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_GetReturnCode",_kwnames
,&_argo0
))
5834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
5841 wxPy_BEGIN_ALLOW_THREADS
;
5842 _result
= (int )wxDialog_GetReturnCode(_arg0
);
5844 wxPy_END_ALLOW_THREADS
;
5845 if (PyErr_Occurred()) return NULL
;
5846 } _resultobj
= Py_BuildValue("i",_result
);
5850 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
5851 static PyObject
*_wrap_wxDialog_SetReturnCode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5852 PyObject
* _resultobj
;
5855 PyObject
* _argo0
= 0;
5856 char *_kwnames
[] = { "self","retCode", NULL
};
5859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_SetReturnCode",_kwnames
,&_argo0
,&_arg1
))
5862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
5869 wxPy_BEGIN_ALLOW_THREADS
;
5870 wxDialog_SetReturnCode(_arg0
,_arg1
);
5872 wxPy_END_ALLOW_THREADS
;
5873 if (PyErr_Occurred()) return NULL
;
5874 } Py_INCREF(Py_None
);
5875 _resultobj
= Py_None
;
5879 #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0))
5880 static PyObject
*_wrap_wxDialog_CreateTextSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5881 PyObject
* _resultobj
;
5885 PyObject
* _argo0
= 0;
5886 PyObject
* _obj1
= 0;
5887 char *_kwnames
[] = { "self","message", NULL
};
5890 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDialog_CreateTextSizer",_kwnames
,&_argo0
,&_obj1
))
5893 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5894 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5895 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p.");
5900 #if PYTHON_API_VERSION >= 1009
5901 char* tmpPtr
; int tmpSize
;
5902 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5903 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5906 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5908 _arg1
= new wxString(tmpPtr
, tmpSize
);
5910 if (!PyString_Check(_obj1
)) {
5911 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5914 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5918 wxPy_BEGIN_ALLOW_THREADS
;
5919 _result
= (wxSizer
*)wxDialog_CreateTextSizer(_arg0
,*_arg1
);
5921 wxPy_END_ALLOW_THREADS
;
5922 if (PyErr_Occurred()) return NULL
;
5923 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5931 #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0))
5932 static PyObject
*_wrap_wxDialog_CreateButtonSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5933 PyObject
* _resultobj
;
5937 PyObject
* _argo0
= 0;
5938 char *_kwnames
[] = { "self","flags", NULL
};
5941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDialog_CreateButtonSizer",_kwnames
,&_argo0
,&_arg1
))
5944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p.");
5951 wxPy_BEGIN_ALLOW_THREADS
;
5952 _result
= (wxSizer
*)wxDialog_CreateButtonSizer(_arg0
,_arg1
);
5954 wxPy_END_ALLOW_THREADS
;
5955 if (PyErr_Occurred()) return NULL
;
5956 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5960 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
5961 wxScrolledWindow
*src
;
5963 src
= (wxScrolledWindow
*) ptr
;
5964 dest
= (wxPanel
*) src
;
5965 return (void *) dest
;
5968 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
5969 wxScrolledWindow
*src
;
5971 src
= (wxScrolledWindow
*) ptr
;
5972 dest
= (wxWindow
*) src
;
5973 return (void *) dest
;
5976 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
5977 wxScrolledWindow
*src
;
5979 src
= (wxScrolledWindow
*) ptr
;
5980 dest
= (wxEvtHandler
*) src
;
5981 return (void *) dest
;
5984 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
5985 wxScrolledWindow
*src
;
5987 src
= (wxScrolledWindow
*) ptr
;
5988 dest
= (wxObject
*) src
;
5989 return (void *) dest
;
5992 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5993 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5994 PyObject
* _resultobj
;
5995 wxScrolledWindow
* _result
;
5997 wxWindowID _arg1
= (wxWindowID
) -1;
5998 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5999 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6000 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6001 char * _arg5
= (char *) "scrolledWindow";
6002 PyObject
* _argo0
= 0;
6004 PyObject
* _obj2
= 0;
6006 PyObject
* _obj3
= 0;
6007 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6023 if (! wxPoint_helper(_obj2
, &_arg2
))
6029 if (! wxSize_helper(_obj3
, &_arg3
))
6033 wxPy_BEGIN_ALLOW_THREADS
;
6034 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6036 wxPy_END_ALLOW_THREADS
;
6037 if (PyErr_Occurred()) return NULL
;
6039 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6040 _resultobj
= Py_BuildValue("s",_ptemp
);
6043 _resultobj
= Py_None
;
6048 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6049 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6050 PyObject
* _resultobj
;
6051 wxScrolledWindow
* _arg0
;
6054 PyObject
* _argo0
= 0;
6057 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6069 _arg1
= (bool ) tempbool1
;
6070 _arg2
= (bool ) tempbool2
;
6072 wxPy_BEGIN_ALLOW_THREADS
;
6073 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6075 wxPy_END_ALLOW_THREADS
;
6076 if (PyErr_Occurred()) return NULL
;
6077 } Py_INCREF(Py_None
);
6078 _resultobj
= Py_None
;
6082 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6083 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6084 PyObject
* _resultobj
;
6086 wxScrolledWindow
* _arg0
;
6088 PyObject
* _argo0
= 0;
6089 char *_kwnames
[] = { "self","orient", NULL
};
6092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6102 wxPy_BEGIN_ALLOW_THREADS
;
6103 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6105 wxPy_END_ALLOW_THREADS
;
6106 if (PyErr_Occurred()) return NULL
;
6107 } _resultobj
= Py_BuildValue("i",_result
);
6111 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6112 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6113 PyObject
* _resultobj
;
6114 wxScrolledWindow
* _arg0
;
6119 PyObject
* _argo0
= 0;
6120 char *_kwnames
[] = { "self", NULL
};
6129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6139 wxPy_BEGIN_ALLOW_THREADS
;
6140 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6142 wxPy_END_ALLOW_THREADS
;
6143 if (PyErr_Occurred()) return NULL
;
6144 } Py_INCREF(Py_None
);
6145 _resultobj
= Py_None
;
6148 o
= PyInt_FromLong((long) (*_arg1
));
6149 _resultobj
= t_output_helper(_resultobj
, o
);
6153 o
= PyInt_FromLong((long) (*_arg2
));
6154 _resultobj
= t_output_helper(_resultobj
, o
);
6159 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6160 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6161 PyObject
* _resultobj
;
6163 wxScrolledWindow
* _arg0
;
6164 PyObject
* _argo0
= 0;
6165 char *_kwnames
[] = { "self", NULL
};
6168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6178 wxPy_BEGIN_ALLOW_THREADS
;
6179 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6181 wxPy_END_ALLOW_THREADS
;
6182 if (PyErr_Occurred()) return NULL
;
6183 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6187 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6188 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6189 PyObject
* _resultobj
;
6190 wxScrolledWindow
* _arg0
;
6195 PyObject
* _argo0
= 0;
6196 char *_kwnames
[] = { "self", NULL
};
6205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6215 wxPy_BEGIN_ALLOW_THREADS
;
6216 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6218 wxPy_END_ALLOW_THREADS
;
6219 if (PyErr_Occurred()) return NULL
;
6220 } Py_INCREF(Py_None
);
6221 _resultobj
= Py_None
;
6224 o
= PyInt_FromLong((long) (*_arg1
));
6225 _resultobj
= t_output_helper(_resultobj
, o
);
6229 o
= PyInt_FromLong((long) (*_arg2
));
6230 _resultobj
= t_output_helper(_resultobj
, o
);
6235 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6236 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6237 PyObject
* _resultobj
;
6239 wxScrolledWindow
* _arg0
;
6240 PyObject
* _argo0
= 0;
6241 char *_kwnames
[] = { "self", NULL
};
6244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6254 wxPy_BEGIN_ALLOW_THREADS
;
6255 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6257 wxPy_END_ALLOW_THREADS
;
6258 if (PyErr_Occurred()) return NULL
;
6259 } _resultobj
= Py_BuildValue("i",_result
);
6263 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6264 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6265 PyObject
* _resultobj
;
6266 wxScrolledWindow
* _arg0
;
6268 PyObject
* _argo0
= 0;
6269 PyObject
* _argo1
= 0;
6270 char *_kwnames
[] = { "self","dc", NULL
};
6273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6283 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6284 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6290 wxPy_BEGIN_ALLOW_THREADS
;
6291 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6293 wxPy_END_ALLOW_THREADS
;
6294 if (PyErr_Occurred()) return NULL
;
6295 } Py_INCREF(Py_None
);
6296 _resultobj
= Py_None
;
6300 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6301 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6302 PyObject
* _resultobj
;
6303 wxScrolledWindow
* _arg0
;
6306 PyObject
* _argo0
= 0;
6307 char *_kwnames
[] = { "self","x","y", NULL
};
6310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6313 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6314 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6315 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6320 wxPy_BEGIN_ALLOW_THREADS
;
6321 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6323 wxPy_END_ALLOW_THREADS
;
6324 if (PyErr_Occurred()) return NULL
;
6325 } Py_INCREF(Py_None
);
6326 _resultobj
= Py_None
;
6330 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6331 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6332 PyObject
* _resultobj
;
6333 wxScrolledWindow
* _arg0
;
6338 int _arg5
= (int ) 0;
6339 int _arg6
= (int ) 0;
6340 int _arg7
= (int ) FALSE
;
6341 PyObject
* _argo0
= 0;
6342 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6348 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6349 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6350 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6355 wxPy_BEGIN_ALLOW_THREADS
;
6356 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6358 wxPy_END_ALLOW_THREADS
;
6359 if (PyErr_Occurred()) return NULL
;
6360 } Py_INCREF(Py_None
);
6361 _resultobj
= Py_None
;
6365 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6366 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6367 PyObject
* _resultobj
;
6368 wxScrolledWindow
* _arg0
;
6371 PyObject
* _argo0
= 0;
6372 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6385 wxPy_BEGIN_ALLOW_THREADS
;
6386 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6388 wxPy_END_ALLOW_THREADS
;
6389 if (PyErr_Occurred()) return NULL
;
6390 } Py_INCREF(Py_None
);
6391 _resultobj
= Py_None
;
6395 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6396 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6397 PyObject
* _resultobj
;
6398 wxScrolledWindow
* _arg0
;
6400 PyObject
* _argo0
= 0;
6401 PyObject
* _argo1
= 0;
6402 char *_kwnames
[] = { "self","window", NULL
};
6405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6415 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6416 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6422 wxPy_BEGIN_ALLOW_THREADS
;
6423 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6425 wxPy_END_ALLOW_THREADS
;
6426 if (PyErr_Occurred()) return NULL
;
6427 } Py_INCREF(Py_None
);
6428 _resultobj
= Py_None
;
6432 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6433 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6434 PyObject
* _resultobj
;
6435 wxScrolledWindow
* _arg0
;
6440 PyObject
* _argo0
= 0;
6441 char *_kwnames
[] = { "self", NULL
};
6450 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6453 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6454 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6455 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6460 wxPy_BEGIN_ALLOW_THREADS
;
6461 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6463 wxPy_END_ALLOW_THREADS
;
6464 if (PyErr_Occurred()) return NULL
;
6465 } Py_INCREF(Py_None
);
6466 _resultobj
= Py_None
;
6469 o
= PyInt_FromLong((long) (*_arg1
));
6470 _resultobj
= t_output_helper(_resultobj
, o
);
6474 o
= PyInt_FromLong((long) (*_arg2
));
6475 _resultobj
= t_output_helper(_resultobj
, o
);
6480 #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1))
6481 static PyObject
*_wrap_wxScrolledWindow_ViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6482 PyObject
* _resultobj
;
6483 wxScrolledWindow
* _arg0
;
6488 PyObject
* _argo0
= 0;
6489 char *_kwnames
[] = { "self", NULL
};
6498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_ViewStart",_kwnames
,&_argo0
))
6501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p.");
6508 wxPy_BEGIN_ALLOW_THREADS
;
6509 wxScrolledWindow_ViewStart(_arg0
,_arg1
,_arg2
);
6511 wxPy_END_ALLOW_THREADS
;
6512 if (PyErr_Occurred()) return NULL
;
6513 } Py_INCREF(Py_None
);
6514 _resultobj
= Py_None
;
6517 o
= PyInt_FromLong((long) (*_arg1
));
6518 _resultobj
= t_output_helper(_resultobj
, o
);
6522 o
= PyInt_FromLong((long) (*_arg2
));
6523 _resultobj
= t_output_helper(_resultobj
, o
);
6528 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6529 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6530 PyObject
* _resultobj
;
6531 wxScrolledWindow
* _arg0
;
6538 PyObject
* _argo0
= 0;
6539 char *_kwnames
[] = { "self","x","y", NULL
};
6548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6551 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6552 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6558 wxPy_BEGIN_ALLOW_THREADS
;
6559 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6561 wxPy_END_ALLOW_THREADS
;
6562 if (PyErr_Occurred()) return NULL
;
6563 } Py_INCREF(Py_None
);
6564 _resultobj
= Py_None
;
6567 o
= PyInt_FromLong((long) (*_arg3
));
6568 _resultobj
= t_output_helper(_resultobj
, o
);
6572 o
= PyInt_FromLong((long) (*_arg4
));
6573 _resultobj
= t_output_helper(_resultobj
, o
);
6578 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6579 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6580 PyObject
* _resultobj
;
6581 wxScrolledWindow
* _arg0
;
6588 PyObject
* _argo0
= 0;
6589 char *_kwnames
[] = { "self","x","y", NULL
};
6598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6608 wxPy_BEGIN_ALLOW_THREADS
;
6609 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6611 wxPy_END_ALLOW_THREADS
;
6612 if (PyErr_Occurred()) return NULL
;
6613 } Py_INCREF(Py_None
);
6614 _resultobj
= Py_None
;
6617 o
= PyInt_FromLong((long) (*_arg3
));
6618 _resultobj
= t_output_helper(_resultobj
, o
);
6622 o
= PyInt_FromLong((long) (*_arg4
));
6623 _resultobj
= t_output_helper(_resultobj
, o
);
6628 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6629 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6630 PyObject
* _resultobj
;
6631 wxScrolledWindow
* _arg0
;
6634 PyObject
* _argo0
= 0;
6635 char *_kwnames
[] = { "self","xs","ys", NULL
};
6638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6648 wxPy_BEGIN_ALLOW_THREADS
;
6649 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6651 wxPy_END_ALLOW_THREADS
;
6652 if (PyErr_Occurred()) return NULL
;
6653 } Py_INCREF(Py_None
);
6654 _resultobj
= Py_None
;
6658 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6659 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6660 PyObject
* _resultobj
;
6662 wxScrolledWindow
* _arg0
;
6663 PyObject
* _argo0
= 0;
6664 char *_kwnames
[] = { "self", NULL
};
6667 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6670 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6671 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6672 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6677 wxPy_BEGIN_ALLOW_THREADS
;
6678 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6680 wxPy_END_ALLOW_THREADS
;
6681 if (PyErr_Occurred()) return NULL
;
6682 } _resultobj
= Py_BuildValue("d",_result
);
6686 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6687 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6688 PyObject
* _resultobj
;
6690 wxScrolledWindow
* _arg0
;
6691 PyObject
* _argo0
= 0;
6692 char *_kwnames
[] = { "self", NULL
};
6695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6705 wxPy_BEGIN_ALLOW_THREADS
;
6706 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6708 wxPy_END_ALLOW_THREADS
;
6709 if (PyErr_Occurred()) return NULL
;
6710 } _resultobj
= Py_BuildValue("d",_result
);
6714 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6715 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6716 PyObject
* _resultobj
;
6717 wxScrolledWindow
* _arg0
;
6718 PyObject
* _argo0
= 0;
6719 char *_kwnames
[] = { "self", NULL
};
6722 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6725 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6726 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6727 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6732 wxPy_BEGIN_ALLOW_THREADS
;
6733 wxScrolledWindow_AdjustScrollbars(_arg0
);
6735 wxPy_END_ALLOW_THREADS
;
6736 if (PyErr_Occurred()) return NULL
;
6737 } Py_INCREF(Py_None
);
6738 _resultobj
= Py_None
;
6742 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6745 src
= (wxMenu
*) ptr
;
6746 dest
= (wxEvtHandler
*) src
;
6747 return (void *) dest
;
6750 static void *SwigwxMenuTowxObject(void *ptr
) {
6753 src
= (wxMenu
*) ptr
;
6754 dest
= (wxObject
*) src
;
6755 return (void *) dest
;
6758 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6759 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6760 PyObject
* _resultobj
;
6762 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6763 long _arg1
= (long ) 0;
6764 PyObject
* _obj0
= 0;
6765 char *_kwnames
[] = { "title","style", NULL
};
6769 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6773 #if PYTHON_API_VERSION >= 1009
6774 char* tmpPtr
; int tmpSize
;
6775 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6776 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6779 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6781 _arg0
= new wxString(tmpPtr
, tmpSize
);
6783 if (!PyString_Check(_obj0
)) {
6784 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6787 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6791 wxPy_BEGIN_ALLOW_THREADS
;
6792 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6794 wxPy_END_ALLOW_THREADS
;
6795 if (PyErr_Occurred()) return NULL
;
6797 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6798 _resultobj
= Py_BuildValue("s",_ptemp
);
6801 _resultobj
= Py_None
;
6810 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6811 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6812 PyObject
* _resultobj
;
6816 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6817 int _arg4
= (int ) FALSE
;
6818 PyObject
* _argo0
= 0;
6819 PyObject
* _obj2
= 0;
6820 PyObject
* _obj3
= 0;
6821 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6834 #if PYTHON_API_VERSION >= 1009
6835 char* tmpPtr
; int tmpSize
;
6836 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6837 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6840 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6842 _arg2
= new wxString(tmpPtr
, tmpSize
);
6844 if (!PyString_Check(_obj2
)) {
6845 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6848 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6853 #if PYTHON_API_VERSION >= 1009
6854 char* tmpPtr
; int tmpSize
;
6855 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6856 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6859 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6861 _arg3
= new wxString(tmpPtr
, tmpSize
);
6863 if (!PyString_Check(_obj3
)) {
6864 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6867 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
6871 wxPy_BEGIN_ALLOW_THREADS
;
6872 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
6874 wxPy_END_ALLOW_THREADS
;
6875 if (PyErr_Occurred()) return NULL
;
6876 } Py_INCREF(Py_None
);
6877 _resultobj
= Py_None
;
6889 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6890 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6891 PyObject
* _resultobj
;
6896 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
6897 PyObject
* _argo0
= 0;
6898 PyObject
* _obj2
= 0;
6899 PyObject
* _argo3
= 0;
6900 PyObject
* _obj4
= 0;
6901 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
6904 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
6907 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6908 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6909 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6914 #if PYTHON_API_VERSION >= 1009
6915 char* tmpPtr
; int tmpSize
;
6916 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6917 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6920 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6922 _arg2
= new wxString(tmpPtr
, tmpSize
);
6924 if (!PyString_Check(_obj2
)) {
6925 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6928 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6932 if (_argo3
== Py_None
) { _arg3
= NULL
; }
6933 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
6934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6940 #if PYTHON_API_VERSION >= 1009
6941 char* tmpPtr
; int tmpSize
;
6942 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
6943 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6946 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
6948 _arg4
= new wxString(tmpPtr
, tmpSize
);
6950 if (!PyString_Check(_obj4
)) {
6951 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6954 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
6958 wxPy_BEGIN_ALLOW_THREADS
;
6959 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
6961 wxPy_END_ALLOW_THREADS
;
6962 if (PyErr_Occurred()) return NULL
;
6963 } Py_INCREF(Py_None
);
6964 _resultobj
= Py_None
;
6976 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
6977 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6978 PyObject
* _resultobj
;
6981 PyObject
* _argo0
= 0;
6982 PyObject
* _argo1
= 0;
6983 char *_kwnames
[] = { "self","item", NULL
};
6986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
6989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
6996 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6997 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
6998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7003 wxPy_BEGIN_ALLOW_THREADS
;
7004 wxMenu_AppendItem(_arg0
,_arg1
);
7006 wxPy_END_ALLOW_THREADS
;
7007 if (PyErr_Occurred()) return NULL
;
7008 } Py_INCREF(Py_None
);
7009 _resultobj
= Py_None
;
7013 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7014 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7015 PyObject
* _resultobj
;
7017 PyObject
* _argo0
= 0;
7018 char *_kwnames
[] = { "self", NULL
};
7021 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7024 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7025 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7031 wxPy_BEGIN_ALLOW_THREADS
;
7032 wxMenu_AppendSeparator(_arg0
);
7034 wxPy_END_ALLOW_THREADS
;
7035 if (PyErr_Occurred()) return NULL
;
7036 } Py_INCREF(Py_None
);
7037 _resultobj
= Py_None
;
7041 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7042 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7043 PyObject
* _resultobj
;
7045 PyObject
* _argo0
= 0;
7046 char *_kwnames
[] = { "self", NULL
};
7049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7059 wxPy_BEGIN_ALLOW_THREADS
;
7060 wxMenu_Break(_arg0
);
7062 wxPy_END_ALLOW_THREADS
;
7063 if (PyErr_Occurred()) return NULL
;
7064 } Py_INCREF(Py_None
);
7065 _resultobj
= Py_None
;
7069 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7070 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7071 PyObject
* _resultobj
;
7075 PyObject
* _argo0
= 0;
7077 char *_kwnames
[] = { "self","id","flag", NULL
};
7080 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7083 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7084 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7089 _arg2
= (bool ) tempbool2
;
7091 wxPy_BEGIN_ALLOW_THREADS
;
7092 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7094 wxPy_END_ALLOW_THREADS
;
7095 if (PyErr_Occurred()) return NULL
;
7096 } Py_INCREF(Py_None
);
7097 _resultobj
= Py_None
;
7101 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7102 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7103 PyObject
* _resultobj
;
7107 PyObject
* _argo0
= 0;
7108 char *_kwnames
[] = { "self","id", NULL
};
7111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7114 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7115 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7116 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7121 wxPy_BEGIN_ALLOW_THREADS
;
7122 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7124 wxPy_END_ALLOW_THREADS
;
7125 if (PyErr_Occurred()) return NULL
;
7126 } _resultobj
= Py_BuildValue("i",_result
);
7130 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7131 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7132 PyObject
* _resultobj
;
7136 PyObject
* _argo0
= 0;
7138 char *_kwnames
[] = { "self","id","enable", NULL
};
7141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7144 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7145 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7146 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7150 _arg2
= (bool ) tempbool2
;
7152 wxPy_BEGIN_ALLOW_THREADS
;
7153 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7155 wxPy_END_ALLOW_THREADS
;
7156 if (PyErr_Occurred()) return NULL
;
7157 } Py_INCREF(Py_None
);
7158 _resultobj
= Py_None
;
7162 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7163 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7164 PyObject
* _resultobj
;
7168 PyObject
* _argo0
= 0;
7169 char *_kwnames
[] = { "self","id", NULL
};
7172 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7175 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7176 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7177 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7182 wxPy_BEGIN_ALLOW_THREADS
;
7183 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7185 wxPy_END_ALLOW_THREADS
;
7186 if (PyErr_Occurred()) return NULL
;
7187 } _resultobj
= Py_BuildValue("i",_result
);
7191 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7192 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7193 PyObject
* _resultobj
;
7197 PyObject
* _argo0
= 0;
7198 PyObject
* _obj1
= 0;
7199 char *_kwnames
[] = { "self","itemString", NULL
};
7202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7212 #if PYTHON_API_VERSION >= 1009
7213 char* tmpPtr
; int tmpSize
;
7214 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7215 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7218 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7220 _arg1
= new wxString(tmpPtr
, tmpSize
);
7222 if (!PyString_Check(_obj1
)) {
7223 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7226 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7230 wxPy_BEGIN_ALLOW_THREADS
;
7231 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7233 wxPy_END_ALLOW_THREADS
;
7234 if (PyErr_Occurred()) return NULL
;
7235 } _resultobj
= Py_BuildValue("i",_result
);
7243 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7244 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7245 PyObject
* _resultobj
;
7246 wxMenuItem
* _result
;
7249 PyObject
* _argo0
= 0;
7250 char *_kwnames
[] = { "self","id", NULL
};
7253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7263 wxPy_BEGIN_ALLOW_THREADS
;
7264 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7266 wxPy_END_ALLOW_THREADS
;
7267 if (PyErr_Occurred()) return NULL
;
7268 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7272 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7273 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7274 PyObject
* _resultobj
;
7277 PyObject
* _argo0
= 0;
7278 char *_kwnames
[] = { "self", NULL
};
7281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7291 wxPy_BEGIN_ALLOW_THREADS
;
7292 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7294 wxPy_END_ALLOW_THREADS
;
7295 if (PyErr_Occurred()) return NULL
;
7297 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7305 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7306 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7307 PyObject
* _resultobj
;
7310 PyObject
* _argo0
= 0;
7311 PyObject
* _obj1
= 0;
7312 char *_kwnames
[] = { "self","title", NULL
};
7315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7325 #if PYTHON_API_VERSION >= 1009
7326 char* tmpPtr
; int tmpSize
;
7327 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7328 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7331 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7333 _arg1
= new wxString(tmpPtr
, tmpSize
);
7335 if (!PyString_Check(_obj1
)) {
7336 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7339 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7343 wxPy_BEGIN_ALLOW_THREADS
;
7344 wxMenu_SetTitle(_arg0
,*_arg1
);
7346 wxPy_END_ALLOW_THREADS
;
7347 if (PyErr_Occurred()) return NULL
;
7348 } Py_INCREF(Py_None
);
7349 _resultobj
= Py_None
;
7357 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7358 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7359 PyObject
* _resultobj
;
7363 PyObject
* _argo0
= 0;
7364 char *_kwnames
[] = { "self","id", NULL
};
7367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7377 wxPy_BEGIN_ALLOW_THREADS
;
7378 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7380 wxPy_END_ALLOW_THREADS
;
7381 if (PyErr_Occurred()) return NULL
;
7383 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7391 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7392 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7393 PyObject
* _resultobj
;
7397 PyObject
* _argo0
= 0;
7398 PyObject
* _obj2
= 0;
7399 char *_kwnames
[] = { "self","id","label", NULL
};
7402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7412 #if PYTHON_API_VERSION >= 1009
7413 char* tmpPtr
; int tmpSize
;
7414 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7415 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7418 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7420 _arg2
= new wxString(tmpPtr
, tmpSize
);
7422 if (!PyString_Check(_obj2
)) {
7423 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7426 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7430 wxPy_BEGIN_ALLOW_THREADS
;
7431 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7433 wxPy_END_ALLOW_THREADS
;
7434 if (PyErr_Occurred()) return NULL
;
7435 } Py_INCREF(Py_None
);
7436 _resultobj
= Py_None
;
7444 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7445 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7446 PyObject
* _resultobj
;
7450 PyObject
* _argo0
= 0;
7451 char *_kwnames
[] = { "self","id", NULL
};
7454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7464 wxPy_BEGIN_ALLOW_THREADS
;
7465 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7467 wxPy_END_ALLOW_THREADS
;
7468 if (PyErr_Occurred()) return NULL
;
7470 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7478 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7479 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7480 PyObject
* _resultobj
;
7484 PyObject
* _argo0
= 0;
7485 PyObject
* _obj2
= 0;
7486 char *_kwnames
[] = { "self","id","helpString", NULL
};
7489 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7492 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7493 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7494 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7499 #if PYTHON_API_VERSION >= 1009
7500 char* tmpPtr
; int tmpSize
;
7501 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7502 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7505 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7507 _arg2
= new wxString(tmpPtr
, tmpSize
);
7509 if (!PyString_Check(_obj2
)) {
7510 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7513 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7517 wxPy_BEGIN_ALLOW_THREADS
;
7518 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7520 wxPy_END_ALLOW_THREADS
;
7521 if (PyErr_Occurred()) return NULL
;
7522 } Py_INCREF(Py_None
);
7523 _resultobj
= Py_None
;
7531 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7532 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7533 PyObject
* _resultobj
;
7535 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7536 PyObject
* _argo0
= 0;
7537 PyObject
* _argo1
= 0;
7538 char *_kwnames
[] = { "self","source", NULL
};
7541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7551 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7552 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7553 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7558 wxPy_BEGIN_ALLOW_THREADS
;
7559 wxMenu_UpdateUI(_arg0
,_arg1
);
7561 wxPy_END_ALLOW_THREADS
;
7562 if (PyErr_Occurred()) return NULL
;
7563 } Py_INCREF(Py_None
);
7564 _resultobj
= Py_None
;
7568 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7569 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7570 PyObject
* _resultobj
;
7574 PyObject
* _argo0
= 0;
7575 char *_kwnames
[] = { "self","id", NULL
};
7578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7588 wxPy_BEGIN_ALLOW_THREADS
;
7589 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7591 wxPy_END_ALLOW_THREADS
;
7592 if (PyErr_Occurred()) return NULL
;
7593 } _resultobj
= Py_BuildValue("i",_result
);
7597 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7598 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7599 PyObject
* _resultobj
;
7603 PyObject
* _argo0
= 0;
7604 PyObject
* _argo1
= 0;
7605 char *_kwnames
[] = { "self","item", NULL
};
7608 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7611 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7612 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7613 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7618 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7619 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7625 wxPy_BEGIN_ALLOW_THREADS
;
7626 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7628 wxPy_END_ALLOW_THREADS
;
7629 if (PyErr_Occurred()) return NULL
;
7630 } _resultobj
= Py_BuildValue("i",_result
);
7634 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7635 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7636 PyObject
* _resultobj
;
7641 PyObject
* _argo0
= 0;
7642 PyObject
* _argo2
= 0;
7643 char *_kwnames
[] = { "self","pos","item", NULL
};
7646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7656 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7657 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7663 wxPy_BEGIN_ALLOW_THREADS
;
7664 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7666 wxPy_END_ALLOW_THREADS
;
7667 if (PyErr_Occurred()) return NULL
;
7668 } _resultobj
= Py_BuildValue("i",_result
);
7672 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7673 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7674 PyObject
* _resultobj
;
7675 wxMenuItem
* _result
;
7678 PyObject
* _argo0
= 0;
7679 char *_kwnames
[] = { "self","id", NULL
};
7682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7692 wxPy_BEGIN_ALLOW_THREADS
;
7693 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7695 wxPy_END_ALLOW_THREADS
;
7696 if (PyErr_Occurred()) return NULL
;
7697 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7701 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7702 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7703 PyObject
* _resultobj
;
7704 wxMenuItem
* _result
;
7707 PyObject
* _argo0
= 0;
7708 PyObject
* _argo1
= 0;
7709 char *_kwnames
[] = { "self","item", NULL
};
7712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7722 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7723 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7729 wxPy_BEGIN_ALLOW_THREADS
;
7730 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7732 wxPy_END_ALLOW_THREADS
;
7733 if (PyErr_Occurred()) return NULL
;
7734 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7738 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7739 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7740 PyObject
* _resultobj
;
7742 PyObject
* _argo0
= 0;
7743 char *_kwnames
[] = { "self", NULL
};
7746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7749 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7750 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7751 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7756 wxPy_BEGIN_ALLOW_THREADS
;
7757 wxMenu_Destroy(_arg0
);
7759 wxPy_END_ALLOW_THREADS
;
7760 if (PyErr_Occurred()) return NULL
;
7761 } Py_INCREF(Py_None
);
7762 _resultobj
= Py_None
;
7766 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7767 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7768 PyObject
* _resultobj
;
7772 PyObject
* _argo0
= 0;
7773 char *_kwnames
[] = { "self","id", NULL
};
7776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7786 wxPy_BEGIN_ALLOW_THREADS
;
7787 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7789 wxPy_END_ALLOW_THREADS
;
7790 if (PyErr_Occurred()) return NULL
;
7791 } _resultobj
= Py_BuildValue("i",_result
);
7795 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7796 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7797 PyObject
* _resultobj
;
7801 PyObject
* _argo0
= 0;
7802 PyObject
* _argo1
= 0;
7803 char *_kwnames
[] = { "self","item", NULL
};
7806 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7809 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7810 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7811 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7816 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7817 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7823 wxPy_BEGIN_ALLOW_THREADS
;
7824 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7826 wxPy_END_ALLOW_THREADS
;
7827 if (PyErr_Occurred()) return NULL
;
7828 } _resultobj
= Py_BuildValue("i",_result
);
7832 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7833 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7834 PyObject
* _resultobj
;
7837 PyObject
* _argo0
= 0;
7838 char *_kwnames
[] = { "self", NULL
};
7841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7851 wxPy_BEGIN_ALLOW_THREADS
;
7852 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7854 wxPy_END_ALLOW_THREADS
;
7855 if (PyErr_Occurred()) return NULL
;
7856 } _resultobj
= Py_BuildValue("i",_result
);
7860 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7861 wxMenuItemList
& list
= self
->GetMenuItems();
7862 return wxPy_ConvertList(&list
, "wxMenuItem");
7864 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7865 PyObject
* _resultobj
;
7868 PyObject
* _argo0
= 0;
7869 char *_kwnames
[] = { "self", NULL
};
7872 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
7875 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7876 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7877 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7882 wxPy_BEGIN_ALLOW_THREADS
;
7883 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
7885 wxPy_END_ALLOW_THREADS
;
7886 if (PyErr_Occurred()) return NULL
;
7888 _resultobj
= _result
;
7893 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7894 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7895 PyObject
* _resultobj
;
7897 wxEvtHandler
* _arg1
;
7898 PyObject
* _argo0
= 0;
7899 PyObject
* _argo1
= 0;
7900 char *_kwnames
[] = { "self","handler", NULL
};
7903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
7906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7913 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7914 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7920 wxPy_BEGIN_ALLOW_THREADS
;
7921 wxMenu_SetEventHandler(_arg0
,_arg1
);
7923 wxPy_END_ALLOW_THREADS
;
7924 if (PyErr_Occurred()) return NULL
;
7925 } Py_INCREF(Py_None
);
7926 _resultobj
= Py_None
;
7930 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
7931 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7932 PyObject
* _resultobj
;
7933 wxEvtHandler
* _result
;
7935 PyObject
* _argo0
= 0;
7936 char *_kwnames
[] = { "self", NULL
};
7939 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
7942 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7943 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
7949 wxPy_BEGIN_ALLOW_THREADS
;
7950 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
7952 wxPy_END_ALLOW_THREADS
;
7953 if (PyErr_Occurred()) return NULL
;
7954 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7958 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
7959 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7960 PyObject
* _resultobj
;
7963 PyObject
* _argo0
= 0;
7964 PyObject
* _argo1
= 0;
7965 char *_kwnames
[] = { "self","win", NULL
};
7968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
7971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
7978 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7979 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
7980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
7985 wxPy_BEGIN_ALLOW_THREADS
;
7986 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
7988 wxPy_END_ALLOW_THREADS
;
7989 if (PyErr_Occurred()) return NULL
;
7990 } Py_INCREF(Py_None
);
7991 _resultobj
= Py_None
;
7995 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
7996 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7997 PyObject
* _resultobj
;
8000 PyObject
* _argo0
= 0;
8001 char *_kwnames
[] = { "self", NULL
};
8004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8014 wxPy_BEGIN_ALLOW_THREADS
;
8015 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8017 wxPy_END_ALLOW_THREADS
;
8018 if (PyErr_Occurred()) return NULL
;
8019 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8023 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8024 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8025 PyObject
* _resultobj
;
8028 PyObject
* _argo0
= 0;
8029 char *_kwnames
[] = { "self", NULL
};
8032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8042 wxPy_BEGIN_ALLOW_THREADS
;
8043 _result
= (long )wxMenu_GetStyle(_arg0
);
8045 wxPy_END_ALLOW_THREADS
;
8046 if (PyErr_Occurred()) return NULL
;
8047 } _resultobj
= Py_BuildValue("l",_result
);
8051 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8052 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8053 PyObject
* _resultobj
;
8056 PyObject
* _argo0
= 0;
8057 char *_kwnames
[] = { "self", NULL
};
8060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8070 wxPy_BEGIN_ALLOW_THREADS
;
8071 _result
= (bool )wxMenu_IsAttached(_arg0
);
8073 wxPy_END_ALLOW_THREADS
;
8074 if (PyErr_Occurred()) return NULL
;
8075 } _resultobj
= Py_BuildValue("i",_result
);
8079 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8080 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8081 PyObject
* _resultobj
;
8084 PyObject
* _argo0
= 0;
8085 PyObject
* _argo1
= 0;
8086 char *_kwnames
[] = { "self","parent", NULL
};
8089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8099 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8100 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8101 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8106 wxPy_BEGIN_ALLOW_THREADS
;
8107 wxMenu_SetParent(_arg0
,_arg1
);
8109 wxPy_END_ALLOW_THREADS
;
8110 if (PyErr_Occurred()) return NULL
;
8111 } Py_INCREF(Py_None
);
8112 _resultobj
= Py_None
;
8116 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8117 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8118 PyObject
* _resultobj
;
8121 PyObject
* _argo0
= 0;
8122 char *_kwnames
[] = { "self", NULL
};
8125 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8128 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8129 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8130 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8135 wxPy_BEGIN_ALLOW_THREADS
;
8136 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8138 wxPy_END_ALLOW_THREADS
;
8139 if (PyErr_Occurred()) return NULL
;
8140 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8144 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8147 src
= (wxMenuBar
*) ptr
;
8148 dest
= (wxWindow
*) src
;
8149 return (void *) dest
;
8152 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8155 src
= (wxMenuBar
*) ptr
;
8156 dest
= (wxEvtHandler
*) src
;
8157 return (void *) dest
;
8160 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8163 src
= (wxMenuBar
*) ptr
;
8164 dest
= (wxObject
*) src
;
8165 return (void *) dest
;
8168 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8169 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8170 PyObject
* _resultobj
;
8171 wxMenuBar
* _result
;
8172 long _arg0
= (long ) 0;
8173 char *_kwnames
[] = { "style", NULL
};
8177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8180 wxPy_BEGIN_ALLOW_THREADS
;
8181 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8183 wxPy_END_ALLOW_THREADS
;
8184 if (PyErr_Occurred()) return NULL
;
8186 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8187 _resultobj
= Py_BuildValue("s",_ptemp
);
8190 _resultobj
= Py_None
;
8195 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8196 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8197 PyObject
* _resultobj
;
8202 PyObject
* _argo0
= 0;
8203 PyObject
* _argo1
= 0;
8204 PyObject
* _obj2
= 0;
8205 char *_kwnames
[] = { "self","menu","title", NULL
};
8208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8218 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8219 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8225 #if PYTHON_API_VERSION >= 1009
8226 char* tmpPtr
; int tmpSize
;
8227 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8228 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8231 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8233 _arg2
= new wxString(tmpPtr
, tmpSize
);
8235 if (!PyString_Check(_obj2
)) {
8236 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8239 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8243 wxPy_BEGIN_ALLOW_THREADS
;
8244 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8246 wxPy_END_ALLOW_THREADS
;
8247 if (PyErr_Occurred()) return NULL
;
8248 } _resultobj
= Py_BuildValue("i",_result
);
8256 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8257 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8258 PyObject
* _resultobj
;
8264 PyObject
* _argo0
= 0;
8265 PyObject
* _argo2
= 0;
8266 PyObject
* _obj3
= 0;
8267 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8280 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8281 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8287 #if PYTHON_API_VERSION >= 1009
8288 char* tmpPtr
; int tmpSize
;
8289 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8290 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8293 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8295 _arg3
= new wxString(tmpPtr
, tmpSize
);
8297 if (!PyString_Check(_obj3
)) {
8298 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8301 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8305 wxPy_BEGIN_ALLOW_THREADS
;
8306 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8308 wxPy_END_ALLOW_THREADS
;
8309 if (PyErr_Occurred()) return NULL
;
8310 } _resultobj
= Py_BuildValue("i",_result
);
8318 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8319 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8320 PyObject
* _resultobj
;
8323 PyObject
* _argo0
= 0;
8324 char *_kwnames
[] = { "self", NULL
};
8327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8337 wxPy_BEGIN_ALLOW_THREADS
;
8338 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8340 wxPy_END_ALLOW_THREADS
;
8341 if (PyErr_Occurred()) return NULL
;
8342 } _resultobj
= Py_BuildValue("i",_result
);
8346 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8347 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8348 PyObject
* _resultobj
;
8352 PyObject
* _argo0
= 0;
8353 char *_kwnames
[] = { "self","pos", NULL
};
8356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8366 wxPy_BEGIN_ALLOW_THREADS
;
8367 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8369 wxPy_END_ALLOW_THREADS
;
8370 if (PyErr_Occurred()) return NULL
;
8371 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8375 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8376 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8377 PyObject
* _resultobj
;
8383 PyObject
* _argo0
= 0;
8384 PyObject
* _argo2
= 0;
8385 PyObject
* _obj3
= 0;
8386 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8399 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8400 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8406 #if PYTHON_API_VERSION >= 1009
8407 char* tmpPtr
; int tmpSize
;
8408 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8409 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8412 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8414 _arg3
= new wxString(tmpPtr
, tmpSize
);
8416 if (!PyString_Check(_obj3
)) {
8417 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8420 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8424 wxPy_BEGIN_ALLOW_THREADS
;
8425 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8427 wxPy_END_ALLOW_THREADS
;
8428 if (PyErr_Occurred()) return NULL
;
8429 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8437 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8438 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8439 PyObject
* _resultobj
;
8443 PyObject
* _argo0
= 0;
8444 char *_kwnames
[] = { "self","pos", NULL
};
8447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8457 wxPy_BEGIN_ALLOW_THREADS
;
8458 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8460 wxPy_END_ALLOW_THREADS
;
8461 if (PyErr_Occurred()) return NULL
;
8462 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8466 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8467 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8468 PyObject
* _resultobj
;
8472 PyObject
* _argo0
= 0;
8474 char *_kwnames
[] = { "self","pos","enable", NULL
};
8477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8486 _arg2
= (bool ) tempbool2
;
8488 wxPy_BEGIN_ALLOW_THREADS
;
8489 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8491 wxPy_END_ALLOW_THREADS
;
8492 if (PyErr_Occurred()) return NULL
;
8493 } Py_INCREF(Py_None
);
8494 _resultobj
= Py_None
;
8498 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8499 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8500 PyObject
* _resultobj
;
8504 PyObject
* _argo0
= 0;
8505 PyObject
* _obj2
= 0;
8506 char *_kwnames
[] = { "self","pos","label", NULL
};
8509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8519 #if PYTHON_API_VERSION >= 1009
8520 char* tmpPtr
; int tmpSize
;
8521 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8522 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8525 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8527 _arg2
= new wxString(tmpPtr
, tmpSize
);
8529 if (!PyString_Check(_obj2
)) {
8530 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8533 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8537 wxPy_BEGIN_ALLOW_THREADS
;
8538 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8540 wxPy_END_ALLOW_THREADS
;
8541 if (PyErr_Occurred()) return NULL
;
8542 } Py_INCREF(Py_None
);
8543 _resultobj
= Py_None
;
8551 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8552 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8553 PyObject
* _resultobj
;
8557 PyObject
* _argo0
= 0;
8558 char *_kwnames
[] = { "self","pos", NULL
};
8561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8571 wxPy_BEGIN_ALLOW_THREADS
;
8572 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8574 wxPy_END_ALLOW_THREADS
;
8575 if (PyErr_Occurred()) return NULL
;
8577 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8585 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8586 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8587 PyObject
* _resultobj
;
8592 PyObject
* _argo0
= 0;
8593 PyObject
* _obj1
= 0;
8594 PyObject
* _obj2
= 0;
8595 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8608 #if PYTHON_API_VERSION >= 1009
8609 char* tmpPtr
; int tmpSize
;
8610 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8611 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8614 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8616 _arg1
= new wxString(tmpPtr
, tmpSize
);
8618 if (!PyString_Check(_obj1
)) {
8619 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8622 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8626 #if PYTHON_API_VERSION >= 1009
8627 char* tmpPtr
; int tmpSize
;
8628 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8629 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8632 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8634 _arg2
= new wxString(tmpPtr
, tmpSize
);
8636 if (!PyString_Check(_obj2
)) {
8637 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8640 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8644 wxPy_BEGIN_ALLOW_THREADS
;
8645 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8647 wxPy_END_ALLOW_THREADS
;
8648 if (PyErr_Occurred()) return NULL
;
8649 } _resultobj
= Py_BuildValue("i",_result
);
8661 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8662 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8663 PyObject
* _resultobj
;
8664 wxMenuItem
* _result
;
8667 PyObject
* _argo0
= 0;
8668 char *_kwnames
[] = { "self","id", NULL
};
8671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8681 wxPy_BEGIN_ALLOW_THREADS
;
8682 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8684 wxPy_END_ALLOW_THREADS
;
8685 if (PyErr_Occurred()) return NULL
;
8686 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8690 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8691 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8692 PyObject
* _resultobj
;
8696 PyObject
* _argo0
= 0;
8698 char *_kwnames
[] = { "self","id","enable", NULL
};
8701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8710 _arg2
= (bool ) tempbool2
;
8712 wxPy_BEGIN_ALLOW_THREADS
;
8713 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8715 wxPy_END_ALLOW_THREADS
;
8716 if (PyErr_Occurred()) return NULL
;
8717 } Py_INCREF(Py_None
);
8718 _resultobj
= Py_None
;
8722 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8723 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8724 PyObject
* _resultobj
;
8728 PyObject
* _argo0
= 0;
8730 char *_kwnames
[] = { "self","id","check", NULL
};
8733 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8736 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8737 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8738 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8742 _arg2
= (bool ) tempbool2
;
8744 wxPy_BEGIN_ALLOW_THREADS
;
8745 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8747 wxPy_END_ALLOW_THREADS
;
8748 if (PyErr_Occurred()) return NULL
;
8749 } Py_INCREF(Py_None
);
8750 _resultobj
= Py_None
;
8754 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8755 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8756 PyObject
* _resultobj
;
8760 PyObject
* _argo0
= 0;
8761 char *_kwnames
[] = { "self","id", NULL
};
8764 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8767 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8768 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8769 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8774 wxPy_BEGIN_ALLOW_THREADS
;
8775 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8777 wxPy_END_ALLOW_THREADS
;
8778 if (PyErr_Occurred()) return NULL
;
8779 } _resultobj
= Py_BuildValue("i",_result
);
8783 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8784 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8785 PyObject
* _resultobj
;
8789 PyObject
* _argo0
= 0;
8790 char *_kwnames
[] = { "self","id", NULL
};
8793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8803 wxPy_BEGIN_ALLOW_THREADS
;
8804 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8806 wxPy_END_ALLOW_THREADS
;
8807 if (PyErr_Occurred()) return NULL
;
8808 } _resultobj
= Py_BuildValue("i",_result
);
8812 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8813 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8814 PyObject
* _resultobj
;
8818 PyObject
* _argo0
= 0;
8819 PyObject
* _obj2
= 0;
8820 char *_kwnames
[] = { "self","id","label", NULL
};
8823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8833 #if PYTHON_API_VERSION >= 1009
8834 char* tmpPtr
; int tmpSize
;
8835 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8836 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8839 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8841 _arg2
= new wxString(tmpPtr
, tmpSize
);
8843 if (!PyString_Check(_obj2
)) {
8844 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8847 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8851 wxPy_BEGIN_ALLOW_THREADS
;
8852 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
8854 wxPy_END_ALLOW_THREADS
;
8855 if (PyErr_Occurred()) return NULL
;
8856 } Py_INCREF(Py_None
);
8857 _resultobj
= Py_None
;
8865 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8866 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8867 PyObject
* _resultobj
;
8871 PyObject
* _argo0
= 0;
8872 char *_kwnames
[] = { "self","id", NULL
};
8875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
8878 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8879 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8880 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
8885 wxPy_BEGIN_ALLOW_THREADS
;
8886 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
8888 wxPy_END_ALLOW_THREADS
;
8889 if (PyErr_Occurred()) return NULL
;
8891 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8899 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
8900 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8901 PyObject
* _resultobj
;
8905 PyObject
* _argo0
= 0;
8906 PyObject
* _obj2
= 0;
8907 char *_kwnames
[] = { "self","id","helpString", NULL
};
8910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
8920 #if PYTHON_API_VERSION >= 1009
8921 char* tmpPtr
; int tmpSize
;
8922 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8923 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8926 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8928 _arg2
= new wxString(tmpPtr
, tmpSize
);
8930 if (!PyString_Check(_obj2
)) {
8931 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8934 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8938 wxPy_BEGIN_ALLOW_THREADS
;
8939 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
8941 wxPy_END_ALLOW_THREADS
;
8942 if (PyErr_Occurred()) return NULL
;
8943 } Py_INCREF(Py_None
);
8944 _resultobj
= Py_None
;
8952 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
8953 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8954 PyObject
* _resultobj
;
8958 PyObject
* _argo0
= 0;
8959 char *_kwnames
[] = { "self","id", NULL
};
8962 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
8965 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8966 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8967 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
8972 wxPy_BEGIN_ALLOW_THREADS
;
8973 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
8975 wxPy_END_ALLOW_THREADS
;
8976 if (PyErr_Occurred()) return NULL
;
8978 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8986 static void *SwigwxMenuItemTowxObject(void *ptr
) {
8989 src
= (wxMenuItem
*) ptr
;
8990 dest
= (wxObject
*) src
;
8991 return (void *) dest
;
8994 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8995 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8996 PyObject
* _resultobj
;
8997 wxMenuItem
* _result
;
8998 wxMenu
* _arg0
= (wxMenu
*) NULL
;
8999 int _arg1
= (int ) wxID_SEPARATOR
;
9000 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9001 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9002 bool _arg4
= (bool ) FALSE
;
9003 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9004 PyObject
* _argo0
= 0;
9005 PyObject
* _obj2
= 0;
9006 PyObject
* _obj3
= 0;
9007 int tempbool4
= (int) FALSE
;
9008 PyObject
* _argo5
= 0;
9009 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9024 #if PYTHON_API_VERSION >= 1009
9025 char* tmpPtr
; int tmpSize
;
9026 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9027 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9030 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9032 _arg2
= new wxString(tmpPtr
, tmpSize
);
9034 if (!PyString_Check(_obj2
)) {
9035 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9038 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9043 #if PYTHON_API_VERSION >= 1009
9044 char* tmpPtr
; int tmpSize
;
9045 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9046 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9049 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9051 _arg3
= new wxString(tmpPtr
, tmpSize
);
9053 if (!PyString_Check(_obj3
)) {
9054 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9057 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9060 _arg4
= (bool ) tempbool4
;
9062 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9063 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9069 wxPy_BEGIN_ALLOW_THREADS
;
9070 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9072 wxPy_END_ALLOW_THREADS
;
9073 if (PyErr_Occurred()) return NULL
;
9075 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9076 _resultobj
= Py_BuildValue("s",_ptemp
);
9079 _resultobj
= Py_None
;
9092 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9093 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9094 PyObject
* _resultobj
;
9097 PyObject
* _argo0
= 0;
9098 char *_kwnames
[] = { "self", NULL
};
9101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9111 wxPy_BEGIN_ALLOW_THREADS
;
9112 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9114 wxPy_END_ALLOW_THREADS
;
9115 if (PyErr_Occurred()) return NULL
;
9116 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9120 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9121 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9122 PyObject
* _resultobj
;
9125 PyObject
* _argo0
= 0;
9126 char *_kwnames
[] = { "self","id", NULL
};
9129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9139 wxPy_BEGIN_ALLOW_THREADS
;
9140 wxMenuItem_SetId(_arg0
,_arg1
);
9142 wxPy_END_ALLOW_THREADS
;
9143 if (PyErr_Occurred()) return NULL
;
9144 } Py_INCREF(Py_None
);
9145 _resultobj
= Py_None
;
9149 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9150 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9151 PyObject
* _resultobj
;
9154 PyObject
* _argo0
= 0;
9155 char *_kwnames
[] = { "self", NULL
};
9158 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9161 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9162 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9163 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9168 wxPy_BEGIN_ALLOW_THREADS
;
9169 _result
= (int )wxMenuItem_GetId(_arg0
);
9171 wxPy_END_ALLOW_THREADS
;
9172 if (PyErr_Occurred()) return NULL
;
9173 } _resultobj
= Py_BuildValue("i",_result
);
9177 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9178 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9179 PyObject
* _resultobj
;
9182 PyObject
* _argo0
= 0;
9183 char *_kwnames
[] = { "self", NULL
};
9186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9196 wxPy_BEGIN_ALLOW_THREADS
;
9197 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9199 wxPy_END_ALLOW_THREADS
;
9200 if (PyErr_Occurred()) return NULL
;
9201 } _resultobj
= Py_BuildValue("i",_result
);
9205 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9206 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9207 PyObject
* _resultobj
;
9210 PyObject
* _argo0
= 0;
9211 PyObject
* _obj1
= 0;
9212 char *_kwnames
[] = { "self","str", NULL
};
9215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9218 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9219 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9225 #if PYTHON_API_VERSION >= 1009
9226 char* tmpPtr
; int tmpSize
;
9227 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9228 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9231 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9233 _arg1
= new wxString(tmpPtr
, tmpSize
);
9235 if (!PyString_Check(_obj1
)) {
9236 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9239 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9243 wxPy_BEGIN_ALLOW_THREADS
;
9244 wxMenuItem_SetText(_arg0
,*_arg1
);
9246 wxPy_END_ALLOW_THREADS
;
9247 if (PyErr_Occurred()) return NULL
;
9248 } Py_INCREF(Py_None
);
9249 _resultobj
= Py_None
;
9257 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9258 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9259 PyObject
* _resultobj
;
9262 PyObject
* _argo0
= 0;
9263 char *_kwnames
[] = { "self", NULL
};
9266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9276 wxPy_BEGIN_ALLOW_THREADS
;
9277 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9279 wxPy_END_ALLOW_THREADS
;
9280 if (PyErr_Occurred()) return NULL
;
9282 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9290 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9291 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9292 PyObject
* _resultobj
;
9295 PyObject
* _argo0
= 0;
9296 char *_kwnames
[] = { "self", NULL
};
9299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9309 wxPy_BEGIN_ALLOW_THREADS
;
9310 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9311 _result
= (wxString
*) &_result_ref
;
9313 wxPy_END_ALLOW_THREADS
;
9314 if (PyErr_Occurred()) return NULL
;
9316 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9321 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9322 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9323 PyObject
* _resultobj
;
9326 PyObject
* _argo0
= 0;
9328 char *_kwnames
[] = { "self","checkable", NULL
};
9331 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9334 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9335 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9336 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9340 _arg1
= (bool ) tempbool1
;
9342 wxPy_BEGIN_ALLOW_THREADS
;
9343 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9345 wxPy_END_ALLOW_THREADS
;
9346 if (PyErr_Occurred()) return NULL
;
9347 } Py_INCREF(Py_None
);
9348 _resultobj
= Py_None
;
9352 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9353 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9354 PyObject
* _resultobj
;
9357 PyObject
* _argo0
= 0;
9358 char *_kwnames
[] = { "self", NULL
};
9361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9371 wxPy_BEGIN_ALLOW_THREADS
;
9372 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9374 wxPy_END_ALLOW_THREADS
;
9375 if (PyErr_Occurred()) return NULL
;
9376 } _resultobj
= Py_BuildValue("i",_result
);
9380 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9381 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9382 PyObject
* _resultobj
;
9385 PyObject
* _argo0
= 0;
9386 char *_kwnames
[] = { "self", NULL
};
9389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9399 wxPy_BEGIN_ALLOW_THREADS
;
9400 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9402 wxPy_END_ALLOW_THREADS
;
9403 if (PyErr_Occurred()) return NULL
;
9404 } _resultobj
= Py_BuildValue("i",_result
);
9408 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9409 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9410 PyObject
* _resultobj
;
9413 PyObject
* _argo0
= 0;
9414 PyObject
* _argo1
= 0;
9415 char *_kwnames
[] = { "self","menu", NULL
};
9418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9428 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9429 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9435 wxPy_BEGIN_ALLOW_THREADS
;
9436 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9438 wxPy_END_ALLOW_THREADS
;
9439 if (PyErr_Occurred()) return NULL
;
9440 } Py_INCREF(Py_None
);
9441 _resultobj
= Py_None
;
9445 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9446 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9447 PyObject
* _resultobj
;
9450 PyObject
* _argo0
= 0;
9451 char *_kwnames
[] = { "self", NULL
};
9454 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9457 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9458 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9464 wxPy_BEGIN_ALLOW_THREADS
;
9465 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9467 wxPy_END_ALLOW_THREADS
;
9468 if (PyErr_Occurred()) return NULL
;
9469 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9473 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9474 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9475 PyObject
* _resultobj
;
9477 bool _arg1
= (bool ) TRUE
;
9478 PyObject
* _argo0
= 0;
9479 int tempbool1
= (int) TRUE
;
9480 char *_kwnames
[] = { "self","enable", NULL
};
9483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9492 _arg1
= (bool ) tempbool1
;
9494 wxPy_BEGIN_ALLOW_THREADS
;
9495 wxMenuItem_Enable(_arg0
,_arg1
);
9497 wxPy_END_ALLOW_THREADS
;
9498 if (PyErr_Occurred()) return NULL
;
9499 } Py_INCREF(Py_None
);
9500 _resultobj
= Py_None
;
9504 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9505 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9506 PyObject
* _resultobj
;
9509 PyObject
* _argo0
= 0;
9510 char *_kwnames
[] = { "self", NULL
};
9513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9523 wxPy_BEGIN_ALLOW_THREADS
;
9524 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9526 wxPy_END_ALLOW_THREADS
;
9527 if (PyErr_Occurred()) return NULL
;
9528 } _resultobj
= Py_BuildValue("i",_result
);
9532 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9533 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9534 PyObject
* _resultobj
;
9536 bool _arg1
= (bool ) TRUE
;
9537 PyObject
* _argo0
= 0;
9538 int tempbool1
= (int) TRUE
;
9539 char *_kwnames
[] = { "self","check", NULL
};
9542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9551 _arg1
= (bool ) tempbool1
;
9553 wxPy_BEGIN_ALLOW_THREADS
;
9554 wxMenuItem_Check(_arg0
,_arg1
);
9556 wxPy_END_ALLOW_THREADS
;
9557 if (PyErr_Occurred()) return NULL
;
9558 } Py_INCREF(Py_None
);
9559 _resultobj
= Py_None
;
9563 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9564 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9565 PyObject
* _resultobj
;
9568 PyObject
* _argo0
= 0;
9569 char *_kwnames
[] = { "self", NULL
};
9572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9582 wxPy_BEGIN_ALLOW_THREADS
;
9583 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9585 wxPy_END_ALLOW_THREADS
;
9586 if (PyErr_Occurred()) return NULL
;
9587 } _resultobj
= Py_BuildValue("i",_result
);
9591 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9592 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9593 PyObject
* _resultobj
;
9595 PyObject
* _argo0
= 0;
9596 char *_kwnames
[] = { "self", NULL
};
9599 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9602 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9603 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9604 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9609 wxPy_BEGIN_ALLOW_THREADS
;
9610 wxMenuItem_Toggle(_arg0
);
9612 wxPy_END_ALLOW_THREADS
;
9613 if (PyErr_Occurred()) return NULL
;
9614 } Py_INCREF(Py_None
);
9615 _resultobj
= Py_None
;
9619 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9620 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9621 PyObject
* _resultobj
;
9624 PyObject
* _argo0
= 0;
9625 PyObject
* _obj1
= 0;
9626 char *_kwnames
[] = { "self","str", NULL
};
9629 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9632 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9633 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9634 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9639 #if PYTHON_API_VERSION >= 1009
9640 char* tmpPtr
; int tmpSize
;
9641 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9642 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9645 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9647 _arg1
= new wxString(tmpPtr
, tmpSize
);
9649 if (!PyString_Check(_obj1
)) {
9650 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9653 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9657 wxPy_BEGIN_ALLOW_THREADS
;
9658 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9660 wxPy_END_ALLOW_THREADS
;
9661 if (PyErr_Occurred()) return NULL
;
9662 } Py_INCREF(Py_None
);
9663 _resultobj
= Py_None
;
9671 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9672 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9673 PyObject
* _resultobj
;
9676 PyObject
* _argo0
= 0;
9677 char *_kwnames
[] = { "self", NULL
};
9680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9690 wxPy_BEGIN_ALLOW_THREADS
;
9691 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9692 _result
= (wxString
*) &_result_ref
;
9694 wxPy_END_ALLOW_THREADS
;
9695 if (PyErr_Occurred()) return NULL
;
9697 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9702 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9703 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9704 PyObject
* _resultobj
;
9705 wxAcceleratorEntry
* _result
;
9707 PyObject
* _argo0
= 0;
9708 char *_kwnames
[] = { "self", NULL
};
9712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9722 wxPy_BEGIN_ALLOW_THREADS
;
9723 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9725 wxPy_END_ALLOW_THREADS
;
9726 if (PyErr_Occurred()) return NULL
;
9728 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9729 _resultobj
= Py_BuildValue("s",_ptemp
);
9732 _resultobj
= Py_None
;
9737 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9738 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9739 PyObject
* _resultobj
;
9741 wxAcceleratorEntry
* _arg1
;
9742 PyObject
* _argo0
= 0;
9743 PyObject
* _argo1
= 0;
9744 char *_kwnames
[] = { "self","accel", NULL
};
9747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9757 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9758 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9759 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9764 wxPy_BEGIN_ALLOW_THREADS
;
9765 wxMenuItem_SetAccel(_arg0
,_arg1
);
9767 wxPy_END_ALLOW_THREADS
;
9768 if (PyErr_Occurred()) return NULL
;
9769 } Py_INCREF(Py_None
);
9770 _resultobj
= Py_None
;
9774 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9775 PyObject
* _resultobj
;
9778 PyObject
* _obj0
= 0;
9779 char *_kwnames
[] = { "text", NULL
};
9782 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9785 #if PYTHON_API_VERSION >= 1009
9786 char* tmpPtr
; int tmpSize
;
9787 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9788 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9791 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9793 _arg0
= new wxString(tmpPtr
, tmpSize
);
9795 if (!PyString_Check(_obj0
)) {
9796 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9799 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9803 wxPy_BEGIN_ALLOW_THREADS
;
9804 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9806 wxPy_END_ALLOW_THREADS
;
9807 if (PyErr_Occurred()) return NULL
;
9809 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9821 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9822 static PyObject
*_wrap_wxMenuItem_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9823 PyObject
* _resultobj
;
9826 PyObject
* _argo0
= 0;
9827 PyObject
* _argo1
= 0;
9828 char *_kwnames
[] = { "self","font", NULL
};
9831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetFont",_kwnames
,&_argo0
,&_argo1
))
9834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
9841 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9842 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
9843 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
9848 wxPy_BEGIN_ALLOW_THREADS
;
9849 wxMenuItem_SetFont(_arg0
,*_arg1
);
9851 wxPy_END_ALLOW_THREADS
;
9852 if (PyErr_Occurred()) return NULL
;
9853 } Py_INCREF(Py_None
);
9854 _resultobj
= Py_None
;
9858 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
9859 static PyObject
*_wrap_wxMenuItem_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9860 PyObject
* _resultobj
;
9863 PyObject
* _argo0
= 0;
9864 char *_kwnames
[] = { "self", NULL
};
9868 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetFont",_kwnames
,&_argo0
))
9871 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9872 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9873 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
9878 wxPy_BEGIN_ALLOW_THREADS
;
9879 wxFont
& _result_ref
= wxMenuItem_GetFont(_arg0
);
9880 _result
= (wxFont
*) &_result_ref
;
9882 wxPy_END_ALLOW_THREADS
;
9883 if (PyErr_Occurred()) return NULL
;
9885 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
9886 _resultobj
= Py_BuildValue("s",_ptemp
);
9889 _resultobj
= Py_None
;
9894 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
9895 static PyObject
*_wrap_wxMenuItem_SetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9896 PyObject
* _resultobj
;
9899 PyObject
* _argo0
= 0;
9901 PyObject
* _obj1
= 0;
9902 char *_kwnames
[] = { "self","colText", NULL
};
9905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetTextColour",_kwnames
,&_argo0
,&_obj1
))
9908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
9916 if (! wxColour_helper(_obj1
, &_arg1
))
9920 wxPy_BEGIN_ALLOW_THREADS
;
9921 wxMenuItem_SetTextColour(_arg0
,*_arg1
);
9923 wxPy_END_ALLOW_THREADS
;
9924 if (PyErr_Occurred()) return NULL
;
9925 } Py_INCREF(Py_None
);
9926 _resultobj
= Py_None
;
9930 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
9931 static PyObject
*_wrap_wxMenuItem_GetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9932 PyObject
* _resultobj
;
9935 PyObject
* _argo0
= 0;
9936 char *_kwnames
[] = { "self", NULL
};
9940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetTextColour",_kwnames
,&_argo0
))
9943 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9944 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9945 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
9950 wxPy_BEGIN_ALLOW_THREADS
;
9951 wxColour
& _result_ref
= wxMenuItem_GetTextColour(_arg0
);
9952 _result
= (wxColour
*) &_result_ref
;
9954 wxPy_END_ALLOW_THREADS
;
9955 if (PyErr_Occurred()) return NULL
;
9957 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
9958 _resultobj
= Py_BuildValue("s",_ptemp
);
9961 _resultobj
= Py_None
;
9966 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
9967 static PyObject
*_wrap_wxMenuItem_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9968 PyObject
* _resultobj
;
9971 PyObject
* _argo0
= 0;
9973 PyObject
* _obj1
= 0;
9974 char *_kwnames
[] = { "self","colBack", NULL
};
9977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
9980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
9988 if (! wxColour_helper(_obj1
, &_arg1
))
9992 wxPy_BEGIN_ALLOW_THREADS
;
9993 wxMenuItem_SetBackgroundColour(_arg0
,*_arg1
);
9995 wxPy_END_ALLOW_THREADS
;
9996 if (PyErr_Occurred()) return NULL
;
9997 } Py_INCREF(Py_None
);
9998 _resultobj
= Py_None
;
10002 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
10003 static PyObject
*_wrap_wxMenuItem_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10004 PyObject
* _resultobj
;
10005 wxColour
* _result
;
10006 wxMenuItem
* _arg0
;
10007 PyObject
* _argo0
= 0;
10008 char *_kwnames
[] = { "self", NULL
};
10012 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetBackgroundColour",_kwnames
,&_argo0
))
10015 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10016 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10017 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
10022 wxPy_BEGIN_ALLOW_THREADS
;
10023 wxColour
& _result_ref
= wxMenuItem_GetBackgroundColour(_arg0
);
10024 _result
= (wxColour
*) &_result_ref
;
10026 wxPy_END_ALLOW_THREADS
;
10027 if (PyErr_Occurred()) return NULL
;
10029 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxColour_p");
10030 _resultobj
= Py_BuildValue("s",_ptemp
);
10032 Py_INCREF(Py_None
);
10033 _resultobj
= Py_None
;
10038 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
10039 static PyObject
*_wrap_wxMenuItem_SetBitmaps(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10040 PyObject
* _resultobj
;
10041 wxMenuItem
* _arg0
;
10043 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10044 PyObject
* _argo0
= 0;
10045 PyObject
* _argo1
= 0;
10046 PyObject
* _argo2
= 0;
10047 char *_kwnames
[] = { "self","bmpChecked","bmpUnchecked", NULL
};
10050 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxMenuItem_SetBitmaps",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10053 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10054 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10055 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
10060 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10061 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10062 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10067 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10068 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10074 wxPy_BEGIN_ALLOW_THREADS
;
10075 wxMenuItem_SetBitmaps(_arg0
,*_arg1
,*_arg2
);
10077 wxPy_END_ALLOW_THREADS
;
10078 if (PyErr_Occurred()) return NULL
;
10079 } Py_INCREF(Py_None
);
10080 _resultobj
= Py_None
;
10084 #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
10085 static PyObject
*_wrap_wxMenuItem_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10086 PyObject
* _resultobj
;
10087 wxMenuItem
* _arg0
;
10089 PyObject
* _argo0
= 0;
10090 PyObject
* _argo1
= 0;
10091 char *_kwnames
[] = { "self","bmpChecked", NULL
};
10094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
10097 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10098 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10099 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p.");
10104 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10105 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p.");
10111 wxPy_BEGIN_ALLOW_THREADS
;
10112 wxMenuItem_SetBitmap(_arg0
,*_arg1
);
10114 wxPy_END_ALLOW_THREADS
;
10115 if (PyErr_Occurred()) return NULL
;
10116 } Py_INCREF(Py_None
);
10117 _resultobj
= Py_None
;
10121 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
10122 static PyObject
*_wrap_wxMenuItem_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10123 PyObject
* _resultobj
;
10124 wxBitmap
* _result
;
10125 wxMenuItem
* _arg0
;
10126 bool _arg1
= (bool ) TRUE
;
10127 PyObject
* _argo0
= 0;
10128 int tempbool1
= (int) TRUE
;
10129 char *_kwnames
[] = { "self","bChecked", NULL
};
10133 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_GetBitmap",_kwnames
,&_argo0
,&tempbool1
))
10136 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10137 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10138 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
10142 _arg1
= (bool ) tempbool1
;
10144 wxPy_BEGIN_ALLOW_THREADS
;
10145 const wxBitmap
& _result_ref
= wxMenuItem_GetBitmap(_arg0
,_arg1
);
10146 _result
= (wxBitmap
*) &_result_ref
;
10148 wxPy_END_ALLOW_THREADS
;
10149 if (PyErr_Occurred()) return NULL
;
10151 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
10152 _resultobj
= Py_BuildValue("s",_ptemp
);
10154 Py_INCREF(Py_None
);
10155 _resultobj
= Py_None
;
10160 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
10161 static PyObject
*_wrap_wxMenuItem_SetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10162 PyObject
* _resultobj
;
10163 wxMenuItem
* _arg0
;
10165 PyObject
* _argo0
= 0;
10166 char *_kwnames
[] = { "self","nWidth", NULL
};
10169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetMarginWidth",_kwnames
,&_argo0
,&_arg1
))
10172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
10179 wxPy_BEGIN_ALLOW_THREADS
;
10180 wxMenuItem_SetMarginWidth(_arg0
,_arg1
);
10182 wxPy_END_ALLOW_THREADS
;
10183 if (PyErr_Occurred()) return NULL
;
10184 } Py_INCREF(Py_None
);
10185 _resultobj
= Py_None
;
10189 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
10190 static PyObject
*_wrap_wxMenuItem_GetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10191 PyObject
* _resultobj
;
10193 wxMenuItem
* _arg0
;
10194 PyObject
* _argo0
= 0;
10195 char *_kwnames
[] = { "self", NULL
};
10198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMarginWidth",_kwnames
,&_argo0
))
10201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
10208 wxPy_BEGIN_ALLOW_THREADS
;
10209 _result
= (int )wxMenuItem_GetMarginWidth(_arg0
);
10211 wxPy_END_ALLOW_THREADS
;
10212 if (PyErr_Occurred()) return NULL
;
10213 } _resultobj
= Py_BuildValue("i",_result
);
10217 static PyObject
*_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10218 PyObject
* _resultobj
;
10220 char *_kwnames
[] = { NULL
};
10223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxMenuItem_GetDefaultMarginWidth",_kwnames
))
10226 wxPy_BEGIN_ALLOW_THREADS
;
10227 _result
= (int )wxMenuItem::GetDefaultMarginWidth();
10229 wxPy_END_ALLOW_THREADS
;
10230 if (PyErr_Occurred()) return NULL
;
10231 } _resultobj
= Py_BuildValue("i",_result
);
10235 #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn())
10236 static PyObject
*_wrap_wxMenuItem_IsOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10237 PyObject
* _resultobj
;
10239 wxMenuItem
* _arg0
;
10240 PyObject
* _argo0
= 0;
10241 char *_kwnames
[] = { "self", NULL
};
10244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsOwnerDrawn",_kwnames
,&_argo0
))
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_IsOwnerDrawn. Expected _wxMenuItem_p.");
10254 wxPy_BEGIN_ALLOW_THREADS
;
10255 _result
= (bool )wxMenuItem_IsOwnerDrawn(_arg0
);
10257 wxPy_END_ALLOW_THREADS
;
10258 if (PyErr_Occurred()) return NULL
;
10259 } _resultobj
= Py_BuildValue("i",_result
);
10263 #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn())
10264 static PyObject
*_wrap_wxMenuItem_ResetOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10265 PyObject
* _resultobj
;
10266 wxMenuItem
* _arg0
;
10267 PyObject
* _argo0
= 0;
10268 char *_kwnames
[] = { "self", NULL
};
10271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_ResetOwnerDrawn",_kwnames
,&_argo0
))
10274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p.");
10281 wxPy_BEGIN_ALLOW_THREADS
;
10282 wxMenuItem_ResetOwnerDrawn(_arg0
);
10284 wxPy_END_ALLOW_THREADS
;
10285 if (PyErr_Occurred()) return NULL
;
10286 } Py_INCREF(Py_None
);
10287 _resultobj
= Py_None
;
10291 static PyMethodDef windowscMethods
[] = {
10292 { "wxMenuItem_ResetOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_ResetOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10293 { "wxMenuItem_IsOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_IsOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10294 { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetDefaultMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10295 { "wxMenuItem_GetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10296 { "wxMenuItem_SetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_SetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10297 { "wxMenuItem_GetBitmap", (PyCFunction
) _wrap_wxMenuItem_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10298 { "wxMenuItem_SetBitmap", (PyCFunction
) _wrap_wxMenuItem_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10299 { "wxMenuItem_SetBitmaps", (PyCFunction
) _wrap_wxMenuItem_SetBitmaps
, METH_VARARGS
| METH_KEYWORDS
},
10300 { "wxMenuItem_GetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10301 { "wxMenuItem_SetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10302 { "wxMenuItem_GetTextColour", (PyCFunction
) _wrap_wxMenuItem_GetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10303 { "wxMenuItem_SetTextColour", (PyCFunction
) _wrap_wxMenuItem_SetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10304 { "wxMenuItem_GetFont", (PyCFunction
) _wrap_wxMenuItem_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10305 { "wxMenuItem_SetFont", (PyCFunction
) _wrap_wxMenuItem_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10306 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
10307 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10308 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10309 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10310 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10311 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
10312 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10313 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
10314 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10315 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10316 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10317 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10318 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10319 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10320 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10321 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
10322 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10323 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
10324 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10325 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10326 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10327 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10328 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10329 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10330 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10331 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10332 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10333 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10334 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10335 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
10336 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10337 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10338 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10339 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10340 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10341 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
10342 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10343 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10344 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10345 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
10346 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10347 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
10348 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
10349 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10350 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
10351 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
10352 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10353 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10354 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10355 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10356 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10357 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
10358 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
10359 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
10360 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
10361 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10362 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
10363 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10364 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10365 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
10366 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
10367 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
10368 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10369 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10370 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10371 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10372 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10373 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10374 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10375 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
10376 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10377 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10378 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10379 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
10380 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
10381 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10382 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
10383 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
10384 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
10385 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
10386 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10387 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
10388 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
10389 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
10390 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10391 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10392 { "wxScrolledWindow_ViewStart", (PyCFunction
) _wrap_wxScrolledWindow_ViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10393 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10394 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10395 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10396 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10397 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
10398 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
10399 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10400 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
10401 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10402 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
10403 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10404 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
10405 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10406 { "wxDialog_CreateButtonSizer", (PyCFunction
) _wrap_wxDialog_CreateButtonSizer
, METH_VARARGS
| METH_KEYWORDS
},
10407 { "wxDialog_CreateTextSizer", (PyCFunction
) _wrap_wxDialog_CreateTextSizer
, METH_VARARGS
| METH_KEYWORDS
},
10408 { "wxDialog_SetReturnCode", (PyCFunction
) _wrap_wxDialog_SetReturnCode
, METH_VARARGS
| METH_KEYWORDS
},
10409 { "wxDialog_GetReturnCode", (PyCFunction
) _wrap_wxDialog_GetReturnCode
, METH_VARARGS
| METH_KEYWORDS
},
10410 { "wxDialog_ShowModal", (PyCFunction
) _wrap_wxDialog_ShowModal
, METH_VARARGS
| METH_KEYWORDS
},
10411 { "wxDialog_Show", (PyCFunction
) _wrap_wxDialog_Show
, METH_VARARGS
| METH_KEYWORDS
},
10412 { "wxDialog_SetTitle", (PyCFunction
) _wrap_wxDialog_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10413 { "wxDialog_IsModal", (PyCFunction
) _wrap_wxDialog_IsModal
, METH_VARARGS
| METH_KEYWORDS
},
10414 { "wxDialog_SetModal", (PyCFunction
) _wrap_wxDialog_SetModal
, METH_VARARGS
| METH_KEYWORDS
},
10415 { "wxDialog_IsIconized", (PyCFunction
) _wrap_wxDialog_IsIconized
, METH_VARARGS
| METH_KEYWORDS
},
10416 { "wxDialog_Iconize", (PyCFunction
) _wrap_wxDialog_Iconize
, METH_VARARGS
| METH_KEYWORDS
},
10417 { "wxDialog_GetTitle", (PyCFunction
) _wrap_wxDialog_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10418 { "wxDialog_EndModal", (PyCFunction
) _wrap_wxDialog_EndModal
, METH_VARARGS
| METH_KEYWORDS
},
10419 { "wxDialog_Centre", (PyCFunction
) _wrap_wxDialog_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10420 { "new_wxDialog", (PyCFunction
) _wrap_new_wxDialog
, METH_VARARGS
| METH_KEYWORDS
},
10421 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10422 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10423 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10424 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
10425 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10426 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10427 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10428 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10429 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10430 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10431 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10432 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10433 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10434 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10435 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10436 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10437 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10438 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10439 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10440 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10441 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10442 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10443 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10444 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10445 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10446 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10447 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10448 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10449 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10450 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10451 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10452 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10453 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10454 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10455 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10456 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10457 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10458 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10459 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10460 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10461 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10462 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10463 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10464 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10465 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10466 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10467 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10468 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10469 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10470 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10471 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10472 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10473 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10474 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10475 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10476 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10477 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10478 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10479 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10480 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10481 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10482 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10483 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10484 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10485 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10486 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10487 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10488 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10489 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10490 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10491 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10492 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10493 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10494 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10495 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10496 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10497 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10498 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10499 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10500 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10501 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10502 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10503 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10504 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10505 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10506 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10507 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10508 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10509 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10510 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10511 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10512 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10513 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10514 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10515 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10516 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10517 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10518 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10519 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10520 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10521 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10522 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10523 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10524 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10525 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10526 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10527 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10528 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10529 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10530 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10531 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10532 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10533 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10534 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10535 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10536 { "wxWindow_DragAcceptFiles", (PyCFunction
) _wrap_wxWindow_DragAcceptFiles
, METH_VARARGS
| METH_KEYWORDS
},
10537 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10538 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10539 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10540 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10541 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10542 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10543 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10544 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10545 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10546 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10547 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10548 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10549 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10550 { "wxPyValidator__setSelf", (PyCFunction
) _wrap_wxPyValidator__setSelf
, METH_VARARGS
| METH_KEYWORDS
},
10551 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10552 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10553 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10554 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10555 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10556 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10557 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10558 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10559 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10560 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10561 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10562 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10563 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10564 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10565 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10566 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10567 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10568 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10569 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10570 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10571 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10572 { "wxWindow_FromHWND", (PyCFunction
) _wrap_wxWindow_FromHWND
, METH_VARARGS
| METH_KEYWORDS
},
10573 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10580 * This table is used by the pointer type-checker
10582 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10583 { "_signed_long","_long",0},
10584 { "_wxPrintQuality","_wxCoord",0},
10585 { "_wxPrintQuality","_int",0},
10586 { "_wxPrintQuality","_signed_int",0},
10587 { "_wxPrintQuality","_unsigned_int",0},
10588 { "_wxPrintQuality","_wxWindowID",0},
10589 { "_wxPrintQuality","_uint",0},
10590 { "_wxPrintQuality","_EBool",0},
10591 { "_wxPrintQuality","_size_t",0},
10592 { "_wxPrintQuality","_time_t",0},
10593 { "_byte","_unsigned_char",0},
10594 { "_long","_unsigned_long",0},
10595 { "_long","_signed_long",0},
10596 { "_size_t","_wxCoord",0},
10597 { "_size_t","_wxPrintQuality",0},
10598 { "_size_t","_time_t",0},
10599 { "_size_t","_unsigned_int",0},
10600 { "_size_t","_int",0},
10601 { "_size_t","_wxWindowID",0},
10602 { "_size_t","_uint",0},
10603 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10604 { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel
},
10605 { "_uint","_wxCoord",0},
10606 { "_uint","_wxPrintQuality",0},
10607 { "_uint","_time_t",0},
10608 { "_uint","_size_t",0},
10609 { "_uint","_unsigned_int",0},
10610 { "_uint","_int",0},
10611 { "_uint","_wxWindowID",0},
10612 { "_wxChar","_char",0},
10613 { "_char","_wxChar",0},
10614 { "_EBool","_wxCoord",0},
10615 { "_EBool","_wxPrintQuality",0},
10616 { "_EBool","_signed_int",0},
10617 { "_EBool","_int",0},
10618 { "_EBool","_wxWindowID",0},
10619 { "_unsigned_long","_long",0},
10620 { "_signed_int","_wxCoord",0},
10621 { "_signed_int","_wxPrintQuality",0},
10622 { "_signed_int","_EBool",0},
10623 { "_signed_int","_wxWindowID",0},
10624 { "_signed_int","_int",0},
10625 { "_WXTYPE","_short",0},
10626 { "_WXTYPE","_signed_short",0},
10627 { "_WXTYPE","_unsigned_short",0},
10628 { "_unsigned_short","_WXTYPE",0},
10629 { "_unsigned_short","_short",0},
10630 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10631 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10632 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10633 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10634 { "_wxObject","_wxDialog",SwigwxDialogTowxObject
},
10635 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10636 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10637 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10638 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10639 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10640 { "_signed_short","_WXTYPE",0},
10641 { "_signed_short","_short",0},
10642 { "_unsigned_char","_byte",0},
10643 { "_unsigned_int","_wxCoord",0},
10644 { "_unsigned_int","_wxPrintQuality",0},
10645 { "_unsigned_int","_time_t",0},
10646 { "_unsigned_int","_size_t",0},
10647 { "_unsigned_int","_uint",0},
10648 { "_unsigned_int","_wxWindowID",0},
10649 { "_unsigned_int","_int",0},
10650 { "_short","_WXTYPE",0},
10651 { "_short","_unsigned_short",0},
10652 { "_short","_signed_short",0},
10653 { "_wxWindowID","_wxCoord",0},
10654 { "_wxWindowID","_wxPrintQuality",0},
10655 { "_wxWindowID","_time_t",0},
10656 { "_wxWindowID","_size_t",0},
10657 { "_wxWindowID","_EBool",0},
10658 { "_wxWindowID","_uint",0},
10659 { "_wxWindowID","_int",0},
10660 { "_wxWindowID","_signed_int",0},
10661 { "_wxWindowID","_unsigned_int",0},
10662 { "_int","_wxCoord",0},
10663 { "_int","_wxPrintQuality",0},
10664 { "_int","_time_t",0},
10665 { "_int","_size_t",0},
10666 { "_int","_EBool",0},
10667 { "_int","_uint",0},
10668 { "_int","_wxWindowID",0},
10669 { "_int","_unsigned_int",0},
10670 { "_int","_signed_int",0},
10671 { "_time_t","_wxCoord",0},
10672 { "_time_t","_wxPrintQuality",0},
10673 { "_time_t","_unsigned_int",0},
10674 { "_time_t","_int",0},
10675 { "_time_t","_wxWindowID",0},
10676 { "_time_t","_uint",0},
10677 { "_time_t","_size_t",0},
10678 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10679 { "_wxCoord","_int",0},
10680 { "_wxCoord","_signed_int",0},
10681 { "_wxCoord","_unsigned_int",0},
10682 { "_wxCoord","_wxWindowID",0},
10683 { "_wxCoord","_uint",0},
10684 { "_wxCoord","_EBool",0},
10685 { "_wxCoord","_size_t",0},
10686 { "_wxCoord","_time_t",0},
10687 { "_wxCoord","_wxPrintQuality",0},
10688 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10689 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10690 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10691 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler
},
10692 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10693 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10694 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10695 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10696 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10697 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10698 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow
},
10699 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10702 static PyObject
*SWIG_globals
;
10706 SWIGEXPORT(void) initwindowsc() {
10708 SWIG_globals
= SWIG_newvarlink();
10709 m
= Py_InitModule("windowsc", windowscMethods
);
10710 d
= PyModule_GetDict(m
);
10713 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10714 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);