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_Clear(_swigobj) (_swigobj->Clear())
1170 static PyObject
*_wrap_wxWindow_Clear(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1171 PyObject
* _resultobj
;
1173 PyObject
* _argo0
= 0;
1174 char *_kwnames
[] = { "self", NULL
};
1177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Clear",_kwnames
,&_argo0
))
1180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1187 wxPy_BEGIN_ALLOW_THREADS
;
1188 wxWindow_Clear(_arg0
);
1190 wxPy_END_ALLOW_THREADS
;
1191 if (PyErr_Occurred()) return NULL
;
1192 } Py_INCREF(Py_None
);
1193 _resultobj
= Py_None
;
1197 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1198 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1199 PyObject
* _resultobj
;
1203 PyObject
* _argo0
= 0;
1205 PyObject
* _obj1
= 0;
1207 PyObject
* _obj2
= 0;
1208 char *_kwnames
[] = { "self","x","y", NULL
};
1211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1221 temp
= (int) PyInt_AsLong(_obj1
);
1225 temp0
= (int) PyInt_AsLong(_obj2
);
1229 wxPy_BEGIN_ALLOW_THREADS
;
1230 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1232 wxPy_END_ALLOW_THREADS
;
1233 if (PyErr_Occurred()) return NULL
;
1234 } Py_INCREF(Py_None
);
1235 _resultobj
= Py_None
;
1238 o
= PyInt_FromLong((long) (*_arg1
));
1239 _resultobj
= t_output_helper(_resultobj
, o
);
1243 o
= PyInt_FromLong((long) (*_arg2
));
1244 _resultobj
= t_output_helper(_resultobj
, o
);
1249 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1250 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1251 PyObject
* _resultobj
;
1255 PyObject
* _argo0
= 0;
1257 PyObject
* _obj1
= 0;
1258 char *_kwnames
[] = { "self","pt", NULL
};
1262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1273 if (! wxPoint_helper(_obj1
, &_arg1
))
1277 wxPy_BEGIN_ALLOW_THREADS
;
1278 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1280 wxPy_END_ALLOW_THREADS
;
1281 if (PyErr_Occurred()) return NULL
;
1282 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1283 _resultobj
= Py_BuildValue("s",_ptemp
);
1287 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1288 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1289 PyObject
* _resultobj
;
1292 int _arg1
= (int ) FALSE
;
1293 PyObject
* _argo0
= 0;
1294 char *_kwnames
[] = { "self","force", NULL
};
1297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
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_Close. Expected _wxWindow_p.");
1307 wxPy_BEGIN_ALLOW_THREADS
;
1308 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1310 wxPy_END_ALLOW_THREADS
;
1311 if (PyErr_Occurred()) return NULL
;
1312 } _resultobj
= Py_BuildValue("i",_result
);
1316 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1317 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1318 PyObject
* _resultobj
;
1321 PyObject
* _argo0
= 0;
1322 char *_kwnames
[] = { "self", NULL
};
1325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1335 wxPy_BEGIN_ALLOW_THREADS
;
1336 _result
= (bool )wxWindow_Destroy(_arg0
);
1338 wxPy_END_ALLOW_THREADS
;
1339 if (PyErr_Occurred()) return NULL
;
1340 } _resultobj
= Py_BuildValue("i",_result
);
1344 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1345 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1346 PyObject
* _resultobj
;
1348 PyObject
* _argo0
= 0;
1349 char *_kwnames
[] = { "self", NULL
};
1352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1362 wxPy_BEGIN_ALLOW_THREADS
;
1363 wxWindow_DestroyChildren(_arg0
);
1365 wxPy_END_ALLOW_THREADS
;
1366 if (PyErr_Occurred()) return NULL
;
1367 } Py_INCREF(Py_None
);
1368 _resultobj
= Py_None
;
1372 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1373 static PyObject
*_wrap_wxWindow_IsBeingDeleted(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1374 PyObject
* _resultobj
;
1377 PyObject
* _argo0
= 0;
1378 char *_kwnames
[] = { "self", NULL
};
1381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsBeingDeleted",_kwnames
,&_argo0
))
1384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1391 wxPy_BEGIN_ALLOW_THREADS
;
1392 _result
= (bool )wxWindow_IsBeingDeleted(_arg0
);
1394 wxPy_END_ALLOW_THREADS
;
1395 if (PyErr_Occurred()) return NULL
;
1396 } _resultobj
= Py_BuildValue("i",_result
);
1400 #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0))
1401 static PyObject
*_wrap_wxWindow_DragAcceptFiles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1402 PyObject
* _resultobj
;
1405 PyObject
* _argo0
= 0;
1407 char *_kwnames
[] = { "self","accept", NULL
};
1410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_DragAcceptFiles",_kwnames
,&_argo0
,&tempbool1
))
1413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p.");
1419 _arg1
= (bool ) tempbool1
;
1421 wxPy_BEGIN_ALLOW_THREADS
;
1422 wxWindow_DragAcceptFiles(_arg0
,_arg1
);
1424 wxPy_END_ALLOW_THREADS
;
1425 if (PyErr_Occurred()) return NULL
;
1426 } Py_INCREF(Py_None
);
1427 _resultobj
= Py_None
;
1431 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1432 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1433 PyObject
* _resultobj
;
1436 PyObject
* _argo0
= 0;
1438 char *_kwnames
[] = { "self","enable", NULL
};
1441 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1444 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1445 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1446 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1450 _arg1
= (bool ) tempbool1
;
1452 wxPy_BEGIN_ALLOW_THREADS
;
1453 wxWindow_Enable(_arg0
,_arg1
);
1455 wxPy_END_ALLOW_THREADS
;
1456 if (PyErr_Occurred()) return NULL
;
1457 } Py_INCREF(Py_None
);
1458 _resultobj
= Py_None
;
1462 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1463 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1464 PyObject
* _resultobj
;
1468 PyObject
* _argo0
= 0;
1469 char *_kwnames
[] = { "self","id", NULL
};
1472 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1475 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1476 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1477 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1482 wxPy_BEGIN_ALLOW_THREADS
;
1483 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1485 wxPy_END_ALLOW_THREADS
;
1486 if (PyErr_Occurred()) return NULL
;
1487 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1491 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1492 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1493 PyObject
* _resultobj
;
1497 PyObject
* _argo0
= 0;
1498 PyObject
* _obj1
= 0;
1499 char *_kwnames
[] = { "self","name", NULL
};
1502 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1505 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1506 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1507 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1512 #if PYTHON_API_VERSION >= 1009
1513 char* tmpPtr
; int tmpSize
;
1514 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1515 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1518 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1520 _arg1
= new wxString(tmpPtr
, tmpSize
);
1522 if (!PyString_Check(_obj1
)) {
1523 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1526 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1530 wxPy_BEGIN_ALLOW_THREADS
;
1531 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1533 wxPy_END_ALLOW_THREADS
;
1534 if (PyErr_Occurred()) return NULL
;
1535 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1543 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1544 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1545 PyObject
* _resultobj
;
1547 PyObject
* _argo0
= 0;
1548 char *_kwnames
[] = { "self", NULL
};
1551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_kwnames
,&_argo0
))
1554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1561 wxPy_BEGIN_ALLOW_THREADS
;
1562 wxWindow_Fit(_arg0
);
1564 wxPy_END_ALLOW_THREADS
;
1565 if (PyErr_Occurred()) return NULL
;
1566 } Py_INCREF(Py_None
);
1567 _resultobj
= Py_None
;
1571 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1572 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1573 PyObject
* _resultobj
;
1576 PyObject
* _argo0
= 0;
1577 char *_kwnames
[] = { "self", NULL
};
1581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1591 wxPy_BEGIN_ALLOW_THREADS
;
1592 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1594 wxPy_END_ALLOW_THREADS
;
1595 if (PyErr_Occurred()) return NULL
;
1596 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1597 _resultobj
= Py_BuildValue("s",_ptemp
);
1601 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1602 wxWindowList
& list
= self
->GetChildren();
1603 return wxPy_ConvertList(&list
, "wxWindow");
1605 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1606 PyObject
* _resultobj
;
1609 PyObject
* _argo0
= 0;
1610 char *_kwnames
[] = { "self", NULL
};
1613 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1616 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1617 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1618 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1623 wxPy_BEGIN_ALLOW_THREADS
;
1624 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1626 wxPy_END_ALLOW_THREADS
;
1627 if (PyErr_Occurred()) return NULL
;
1629 _resultobj
= _result
;
1634 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1635 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1636 PyObject
* _resultobj
;
1639 PyObject
* _argo0
= 0;
1640 char *_kwnames
[] = { "self", NULL
};
1643 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1646 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1647 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1653 wxPy_BEGIN_ALLOW_THREADS
;
1654 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1656 wxPy_END_ALLOW_THREADS
;
1657 if (PyErr_Occurred()) return NULL
;
1658 } _resultobj
= Py_BuildValue("i",_result
);
1662 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1663 static PyObject
*_wrap_wxWindow_GetCharWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1664 PyObject
* _resultobj
;
1667 PyObject
* _argo0
= 0;
1668 char *_kwnames
[] = { "self", NULL
};
1671 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharWidth",_kwnames
,&_argo0
))
1674 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1675 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1681 wxPy_BEGIN_ALLOW_THREADS
;
1682 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1684 wxPy_END_ALLOW_THREADS
;
1685 if (PyErr_Occurred()) return NULL
;
1686 } _resultobj
= Py_BuildValue("i",_result
);
1690 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1691 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1692 PyObject
* _resultobj
;
1698 PyObject
* _argo0
= 0;
1699 char *_kwnames
[] = { "self", NULL
};
1708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_kwnames
,&_argo0
))
1711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1718 wxPy_BEGIN_ALLOW_THREADS
;
1719 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1721 wxPy_END_ALLOW_THREADS
;
1722 if (PyErr_Occurred()) return NULL
;
1723 } Py_INCREF(Py_None
);
1724 _resultobj
= Py_None
;
1727 o
= PyInt_FromLong((long) (*_arg1
));
1728 _resultobj
= t_output_helper(_resultobj
, o
);
1732 o
= PyInt_FromLong((long) (*_arg2
));
1733 _resultobj
= t_output_helper(_resultobj
, o
);
1738 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1739 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1740 PyObject
* _resultobj
;
1743 PyObject
* _argo0
= 0;
1744 char *_kwnames
[] = { "self", NULL
};
1748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1758 wxPy_BEGIN_ALLOW_THREADS
;
1759 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1761 wxPy_END_ALLOW_THREADS
;
1762 if (PyErr_Occurred()) return NULL
;
1763 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1764 _resultobj
= Py_BuildValue("s",_ptemp
);
1768 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1769 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1770 PyObject
* _resultobj
;
1771 wxLayoutConstraints
* _result
;
1773 PyObject
* _argo0
= 0;
1774 char *_kwnames
[] = { "self", NULL
};
1778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1788 wxPy_BEGIN_ALLOW_THREADS
;
1789 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1791 wxPy_END_ALLOW_THREADS
;
1792 if (PyErr_Occurred()) return NULL
;
1794 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1795 _resultobj
= Py_BuildValue("s",_ptemp
);
1798 _resultobj
= Py_None
;
1803 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1804 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1805 PyObject
* _resultobj
;
1806 wxEvtHandler
* _result
;
1808 PyObject
* _argo0
= 0;
1809 char *_kwnames
[] = { "self", NULL
};
1812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1822 wxPy_BEGIN_ALLOW_THREADS
;
1823 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1825 wxPy_END_ALLOW_THREADS
;
1826 if (PyErr_Occurred()) return NULL
;
1827 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1831 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1832 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1833 PyObject
* _resultobj
;
1836 PyObject
* _argo0
= 0;
1837 char *_kwnames
[] = { "self", NULL
};
1841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_kwnames
,&_argo0
))
1844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1851 wxPy_BEGIN_ALLOW_THREADS
;
1852 wxFont
& _result_ref
= wxWindow_GetFont(_arg0
);
1853 _result
= (wxFont
*) &_result_ref
;
1855 wxPy_END_ALLOW_THREADS
;
1856 if (PyErr_Occurred()) return NULL
;
1858 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
1859 _resultobj
= Py_BuildValue("s",_ptemp
);
1862 _resultobj
= Py_None
;
1867 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1868 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1869 PyObject
* _resultobj
;
1872 PyObject
* _argo0
= 0;
1873 char *_kwnames
[] = { "self", NULL
};
1877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1887 wxPy_BEGIN_ALLOW_THREADS
;
1888 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1890 wxPy_END_ALLOW_THREADS
;
1891 if (PyErr_Occurred()) return NULL
;
1892 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1893 _resultobj
= Py_BuildValue("s",_ptemp
);
1897 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1898 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1899 PyObject
* _resultobj
;
1902 PyObject
* _argo0
= 0;
1903 char *_kwnames
[] = { "self", NULL
};
1906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_kwnames
,&_argo0
))
1909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1916 wxPy_BEGIN_ALLOW_THREADS
;
1917 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1919 wxPy_END_ALLOW_THREADS
;
1920 if (PyErr_Occurred()) return NULL
;
1921 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1925 static long wxWindow_GetHandle(wxWindow
*self
) {
1926 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1928 static PyObject
*_wrap_wxWindow_GetHandle(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_GetHandle",_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_GetHandle. Expected _wxWindow_p.");
1946 wxPy_BEGIN_ALLOW_THREADS
;
1947 _result
= (long )wxWindow_GetHandle(_arg0
);
1949 wxPy_END_ALLOW_THREADS
;
1950 if (PyErr_Occurred()) return NULL
;
1951 } _resultobj
= Py_BuildValue("l",_result
);
1955 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1956 static PyObject
*_wrap_wxWindow_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1957 PyObject
* _resultobj
;
1960 PyObject
* _argo0
= 0;
1961 char *_kwnames
[] = { "self", NULL
};
1964 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetId",_kwnames
,&_argo0
))
1967 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1968 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1969 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
1974 wxPy_BEGIN_ALLOW_THREADS
;
1975 _result
= (int )wxWindow_GetId(_arg0
);
1977 wxPy_END_ALLOW_THREADS
;
1978 if (PyErr_Occurred()) return NULL
;
1979 } _resultobj
= Py_BuildValue("i",_result
);
1983 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1984 static PyObject
*_wrap_wxWindow_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1985 PyObject
* _resultobj
;
1988 PyObject
* _argo0
= 0;
1989 char *_kwnames
[] = { "self", NULL
};
1992 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetLabel",_kwnames
,&_argo0
))
1995 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1996 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1997 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
2002 wxPy_BEGIN_ALLOW_THREADS
;
2003 _result
= new wxString (wxWindow_GetLabel(_arg0
));
2005 wxPy_END_ALLOW_THREADS
;
2006 if (PyErr_Occurred()) return NULL
;
2008 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2016 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
2017 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2018 PyObject
* _resultobj
;
2021 PyObject
* _argo0
= 0;
2022 PyObject
* _obj1
= 0;
2023 char *_kwnames
[] = { "self","label", NULL
};
2026 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
2029 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2030 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2031 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2036 #if PYTHON_API_VERSION >= 1009
2037 char* tmpPtr
; int tmpSize
;
2038 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2039 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2042 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2044 _arg1
= new wxString(tmpPtr
, tmpSize
);
2046 if (!PyString_Check(_obj1
)) {
2047 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2050 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2054 wxPy_BEGIN_ALLOW_THREADS
;
2055 wxWindow_SetLabel(_arg0
,*_arg1
);
2057 wxPy_END_ALLOW_THREADS
;
2058 if (PyErr_Occurred()) return NULL
;
2059 } Py_INCREF(Py_None
);
2060 _resultobj
= Py_None
;
2068 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2069 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2070 PyObject
* _resultobj
;
2073 PyObject
* _argo0
= 0;
2074 char *_kwnames
[] = { "self", NULL
};
2077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2087 wxPy_BEGIN_ALLOW_THREADS
;
2088 _result
= new wxString (wxWindow_GetName(_arg0
));
2090 wxPy_END_ALLOW_THREADS
;
2091 if (PyErr_Occurred()) return NULL
;
2093 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2101 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2102 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2103 PyObject
* _resultobj
;
2106 PyObject
* _argo0
= 0;
2107 char *_kwnames
[] = { "self", NULL
};
2110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2120 wxPy_BEGIN_ALLOW_THREADS
;
2121 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2123 wxPy_END_ALLOW_THREADS
;
2124 if (PyErr_Occurred()) return NULL
;
2125 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2129 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2130 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2131 PyObject
* _resultobj
;
2137 PyObject
* _argo0
= 0;
2138 char *_kwnames
[] = { "self", NULL
};
2147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2157 wxPy_BEGIN_ALLOW_THREADS
;
2158 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2160 wxPy_END_ALLOW_THREADS
;
2161 if (PyErr_Occurred()) return NULL
;
2162 } Py_INCREF(Py_None
);
2163 _resultobj
= Py_None
;
2166 o
= PyInt_FromLong((long) (*_arg1
));
2167 _resultobj
= t_output_helper(_resultobj
, o
);
2171 o
= PyInt_FromLong((long) (*_arg2
));
2172 _resultobj
= t_output_helper(_resultobj
, o
);
2177 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2178 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2179 PyObject
* _resultobj
;
2182 PyObject
* _argo0
= 0;
2183 char *_kwnames
[] = { "self", NULL
};
2187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2197 wxPy_BEGIN_ALLOW_THREADS
;
2198 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2200 wxPy_END_ALLOW_THREADS
;
2201 if (PyErr_Occurred()) return NULL
;
2202 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2203 _resultobj
= Py_BuildValue("s",_ptemp
);
2207 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2208 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2209 PyObject
* _resultobj
;
2212 PyObject
* _argo0
= 0;
2213 char *_kwnames
[] = { "self", NULL
};
2217 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2220 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2221 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2227 wxPy_BEGIN_ALLOW_THREADS
;
2228 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2230 wxPy_END_ALLOW_THREADS
;
2231 if (PyErr_Occurred()) return NULL
;
2232 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2233 _resultobj
= Py_BuildValue("s",_ptemp
);
2237 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2238 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2239 PyObject
* _resultobj
;
2243 PyObject
* _argo0
= 0;
2244 char *_kwnames
[] = { "self","orientation", NULL
};
2247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2257 wxPy_BEGIN_ALLOW_THREADS
;
2258 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2260 wxPy_END_ALLOW_THREADS
;
2261 if (PyErr_Occurred()) return NULL
;
2262 } _resultobj
= Py_BuildValue("i",_result
);
2266 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2267 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2268 PyObject
* _resultobj
;
2272 PyObject
* _argo0
= 0;
2273 char *_kwnames
[] = { "self","orientation", NULL
};
2276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
2279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2286 wxPy_BEGIN_ALLOW_THREADS
;
2287 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2289 wxPy_END_ALLOW_THREADS
;
2290 if (PyErr_Occurred()) return NULL
;
2291 } _resultobj
= Py_BuildValue("i",_result
);
2295 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2296 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2297 PyObject
* _resultobj
;
2301 PyObject
* _argo0
= 0;
2302 char *_kwnames
[] = { "self","orientation", NULL
};
2305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2315 wxPy_BEGIN_ALLOW_THREADS
;
2316 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2318 wxPy_END_ALLOW_THREADS
;
2319 if (PyErr_Occurred()) return NULL
;
2320 } _resultobj
= Py_BuildValue("i",_result
);
2324 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2325 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2326 PyObject
* _resultobj
;
2332 PyObject
* _argo0
= 0;
2333 char *_kwnames
[] = { "self", NULL
};
2342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2352 wxPy_BEGIN_ALLOW_THREADS
;
2353 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2355 wxPy_END_ALLOW_THREADS
;
2356 if (PyErr_Occurred()) return NULL
;
2357 } Py_INCREF(Py_None
);
2358 _resultobj
= Py_None
;
2361 o
= PyInt_FromLong((long) (*_arg1
));
2362 _resultobj
= t_output_helper(_resultobj
, o
);
2366 o
= PyInt_FromLong((long) (*_arg2
));
2367 _resultobj
= t_output_helper(_resultobj
, o
);
2372 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2373 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2374 PyObject
* _resultobj
;
2377 PyObject
* _argo0
= 0;
2378 char *_kwnames
[] = { "self", NULL
};
2382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2392 wxPy_BEGIN_ALLOW_THREADS
;
2393 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2395 wxPy_END_ALLOW_THREADS
;
2396 if (PyErr_Occurred()) return NULL
;
2397 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2398 _resultobj
= Py_BuildValue("s",_ptemp
);
2402 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2403 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2404 PyObject
* _resultobj
;
2411 PyObject
* _argo0
= 0;
2412 PyObject
* _obj1
= 0;
2413 char *_kwnames
[] = { "self","string", NULL
};
2422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2432 #if PYTHON_API_VERSION >= 1009
2433 char* tmpPtr
; int tmpSize
;
2434 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2435 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2438 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2440 _arg1
= new wxString(tmpPtr
, tmpSize
);
2442 if (!PyString_Check(_obj1
)) {
2443 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2446 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2450 wxPy_BEGIN_ALLOW_THREADS
;
2451 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2453 wxPy_END_ALLOW_THREADS
;
2454 if (PyErr_Occurred()) return NULL
;
2455 } Py_INCREF(Py_None
);
2456 _resultobj
= Py_None
;
2459 o
= PyInt_FromLong((long) (*_arg2
));
2460 _resultobj
= t_output_helper(_resultobj
, o
);
2464 o
= PyInt_FromLong((long) (*_arg3
));
2465 _resultobj
= t_output_helper(_resultobj
, o
);
2474 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2475 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2476 PyObject
* _resultobj
;
2487 wxFont
* _arg6
= (wxFont
*) NULL
;
2488 PyObject
* _argo0
= 0;
2489 PyObject
* _obj1
= 0;
2490 PyObject
* _argo6
= 0;
2491 char *_kwnames
[] = { "self","string","font", NULL
};
2506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2516 #if PYTHON_API_VERSION >= 1009
2517 char* tmpPtr
; int tmpSize
;
2518 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2519 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2522 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2524 _arg1
= new wxString(tmpPtr
, tmpSize
);
2526 if (!PyString_Check(_obj1
)) {
2527 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2530 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2534 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2535 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2541 wxPy_BEGIN_ALLOW_THREADS
;
2542 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2544 wxPy_END_ALLOW_THREADS
;
2545 if (PyErr_Occurred()) return NULL
;
2546 } Py_INCREF(Py_None
);
2547 _resultobj
= Py_None
;
2550 o
= PyInt_FromLong((long) (*_arg2
));
2551 _resultobj
= t_output_helper(_resultobj
, o
);
2555 o
= PyInt_FromLong((long) (*_arg3
));
2556 _resultobj
= t_output_helper(_resultobj
, o
);
2560 o
= PyInt_FromLong((long) (*_arg4
));
2561 _resultobj
= t_output_helper(_resultobj
, o
);
2565 o
= PyInt_FromLong((long) (*_arg5
));
2566 _resultobj
= t_output_helper(_resultobj
, o
);
2575 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2576 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2577 PyObject
* _resultobj
;
2580 PyObject
* _argo0
= 0;
2581 char *_kwnames
[] = { "self", NULL
};
2584 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2587 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2588 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2589 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2594 wxPy_BEGIN_ALLOW_THREADS
;
2595 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2597 wxPy_END_ALLOW_THREADS
;
2598 if (PyErr_Occurred()) return NULL
;
2600 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2608 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2609 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2610 PyObject
* _resultobj
;
2613 PyObject
* _argo0
= 0;
2614 char *_kwnames
[] = { "self", NULL
};
2618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2628 wxPy_BEGIN_ALLOW_THREADS
;
2629 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2631 wxPy_END_ALLOW_THREADS
;
2632 if (PyErr_Occurred()) return NULL
;
2633 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2634 _resultobj
= Py_BuildValue("s",_ptemp
);
2638 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2639 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2640 PyObject
* _resultobj
;
2643 PyObject
* _argo0
= 0;
2644 char *_kwnames
[] = { "self", NULL
};
2647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2650 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2651 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2652 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2657 wxPy_BEGIN_ALLOW_THREADS
;
2658 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2660 wxPy_END_ALLOW_THREADS
;
2661 if (PyErr_Occurred()) return NULL
;
2662 } _resultobj
= Py_BuildValue("l",_result
);
2666 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2667 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2668 PyObject
* _resultobj
;
2671 PyObject
* _argo0
= 0;
2672 char *_kwnames
[] = { "self","style", NULL
};
2675 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
2678 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2679 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2680 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2685 wxPy_BEGIN_ALLOW_THREADS
;
2686 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2688 wxPy_END_ALLOW_THREADS
;
2689 if (PyErr_Occurred()) return NULL
;
2690 } Py_INCREF(Py_None
);
2691 _resultobj
= Py_None
;
2695 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2696 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2697 PyObject
* _resultobj
;
2700 PyObject
* _argo0
= 0;
2701 char *_kwnames
[] = { "self","style", NULL
};
2704 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
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_SetWindowStyle. Expected _wxWindow_p.");
2714 wxPy_BEGIN_ALLOW_THREADS
;
2715 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2717 wxPy_END_ALLOW_THREADS
;
2718 if (PyErr_Occurred()) return NULL
;
2719 } Py_INCREF(Py_None
);
2720 _resultobj
= Py_None
;
2724 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2725 static PyObject
*_wrap_wxWindow_Hide(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_Hide",_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_Hide. Expected _wxWindow_p.");
2743 wxPy_BEGIN_ALLOW_THREADS
;
2744 _result
= (bool )wxWindow_Hide(_arg0
);
2746 wxPy_END_ALLOW_THREADS
;
2747 if (PyErr_Occurred()) return NULL
;
2748 } _resultobj
= Py_BuildValue("i",_result
);
2752 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2753 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2754 PyObject
* _resultobj
;
2756 PyObject
* _argo0
= 0;
2757 char *_kwnames
[] = { "self", NULL
};
2760 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2763 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2764 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2765 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2770 wxPy_BEGIN_ALLOW_THREADS
;
2771 wxWindow_InitDialog(_arg0
);
2773 wxPy_END_ALLOW_THREADS
;
2774 if (PyErr_Occurred()) return NULL
;
2775 } Py_INCREF(Py_None
);
2776 _resultobj
= Py_None
;
2780 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2781 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2782 PyObject
* _resultobj
;
2785 PyObject
* _argo0
= 0;
2786 char *_kwnames
[] = { "self", NULL
};
2789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2799 wxPy_BEGIN_ALLOW_THREADS
;
2800 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2802 wxPy_END_ALLOW_THREADS
;
2803 if (PyErr_Occurred()) return NULL
;
2804 } _resultobj
= Py_BuildValue("i",_result
);
2808 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2809 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2810 PyObject
* _resultobj
;
2815 int _arg3
= (int ) 0;
2816 int _arg4
= (int ) 0;
2817 PyObject
* _argo0
= 0;
2818 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2831 wxPy_BEGIN_ALLOW_THREADS
;
2832 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2834 wxPy_END_ALLOW_THREADS
;
2835 if (PyErr_Occurred()) return NULL
;
2836 } _resultobj
= Py_BuildValue("i",_result
);
2840 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2841 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2842 PyObject
* _resultobj
;
2846 PyObject
* _argo0
= 0;
2848 PyObject
* _obj1
= 0;
2849 char *_kwnames
[] = { "self","pt", NULL
};
2852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2863 if (! wxPoint_helper(_obj1
, &_arg1
))
2867 wxPy_BEGIN_ALLOW_THREADS
;
2868 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2870 wxPy_END_ALLOW_THREADS
;
2871 if (PyErr_Occurred()) return NULL
;
2872 } _resultobj
= Py_BuildValue("i",_result
);
2876 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2877 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2878 PyObject
* _resultobj
;
2882 PyObject
* _argo0
= 0;
2884 PyObject
* _obj1
= 0;
2885 char *_kwnames
[] = { "self","rect", NULL
};
2888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2899 if (! wxRect_helper(_obj1
, &_arg1
))
2903 wxPy_BEGIN_ALLOW_THREADS
;
2904 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2906 wxPy_END_ALLOW_THREADS
;
2907 if (PyErr_Occurred()) return NULL
;
2908 } _resultobj
= Py_BuildValue("i",_result
);
2912 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2913 static PyObject
*_wrap_wxWindow_IsRetained(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_IsRetained",_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_IsRetained. Expected _wxWindow_p.");
2931 wxPy_BEGIN_ALLOW_THREADS
;
2932 _result
= (bool )wxWindow_IsRetained(_arg0
);
2934 wxPy_END_ALLOW_THREADS
;
2935 if (PyErr_Occurred()) return NULL
;
2936 } _resultobj
= Py_BuildValue("i",_result
);
2940 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2941 static PyObject
*_wrap_wxWindow_IsShown(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2942 PyObject
* _resultobj
;
2945 PyObject
* _argo0
= 0;
2946 char *_kwnames
[] = { "self", NULL
};
2949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsShown",_kwnames
,&_argo0
))
2952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2959 wxPy_BEGIN_ALLOW_THREADS
;
2960 _result
= (bool )wxWindow_IsShown(_arg0
);
2962 wxPy_END_ALLOW_THREADS
;
2963 if (PyErr_Occurred()) return NULL
;
2964 } _resultobj
= Py_BuildValue("i",_result
);
2968 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
2969 static PyObject
*_wrap_wxWindow_IsTopLevel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2970 PyObject
* _resultobj
;
2973 PyObject
* _argo0
= 0;
2974 char *_kwnames
[] = { "self", NULL
};
2977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsTopLevel",_kwnames
,&_argo0
))
2980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
2987 wxPy_BEGIN_ALLOW_THREADS
;
2988 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
2990 wxPy_END_ALLOW_THREADS
;
2991 if (PyErr_Occurred()) return NULL
;
2992 } _resultobj
= Py_BuildValue("i",_result
);
2996 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
2997 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2998 PyObject
* _resultobj
;
3000 PyObject
* _argo0
= 0;
3001 char *_kwnames
[] = { "self", NULL
};
3004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
3007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
3014 wxPy_BEGIN_ALLOW_THREADS
;
3015 wxWindow_Layout(_arg0
);
3017 wxPy_END_ALLOW_THREADS
;
3018 if (PyErr_Occurred()) return NULL
;
3019 } Py_INCREF(Py_None
);
3020 _resultobj
= Py_None
;
3024 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
3025 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3026 PyObject
* _resultobj
;
3031 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
3032 PyObject
* _argo0
= 0;
3033 PyObject
* _argo1
= 0;
3034 PyObject
* _obj2
= 0;
3035 PyObject
* _argo3
= 0;
3036 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
3039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
3042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3049 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3050 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3056 #if PYTHON_API_VERSION >= 1009
3057 char* tmpPtr
; int tmpSize
;
3058 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3059 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3062 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3064 _arg2
= new wxString(tmpPtr
, tmpSize
);
3066 if (!PyString_Check(_obj2
)) {
3067 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3070 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3074 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3075 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3081 wxPy_BEGIN_ALLOW_THREADS
;
3082 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3084 wxPy_END_ALLOW_THREADS
;
3085 if (PyErr_Occurred()) return NULL
;
3086 } _resultobj
= Py_BuildValue("i",_result
);
3094 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3095 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3096 PyObject
* _resultobj
;
3098 PyObject
* _argo0
= 0;
3099 char *_kwnames
[] = { "self", NULL
};
3102 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3105 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3106 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3107 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3112 wxPy_BEGIN_ALLOW_THREADS
;
3113 wxWindow_Lower(_arg0
);
3115 wxPy_END_ALLOW_THREADS
;
3116 if (PyErr_Occurred()) return NULL
;
3117 } Py_INCREF(Py_None
);
3118 _resultobj
= Py_None
;
3122 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3123 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3124 PyObject
* _resultobj
;
3127 PyObject
* _argo0
= 0;
3129 char *_kwnames
[] = { "self","flag", NULL
};
3132 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3141 _arg1
= (bool ) tempbool1
;
3143 wxPy_BEGIN_ALLOW_THREADS
;
3144 wxWindow_MakeModal(_arg0
,_arg1
);
3146 wxPy_END_ALLOW_THREADS
;
3147 if (PyErr_Occurred()) return NULL
;
3148 } Py_INCREF(Py_None
);
3149 _resultobj
= Py_None
;
3153 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3154 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3155 PyObject
* _resultobj
;
3159 PyObject
* _argo0
= 0;
3160 char *_kwnames
[] = { "self","x","y", NULL
};
3163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3166 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3167 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3168 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3173 wxPy_BEGIN_ALLOW_THREADS
;
3174 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3176 wxPy_END_ALLOW_THREADS
;
3177 if (PyErr_Occurred()) return NULL
;
3178 } Py_INCREF(Py_None
);
3179 _resultobj
= Py_None
;
3183 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3184 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3185 PyObject
* _resultobj
;
3188 PyObject
* _argo0
= 0;
3190 PyObject
* _obj1
= 0;
3191 char *_kwnames
[] = { "self","point", NULL
};
3194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3205 if (! wxPoint_helper(_obj1
, &_arg1
))
3209 wxPy_BEGIN_ALLOW_THREADS
;
3210 wxWindow_Move(_arg0
,*_arg1
);
3212 wxPy_END_ALLOW_THREADS
;
3213 if (PyErr_Occurred()) return NULL
;
3214 } Py_INCREF(Py_None
);
3215 _resultobj
= Py_None
;
3219 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3220 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3221 PyObject
* _resultobj
;
3222 wxEvtHandler
* _result
;
3224 bool _arg1
= (bool ) FALSE
;
3225 PyObject
* _argo0
= 0;
3226 int tempbool1
= (int) FALSE
;
3227 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3239 _arg1
= (bool ) tempbool1
;
3241 wxPy_BEGIN_ALLOW_THREADS
;
3242 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3244 wxPy_END_ALLOW_THREADS
;
3245 if (PyErr_Occurred()) return NULL
;
3246 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3250 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3251 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3252 PyObject
* _resultobj
;
3254 wxEvtHandler
* _arg1
;
3255 PyObject
* _argo0
= 0;
3256 PyObject
* _argo1
= 0;
3257 char *_kwnames
[] = { "self","handler", NULL
};
3260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3270 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3271 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3277 wxPy_BEGIN_ALLOW_THREADS
;
3278 wxWindow_PushEventHandler(_arg0
,_arg1
);
3280 wxPy_END_ALLOW_THREADS
;
3281 if (PyErr_Occurred()) return NULL
;
3282 } Py_INCREF(Py_None
);
3283 _resultobj
= Py_None
;
3287 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3288 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3289 PyObject
* _resultobj
;
3295 PyObject
* _argo0
= 0;
3296 PyObject
* _argo1
= 0;
3297 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3310 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3311 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3317 wxPy_BEGIN_ALLOW_THREADS
;
3318 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3320 wxPy_END_ALLOW_THREADS
;
3321 if (PyErr_Occurred()) return NULL
;
3322 } _resultobj
= Py_BuildValue("i",_result
);
3326 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3327 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3328 PyObject
* _resultobj
;
3333 PyObject
* _argo0
= 0;
3334 PyObject
* _argo1
= 0;
3336 PyObject
* _obj2
= 0;
3337 char *_kwnames
[] = { "self","menu","pos", NULL
};
3340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3350 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3351 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3358 if (! wxPoint_helper(_obj2
, &_arg2
))
3362 wxPy_BEGIN_ALLOW_THREADS
;
3363 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3365 wxPy_END_ALLOW_THREADS
;
3366 if (PyErr_Occurred()) return NULL
;
3367 } _resultobj
= Py_BuildValue("i",_result
);
3371 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3372 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3373 PyObject
* _resultobj
;
3375 PyObject
* _argo0
= 0;
3376 char *_kwnames
[] = { "self", NULL
};
3379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3389 wxPy_BEGIN_ALLOW_THREADS
;
3390 wxWindow_Raise(_arg0
);
3392 wxPy_END_ALLOW_THREADS
;
3393 if (PyErr_Occurred()) return NULL
;
3394 } Py_INCREF(Py_None
);
3395 _resultobj
= Py_None
;
3399 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3400 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3401 PyObject
* _resultobj
;
3403 bool _arg1
= (bool ) TRUE
;
3404 wxRect
* _arg2
= (wxRect
*) NULL
;
3405 PyObject
* _argo0
= 0;
3406 int tempbool1
= (int) TRUE
;
3408 PyObject
* _obj2
= 0;
3409 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3421 _arg1
= (bool ) tempbool1
;
3425 if (! wxRect_helper(_obj2
, &_arg2
))
3429 wxPy_BEGIN_ALLOW_THREADS
;
3430 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3432 wxPy_END_ALLOW_THREADS
;
3433 if (PyErr_Occurred()) return NULL
;
3434 } Py_INCREF(Py_None
);
3435 _resultobj
= Py_None
;
3439 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3440 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3441 PyObject
* _resultobj
;
3443 PyObject
* _argo0
= 0;
3444 char *_kwnames
[] = { "self", NULL
};
3447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3457 wxPy_BEGIN_ALLOW_THREADS
;
3458 wxWindow_ReleaseMouse(_arg0
);
3460 wxPy_END_ALLOW_THREADS
;
3461 if (PyErr_Occurred()) return NULL
;
3462 } Py_INCREF(Py_None
);
3463 _resultobj
= Py_None
;
3467 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3468 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3469 PyObject
* _resultobj
;
3472 PyObject
* _argo0
= 0;
3473 PyObject
* _argo1
= 0;
3474 char *_kwnames
[] = { "self","child", NULL
};
3477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3487 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3488 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3489 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3494 wxPy_BEGIN_ALLOW_THREADS
;
3495 wxWindow_RemoveChild(_arg0
,_arg1
);
3497 wxPy_END_ALLOW_THREADS
;
3498 if (PyErr_Occurred()) return NULL
;
3499 } Py_INCREF(Py_None
);
3500 _resultobj
= Py_None
;
3504 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3505 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3506 PyObject
* _resultobj
;
3510 PyObject
* _argo0
= 0;
3511 PyObject
* _argo1
= 0;
3512 char *_kwnames
[] = { "self","newParent", NULL
};
3515 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3518 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3519 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3520 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3525 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3526 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3532 wxPy_BEGIN_ALLOW_THREADS
;
3533 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3535 wxPy_END_ALLOW_THREADS
;
3536 if (PyErr_Occurred()) return NULL
;
3537 } _resultobj
= Py_BuildValue("i",_result
);
3541 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3542 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3543 PyObject
* _resultobj
;
3547 PyObject
* _argo0
= 0;
3549 PyObject
* _obj1
= 0;
3551 PyObject
* _obj2
= 0;
3552 char *_kwnames
[] = { "self","x","y", NULL
};
3555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3565 temp
= (int) PyInt_AsLong(_obj1
);
3569 temp0
= (int) PyInt_AsLong(_obj2
);
3573 wxPy_BEGIN_ALLOW_THREADS
;
3574 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3576 wxPy_END_ALLOW_THREADS
;
3577 if (PyErr_Occurred()) return NULL
;
3578 } Py_INCREF(Py_None
);
3579 _resultobj
= Py_None
;
3582 o
= PyInt_FromLong((long) (*_arg1
));
3583 _resultobj
= t_output_helper(_resultobj
, o
);
3587 o
= PyInt_FromLong((long) (*_arg2
));
3588 _resultobj
= t_output_helper(_resultobj
, o
);
3593 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3594 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3595 PyObject
* _resultobj
;
3599 PyObject
* _argo0
= 0;
3601 PyObject
* _obj1
= 0;
3602 char *_kwnames
[] = { "self","pt", NULL
};
3606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3617 if (! wxPoint_helper(_obj1
, &_arg1
))
3621 wxPy_BEGIN_ALLOW_THREADS
;
3622 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3624 wxPy_END_ALLOW_THREADS
;
3625 if (PyErr_Occurred()) return NULL
;
3626 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3627 _resultobj
= Py_BuildValue("s",_ptemp
);
3631 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3632 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3633 PyObject
* _resultobj
;
3637 wxRect
* _arg3
= (wxRect
*) NULL
;
3638 PyObject
* _argo0
= 0;
3640 PyObject
* _obj3
= 0;
3641 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3656 if (! wxRect_helper(_obj3
, &_arg3
))
3660 wxPy_BEGIN_ALLOW_THREADS
;
3661 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3663 wxPy_END_ALLOW_THREADS
;
3664 if (PyErr_Occurred()) return NULL
;
3665 } Py_INCREF(Py_None
);
3666 _resultobj
= Py_None
;
3670 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
3671 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3672 PyObject
* _resultobj
;
3674 wxAcceleratorTable
* _arg1
;
3675 PyObject
* _argo0
= 0;
3676 PyObject
* _argo1
= 0;
3677 char *_kwnames
[] = { "self","accel", NULL
};
3680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
3683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
3690 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3691 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
3692 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
3697 wxPy_BEGIN_ALLOW_THREADS
;
3698 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
3700 wxPy_END_ALLOW_THREADS
;
3701 if (PyErr_Occurred()) return NULL
;
3702 } Py_INCREF(Py_None
);
3703 _resultobj
= Py_None
;
3707 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3708 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3709 PyObject
* _resultobj
;
3712 PyObject
* _argo0
= 0;
3714 char *_kwnames
[] = { "self","autoLayout", NULL
};
3717 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3720 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3721 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3726 _arg1
= (bool ) tempbool1
;
3728 wxPy_BEGIN_ALLOW_THREADS
;
3729 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3731 wxPy_END_ALLOW_THREADS
;
3732 if (PyErr_Occurred()) return NULL
;
3733 } Py_INCREF(Py_None
);
3734 _resultobj
= Py_None
;
3738 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3739 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3740 PyObject
* _resultobj
;
3743 PyObject
* _argo0
= 0;
3744 char *_kwnames
[] = { "self", NULL
};
3747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3757 wxPy_BEGIN_ALLOW_THREADS
;
3758 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3760 wxPy_END_ALLOW_THREADS
;
3761 if (PyErr_Occurred()) return NULL
;
3762 } _resultobj
= Py_BuildValue("i",_result
);
3766 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3767 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3768 PyObject
* _resultobj
;
3771 PyObject
* _argo0
= 0;
3773 PyObject
* _obj1
= 0;
3774 char *_kwnames
[] = { "self","colour", NULL
};
3777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3788 if (! wxColour_helper(_obj1
, &_arg1
))
3792 wxPy_BEGIN_ALLOW_THREADS
;
3793 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3795 wxPy_END_ALLOW_THREADS
;
3796 if (PyErr_Occurred()) return NULL
;
3797 } Py_INCREF(Py_None
);
3798 _resultobj
= Py_None
;
3802 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3803 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3804 PyObject
* _resultobj
;
3806 wxLayoutConstraints
* _arg1
;
3807 PyObject
* _argo0
= 0;
3808 PyObject
* _argo1
= 0;
3809 char *_kwnames
[] = { "self","constraints", NULL
};
3812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3822 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3823 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3824 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3829 wxPy_BEGIN_ALLOW_THREADS
;
3830 wxWindow_SetConstraints(_arg0
,_arg1
);
3832 wxPy_END_ALLOW_THREADS
;
3833 if (PyErr_Occurred()) return NULL
;
3834 } Py_INCREF(Py_None
);
3835 _resultobj
= Py_None
;
3839 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3840 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3841 PyObject
* _resultobj
;
3843 wxLayoutConstraints
* _arg1
;
3844 PyObject
* _argo0
= 0;
3845 PyObject
* _argo1
= 0;
3846 char *_kwnames
[] = { "self","constraints", NULL
};
3849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3859 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3860 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3861 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3866 wxPy_BEGIN_ALLOW_THREADS
;
3867 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3869 wxPy_END_ALLOW_THREADS
;
3870 if (PyErr_Occurred()) return NULL
;
3871 } Py_INCREF(Py_None
);
3872 _resultobj
= Py_None
;
3876 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3877 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3878 PyObject
* _resultobj
;
3880 PyObject
* _argo0
= 0;
3881 char *_kwnames
[] = { "self", NULL
};
3884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3887 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3888 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3894 wxPy_BEGIN_ALLOW_THREADS
;
3895 wxWindow_SetFocus(_arg0
);
3897 wxPy_END_ALLOW_THREADS
;
3898 if (PyErr_Occurred()) return NULL
;
3899 } Py_INCREF(Py_None
);
3900 _resultobj
= Py_None
;
3904 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3905 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3906 PyObject
* _resultobj
;
3909 PyObject
* _argo0
= 0;
3910 char *_kwnames
[] = { "self", NULL
};
3913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3916 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3917 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3918 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3923 wxPy_BEGIN_ALLOW_THREADS
;
3924 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3926 wxPy_END_ALLOW_THREADS
;
3927 if (PyErr_Occurred()) return NULL
;
3928 } _resultobj
= Py_BuildValue("i",_result
);
3932 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3933 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3934 PyObject
* _resultobj
;
3937 PyObject
* _argo0
= 0;
3938 PyObject
* _argo1
= 0;
3939 char *_kwnames
[] = { "self","font", NULL
};
3942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
3945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3952 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3953 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3959 wxPy_BEGIN_ALLOW_THREADS
;
3960 wxWindow_SetFont(_arg0
,*_arg1
);
3962 wxPy_END_ALLOW_THREADS
;
3963 if (PyErr_Occurred()) return NULL
;
3964 } Py_INCREF(Py_None
);
3965 _resultobj
= Py_None
;
3969 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3970 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3971 PyObject
* _resultobj
;
3974 PyObject
* _argo0
= 0;
3976 PyObject
* _obj1
= 0;
3977 char *_kwnames
[] = { "self","colour", NULL
};
3980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
3983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
3991 if (! wxColour_helper(_obj1
, &_arg1
))
3995 wxPy_BEGIN_ALLOW_THREADS
;
3996 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
3998 wxPy_END_ALLOW_THREADS
;
3999 if (PyErr_Occurred()) return NULL
;
4000 } Py_INCREF(Py_None
);
4001 _resultobj
= Py_None
;
4005 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
4006 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4007 PyObject
* _resultobj
;
4010 PyObject
* _argo0
= 0;
4011 char *_kwnames
[] = { "self","id", NULL
};
4014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
4017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
4024 wxPy_BEGIN_ALLOW_THREADS
;
4025 wxWindow_SetId(_arg0
,_arg1
);
4027 wxPy_END_ALLOW_THREADS
;
4028 if (PyErr_Occurred()) return NULL
;
4029 } Py_INCREF(Py_None
);
4030 _resultobj
= Py_None
;
4034 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4035 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4036 PyObject
* _resultobj
;
4039 PyObject
* _argo0
= 0;
4040 PyObject
* _obj1
= 0;
4041 char *_kwnames
[] = { "self","name", NULL
};
4044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
4047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4054 #if PYTHON_API_VERSION >= 1009
4055 char* tmpPtr
; int tmpSize
;
4056 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4057 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4060 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4062 _arg1
= new wxString(tmpPtr
, tmpSize
);
4064 if (!PyString_Check(_obj1
)) {
4065 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4068 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4072 wxPy_BEGIN_ALLOW_THREADS
;
4073 wxWindow_SetName(_arg0
,*_arg1
);
4075 wxPy_END_ALLOW_THREADS
;
4076 if (PyErr_Occurred()) return NULL
;
4077 } Py_INCREF(Py_None
);
4078 _resultobj
= Py_None
;
4086 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4087 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4088 PyObject
* _resultobj
;
4094 int _arg5
= (int ) TRUE
;
4095 PyObject
* _argo0
= 0;
4096 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4109 wxPy_BEGIN_ALLOW_THREADS
;
4110 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4112 wxPy_END_ALLOW_THREADS
;
4113 if (PyErr_Occurred()) return NULL
;
4114 } Py_INCREF(Py_None
);
4115 _resultobj
= Py_None
;
4119 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4120 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4121 PyObject
* _resultobj
;
4125 bool _arg3
= (bool ) TRUE
;
4126 PyObject
* _argo0
= 0;
4127 int tempbool3
= (int) TRUE
;
4128 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4131 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4134 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4135 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4136 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4140 _arg3
= (bool ) tempbool3
;
4142 wxPy_BEGIN_ALLOW_THREADS
;
4143 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4145 wxPy_END_ALLOW_THREADS
;
4146 if (PyErr_Occurred()) return NULL
;
4147 } Py_INCREF(Py_None
);
4148 _resultobj
= Py_None
;
4152 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4153 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4154 PyObject
* _resultobj
;
4160 int _arg5
= (int ) wxSIZE_AUTO
;
4161 PyObject
* _argo0
= 0;
4162 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4168 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4169 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4170 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4175 wxPy_BEGIN_ALLOW_THREADS
;
4176 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4178 wxPy_END_ALLOW_THREADS
;
4179 if (PyErr_Occurred()) return NULL
;
4180 } Py_INCREF(Py_None
);
4181 _resultobj
= Py_None
;
4185 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4186 self
->SetSize(size
);
4188 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4189 PyObject
* _resultobj
;
4192 PyObject
* _argo0
= 0;
4194 PyObject
* _obj1
= 0;
4195 char *_kwnames
[] = { "self","size", NULL
};
4198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4209 if (! wxSize_helper(_obj1
, &_arg1
))
4213 wxPy_BEGIN_ALLOW_THREADS
;
4214 wxWindow_SetSize(_arg0
,*_arg1
);
4216 wxPy_END_ALLOW_THREADS
;
4217 if (PyErr_Occurred()) return NULL
;
4218 } Py_INCREF(Py_None
);
4219 _resultobj
= Py_None
;
4223 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4226 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4227 PyObject
* _resultobj
;
4230 PyObject
* _argo0
= 0;
4232 PyObject
* _obj1
= 0;
4233 char *_kwnames
[] = { "self","pos", NULL
};
4236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
4239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4247 if (! wxPoint_helper(_obj1
, &_arg1
))
4251 wxPy_BEGIN_ALLOW_THREADS
;
4252 wxWindow_SetPosition(_arg0
,*_arg1
);
4254 wxPy_END_ALLOW_THREADS
;
4255 if (PyErr_Occurred()) return NULL
;
4256 } Py_INCREF(Py_None
);
4257 _resultobj
= Py_None
;
4261 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4262 self
->SetSize(rect
, sizeFlags
);
4264 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4265 PyObject
* _resultobj
;
4268 int _arg2
= (int ) wxSIZE_AUTO
;
4269 PyObject
* _argo0
= 0;
4271 PyObject
* _obj1
= 0;
4272 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4286 if (! wxRect_helper(_obj1
, &_arg1
))
4290 wxPy_BEGIN_ALLOW_THREADS
;
4291 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4293 wxPy_END_ALLOW_THREADS
;
4294 if (PyErr_Occurred()) return NULL
;
4295 } Py_INCREF(Py_None
);
4296 _resultobj
= Py_None
;
4300 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4301 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4302 PyObject
* _resultobj
;
4304 int _arg1
= (int ) -1;
4305 int _arg2
= (int ) -1;
4306 int _arg3
= (int ) -1;
4307 int _arg4
= (int ) -1;
4308 int _arg5
= (int ) -1;
4309 int _arg6
= (int ) -1;
4310 PyObject
* _argo0
= 0;
4311 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4324 wxPy_BEGIN_ALLOW_THREADS
;
4325 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4327 wxPy_END_ALLOW_THREADS
;
4328 if (PyErr_Occurred()) return NULL
;
4329 } Py_INCREF(Py_None
);
4330 _resultobj
= Py_None
;
4334 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4335 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4336 PyObject
* _resultobj
;
4340 PyObject
* _argo0
= 0;
4341 char *_kwnames
[] = { "self","width","height", NULL
};
4344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4354 wxPy_BEGIN_ALLOW_THREADS
;
4355 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4357 wxPy_END_ALLOW_THREADS
;
4358 if (PyErr_Occurred()) return NULL
;
4359 } Py_INCREF(Py_None
);
4360 _resultobj
= Py_None
;
4364 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4365 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4366 PyObject
* _resultobj
;
4369 PyObject
* _argo0
= 0;
4371 PyObject
* _obj1
= 0;
4372 char *_kwnames
[] = { "self","size", NULL
};
4375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4386 if (! wxSize_helper(_obj1
, &_arg1
))
4390 wxPy_BEGIN_ALLOW_THREADS
;
4391 wxWindow_SetClientSize(_arg0
,*_arg1
);
4393 wxPy_END_ALLOW_THREADS
;
4394 if (PyErr_Occurred()) return NULL
;
4395 } Py_INCREF(Py_None
);
4396 _resultobj
= Py_None
;
4400 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4401 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4402 PyObject
* _resultobj
;
4405 PyObject
* _argo0
= 0;
4406 PyObject
* _argo1
= 0;
4407 char *_kwnames
[] = { "self","cursor", NULL
};
4410 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
4413 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4414 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4420 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4421 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4427 wxPy_BEGIN_ALLOW_THREADS
;
4428 wxWindow_SetCursor(_arg0
,*_arg1
);
4430 wxPy_END_ALLOW_THREADS
;
4431 if (PyErr_Occurred()) return NULL
;
4432 } Py_INCREF(Py_None
);
4433 _resultobj
= Py_None
;
4437 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4438 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4439 PyObject
* _resultobj
;
4441 wxEvtHandler
* _arg1
;
4442 PyObject
* _argo0
= 0;
4443 PyObject
* _argo1
= 0;
4444 char *_kwnames
[] = { "self","handler", NULL
};
4447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4457 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4458 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4459 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4464 wxPy_BEGIN_ALLOW_THREADS
;
4465 wxWindow_SetEventHandler(_arg0
,_arg1
);
4467 wxPy_END_ALLOW_THREADS
;
4468 if (PyErr_Occurred()) return NULL
;
4469 } Py_INCREF(Py_None
);
4470 _resultobj
= Py_None
;
4474 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4475 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4476 PyObject
* _resultobj
;
4479 PyObject
* _argo0
= 0;
4480 char *_kwnames
[] = { "self","exStyle", NULL
};
4483 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4486 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4487 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4488 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4493 wxPy_BEGIN_ALLOW_THREADS
;
4494 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4496 wxPy_END_ALLOW_THREADS
;
4497 if (PyErr_Occurred()) return NULL
;
4498 } Py_INCREF(Py_None
);
4499 _resultobj
= Py_None
;
4503 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4504 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4505 PyObject
* _resultobj
;
4508 PyObject
* _argo0
= 0;
4509 PyObject
* _obj1
= 0;
4510 char *_kwnames
[] = { "self","title", NULL
};
4513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4523 #if PYTHON_API_VERSION >= 1009
4524 char* tmpPtr
; int tmpSize
;
4525 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4526 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4529 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4531 _arg1
= new wxString(tmpPtr
, tmpSize
);
4533 if (!PyString_Check(_obj1
)) {
4534 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4537 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4541 wxPy_BEGIN_ALLOW_THREADS
;
4542 wxWindow_SetTitle(_arg0
,*_arg1
);
4544 wxPy_END_ALLOW_THREADS
;
4545 if (PyErr_Occurred()) return NULL
;
4546 } Py_INCREF(Py_None
);
4547 _resultobj
= Py_None
;
4555 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4556 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4557 PyObject
* _resultobj
;
4561 PyObject
* _argo0
= 0;
4563 char *_kwnames
[] = { "self","show", NULL
};
4566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4575 _arg1
= (bool ) tempbool1
;
4577 wxPy_BEGIN_ALLOW_THREADS
;
4578 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4580 wxPy_END_ALLOW_THREADS
;
4581 if (PyErr_Occurred()) return NULL
;
4582 } _resultobj
= Py_BuildValue("i",_result
);
4586 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4587 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(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_TransferDataFromWindow",_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_TransferDataFromWindow. Expected _wxWindow_p.");
4605 wxPy_BEGIN_ALLOW_THREADS
;
4606 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4608 wxPy_END_ALLOW_THREADS
;
4609 if (PyErr_Occurred()) return NULL
;
4610 } _resultobj
= Py_BuildValue("i",_result
);
4614 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4615 static PyObject
*_wrap_wxWindow_TransferDataToWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4616 PyObject
* _resultobj
;
4619 PyObject
* _argo0
= 0;
4620 char *_kwnames
[] = { "self", NULL
};
4623 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataToWindow",_kwnames
,&_argo0
))
4626 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4627 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4628 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4633 wxPy_BEGIN_ALLOW_THREADS
;
4634 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4636 wxPy_END_ALLOW_THREADS
;
4637 if (PyErr_Occurred()) return NULL
;
4638 } _resultobj
= Py_BuildValue("i",_result
);
4642 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4643 static PyObject
*_wrap_wxWindow_Validate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4644 PyObject
* _resultobj
;
4647 PyObject
* _argo0
= 0;
4648 char *_kwnames
[] = { "self", NULL
};
4651 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Validate",_kwnames
,&_argo0
))
4654 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4655 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4656 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4661 wxPy_BEGIN_ALLOW_THREADS
;
4662 _result
= (bool )wxWindow_Validate(_arg0
);
4664 wxPy_END_ALLOW_THREADS
;
4665 if (PyErr_Occurred()) return NULL
;
4666 } _resultobj
= Py_BuildValue("i",_result
);
4670 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4671 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4672 PyObject
* _resultobj
;
4676 PyObject
* _argo0
= 0;
4677 char *_kwnames
[] = { "self","x","y", NULL
};
4680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4690 wxPy_BEGIN_ALLOW_THREADS
;
4691 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4693 wxPy_END_ALLOW_THREADS
;
4694 if (PyErr_Occurred()) return NULL
;
4695 } Py_INCREF(Py_None
);
4696 _resultobj
= Py_None
;
4700 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4701 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4702 PyObject
* _resultobj
;
4706 PyObject
* _argo0
= 0;
4708 PyObject
* _obj1
= 0;
4709 char *_kwnames
[] = { "self","pt", NULL
};
4713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4724 if (! wxPoint_helper(_obj1
, &_arg1
))
4728 wxPy_BEGIN_ALLOW_THREADS
;
4729 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4731 wxPy_END_ALLOW_THREADS
;
4732 if (PyErr_Occurred()) return NULL
;
4733 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4734 _resultobj
= Py_BuildValue("s",_ptemp
);
4738 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4739 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4740 PyObject
* _resultobj
;
4744 PyObject
* _argo0
= 0;
4746 PyObject
* _obj1
= 0;
4747 char *_kwnames
[] = { "self","sz", NULL
};
4751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4762 if (! wxSize_helper(_obj1
, &_arg1
))
4766 wxPy_BEGIN_ALLOW_THREADS
;
4767 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4769 wxPy_END_ALLOW_THREADS
;
4770 if (PyErr_Occurred()) return NULL
;
4771 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4772 _resultobj
= Py_BuildValue("s",_ptemp
);
4776 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4777 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4778 PyObject
* _resultobj
;
4782 PyObject
* _argo0
= 0;
4784 PyObject
* _obj1
= 0;
4785 char *_kwnames
[] = { "self","pt", NULL
};
4789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4800 if (! wxPoint_helper(_obj1
, &_arg1
))
4804 wxPy_BEGIN_ALLOW_THREADS
;
4805 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4807 wxPy_END_ALLOW_THREADS
;
4808 if (PyErr_Occurred()) return NULL
;
4809 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4810 _resultobj
= Py_BuildValue("s",_ptemp
);
4814 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4815 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4816 PyObject
* _resultobj
;
4820 PyObject
* _argo0
= 0;
4822 PyObject
* _obj1
= 0;
4823 char *_kwnames
[] = { "self","sz", NULL
};
4827 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4830 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4831 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4832 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4838 if (! wxSize_helper(_obj1
, &_arg1
))
4842 wxPy_BEGIN_ALLOW_THREADS
;
4843 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4845 wxPy_END_ALLOW_THREADS
;
4846 if (PyErr_Occurred()) return NULL
;
4847 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4848 _resultobj
= Py_BuildValue("s",_ptemp
);
4852 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4853 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4854 PyObject
* _resultobj
;
4857 PyObject
* _argo0
= 0;
4858 PyObject
* _obj1
= 0;
4859 char *_kwnames
[] = { "self","tip", NULL
};
4862 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4865 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4866 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4867 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4872 #if PYTHON_API_VERSION >= 1009
4873 char* tmpPtr
; int tmpSize
;
4874 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4875 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4878 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4880 _arg1
= new wxString(tmpPtr
, tmpSize
);
4882 if (!PyString_Check(_obj1
)) {
4883 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4886 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4890 wxPy_BEGIN_ALLOW_THREADS
;
4891 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4893 wxPy_END_ALLOW_THREADS
;
4894 if (PyErr_Occurred()) return NULL
;
4895 } Py_INCREF(Py_None
);
4896 _resultobj
= Py_None
;
4904 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4905 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4906 PyObject
* _resultobj
;
4909 PyObject
* _argo0
= 0;
4910 PyObject
* _argo1
= 0;
4911 char *_kwnames
[] = { "self","tooltip", NULL
};
4914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4924 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4925 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4931 wxPy_BEGIN_ALLOW_THREADS
;
4932 wxWindow_SetToolTip(_arg0
,_arg1
);
4934 wxPy_END_ALLOW_THREADS
;
4935 if (PyErr_Occurred()) return NULL
;
4936 } Py_INCREF(Py_None
);
4937 _resultobj
= Py_None
;
4941 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4942 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4943 PyObject
* _resultobj
;
4944 wxToolTip
* _result
;
4946 PyObject
* _argo0
= 0;
4947 char *_kwnames
[] = { "self", NULL
};
4950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
4953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4960 wxPy_BEGIN_ALLOW_THREADS
;
4961 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
4963 wxPy_END_ALLOW_THREADS
;
4964 if (PyErr_Occurred()) return NULL
;
4965 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4969 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4970 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4971 PyObject
* _resultobj
;
4974 PyObject
* _argo0
= 0;
4975 PyObject
* _argo1
= 0;
4976 char *_kwnames
[] = { "self","sizer", NULL
};
4979 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
4982 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4983 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4984 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4989 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4990 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
4991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4996 wxPy_BEGIN_ALLOW_THREADS
;
4997 wxWindow_SetSizer(_arg0
,_arg1
);
4999 wxPy_END_ALLOW_THREADS
;
5000 if (PyErr_Occurred()) return NULL
;
5001 } Py_INCREF(Py_None
);
5002 _resultobj
= Py_None
;
5006 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
5007 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5008 PyObject
* _resultobj
;
5011 PyObject
* _argo0
= 0;
5012 char *_kwnames
[] = { "self", NULL
};
5015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
5018 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5019 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5020 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5025 wxPy_BEGIN_ALLOW_THREADS
;
5026 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
5028 wxPy_END_ALLOW_THREADS
;
5029 if (PyErr_Occurred()) return NULL
;
5030 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5034 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5035 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5036 PyObject
* _resultobj
;
5037 wxValidator
* _result
;
5039 PyObject
* _argo0
= 0;
5040 char *_kwnames
[] = { "self", NULL
};
5043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_kwnames
,&_argo0
))
5046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5053 wxPy_BEGIN_ALLOW_THREADS
;
5054 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5056 wxPy_END_ALLOW_THREADS
;
5057 if (PyErr_Occurred()) return NULL
;
5058 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5062 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5063 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5064 PyObject
* _resultobj
;
5066 wxValidator
* _arg1
;
5067 PyObject
* _argo0
= 0;
5068 PyObject
* _argo1
= 0;
5069 char *_kwnames
[] = { "self","validator", NULL
};
5072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5082 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5083 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5084 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5089 wxPy_BEGIN_ALLOW_THREADS
;
5090 wxWindow_SetValidator(_arg0
,*_arg1
);
5092 wxPy_END_ALLOW_THREADS
;
5093 if (PyErr_Occurred()) return NULL
;
5094 } Py_INCREF(Py_None
);
5095 _resultobj
= Py_None
;
5099 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5100 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5101 PyObject
* _resultobj
;
5103 wxDropTarget
* _arg1
;
5104 PyObject
* _argo0
= 0;
5105 PyObject
* _argo1
= 0;
5106 char *_kwnames
[] = { "self","target", NULL
};
5109 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
5112 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5113 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5114 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5119 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5120 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5126 wxPy_BEGIN_ALLOW_THREADS
;
5127 wxWindow_SetDropTarget(_arg0
,_arg1
);
5129 wxPy_END_ALLOW_THREADS
;
5130 if (PyErr_Occurred()) return NULL
;
5131 } Py_INCREF(Py_None
);
5132 _resultobj
= Py_None
;
5136 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5137 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5138 PyObject
* _resultobj
;
5139 wxDropTarget
* _result
;
5141 PyObject
* _argo0
= 0;
5142 char *_kwnames
[] = { "self", NULL
};
5146 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5149 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5150 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5151 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5156 wxPy_BEGIN_ALLOW_THREADS
;
5157 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5159 wxPy_END_ALLOW_THREADS
;
5160 if (PyErr_Occurred()) return NULL
;
5162 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5163 _resultobj
= Py_BuildValue("s",_ptemp
);
5166 _resultobj
= Py_None
;
5171 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5172 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5173 PyObject
* _resultobj
;
5176 PyObject
* _argo0
= 0;
5177 char *_kwnames
[] = { "self", NULL
};
5181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5191 wxPy_BEGIN_ALLOW_THREADS
;
5192 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5194 wxPy_END_ALLOW_THREADS
;
5195 if (PyErr_Occurred()) return NULL
;
5196 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5197 _resultobj
= Py_BuildValue("s",_ptemp
);
5201 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5202 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5203 PyObject
* _resultobj
;
5206 PyObject
* _argo0
= 0;
5207 PyObject
* _argo1
= 0;
5208 char *_kwnames
[] = { "self","caret", NULL
};
5211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5221 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5222 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5223 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5228 wxPy_BEGIN_ALLOW_THREADS
;
5229 wxWindow_SetCaret(_arg0
,_arg1
);
5231 wxPy_END_ALLOW_THREADS
;
5232 if (PyErr_Occurred()) return NULL
;
5233 } Py_INCREF(Py_None
);
5234 _resultobj
= Py_None
;
5238 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5239 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5240 PyObject
* _resultobj
;
5243 PyObject
* _argo0
= 0;
5244 char *_kwnames
[] = { "self", NULL
};
5248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5258 wxPy_BEGIN_ALLOW_THREADS
;
5259 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5261 wxPy_END_ALLOW_THREADS
;
5262 if (PyErr_Occurred()) return NULL
;
5264 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5265 _resultobj
= Py_BuildValue("s",_ptemp
);
5268 _resultobj
= Py_None
;
5273 static void *SwigwxPanelTowxWindow(void *ptr
) {
5276 src
= (wxPanel
*) ptr
;
5277 dest
= (wxWindow
*) src
;
5278 return (void *) dest
;
5281 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5284 src
= (wxPanel
*) ptr
;
5285 dest
= (wxEvtHandler
*) src
;
5286 return (void *) dest
;
5289 static void *SwigwxPanelTowxObject(void *ptr
) {
5292 src
= (wxPanel
*) ptr
;
5293 dest
= (wxObject
*) src
;
5294 return (void *) dest
;
5297 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5298 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5299 PyObject
* _resultobj
;
5303 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5304 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5305 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5306 char * _arg5
= (char *) "panel";
5307 PyObject
* _argo0
= 0;
5309 PyObject
* _obj2
= 0;
5311 PyObject
* _obj3
= 0;
5312 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5328 if (! wxPoint_helper(_obj2
, &_arg2
))
5334 if (! wxSize_helper(_obj3
, &_arg3
))
5338 wxPy_BEGIN_ALLOW_THREADS
;
5339 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5341 wxPy_END_ALLOW_THREADS
;
5342 if (PyErr_Occurred()) return NULL
;
5344 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5345 _resultobj
= Py_BuildValue("s",_ptemp
);
5348 _resultobj
= Py_None
;
5353 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5354 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5355 PyObject
* _resultobj
;
5357 PyObject
* _argo0
= 0;
5358 char *_kwnames
[] = { "self", NULL
};
5361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5371 wxPy_BEGIN_ALLOW_THREADS
;
5372 wxPanel_InitDialog(_arg0
);
5374 wxPy_END_ALLOW_THREADS
;
5375 if (PyErr_Occurred()) return NULL
;
5376 } Py_INCREF(Py_None
);
5377 _resultobj
= Py_None
;
5381 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5382 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5383 PyObject
* _resultobj
;
5386 PyObject
* _argo0
= 0;
5387 char *_kwnames
[] = { "self", NULL
};
5390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
5393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5400 wxPy_BEGIN_ALLOW_THREADS
;
5401 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
5403 wxPy_END_ALLOW_THREADS
;
5404 if (PyErr_Occurred()) return NULL
;
5405 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5409 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5410 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5411 PyObject
* _resultobj
;
5414 PyObject
* _argo0
= 0;
5415 PyObject
* _argo1
= 0;
5416 char *_kwnames
[] = { "self","btn", NULL
};
5419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
5422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5429 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5430 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
5431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5436 wxPy_BEGIN_ALLOW_THREADS
;
5437 wxPanel_SetDefaultItem(_arg0
,_arg1
);
5439 wxPy_END_ALLOW_THREADS
;
5440 if (PyErr_Occurred()) return NULL
;
5441 } Py_INCREF(Py_None
);
5442 _resultobj
= Py_None
;
5446 static void *SwigwxDialogTowxPanel(void *ptr
) {
5449 src
= (wxDialog
*) ptr
;
5450 dest
= (wxPanel
*) src
;
5451 return (void *) dest
;
5454 static void *SwigwxDialogTowxWindow(void *ptr
) {
5457 src
= (wxDialog
*) ptr
;
5458 dest
= (wxWindow
*) src
;
5459 return (void *) dest
;
5462 static void *SwigwxDialogTowxEvtHandler(void *ptr
) {
5465 src
= (wxDialog
*) ptr
;
5466 dest
= (wxEvtHandler
*) src
;
5467 return (void *) dest
;
5470 static void *SwigwxDialogTowxObject(void *ptr
) {
5473 src
= (wxDialog
*) ptr
;
5474 dest
= (wxObject
*) src
;
5475 return (void *) dest
;
5478 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5479 static PyObject
*_wrap_new_wxDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5480 PyObject
* _resultobj
;
5485 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5486 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5487 long _arg5
= (long ) wxDEFAULT_DIALOG_STYLE
;
5488 char * _arg6
= (char *) "dialogBox";
5489 PyObject
* _argo0
= 0;
5490 PyObject
* _obj2
= 0;
5492 PyObject
* _obj3
= 0;
5494 PyObject
* _obj4
= 0;
5495 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
5499 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxDialog",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5502 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5503 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5504 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
5509 #if PYTHON_API_VERSION >= 1009
5510 char* tmpPtr
; int tmpSize
;
5511 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
5512 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5515 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
5517 _arg2
= new wxString(tmpPtr
, tmpSize
);
5519 if (!PyString_Check(_obj2
)) {
5520 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5523 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
5529 if (! wxPoint_helper(_obj3
, &_arg3
))
5535 if (! wxSize_helper(_obj4
, &_arg4
))
5539 wxPy_BEGIN_ALLOW_THREADS
;
5540 _result
= (wxDialog
*)new_wxDialog(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5542 wxPy_END_ALLOW_THREADS
;
5543 if (PyErr_Occurred()) return NULL
;
5545 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
5546 _resultobj
= Py_BuildValue("s",_ptemp
);
5549 _resultobj
= Py_None
;
5558 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
5559 static PyObject
*_wrap_wxDialog_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5560 PyObject
* _resultobj
;
5562 int _arg1
= (int ) wxBOTH
;
5563 PyObject
* _argo0
= 0;
5564 char *_kwnames
[] = { "self","direction", NULL
};
5567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDialog_Centre",_kwnames
,&_argo0
,&_arg1
))
5570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
5577 wxPy_BEGIN_ALLOW_THREADS
;
5578 wxDialog_Centre(_arg0
,_arg1
);
5580 wxPy_END_ALLOW_THREADS
;
5581 if (PyErr_Occurred()) return NULL
;
5582 } Py_INCREF(Py_None
);
5583 _resultobj
= Py_None
;
5587 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
5588 static PyObject
*_wrap_wxDialog_EndModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5589 PyObject
* _resultobj
;
5592 PyObject
* _argo0
= 0;
5593 char *_kwnames
[] = { "self","retCode", NULL
};
5596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_EndModal",_kwnames
,&_argo0
,&_arg1
))
5599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
5606 wxPy_BEGIN_ALLOW_THREADS
;
5607 wxDialog_EndModal(_arg0
,_arg1
);
5609 wxPy_END_ALLOW_THREADS
;
5610 if (PyErr_Occurred()) return NULL
;
5611 } Py_INCREF(Py_None
);
5612 _resultobj
= Py_None
;
5616 #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle())
5617 static PyObject
*_wrap_wxDialog_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5618 PyObject
* _resultobj
;
5621 PyObject
* _argo0
= 0;
5622 char *_kwnames
[] = { "self", NULL
};
5625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_GetTitle",_kwnames
,&_argo0
))
5628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p.");
5635 wxPy_BEGIN_ALLOW_THREADS
;
5636 _result
= new wxString (wxDialog_GetTitle(_arg0
));
5638 wxPy_END_ALLOW_THREADS
;
5639 if (PyErr_Occurred()) return NULL
;
5641 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5649 #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
5650 static PyObject
*_wrap_wxDialog_Iconize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5651 PyObject
* _resultobj
;
5654 PyObject
* _argo0
= 0;
5656 char *_kwnames
[] = { "self","iconize", NULL
};
5659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_Iconize",_kwnames
,&_argo0
,&tempbool1
))
5662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p.");
5668 _arg1
= (bool ) tempbool1
;
5670 wxPy_BEGIN_ALLOW_THREADS
;
5671 wxDialog_Iconize(_arg0
,_arg1
);
5673 wxPy_END_ALLOW_THREADS
;
5674 if (PyErr_Occurred()) return NULL
;
5675 } Py_INCREF(Py_None
);
5676 _resultobj
= Py_None
;
5680 #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized())
5681 static PyObject
*_wrap_wxDialog_IsIconized(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5682 PyObject
* _resultobj
;
5685 PyObject
* _argo0
= 0;
5686 char *_kwnames
[] = { "self", NULL
};
5689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_IsIconized",_kwnames
,&_argo0
))
5692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p.");
5699 wxPy_BEGIN_ALLOW_THREADS
;
5700 _result
= (bool )wxDialog_IsIconized(_arg0
);
5702 wxPy_END_ALLOW_THREADS
;
5703 if (PyErr_Occurred()) return NULL
;
5704 } _resultobj
= Py_BuildValue("i",_result
);
5708 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
5709 static PyObject
*_wrap_wxDialog_SetModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5710 PyObject
* _resultobj
;
5713 PyObject
* _argo0
= 0;
5715 char *_kwnames
[] = { "self","flag", NULL
};
5718 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_SetModal",_kwnames
,&_argo0
,&tempbool1
))
5721 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5722 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5723 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
5727 _arg1
= (bool ) tempbool1
;
5729 wxPy_BEGIN_ALLOW_THREADS
;
5730 wxDialog_SetModal(_arg0
,_arg1
);
5732 wxPy_END_ALLOW_THREADS
;
5733 if (PyErr_Occurred()) return NULL
;
5734 } Py_INCREF(Py_None
);
5735 _resultobj
= Py_None
;
5739 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
5740 static PyObject
*_wrap_wxDialog_IsModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5741 PyObject
* _resultobj
;
5744 PyObject
* _argo0
= 0;
5745 char *_kwnames
[] = { "self", NULL
};
5748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_IsModal",_kwnames
,&_argo0
))
5751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
5758 wxPy_BEGIN_ALLOW_THREADS
;
5759 _result
= (bool )wxDialog_IsModal(_arg0
);
5761 wxPy_END_ALLOW_THREADS
;
5762 if (PyErr_Occurred()) return NULL
;
5763 } _resultobj
= Py_BuildValue("i",_result
);
5767 #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
5768 static PyObject
*_wrap_wxDialog_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5769 PyObject
* _resultobj
;
5772 PyObject
* _argo0
= 0;
5773 PyObject
* _obj1
= 0;
5774 char *_kwnames
[] = { "self","title", NULL
};
5777 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDialog_SetTitle",_kwnames
,&_argo0
,&_obj1
))
5780 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5781 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5782 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p.");
5787 #if PYTHON_API_VERSION >= 1009
5788 char* tmpPtr
; int tmpSize
;
5789 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5790 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5793 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5795 _arg1
= new wxString(tmpPtr
, tmpSize
);
5797 if (!PyString_Check(_obj1
)) {
5798 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5801 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5805 wxPy_BEGIN_ALLOW_THREADS
;
5806 wxDialog_SetTitle(_arg0
,*_arg1
);
5808 wxPy_END_ALLOW_THREADS
;
5809 if (PyErr_Occurred()) return NULL
;
5810 } Py_INCREF(Py_None
);
5811 _resultobj
= Py_None
;
5819 #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
5820 static PyObject
*_wrap_wxDialog_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5821 PyObject
* _resultobj
;
5825 PyObject
* _argo0
= 0;
5827 char *_kwnames
[] = { "self","show", NULL
};
5830 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_Show",_kwnames
,&_argo0
,&tempbool1
))
5833 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5834 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5835 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p.");
5839 _arg1
= (bool ) tempbool1
;
5841 wxPy_BEGIN_ALLOW_THREADS
;
5842 _result
= (bool )wxDialog_Show(_arg0
,_arg1
);
5844 wxPy_END_ALLOW_THREADS
;
5845 if (PyErr_Occurred()) return NULL
;
5846 } _resultobj
= Py_BuildValue("i",_result
);
5850 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
5851 static PyObject
*_wrap_wxDialog_ShowModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5852 PyObject
* _resultobj
;
5855 PyObject
* _argo0
= 0;
5856 char *_kwnames
[] = { "self", NULL
};
5859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_ShowModal",_kwnames
,&_argo0
))
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_ShowModal. Expected _wxDialog_p.");
5869 wxPy_BEGIN_ALLOW_THREADS
;
5870 _result
= (int )wxDialog_ShowModal(_arg0
);
5872 wxPy_END_ALLOW_THREADS
;
5873 if (PyErr_Occurred()) return NULL
;
5874 } _resultobj
= Py_BuildValue("i",_result
);
5878 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
5879 static PyObject
*_wrap_wxDialog_GetReturnCode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5880 PyObject
* _resultobj
;
5883 PyObject
* _argo0
= 0;
5884 char *_kwnames
[] = { "self", NULL
};
5887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_GetReturnCode",_kwnames
,&_argo0
))
5890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
5897 wxPy_BEGIN_ALLOW_THREADS
;
5898 _result
= (int )wxDialog_GetReturnCode(_arg0
);
5900 wxPy_END_ALLOW_THREADS
;
5901 if (PyErr_Occurred()) return NULL
;
5902 } _resultobj
= Py_BuildValue("i",_result
);
5906 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
5907 static PyObject
*_wrap_wxDialog_SetReturnCode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5908 PyObject
* _resultobj
;
5911 PyObject
* _argo0
= 0;
5912 char *_kwnames
[] = { "self","retCode", NULL
};
5915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_SetReturnCode",_kwnames
,&_argo0
,&_arg1
))
5918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
5925 wxPy_BEGIN_ALLOW_THREADS
;
5926 wxDialog_SetReturnCode(_arg0
,_arg1
);
5928 wxPy_END_ALLOW_THREADS
;
5929 if (PyErr_Occurred()) return NULL
;
5930 } Py_INCREF(Py_None
);
5931 _resultobj
= Py_None
;
5935 #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0))
5936 static PyObject
*_wrap_wxDialog_CreateTextSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5937 PyObject
* _resultobj
;
5941 PyObject
* _argo0
= 0;
5942 PyObject
* _obj1
= 0;
5943 char *_kwnames
[] = { "self","message", NULL
};
5946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDialog_CreateTextSizer",_kwnames
,&_argo0
,&_obj1
))
5949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p.");
5956 #if PYTHON_API_VERSION >= 1009
5957 char* tmpPtr
; int tmpSize
;
5958 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5959 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5962 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5964 _arg1
= new wxString(tmpPtr
, tmpSize
);
5966 if (!PyString_Check(_obj1
)) {
5967 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5970 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5974 wxPy_BEGIN_ALLOW_THREADS
;
5975 _result
= (wxSizer
*)wxDialog_CreateTextSizer(_arg0
,*_arg1
);
5977 wxPy_END_ALLOW_THREADS
;
5978 if (PyErr_Occurred()) return NULL
;
5979 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5987 #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0))
5988 static PyObject
*_wrap_wxDialog_CreateButtonSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5989 PyObject
* _resultobj
;
5993 PyObject
* _argo0
= 0;
5994 char *_kwnames
[] = { "self","flags", NULL
};
5997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDialog_CreateButtonSizer",_kwnames
,&_argo0
,&_arg1
))
6000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
6002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p.");
6007 wxPy_BEGIN_ALLOW_THREADS
;
6008 _result
= (wxSizer
*)wxDialog_CreateButtonSizer(_arg0
,_arg1
);
6010 wxPy_END_ALLOW_THREADS
;
6011 if (PyErr_Occurred()) return NULL
;
6012 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6016 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
6017 wxScrolledWindow
*src
;
6019 src
= (wxScrolledWindow
*) ptr
;
6020 dest
= (wxPanel
*) src
;
6021 return (void *) dest
;
6024 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
6025 wxScrolledWindow
*src
;
6027 src
= (wxScrolledWindow
*) ptr
;
6028 dest
= (wxWindow
*) src
;
6029 return (void *) dest
;
6032 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
6033 wxScrolledWindow
*src
;
6035 src
= (wxScrolledWindow
*) ptr
;
6036 dest
= (wxEvtHandler
*) src
;
6037 return (void *) dest
;
6040 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
6041 wxScrolledWindow
*src
;
6043 src
= (wxScrolledWindow
*) ptr
;
6044 dest
= (wxObject
*) src
;
6045 return (void *) dest
;
6048 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6049 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6050 PyObject
* _resultobj
;
6051 wxScrolledWindow
* _result
;
6053 wxWindowID _arg1
= (wxWindowID
) -1;
6054 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
6055 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6056 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6057 char * _arg5
= (char *) "scrolledWindow";
6058 PyObject
* _argo0
= 0;
6060 PyObject
* _obj2
= 0;
6062 PyObject
* _obj3
= 0;
6063 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6070 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6071 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6072 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6079 if (! wxPoint_helper(_obj2
, &_arg2
))
6085 if (! wxSize_helper(_obj3
, &_arg3
))
6089 wxPy_BEGIN_ALLOW_THREADS
;
6090 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6092 wxPy_END_ALLOW_THREADS
;
6093 if (PyErr_Occurred()) return NULL
;
6095 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6096 _resultobj
= Py_BuildValue("s",_ptemp
);
6099 _resultobj
= Py_None
;
6104 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6105 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6106 PyObject
* _resultobj
;
6107 wxScrolledWindow
* _arg0
;
6110 PyObject
* _argo0
= 0;
6113 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6125 _arg1
= (bool ) tempbool1
;
6126 _arg2
= (bool ) tempbool2
;
6128 wxPy_BEGIN_ALLOW_THREADS
;
6129 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6131 wxPy_END_ALLOW_THREADS
;
6132 if (PyErr_Occurred()) return NULL
;
6133 } Py_INCREF(Py_None
);
6134 _resultobj
= Py_None
;
6138 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6139 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6140 PyObject
* _resultobj
;
6142 wxScrolledWindow
* _arg0
;
6144 PyObject
* _argo0
= 0;
6145 char *_kwnames
[] = { "self","orient", NULL
};
6148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6151 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6152 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6153 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6158 wxPy_BEGIN_ALLOW_THREADS
;
6159 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6161 wxPy_END_ALLOW_THREADS
;
6162 if (PyErr_Occurred()) return NULL
;
6163 } _resultobj
= Py_BuildValue("i",_result
);
6167 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6168 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6169 PyObject
* _resultobj
;
6170 wxScrolledWindow
* _arg0
;
6175 PyObject
* _argo0
= 0;
6176 char *_kwnames
[] = { "self", NULL
};
6185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6195 wxPy_BEGIN_ALLOW_THREADS
;
6196 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6198 wxPy_END_ALLOW_THREADS
;
6199 if (PyErr_Occurred()) return NULL
;
6200 } Py_INCREF(Py_None
);
6201 _resultobj
= Py_None
;
6204 o
= PyInt_FromLong((long) (*_arg1
));
6205 _resultobj
= t_output_helper(_resultobj
, o
);
6209 o
= PyInt_FromLong((long) (*_arg2
));
6210 _resultobj
= t_output_helper(_resultobj
, o
);
6215 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6216 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6217 PyObject
* _resultobj
;
6219 wxScrolledWindow
* _arg0
;
6220 PyObject
* _argo0
= 0;
6221 char *_kwnames
[] = { "self", NULL
};
6224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6234 wxPy_BEGIN_ALLOW_THREADS
;
6235 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6237 wxPy_END_ALLOW_THREADS
;
6238 if (PyErr_Occurred()) return NULL
;
6239 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6243 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6244 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6245 PyObject
* _resultobj
;
6246 wxScrolledWindow
* _arg0
;
6251 PyObject
* _argo0
= 0;
6252 char *_kwnames
[] = { "self", NULL
};
6261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6271 wxPy_BEGIN_ALLOW_THREADS
;
6272 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6274 wxPy_END_ALLOW_THREADS
;
6275 if (PyErr_Occurred()) return NULL
;
6276 } Py_INCREF(Py_None
);
6277 _resultobj
= Py_None
;
6280 o
= PyInt_FromLong((long) (*_arg1
));
6281 _resultobj
= t_output_helper(_resultobj
, o
);
6285 o
= PyInt_FromLong((long) (*_arg2
));
6286 _resultobj
= t_output_helper(_resultobj
, o
);
6291 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6292 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6293 PyObject
* _resultobj
;
6295 wxScrolledWindow
* _arg0
;
6296 PyObject
* _argo0
= 0;
6297 char *_kwnames
[] = { "self", NULL
};
6300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6310 wxPy_BEGIN_ALLOW_THREADS
;
6311 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6313 wxPy_END_ALLOW_THREADS
;
6314 if (PyErr_Occurred()) return NULL
;
6315 } _resultobj
= Py_BuildValue("i",_result
);
6319 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6320 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6321 PyObject
* _resultobj
;
6322 wxScrolledWindow
* _arg0
;
6324 PyObject
* _argo0
= 0;
6325 PyObject
* _argo1
= 0;
6326 char *_kwnames
[] = { "self","dc", NULL
};
6329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6339 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6340 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6346 wxPy_BEGIN_ALLOW_THREADS
;
6347 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6349 wxPy_END_ALLOW_THREADS
;
6350 if (PyErr_Occurred()) return NULL
;
6351 } Py_INCREF(Py_None
);
6352 _resultobj
= Py_None
;
6356 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6357 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6358 PyObject
* _resultobj
;
6359 wxScrolledWindow
* _arg0
;
6362 PyObject
* _argo0
= 0;
6363 char *_kwnames
[] = { "self","x","y", NULL
};
6366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6376 wxPy_BEGIN_ALLOW_THREADS
;
6377 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6379 wxPy_END_ALLOW_THREADS
;
6380 if (PyErr_Occurred()) return NULL
;
6381 } Py_INCREF(Py_None
);
6382 _resultobj
= Py_None
;
6386 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6387 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6388 PyObject
* _resultobj
;
6389 wxScrolledWindow
* _arg0
;
6394 int _arg5
= (int ) 0;
6395 int _arg6
= (int ) 0;
6396 int _arg7
= (int ) FALSE
;
6397 PyObject
* _argo0
= 0;
6398 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6411 wxPy_BEGIN_ALLOW_THREADS
;
6412 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6414 wxPy_END_ALLOW_THREADS
;
6415 if (PyErr_Occurred()) return NULL
;
6416 } Py_INCREF(Py_None
);
6417 _resultobj
= Py_None
;
6421 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6422 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6423 PyObject
* _resultobj
;
6424 wxScrolledWindow
* _arg0
;
6427 PyObject
* _argo0
= 0;
6428 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6441 wxPy_BEGIN_ALLOW_THREADS
;
6442 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6444 wxPy_END_ALLOW_THREADS
;
6445 if (PyErr_Occurred()) return NULL
;
6446 } Py_INCREF(Py_None
);
6447 _resultobj
= Py_None
;
6451 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6452 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6453 PyObject
* _resultobj
;
6454 wxScrolledWindow
* _arg0
;
6456 PyObject
* _argo0
= 0;
6457 PyObject
* _argo1
= 0;
6458 char *_kwnames
[] = { "self","window", NULL
};
6461 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6464 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6465 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6466 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6471 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6472 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6478 wxPy_BEGIN_ALLOW_THREADS
;
6479 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6481 wxPy_END_ALLOW_THREADS
;
6482 if (PyErr_Occurred()) return NULL
;
6483 } Py_INCREF(Py_None
);
6484 _resultobj
= Py_None
;
6488 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6489 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6490 PyObject
* _resultobj
;
6491 wxScrolledWindow
* _arg0
;
6496 PyObject
* _argo0
= 0;
6497 char *_kwnames
[] = { "self", NULL
};
6506 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6509 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6510 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6511 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6516 wxPy_BEGIN_ALLOW_THREADS
;
6517 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6519 wxPy_END_ALLOW_THREADS
;
6520 if (PyErr_Occurred()) return NULL
;
6521 } Py_INCREF(Py_None
);
6522 _resultobj
= Py_None
;
6525 o
= PyInt_FromLong((long) (*_arg1
));
6526 _resultobj
= t_output_helper(_resultobj
, o
);
6530 o
= PyInt_FromLong((long) (*_arg2
));
6531 _resultobj
= t_output_helper(_resultobj
, o
);
6536 #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1))
6537 static PyObject
*_wrap_wxScrolledWindow_ViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6538 PyObject
* _resultobj
;
6539 wxScrolledWindow
* _arg0
;
6544 PyObject
* _argo0
= 0;
6545 char *_kwnames
[] = { "self", NULL
};
6554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_ViewStart",_kwnames
,&_argo0
))
6557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p.");
6564 wxPy_BEGIN_ALLOW_THREADS
;
6565 wxScrolledWindow_ViewStart(_arg0
,_arg1
,_arg2
);
6567 wxPy_END_ALLOW_THREADS
;
6568 if (PyErr_Occurred()) return NULL
;
6569 } Py_INCREF(Py_None
);
6570 _resultobj
= Py_None
;
6573 o
= PyInt_FromLong((long) (*_arg1
));
6574 _resultobj
= t_output_helper(_resultobj
, o
);
6578 o
= PyInt_FromLong((long) (*_arg2
));
6579 _resultobj
= t_output_helper(_resultobj
, o
);
6584 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6585 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6586 PyObject
* _resultobj
;
6587 wxScrolledWindow
* _arg0
;
6594 PyObject
* _argo0
= 0;
6595 char *_kwnames
[] = { "self","x","y", NULL
};
6604 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6607 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6608 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6614 wxPy_BEGIN_ALLOW_THREADS
;
6615 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6617 wxPy_END_ALLOW_THREADS
;
6618 if (PyErr_Occurred()) return NULL
;
6619 } Py_INCREF(Py_None
);
6620 _resultobj
= Py_None
;
6623 o
= PyInt_FromLong((long) (*_arg3
));
6624 _resultobj
= t_output_helper(_resultobj
, o
);
6628 o
= PyInt_FromLong((long) (*_arg4
));
6629 _resultobj
= t_output_helper(_resultobj
, o
);
6634 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6635 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6636 PyObject
* _resultobj
;
6637 wxScrolledWindow
* _arg0
;
6644 PyObject
* _argo0
= 0;
6645 char *_kwnames
[] = { "self","x","y", NULL
};
6654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6664 wxPy_BEGIN_ALLOW_THREADS
;
6665 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6667 wxPy_END_ALLOW_THREADS
;
6668 if (PyErr_Occurred()) return NULL
;
6669 } Py_INCREF(Py_None
);
6670 _resultobj
= Py_None
;
6673 o
= PyInt_FromLong((long) (*_arg3
));
6674 _resultobj
= t_output_helper(_resultobj
, o
);
6678 o
= PyInt_FromLong((long) (*_arg4
));
6679 _resultobj
= t_output_helper(_resultobj
, o
);
6684 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6685 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6686 PyObject
* _resultobj
;
6687 wxScrolledWindow
* _arg0
;
6690 PyObject
* _argo0
= 0;
6691 char *_kwnames
[] = { "self","xs","ys", NULL
};
6694 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6697 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6698 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6699 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6704 wxPy_BEGIN_ALLOW_THREADS
;
6705 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6707 wxPy_END_ALLOW_THREADS
;
6708 if (PyErr_Occurred()) return NULL
;
6709 } Py_INCREF(Py_None
);
6710 _resultobj
= Py_None
;
6714 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6715 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6716 PyObject
* _resultobj
;
6718 wxScrolledWindow
* _arg0
;
6719 PyObject
* _argo0
= 0;
6720 char *_kwnames
[] = { "self", NULL
};
6723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6733 wxPy_BEGIN_ALLOW_THREADS
;
6734 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6736 wxPy_END_ALLOW_THREADS
;
6737 if (PyErr_Occurred()) return NULL
;
6738 } _resultobj
= Py_BuildValue("d",_result
);
6742 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6743 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6744 PyObject
* _resultobj
;
6746 wxScrolledWindow
* _arg0
;
6747 PyObject
* _argo0
= 0;
6748 char *_kwnames
[] = { "self", NULL
};
6751 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleY",_kwnames
,&_argo0
))
6754 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6755 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6761 wxPy_BEGIN_ALLOW_THREADS
;
6762 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6764 wxPy_END_ALLOW_THREADS
;
6765 if (PyErr_Occurred()) return NULL
;
6766 } _resultobj
= Py_BuildValue("d",_result
);
6770 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6771 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6772 PyObject
* _resultobj
;
6773 wxScrolledWindow
* _arg0
;
6774 PyObject
* _argo0
= 0;
6775 char *_kwnames
[] = { "self", NULL
};
6778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6788 wxPy_BEGIN_ALLOW_THREADS
;
6789 wxScrolledWindow_AdjustScrollbars(_arg0
);
6791 wxPy_END_ALLOW_THREADS
;
6792 if (PyErr_Occurred()) return NULL
;
6793 } Py_INCREF(Py_None
);
6794 _resultobj
= Py_None
;
6798 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6801 src
= (wxMenu
*) ptr
;
6802 dest
= (wxEvtHandler
*) src
;
6803 return (void *) dest
;
6806 static void *SwigwxMenuTowxObject(void *ptr
) {
6809 src
= (wxMenu
*) ptr
;
6810 dest
= (wxObject
*) src
;
6811 return (void *) dest
;
6814 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6815 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6816 PyObject
* _resultobj
;
6818 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6819 long _arg1
= (long ) 0;
6820 PyObject
* _obj0
= 0;
6821 char *_kwnames
[] = { "title","style", NULL
};
6825 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6829 #if PYTHON_API_VERSION >= 1009
6830 char* tmpPtr
; int tmpSize
;
6831 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6832 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6835 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6837 _arg0
= new wxString(tmpPtr
, tmpSize
);
6839 if (!PyString_Check(_obj0
)) {
6840 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6843 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6847 wxPy_BEGIN_ALLOW_THREADS
;
6848 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6850 wxPy_END_ALLOW_THREADS
;
6851 if (PyErr_Occurred()) return NULL
;
6853 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6854 _resultobj
= Py_BuildValue("s",_ptemp
);
6857 _resultobj
= Py_None
;
6866 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6867 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6868 PyObject
* _resultobj
;
6872 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6873 int _arg4
= (int ) FALSE
;
6874 PyObject
* _argo0
= 0;
6875 PyObject
* _obj2
= 0;
6876 PyObject
* _obj3
= 0;
6877 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6890 #if PYTHON_API_VERSION >= 1009
6891 char* tmpPtr
; int tmpSize
;
6892 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6893 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6896 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6898 _arg2
= new wxString(tmpPtr
, tmpSize
);
6900 if (!PyString_Check(_obj2
)) {
6901 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6904 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6909 #if PYTHON_API_VERSION >= 1009
6910 char* tmpPtr
; int tmpSize
;
6911 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6912 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6915 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6917 _arg3
= new wxString(tmpPtr
, tmpSize
);
6919 if (!PyString_Check(_obj3
)) {
6920 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6923 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
6927 wxPy_BEGIN_ALLOW_THREADS
;
6928 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
6930 wxPy_END_ALLOW_THREADS
;
6931 if (PyErr_Occurred()) return NULL
;
6932 } Py_INCREF(Py_None
);
6933 _resultobj
= Py_None
;
6945 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6946 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6947 PyObject
* _resultobj
;
6952 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
6953 PyObject
* _argo0
= 0;
6954 PyObject
* _obj2
= 0;
6955 PyObject
* _argo3
= 0;
6956 PyObject
* _obj4
= 0;
6957 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
6960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
6963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6970 #if PYTHON_API_VERSION >= 1009
6971 char* tmpPtr
; int tmpSize
;
6972 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6973 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6976 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6978 _arg2
= new wxString(tmpPtr
, tmpSize
);
6980 if (!PyString_Check(_obj2
)) {
6981 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6984 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6988 if (_argo3
== Py_None
) { _arg3
= NULL
; }
6989 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
6990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6996 #if PYTHON_API_VERSION >= 1009
6997 char* tmpPtr
; int tmpSize
;
6998 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
6999 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7002 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
7004 _arg4
= new wxString(tmpPtr
, tmpSize
);
7006 if (!PyString_Check(_obj4
)) {
7007 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7010 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
7014 wxPy_BEGIN_ALLOW_THREADS
;
7015 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
7017 wxPy_END_ALLOW_THREADS
;
7018 if (PyErr_Occurred()) return NULL
;
7019 } Py_INCREF(Py_None
);
7020 _resultobj
= Py_None
;
7032 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7033 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7034 PyObject
* _resultobj
;
7037 PyObject
* _argo0
= 0;
7038 PyObject
* _argo1
= 0;
7039 char *_kwnames
[] = { "self","item", NULL
};
7042 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
7045 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7046 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7047 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7052 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7053 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7059 wxPy_BEGIN_ALLOW_THREADS
;
7060 wxMenu_AppendItem(_arg0
,_arg1
);
7062 wxPy_END_ALLOW_THREADS
;
7063 if (PyErr_Occurred()) return NULL
;
7064 } Py_INCREF(Py_None
);
7065 _resultobj
= Py_None
;
7069 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7070 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7071 PyObject
* _resultobj
;
7073 PyObject
* _argo0
= 0;
7074 char *_kwnames
[] = { "self", NULL
};
7077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7087 wxPy_BEGIN_ALLOW_THREADS
;
7088 wxMenu_AppendSeparator(_arg0
);
7090 wxPy_END_ALLOW_THREADS
;
7091 if (PyErr_Occurred()) return NULL
;
7092 } Py_INCREF(Py_None
);
7093 _resultobj
= Py_None
;
7097 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7098 static PyObject
*_wrap_wxMenu_Break(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7099 PyObject
* _resultobj
;
7101 PyObject
* _argo0
= 0;
7102 char *_kwnames
[] = { "self", NULL
};
7105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Break",_kwnames
,&_argo0
))
7108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7115 wxPy_BEGIN_ALLOW_THREADS
;
7116 wxMenu_Break(_arg0
);
7118 wxPy_END_ALLOW_THREADS
;
7119 if (PyErr_Occurred()) return NULL
;
7120 } Py_INCREF(Py_None
);
7121 _resultobj
= Py_None
;
7125 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7126 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7127 PyObject
* _resultobj
;
7131 PyObject
* _argo0
= 0;
7133 char *_kwnames
[] = { "self","id","flag", NULL
};
7136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7145 _arg2
= (bool ) tempbool2
;
7147 wxPy_BEGIN_ALLOW_THREADS
;
7148 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7150 wxPy_END_ALLOW_THREADS
;
7151 if (PyErr_Occurred()) return NULL
;
7152 } Py_INCREF(Py_None
);
7153 _resultobj
= Py_None
;
7157 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7158 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7159 PyObject
* _resultobj
;
7163 PyObject
* _argo0
= 0;
7164 char *_kwnames
[] = { "self","id", NULL
};
7167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7170 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7171 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7177 wxPy_BEGIN_ALLOW_THREADS
;
7178 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7180 wxPy_END_ALLOW_THREADS
;
7181 if (PyErr_Occurred()) return NULL
;
7182 } _resultobj
= Py_BuildValue("i",_result
);
7186 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7187 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7188 PyObject
* _resultobj
;
7192 PyObject
* _argo0
= 0;
7194 char *_kwnames
[] = { "self","id","enable", NULL
};
7197 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7200 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7201 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7206 _arg2
= (bool ) tempbool2
;
7208 wxPy_BEGIN_ALLOW_THREADS
;
7209 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7211 wxPy_END_ALLOW_THREADS
;
7212 if (PyErr_Occurred()) return NULL
;
7213 } Py_INCREF(Py_None
);
7214 _resultobj
= Py_None
;
7218 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7219 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7220 PyObject
* _resultobj
;
7224 PyObject
* _argo0
= 0;
7225 char *_kwnames
[] = { "self","id", NULL
};
7228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7238 wxPy_BEGIN_ALLOW_THREADS
;
7239 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7241 wxPy_END_ALLOW_THREADS
;
7242 if (PyErr_Occurred()) return NULL
;
7243 } _resultobj
= Py_BuildValue("i",_result
);
7247 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7248 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7249 PyObject
* _resultobj
;
7253 PyObject
* _argo0
= 0;
7254 PyObject
* _obj1
= 0;
7255 char *_kwnames
[] = { "self","itemString", NULL
};
7258 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7261 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7262 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7268 #if PYTHON_API_VERSION >= 1009
7269 char* tmpPtr
; int tmpSize
;
7270 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7271 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7274 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7276 _arg1
= new wxString(tmpPtr
, tmpSize
);
7278 if (!PyString_Check(_obj1
)) {
7279 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7282 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7286 wxPy_BEGIN_ALLOW_THREADS
;
7287 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7289 wxPy_END_ALLOW_THREADS
;
7290 if (PyErr_Occurred()) return NULL
;
7291 } _resultobj
= Py_BuildValue("i",_result
);
7299 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7300 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7301 PyObject
* _resultobj
;
7302 wxMenuItem
* _result
;
7305 PyObject
* _argo0
= 0;
7306 char *_kwnames
[] = { "self","id", NULL
};
7309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7319 wxPy_BEGIN_ALLOW_THREADS
;
7320 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7322 wxPy_END_ALLOW_THREADS
;
7323 if (PyErr_Occurred()) return NULL
;
7324 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7328 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7329 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7330 PyObject
* _resultobj
;
7333 PyObject
* _argo0
= 0;
7334 char *_kwnames
[] = { "self", NULL
};
7337 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
7340 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7341 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7342 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7347 wxPy_BEGIN_ALLOW_THREADS
;
7348 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7350 wxPy_END_ALLOW_THREADS
;
7351 if (PyErr_Occurred()) return NULL
;
7353 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7361 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7362 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7363 PyObject
* _resultobj
;
7366 PyObject
* _argo0
= 0;
7367 PyObject
* _obj1
= 0;
7368 char *_kwnames
[] = { "self","title", NULL
};
7371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7381 #if PYTHON_API_VERSION >= 1009
7382 char* tmpPtr
; int tmpSize
;
7383 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7384 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7387 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7389 _arg1
= new wxString(tmpPtr
, tmpSize
);
7391 if (!PyString_Check(_obj1
)) {
7392 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7395 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7399 wxPy_BEGIN_ALLOW_THREADS
;
7400 wxMenu_SetTitle(_arg0
,*_arg1
);
7402 wxPy_END_ALLOW_THREADS
;
7403 if (PyErr_Occurred()) return NULL
;
7404 } Py_INCREF(Py_None
);
7405 _resultobj
= Py_None
;
7413 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7414 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7415 PyObject
* _resultobj
;
7419 PyObject
* _argo0
= 0;
7420 char *_kwnames
[] = { "self","id", NULL
};
7423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7433 wxPy_BEGIN_ALLOW_THREADS
;
7434 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7436 wxPy_END_ALLOW_THREADS
;
7437 if (PyErr_Occurred()) return NULL
;
7439 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7447 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7448 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7449 PyObject
* _resultobj
;
7453 PyObject
* _argo0
= 0;
7454 PyObject
* _obj2
= 0;
7455 char *_kwnames
[] = { "self","id","label", NULL
};
7458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7468 #if PYTHON_API_VERSION >= 1009
7469 char* tmpPtr
; int tmpSize
;
7470 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7471 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7474 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7476 _arg2
= new wxString(tmpPtr
, tmpSize
);
7478 if (!PyString_Check(_obj2
)) {
7479 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7482 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7486 wxPy_BEGIN_ALLOW_THREADS
;
7487 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7489 wxPy_END_ALLOW_THREADS
;
7490 if (PyErr_Occurred()) return NULL
;
7491 } Py_INCREF(Py_None
);
7492 _resultobj
= Py_None
;
7500 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7501 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7502 PyObject
* _resultobj
;
7506 PyObject
* _argo0
= 0;
7507 char *_kwnames
[] = { "self","id", NULL
};
7510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7520 wxPy_BEGIN_ALLOW_THREADS
;
7521 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7523 wxPy_END_ALLOW_THREADS
;
7524 if (PyErr_Occurred()) return NULL
;
7526 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7534 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7535 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7536 PyObject
* _resultobj
;
7540 PyObject
* _argo0
= 0;
7541 PyObject
* _obj2
= 0;
7542 char *_kwnames
[] = { "self","id","helpString", NULL
};
7545 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7548 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7549 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7550 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7555 #if PYTHON_API_VERSION >= 1009
7556 char* tmpPtr
; int tmpSize
;
7557 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7558 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7561 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7563 _arg2
= new wxString(tmpPtr
, tmpSize
);
7565 if (!PyString_Check(_obj2
)) {
7566 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7569 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7573 wxPy_BEGIN_ALLOW_THREADS
;
7574 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7576 wxPy_END_ALLOW_THREADS
;
7577 if (PyErr_Occurred()) return NULL
;
7578 } Py_INCREF(Py_None
);
7579 _resultobj
= Py_None
;
7587 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7588 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7589 PyObject
* _resultobj
;
7591 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7592 PyObject
* _argo0
= 0;
7593 PyObject
* _argo1
= 0;
7594 char *_kwnames
[] = { "self","source", NULL
};
7597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7607 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7608 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7609 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7614 wxPy_BEGIN_ALLOW_THREADS
;
7615 wxMenu_UpdateUI(_arg0
,_arg1
);
7617 wxPy_END_ALLOW_THREADS
;
7618 if (PyErr_Occurred()) return NULL
;
7619 } Py_INCREF(Py_None
);
7620 _resultobj
= Py_None
;
7624 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7625 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7626 PyObject
* _resultobj
;
7630 PyObject
* _argo0
= 0;
7631 char *_kwnames
[] = { "self","id", NULL
};
7634 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7637 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7638 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7639 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7644 wxPy_BEGIN_ALLOW_THREADS
;
7645 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7647 wxPy_END_ALLOW_THREADS
;
7648 if (PyErr_Occurred()) return NULL
;
7649 } _resultobj
= Py_BuildValue("i",_result
);
7653 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7654 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7655 PyObject
* _resultobj
;
7659 PyObject
* _argo0
= 0;
7660 PyObject
* _argo1
= 0;
7661 char *_kwnames
[] = { "self","item", NULL
};
7664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7667 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7668 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7674 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7675 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7676 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7681 wxPy_BEGIN_ALLOW_THREADS
;
7682 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7684 wxPy_END_ALLOW_THREADS
;
7685 if (PyErr_Occurred()) return NULL
;
7686 } _resultobj
= Py_BuildValue("i",_result
);
7690 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7691 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7692 PyObject
* _resultobj
;
7697 PyObject
* _argo0
= 0;
7698 PyObject
* _argo2
= 0;
7699 char *_kwnames
[] = { "self","pos","item", NULL
};
7702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7712 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7713 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7719 wxPy_BEGIN_ALLOW_THREADS
;
7720 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7722 wxPy_END_ALLOW_THREADS
;
7723 if (PyErr_Occurred()) return NULL
;
7724 } _resultobj
= Py_BuildValue("i",_result
);
7728 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7729 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7730 PyObject
* _resultobj
;
7731 wxMenuItem
* _result
;
7734 PyObject
* _argo0
= 0;
7735 char *_kwnames
[] = { "self","id", NULL
};
7738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7748 wxPy_BEGIN_ALLOW_THREADS
;
7749 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7751 wxPy_END_ALLOW_THREADS
;
7752 if (PyErr_Occurred()) return NULL
;
7753 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7757 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7758 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7759 PyObject
* _resultobj
;
7760 wxMenuItem
* _result
;
7763 PyObject
* _argo0
= 0;
7764 PyObject
* _argo1
= 0;
7765 char *_kwnames
[] = { "self","item", NULL
};
7768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7778 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7779 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7785 wxPy_BEGIN_ALLOW_THREADS
;
7786 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7788 wxPy_END_ALLOW_THREADS
;
7789 if (PyErr_Occurred()) return NULL
;
7790 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7794 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7795 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7796 PyObject
* _resultobj
;
7798 PyObject
* _argo0
= 0;
7799 char *_kwnames
[] = { "self", NULL
};
7802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7812 wxPy_BEGIN_ALLOW_THREADS
;
7813 wxMenu_Destroy(_arg0
);
7815 wxPy_END_ALLOW_THREADS
;
7816 if (PyErr_Occurred()) return NULL
;
7817 } Py_INCREF(Py_None
);
7818 _resultobj
= Py_None
;
7822 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7823 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7824 PyObject
* _resultobj
;
7828 PyObject
* _argo0
= 0;
7829 char *_kwnames
[] = { "self","id", NULL
};
7832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7842 wxPy_BEGIN_ALLOW_THREADS
;
7843 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7845 wxPy_END_ALLOW_THREADS
;
7846 if (PyErr_Occurred()) return NULL
;
7847 } _resultobj
= Py_BuildValue("i",_result
);
7851 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7852 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7853 PyObject
* _resultobj
;
7857 PyObject
* _argo0
= 0;
7858 PyObject
* _argo1
= 0;
7859 char *_kwnames
[] = { "self","item", NULL
};
7862 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7865 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7866 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7867 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7872 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7873 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7879 wxPy_BEGIN_ALLOW_THREADS
;
7880 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7882 wxPy_END_ALLOW_THREADS
;
7883 if (PyErr_Occurred()) return NULL
;
7884 } _resultobj
= Py_BuildValue("i",_result
);
7888 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7889 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7890 PyObject
* _resultobj
;
7893 PyObject
* _argo0
= 0;
7894 char *_kwnames
[] = { "self", NULL
};
7897 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7900 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7901 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7902 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7907 wxPy_BEGIN_ALLOW_THREADS
;
7908 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7910 wxPy_END_ALLOW_THREADS
;
7911 if (PyErr_Occurred()) return NULL
;
7912 } _resultobj
= Py_BuildValue("i",_result
);
7916 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7917 wxMenuItemList
& list
= self
->GetMenuItems();
7918 return wxPy_ConvertList(&list
, "wxMenuItem");
7920 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7921 PyObject
* _resultobj
;
7924 PyObject
* _argo0
= 0;
7925 char *_kwnames
[] = { "self", NULL
};
7928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
7931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7938 wxPy_BEGIN_ALLOW_THREADS
;
7939 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
7941 wxPy_END_ALLOW_THREADS
;
7942 if (PyErr_Occurred()) return NULL
;
7944 _resultobj
= _result
;
7949 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7950 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7951 PyObject
* _resultobj
;
7953 wxEvtHandler
* _arg1
;
7954 PyObject
* _argo0
= 0;
7955 PyObject
* _argo1
= 0;
7956 char *_kwnames
[] = { "self","handler", NULL
};
7959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
7962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7969 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7970 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7976 wxPy_BEGIN_ALLOW_THREADS
;
7977 wxMenu_SetEventHandler(_arg0
,_arg1
);
7979 wxPy_END_ALLOW_THREADS
;
7980 if (PyErr_Occurred()) return NULL
;
7981 } Py_INCREF(Py_None
);
7982 _resultobj
= Py_None
;
7986 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
7987 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7988 PyObject
* _resultobj
;
7989 wxEvtHandler
* _result
;
7991 PyObject
* _argo0
= 0;
7992 char *_kwnames
[] = { "self", NULL
};
7995 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
7998 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7999 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8000 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
8005 wxPy_BEGIN_ALLOW_THREADS
;
8006 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
8008 wxPy_END_ALLOW_THREADS
;
8009 if (PyErr_Occurred()) return NULL
;
8010 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8014 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
8015 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8016 PyObject
* _resultobj
;
8019 PyObject
* _argo0
= 0;
8020 PyObject
* _argo1
= 0;
8021 char *_kwnames
[] = { "self","win", NULL
};
8024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
8027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
8034 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8035 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
8041 wxPy_BEGIN_ALLOW_THREADS
;
8042 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
8044 wxPy_END_ALLOW_THREADS
;
8045 if (PyErr_Occurred()) return NULL
;
8046 } Py_INCREF(Py_None
);
8047 _resultobj
= Py_None
;
8051 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
8052 static PyObject
*_wrap_wxMenu_GetInvokingWindow(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_GetInvokingWindow",_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_GetInvokingWindow. Expected _wxMenu_p.");
8070 wxPy_BEGIN_ALLOW_THREADS
;
8071 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8073 wxPy_END_ALLOW_THREADS
;
8074 if (PyErr_Occurred()) return NULL
;
8075 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8079 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8080 static PyObject
*_wrap_wxMenu_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8081 PyObject
* _resultobj
;
8084 PyObject
* _argo0
= 0;
8085 char *_kwnames
[] = { "self", NULL
};
8088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetStyle",_kwnames
,&_argo0
))
8091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8098 wxPy_BEGIN_ALLOW_THREADS
;
8099 _result
= (long )wxMenu_GetStyle(_arg0
);
8101 wxPy_END_ALLOW_THREADS
;
8102 if (PyErr_Occurred()) return NULL
;
8103 } _resultobj
= Py_BuildValue("l",_result
);
8107 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8108 static PyObject
*_wrap_wxMenu_IsAttached(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8109 PyObject
* _resultobj
;
8112 PyObject
* _argo0
= 0;
8113 char *_kwnames
[] = { "self", NULL
};
8116 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_IsAttached",_kwnames
,&_argo0
))
8119 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8120 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8121 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8126 wxPy_BEGIN_ALLOW_THREADS
;
8127 _result
= (bool )wxMenu_IsAttached(_arg0
);
8129 wxPy_END_ALLOW_THREADS
;
8130 if (PyErr_Occurred()) return NULL
;
8131 } _resultobj
= Py_BuildValue("i",_result
);
8135 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8136 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8137 PyObject
* _resultobj
;
8140 PyObject
* _argo0
= 0;
8141 PyObject
* _argo1
= 0;
8142 char *_kwnames
[] = { "self","parent", NULL
};
8145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8155 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8156 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8157 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8162 wxPy_BEGIN_ALLOW_THREADS
;
8163 wxMenu_SetParent(_arg0
,_arg1
);
8165 wxPy_END_ALLOW_THREADS
;
8166 if (PyErr_Occurred()) return NULL
;
8167 } Py_INCREF(Py_None
);
8168 _resultobj
= Py_None
;
8172 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8173 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8174 PyObject
* _resultobj
;
8177 PyObject
* _argo0
= 0;
8178 char *_kwnames
[] = { "self", NULL
};
8181 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8184 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8185 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8191 wxPy_BEGIN_ALLOW_THREADS
;
8192 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8194 wxPy_END_ALLOW_THREADS
;
8195 if (PyErr_Occurred()) return NULL
;
8196 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8200 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8203 src
= (wxMenuBar
*) ptr
;
8204 dest
= (wxWindow
*) src
;
8205 return (void *) dest
;
8208 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8211 src
= (wxMenuBar
*) ptr
;
8212 dest
= (wxEvtHandler
*) src
;
8213 return (void *) dest
;
8216 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8219 src
= (wxMenuBar
*) ptr
;
8220 dest
= (wxObject
*) src
;
8221 return (void *) dest
;
8224 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8225 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8226 PyObject
* _resultobj
;
8227 wxMenuBar
* _result
;
8228 long _arg0
= (long ) 0;
8229 char *_kwnames
[] = { "style", NULL
};
8233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8236 wxPy_BEGIN_ALLOW_THREADS
;
8237 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8239 wxPy_END_ALLOW_THREADS
;
8240 if (PyErr_Occurred()) return NULL
;
8242 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8243 _resultobj
= Py_BuildValue("s",_ptemp
);
8246 _resultobj
= Py_None
;
8251 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8252 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8253 PyObject
* _resultobj
;
8258 PyObject
* _argo0
= 0;
8259 PyObject
* _argo1
= 0;
8260 PyObject
* _obj2
= 0;
8261 char *_kwnames
[] = { "self","menu","title", NULL
};
8264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8274 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8275 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8281 #if PYTHON_API_VERSION >= 1009
8282 char* tmpPtr
; int tmpSize
;
8283 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8284 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8287 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8289 _arg2
= new wxString(tmpPtr
, tmpSize
);
8291 if (!PyString_Check(_obj2
)) {
8292 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8295 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8299 wxPy_BEGIN_ALLOW_THREADS
;
8300 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8302 wxPy_END_ALLOW_THREADS
;
8303 if (PyErr_Occurred()) return NULL
;
8304 } _resultobj
= Py_BuildValue("i",_result
);
8312 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8313 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8314 PyObject
* _resultobj
;
8320 PyObject
* _argo0
= 0;
8321 PyObject
* _argo2
= 0;
8322 PyObject
* _obj3
= 0;
8323 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8336 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8337 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8343 #if PYTHON_API_VERSION >= 1009
8344 char* tmpPtr
; int tmpSize
;
8345 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8346 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8349 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8351 _arg3
= new wxString(tmpPtr
, tmpSize
);
8353 if (!PyString_Check(_obj3
)) {
8354 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8357 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8361 wxPy_BEGIN_ALLOW_THREADS
;
8362 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8364 wxPy_END_ALLOW_THREADS
;
8365 if (PyErr_Occurred()) return NULL
;
8366 } _resultobj
= Py_BuildValue("i",_result
);
8374 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8375 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8376 PyObject
* _resultobj
;
8379 PyObject
* _argo0
= 0;
8380 char *_kwnames
[] = { "self", NULL
};
8383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8393 wxPy_BEGIN_ALLOW_THREADS
;
8394 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8396 wxPy_END_ALLOW_THREADS
;
8397 if (PyErr_Occurred()) return NULL
;
8398 } _resultobj
= Py_BuildValue("i",_result
);
8402 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8403 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8404 PyObject
* _resultobj
;
8408 PyObject
* _argo0
= 0;
8409 char *_kwnames
[] = { "self","pos", NULL
};
8412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8422 wxPy_BEGIN_ALLOW_THREADS
;
8423 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8425 wxPy_END_ALLOW_THREADS
;
8426 if (PyErr_Occurred()) return NULL
;
8427 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8431 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8432 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8433 PyObject
* _resultobj
;
8439 PyObject
* _argo0
= 0;
8440 PyObject
* _argo2
= 0;
8441 PyObject
* _obj3
= 0;
8442 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8455 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8456 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8462 #if PYTHON_API_VERSION >= 1009
8463 char* tmpPtr
; int tmpSize
;
8464 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8465 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8468 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8470 _arg3
= new wxString(tmpPtr
, tmpSize
);
8472 if (!PyString_Check(_obj3
)) {
8473 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8476 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8480 wxPy_BEGIN_ALLOW_THREADS
;
8481 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8483 wxPy_END_ALLOW_THREADS
;
8484 if (PyErr_Occurred()) return NULL
;
8485 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8493 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8494 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8495 PyObject
* _resultobj
;
8499 PyObject
* _argo0
= 0;
8500 char *_kwnames
[] = { "self","pos", NULL
};
8503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8513 wxPy_BEGIN_ALLOW_THREADS
;
8514 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8516 wxPy_END_ALLOW_THREADS
;
8517 if (PyErr_Occurred()) return NULL
;
8518 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8522 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8523 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8524 PyObject
* _resultobj
;
8528 PyObject
* _argo0
= 0;
8530 char *_kwnames
[] = { "self","pos","enable", NULL
};
8533 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8536 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8537 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8538 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8542 _arg2
= (bool ) tempbool2
;
8544 wxPy_BEGIN_ALLOW_THREADS
;
8545 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8547 wxPy_END_ALLOW_THREADS
;
8548 if (PyErr_Occurred()) return NULL
;
8549 } Py_INCREF(Py_None
);
8550 _resultobj
= Py_None
;
8554 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8555 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8556 PyObject
* _resultobj
;
8560 PyObject
* _argo0
= 0;
8561 PyObject
* _obj2
= 0;
8562 char *_kwnames
[] = { "self","pos","label", NULL
};
8565 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8568 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8569 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8570 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8575 #if PYTHON_API_VERSION >= 1009
8576 char* tmpPtr
; int tmpSize
;
8577 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8578 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8581 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8583 _arg2
= new wxString(tmpPtr
, tmpSize
);
8585 if (!PyString_Check(_obj2
)) {
8586 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8589 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8593 wxPy_BEGIN_ALLOW_THREADS
;
8594 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8596 wxPy_END_ALLOW_THREADS
;
8597 if (PyErr_Occurred()) return NULL
;
8598 } Py_INCREF(Py_None
);
8599 _resultobj
= Py_None
;
8607 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8608 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8609 PyObject
* _resultobj
;
8613 PyObject
* _argo0
= 0;
8614 char *_kwnames
[] = { "self","pos", NULL
};
8617 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8620 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8621 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8622 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8627 wxPy_BEGIN_ALLOW_THREADS
;
8628 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8630 wxPy_END_ALLOW_THREADS
;
8631 if (PyErr_Occurred()) return NULL
;
8633 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8641 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8642 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8643 PyObject
* _resultobj
;
8648 PyObject
* _argo0
= 0;
8649 PyObject
* _obj1
= 0;
8650 PyObject
* _obj2
= 0;
8651 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8664 #if PYTHON_API_VERSION >= 1009
8665 char* tmpPtr
; int tmpSize
;
8666 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8667 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8670 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8672 _arg1
= new wxString(tmpPtr
, tmpSize
);
8674 if (!PyString_Check(_obj1
)) {
8675 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8678 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8682 #if PYTHON_API_VERSION >= 1009
8683 char* tmpPtr
; int tmpSize
;
8684 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8685 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8688 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8690 _arg2
= new wxString(tmpPtr
, tmpSize
);
8692 if (!PyString_Check(_obj2
)) {
8693 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8696 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8700 wxPy_BEGIN_ALLOW_THREADS
;
8701 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8703 wxPy_END_ALLOW_THREADS
;
8704 if (PyErr_Occurred()) return NULL
;
8705 } _resultobj
= Py_BuildValue("i",_result
);
8717 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8718 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8719 PyObject
* _resultobj
;
8720 wxMenuItem
* _result
;
8723 PyObject
* _argo0
= 0;
8724 char *_kwnames
[] = { "self","id", NULL
};
8727 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8730 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8731 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8732 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8737 wxPy_BEGIN_ALLOW_THREADS
;
8738 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8740 wxPy_END_ALLOW_THREADS
;
8741 if (PyErr_Occurred()) return NULL
;
8742 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8746 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8747 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8748 PyObject
* _resultobj
;
8752 PyObject
* _argo0
= 0;
8754 char *_kwnames
[] = { "self","id","enable", NULL
};
8757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8766 _arg2
= (bool ) tempbool2
;
8768 wxPy_BEGIN_ALLOW_THREADS
;
8769 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8771 wxPy_END_ALLOW_THREADS
;
8772 if (PyErr_Occurred()) return NULL
;
8773 } Py_INCREF(Py_None
);
8774 _resultobj
= Py_None
;
8778 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8779 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8780 PyObject
* _resultobj
;
8784 PyObject
* _argo0
= 0;
8786 char *_kwnames
[] = { "self","id","check", NULL
};
8789 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8792 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8793 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8794 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8798 _arg2
= (bool ) tempbool2
;
8800 wxPy_BEGIN_ALLOW_THREADS
;
8801 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8803 wxPy_END_ALLOW_THREADS
;
8804 if (PyErr_Occurred()) return NULL
;
8805 } Py_INCREF(Py_None
);
8806 _resultobj
= Py_None
;
8810 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8811 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8812 PyObject
* _resultobj
;
8816 PyObject
* _argo0
= 0;
8817 char *_kwnames
[] = { "self","id", NULL
};
8820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8823 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8824 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8830 wxPy_BEGIN_ALLOW_THREADS
;
8831 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8833 wxPy_END_ALLOW_THREADS
;
8834 if (PyErr_Occurred()) return NULL
;
8835 } _resultobj
= Py_BuildValue("i",_result
);
8839 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8840 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8841 PyObject
* _resultobj
;
8845 PyObject
* _argo0
= 0;
8846 char *_kwnames
[] = { "self","id", NULL
};
8849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8859 wxPy_BEGIN_ALLOW_THREADS
;
8860 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8862 wxPy_END_ALLOW_THREADS
;
8863 if (PyErr_Occurred()) return NULL
;
8864 } _resultobj
= Py_BuildValue("i",_result
);
8868 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8869 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8870 PyObject
* _resultobj
;
8874 PyObject
* _argo0
= 0;
8875 PyObject
* _obj2
= 0;
8876 char *_kwnames
[] = { "self","id","label", NULL
};
8879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8889 #if PYTHON_API_VERSION >= 1009
8890 char* tmpPtr
; int tmpSize
;
8891 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8892 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8895 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8897 _arg2
= new wxString(tmpPtr
, tmpSize
);
8899 if (!PyString_Check(_obj2
)) {
8900 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8903 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8907 wxPy_BEGIN_ALLOW_THREADS
;
8908 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
8910 wxPy_END_ALLOW_THREADS
;
8911 if (PyErr_Occurred()) return NULL
;
8912 } Py_INCREF(Py_None
);
8913 _resultobj
= Py_None
;
8921 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8922 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8923 PyObject
* _resultobj
;
8927 PyObject
* _argo0
= 0;
8928 char *_kwnames
[] = { "self","id", NULL
};
8931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
8934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
8941 wxPy_BEGIN_ALLOW_THREADS
;
8942 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
8944 wxPy_END_ALLOW_THREADS
;
8945 if (PyErr_Occurred()) return NULL
;
8947 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8955 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
8956 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8957 PyObject
* _resultobj
;
8961 PyObject
* _argo0
= 0;
8962 PyObject
* _obj2
= 0;
8963 char *_kwnames
[] = { "self","id","helpString", NULL
};
8966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
8976 #if PYTHON_API_VERSION >= 1009
8977 char* tmpPtr
; int tmpSize
;
8978 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8979 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8982 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8984 _arg2
= new wxString(tmpPtr
, tmpSize
);
8986 if (!PyString_Check(_obj2
)) {
8987 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8990 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8994 wxPy_BEGIN_ALLOW_THREADS
;
8995 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
8997 wxPy_END_ALLOW_THREADS
;
8998 if (PyErr_Occurred()) return NULL
;
8999 } Py_INCREF(Py_None
);
9000 _resultobj
= Py_None
;
9008 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9009 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9010 PyObject
* _resultobj
;
9014 PyObject
* _argo0
= 0;
9015 char *_kwnames
[] = { "self","id", NULL
};
9018 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
9021 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9022 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
9023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9028 wxPy_BEGIN_ALLOW_THREADS
;
9029 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9031 wxPy_END_ALLOW_THREADS
;
9032 if (PyErr_Occurred()) return NULL
;
9034 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9042 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9045 src
= (wxMenuItem
*) ptr
;
9046 dest
= (wxObject
*) src
;
9047 return (void *) dest
;
9050 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9051 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9052 PyObject
* _resultobj
;
9053 wxMenuItem
* _result
;
9054 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9055 int _arg1
= (int ) wxID_SEPARATOR
;
9056 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9057 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9058 bool _arg4
= (bool ) FALSE
;
9059 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9060 PyObject
* _argo0
= 0;
9061 PyObject
* _obj2
= 0;
9062 PyObject
* _obj3
= 0;
9063 int tempbool4
= (int) FALSE
;
9064 PyObject
* _argo5
= 0;
9065 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9080 #if PYTHON_API_VERSION >= 1009
9081 char* tmpPtr
; int tmpSize
;
9082 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9083 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9086 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9088 _arg2
= new wxString(tmpPtr
, tmpSize
);
9090 if (!PyString_Check(_obj2
)) {
9091 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9094 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9099 #if PYTHON_API_VERSION >= 1009
9100 char* tmpPtr
; int tmpSize
;
9101 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9102 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9105 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9107 _arg3
= new wxString(tmpPtr
, tmpSize
);
9109 if (!PyString_Check(_obj3
)) {
9110 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9113 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9116 _arg4
= (bool ) tempbool4
;
9118 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9119 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9120 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9125 wxPy_BEGIN_ALLOW_THREADS
;
9126 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9128 wxPy_END_ALLOW_THREADS
;
9129 if (PyErr_Occurred()) return NULL
;
9131 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9132 _resultobj
= Py_BuildValue("s",_ptemp
);
9135 _resultobj
= Py_None
;
9148 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9149 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9150 PyObject
* _resultobj
;
9153 PyObject
* _argo0
= 0;
9154 char *_kwnames
[] = { "self", NULL
};
9157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9167 wxPy_BEGIN_ALLOW_THREADS
;
9168 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9170 wxPy_END_ALLOW_THREADS
;
9171 if (PyErr_Occurred()) return NULL
;
9172 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9176 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9177 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9178 PyObject
* _resultobj
;
9181 PyObject
* _argo0
= 0;
9182 char *_kwnames
[] = { "self","id", NULL
};
9185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
9188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9195 wxPy_BEGIN_ALLOW_THREADS
;
9196 wxMenuItem_SetId(_arg0
,_arg1
);
9198 wxPy_END_ALLOW_THREADS
;
9199 if (PyErr_Occurred()) return NULL
;
9200 } Py_INCREF(Py_None
);
9201 _resultobj
= Py_None
;
9205 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9206 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9207 PyObject
* _resultobj
;
9210 PyObject
* _argo0
= 0;
9211 char *_kwnames
[] = { "self", NULL
};
9214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9224 wxPy_BEGIN_ALLOW_THREADS
;
9225 _result
= (int )wxMenuItem_GetId(_arg0
);
9227 wxPy_END_ALLOW_THREADS
;
9228 if (PyErr_Occurred()) return NULL
;
9229 } _resultobj
= Py_BuildValue("i",_result
);
9233 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9234 static PyObject
*_wrap_wxMenuItem_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9235 PyObject
* _resultobj
;
9238 PyObject
* _argo0
= 0;
9239 char *_kwnames
[] = { "self", NULL
};
9242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSeparator",_kwnames
,&_argo0
))
9245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9252 wxPy_BEGIN_ALLOW_THREADS
;
9253 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9255 wxPy_END_ALLOW_THREADS
;
9256 if (PyErr_Occurred()) return NULL
;
9257 } _resultobj
= Py_BuildValue("i",_result
);
9261 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9262 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9263 PyObject
* _resultobj
;
9266 PyObject
* _argo0
= 0;
9267 PyObject
* _obj1
= 0;
9268 char *_kwnames
[] = { "self","str", NULL
};
9271 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9274 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9275 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9281 #if PYTHON_API_VERSION >= 1009
9282 char* tmpPtr
; int tmpSize
;
9283 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9284 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9287 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9289 _arg1
= new wxString(tmpPtr
, tmpSize
);
9291 if (!PyString_Check(_obj1
)) {
9292 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9295 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9299 wxPy_BEGIN_ALLOW_THREADS
;
9300 wxMenuItem_SetText(_arg0
,*_arg1
);
9302 wxPy_END_ALLOW_THREADS
;
9303 if (PyErr_Occurred()) return NULL
;
9304 } Py_INCREF(Py_None
);
9305 _resultobj
= Py_None
;
9313 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9314 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9315 PyObject
* _resultobj
;
9318 PyObject
* _argo0
= 0;
9319 char *_kwnames
[] = { "self", NULL
};
9322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9332 wxPy_BEGIN_ALLOW_THREADS
;
9333 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9335 wxPy_END_ALLOW_THREADS
;
9336 if (PyErr_Occurred()) return NULL
;
9338 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9346 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9347 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9348 PyObject
* _resultobj
;
9351 PyObject
* _argo0
= 0;
9352 char *_kwnames
[] = { "self", NULL
};
9355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9365 wxPy_BEGIN_ALLOW_THREADS
;
9366 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9367 _result
= (wxString
*) &_result_ref
;
9369 wxPy_END_ALLOW_THREADS
;
9370 if (PyErr_Occurred()) return NULL
;
9372 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9377 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9378 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9379 PyObject
* _resultobj
;
9382 PyObject
* _argo0
= 0;
9384 char *_kwnames
[] = { "self","checkable", NULL
};
9387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9396 _arg1
= (bool ) tempbool1
;
9398 wxPy_BEGIN_ALLOW_THREADS
;
9399 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9401 wxPy_END_ALLOW_THREADS
;
9402 if (PyErr_Occurred()) return NULL
;
9403 } Py_INCREF(Py_None
);
9404 _resultobj
= Py_None
;
9408 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9409 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9410 PyObject
* _resultobj
;
9413 PyObject
* _argo0
= 0;
9414 char *_kwnames
[] = { "self", NULL
};
9417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9427 wxPy_BEGIN_ALLOW_THREADS
;
9428 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9430 wxPy_END_ALLOW_THREADS
;
9431 if (PyErr_Occurred()) return NULL
;
9432 } _resultobj
= Py_BuildValue("i",_result
);
9436 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9437 static PyObject
*_wrap_wxMenuItem_IsSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9438 PyObject
* _resultobj
;
9441 PyObject
* _argo0
= 0;
9442 char *_kwnames
[] = { "self", NULL
};
9445 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsSubMenu",_kwnames
,&_argo0
))
9448 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9449 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9450 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9455 wxPy_BEGIN_ALLOW_THREADS
;
9456 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9458 wxPy_END_ALLOW_THREADS
;
9459 if (PyErr_Occurred()) return NULL
;
9460 } _resultobj
= Py_BuildValue("i",_result
);
9464 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9465 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9466 PyObject
* _resultobj
;
9469 PyObject
* _argo0
= 0;
9470 PyObject
* _argo1
= 0;
9471 char *_kwnames
[] = { "self","menu", NULL
};
9474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9484 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9485 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9491 wxPy_BEGIN_ALLOW_THREADS
;
9492 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9494 wxPy_END_ALLOW_THREADS
;
9495 if (PyErr_Occurred()) return NULL
;
9496 } Py_INCREF(Py_None
);
9497 _resultobj
= Py_None
;
9501 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9502 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9503 PyObject
* _resultobj
;
9506 PyObject
* _argo0
= 0;
9507 char *_kwnames
[] = { "self", NULL
};
9510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9520 wxPy_BEGIN_ALLOW_THREADS
;
9521 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9523 wxPy_END_ALLOW_THREADS
;
9524 if (PyErr_Occurred()) return NULL
;
9525 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9529 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9530 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9531 PyObject
* _resultobj
;
9533 bool _arg1
= (bool ) TRUE
;
9534 PyObject
* _argo0
= 0;
9535 int tempbool1
= (int) TRUE
;
9536 char *_kwnames
[] = { "self","enable", NULL
};
9539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9548 _arg1
= (bool ) tempbool1
;
9550 wxPy_BEGIN_ALLOW_THREADS
;
9551 wxMenuItem_Enable(_arg0
,_arg1
);
9553 wxPy_END_ALLOW_THREADS
;
9554 if (PyErr_Occurred()) return NULL
;
9555 } Py_INCREF(Py_None
);
9556 _resultobj
= Py_None
;
9560 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9561 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9562 PyObject
* _resultobj
;
9565 PyObject
* _argo0
= 0;
9566 char *_kwnames
[] = { "self", NULL
};
9569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9579 wxPy_BEGIN_ALLOW_THREADS
;
9580 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9582 wxPy_END_ALLOW_THREADS
;
9583 if (PyErr_Occurred()) return NULL
;
9584 } _resultobj
= Py_BuildValue("i",_result
);
9588 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9589 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9590 PyObject
* _resultobj
;
9592 bool _arg1
= (bool ) TRUE
;
9593 PyObject
* _argo0
= 0;
9594 int tempbool1
= (int) TRUE
;
9595 char *_kwnames
[] = { "self","check", NULL
};
9598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9607 _arg1
= (bool ) tempbool1
;
9609 wxPy_BEGIN_ALLOW_THREADS
;
9610 wxMenuItem_Check(_arg0
,_arg1
);
9612 wxPy_END_ALLOW_THREADS
;
9613 if (PyErr_Occurred()) return NULL
;
9614 } Py_INCREF(Py_None
);
9615 _resultobj
= Py_None
;
9619 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9620 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9621 PyObject
* _resultobj
;
9624 PyObject
* _argo0
= 0;
9625 char *_kwnames
[] = { "self", NULL
};
9628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9638 wxPy_BEGIN_ALLOW_THREADS
;
9639 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9641 wxPy_END_ALLOW_THREADS
;
9642 if (PyErr_Occurred()) return NULL
;
9643 } _resultobj
= Py_BuildValue("i",_result
);
9647 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9648 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9649 PyObject
* _resultobj
;
9651 PyObject
* _argo0
= 0;
9652 char *_kwnames
[] = { "self", NULL
};
9655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9665 wxPy_BEGIN_ALLOW_THREADS
;
9666 wxMenuItem_Toggle(_arg0
);
9668 wxPy_END_ALLOW_THREADS
;
9669 if (PyErr_Occurred()) return NULL
;
9670 } Py_INCREF(Py_None
);
9671 _resultobj
= Py_None
;
9675 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9676 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9677 PyObject
* _resultobj
;
9680 PyObject
* _argo0
= 0;
9681 PyObject
* _obj1
= 0;
9682 char *_kwnames
[] = { "self","str", NULL
};
9685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9695 #if PYTHON_API_VERSION >= 1009
9696 char* tmpPtr
; int tmpSize
;
9697 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9698 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9701 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9703 _arg1
= new wxString(tmpPtr
, tmpSize
);
9705 if (!PyString_Check(_obj1
)) {
9706 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9709 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9713 wxPy_BEGIN_ALLOW_THREADS
;
9714 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9716 wxPy_END_ALLOW_THREADS
;
9717 if (PyErr_Occurred()) return NULL
;
9718 } Py_INCREF(Py_None
);
9719 _resultobj
= Py_None
;
9727 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9728 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9729 PyObject
* _resultobj
;
9732 PyObject
* _argo0
= 0;
9733 char *_kwnames
[] = { "self", NULL
};
9736 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9739 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9740 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9741 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9746 wxPy_BEGIN_ALLOW_THREADS
;
9747 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9748 _result
= (wxString
*) &_result_ref
;
9750 wxPy_END_ALLOW_THREADS
;
9751 if (PyErr_Occurred()) return NULL
;
9753 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9758 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9759 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9760 PyObject
* _resultobj
;
9761 wxAcceleratorEntry
* _result
;
9763 PyObject
* _argo0
= 0;
9764 char *_kwnames
[] = { "self", NULL
};
9768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9778 wxPy_BEGIN_ALLOW_THREADS
;
9779 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9781 wxPy_END_ALLOW_THREADS
;
9782 if (PyErr_Occurred()) return NULL
;
9784 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9785 _resultobj
= Py_BuildValue("s",_ptemp
);
9788 _resultobj
= Py_None
;
9793 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9794 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9795 PyObject
* _resultobj
;
9797 wxAcceleratorEntry
* _arg1
;
9798 PyObject
* _argo0
= 0;
9799 PyObject
* _argo1
= 0;
9800 char *_kwnames
[] = { "self","accel", NULL
};
9803 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9806 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9807 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9808 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9813 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9814 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9815 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9820 wxPy_BEGIN_ALLOW_THREADS
;
9821 wxMenuItem_SetAccel(_arg0
,_arg1
);
9823 wxPy_END_ALLOW_THREADS
;
9824 if (PyErr_Occurred()) return NULL
;
9825 } Py_INCREF(Py_None
);
9826 _resultobj
= Py_None
;
9830 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9831 PyObject
* _resultobj
;
9834 PyObject
* _obj0
= 0;
9835 char *_kwnames
[] = { "text", NULL
};
9838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9841 #if PYTHON_API_VERSION >= 1009
9842 char* tmpPtr
; int tmpSize
;
9843 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9844 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9847 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9849 _arg0
= new wxString(tmpPtr
, tmpSize
);
9851 if (!PyString_Check(_obj0
)) {
9852 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9855 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9859 wxPy_BEGIN_ALLOW_THREADS
;
9860 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9862 wxPy_END_ALLOW_THREADS
;
9863 if (PyErr_Occurred()) return NULL
;
9865 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9877 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9878 static PyObject
*_wrap_wxMenuItem_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9879 PyObject
* _resultobj
;
9882 PyObject
* _argo0
= 0;
9883 PyObject
* _argo1
= 0;
9884 char *_kwnames
[] = { "self","font", NULL
};
9887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetFont",_kwnames
,&_argo0
,&_argo1
))
9890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
9897 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9898 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
9899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
9904 wxPy_BEGIN_ALLOW_THREADS
;
9905 wxMenuItem_SetFont(_arg0
,*_arg1
);
9907 wxPy_END_ALLOW_THREADS
;
9908 if (PyErr_Occurred()) return NULL
;
9909 } Py_INCREF(Py_None
);
9910 _resultobj
= Py_None
;
9914 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
9915 static PyObject
*_wrap_wxMenuItem_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9916 PyObject
* _resultobj
;
9919 PyObject
* _argo0
= 0;
9920 char *_kwnames
[] = { "self", NULL
};
9924 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetFont",_kwnames
,&_argo0
))
9927 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9928 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9929 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
9934 wxPy_BEGIN_ALLOW_THREADS
;
9935 wxFont
& _result_ref
= wxMenuItem_GetFont(_arg0
);
9936 _result
= (wxFont
*) &_result_ref
;
9938 wxPy_END_ALLOW_THREADS
;
9939 if (PyErr_Occurred()) return NULL
;
9941 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
9942 _resultobj
= Py_BuildValue("s",_ptemp
);
9945 _resultobj
= Py_None
;
9950 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
9951 static PyObject
*_wrap_wxMenuItem_SetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9952 PyObject
* _resultobj
;
9955 PyObject
* _argo0
= 0;
9957 PyObject
* _obj1
= 0;
9958 char *_kwnames
[] = { "self","colText", NULL
};
9961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetTextColour",_kwnames
,&_argo0
,&_obj1
))
9964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
9972 if (! wxColour_helper(_obj1
, &_arg1
))
9976 wxPy_BEGIN_ALLOW_THREADS
;
9977 wxMenuItem_SetTextColour(_arg0
,*_arg1
);
9979 wxPy_END_ALLOW_THREADS
;
9980 if (PyErr_Occurred()) return NULL
;
9981 } Py_INCREF(Py_None
);
9982 _resultobj
= Py_None
;
9986 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
9987 static PyObject
*_wrap_wxMenuItem_GetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9988 PyObject
* _resultobj
;
9991 PyObject
* _argo0
= 0;
9992 char *_kwnames
[] = { "self", NULL
};
9996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetTextColour",_kwnames
,&_argo0
))
9999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
10006 wxPy_BEGIN_ALLOW_THREADS
;
10007 _result
= new wxColour (wxMenuItem_GetTextColour(_arg0
));
10009 wxPy_END_ALLOW_THREADS
;
10010 if (PyErr_Occurred()) return NULL
;
10011 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10012 _resultobj
= Py_BuildValue("s",_ptemp
);
10016 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
10017 static PyObject
*_wrap_wxMenuItem_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10018 PyObject
* _resultobj
;
10019 wxMenuItem
* _arg0
;
10021 PyObject
* _argo0
= 0;
10023 PyObject
* _obj1
= 0;
10024 char *_kwnames
[] = { "self","colBack", NULL
};
10027 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
10030 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10031 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10032 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
10038 if (! wxColour_helper(_obj1
, &_arg1
))
10042 wxPy_BEGIN_ALLOW_THREADS
;
10043 wxMenuItem_SetBackgroundColour(_arg0
,*_arg1
);
10045 wxPy_END_ALLOW_THREADS
;
10046 if (PyErr_Occurred()) return NULL
;
10047 } Py_INCREF(Py_None
);
10048 _resultobj
= Py_None
;
10052 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
10053 static PyObject
*_wrap_wxMenuItem_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10054 PyObject
* _resultobj
;
10055 wxColour
* _result
;
10056 wxMenuItem
* _arg0
;
10057 PyObject
* _argo0
= 0;
10058 char *_kwnames
[] = { "self", NULL
};
10062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetBackgroundColour",_kwnames
,&_argo0
))
10065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
10072 wxPy_BEGIN_ALLOW_THREADS
;
10073 _result
= new wxColour (wxMenuItem_GetBackgroundColour(_arg0
));
10075 wxPy_END_ALLOW_THREADS
;
10076 if (PyErr_Occurred()) return NULL
;
10077 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10078 _resultobj
= Py_BuildValue("s",_ptemp
);
10082 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
10083 static PyObject
*_wrap_wxMenuItem_SetBitmaps(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10084 PyObject
* _resultobj
;
10085 wxMenuItem
* _arg0
;
10087 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10088 PyObject
* _argo0
= 0;
10089 PyObject
* _argo1
= 0;
10090 PyObject
* _argo2
= 0;
10091 char *_kwnames
[] = { "self","bmpChecked","bmpUnchecked", NULL
};
10094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxMenuItem_SetBitmaps",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
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_SetBitmaps. 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_SetBitmaps. Expected _wxBitmap_p.");
10111 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10112 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10118 wxPy_BEGIN_ALLOW_THREADS
;
10119 wxMenuItem_SetBitmaps(_arg0
,*_arg1
,*_arg2
);
10121 wxPy_END_ALLOW_THREADS
;
10122 if (PyErr_Occurred()) return NULL
;
10123 } Py_INCREF(Py_None
);
10124 _resultobj
= Py_None
;
10128 #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
10129 static PyObject
*_wrap_wxMenuItem_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10130 PyObject
* _resultobj
;
10131 wxMenuItem
* _arg0
;
10133 PyObject
* _argo0
= 0;
10134 PyObject
* _argo1
= 0;
10135 char *_kwnames
[] = { "self","bmpChecked", NULL
};
10138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
10141 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10142 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10143 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p.");
10148 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10149 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p.");
10155 wxPy_BEGIN_ALLOW_THREADS
;
10156 wxMenuItem_SetBitmap(_arg0
,*_arg1
);
10158 wxPy_END_ALLOW_THREADS
;
10159 if (PyErr_Occurred()) return NULL
;
10160 } Py_INCREF(Py_None
);
10161 _resultobj
= Py_None
;
10165 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
10166 static PyObject
*_wrap_wxMenuItem_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10167 PyObject
* _resultobj
;
10168 wxBitmap
* _result
;
10169 wxMenuItem
* _arg0
;
10170 bool _arg1
= (bool ) TRUE
;
10171 PyObject
* _argo0
= 0;
10172 int tempbool1
= (int) TRUE
;
10173 char *_kwnames
[] = { "self","bChecked", NULL
};
10177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_GetBitmap",_kwnames
,&_argo0
,&tempbool1
))
10180 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10181 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10182 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
10186 _arg1
= (bool ) tempbool1
;
10188 wxPy_BEGIN_ALLOW_THREADS
;
10189 const wxBitmap
& _result_ref
= wxMenuItem_GetBitmap(_arg0
,_arg1
);
10190 _result
= (wxBitmap
*) &_result_ref
;
10192 wxPy_END_ALLOW_THREADS
;
10193 if (PyErr_Occurred()) return NULL
;
10195 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
10196 _resultobj
= Py_BuildValue("s",_ptemp
);
10198 Py_INCREF(Py_None
);
10199 _resultobj
= Py_None
;
10204 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
10205 static PyObject
*_wrap_wxMenuItem_SetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10206 PyObject
* _resultobj
;
10207 wxMenuItem
* _arg0
;
10209 PyObject
* _argo0
= 0;
10210 char *_kwnames
[] = { "self","nWidth", NULL
};
10213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetMarginWidth",_kwnames
,&_argo0
,&_arg1
))
10216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
10223 wxPy_BEGIN_ALLOW_THREADS
;
10224 wxMenuItem_SetMarginWidth(_arg0
,_arg1
);
10226 wxPy_END_ALLOW_THREADS
;
10227 if (PyErr_Occurred()) return NULL
;
10228 } Py_INCREF(Py_None
);
10229 _resultobj
= Py_None
;
10233 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
10234 static PyObject
*_wrap_wxMenuItem_GetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10235 PyObject
* _resultobj
;
10237 wxMenuItem
* _arg0
;
10238 PyObject
* _argo0
= 0;
10239 char *_kwnames
[] = { "self", NULL
};
10242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMarginWidth",_kwnames
,&_argo0
))
10245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
10252 wxPy_BEGIN_ALLOW_THREADS
;
10253 _result
= (int )wxMenuItem_GetMarginWidth(_arg0
);
10255 wxPy_END_ALLOW_THREADS
;
10256 if (PyErr_Occurred()) return NULL
;
10257 } _resultobj
= Py_BuildValue("i",_result
);
10261 static PyObject
*_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10262 PyObject
* _resultobj
;
10264 char *_kwnames
[] = { NULL
};
10267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxMenuItem_GetDefaultMarginWidth",_kwnames
))
10270 wxPy_BEGIN_ALLOW_THREADS
;
10271 _result
= (int )wxMenuItem::GetDefaultMarginWidth();
10273 wxPy_END_ALLOW_THREADS
;
10274 if (PyErr_Occurred()) return NULL
;
10275 } _resultobj
= Py_BuildValue("i",_result
);
10279 #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn())
10280 static PyObject
*_wrap_wxMenuItem_IsOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10281 PyObject
* _resultobj
;
10283 wxMenuItem
* _arg0
;
10284 PyObject
* _argo0
= 0;
10285 char *_kwnames
[] = { "self", NULL
};
10288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsOwnerDrawn",_kwnames
,&_argo0
))
10291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p.");
10298 wxPy_BEGIN_ALLOW_THREADS
;
10299 _result
= (bool )wxMenuItem_IsOwnerDrawn(_arg0
);
10301 wxPy_END_ALLOW_THREADS
;
10302 if (PyErr_Occurred()) return NULL
;
10303 } _resultobj
= Py_BuildValue("i",_result
);
10307 #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn())
10308 static PyObject
*_wrap_wxMenuItem_ResetOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10309 PyObject
* _resultobj
;
10310 wxMenuItem
* _arg0
;
10311 PyObject
* _argo0
= 0;
10312 char *_kwnames
[] = { "self", NULL
};
10315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_ResetOwnerDrawn",_kwnames
,&_argo0
))
10318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p.");
10325 wxPy_BEGIN_ALLOW_THREADS
;
10326 wxMenuItem_ResetOwnerDrawn(_arg0
);
10328 wxPy_END_ALLOW_THREADS
;
10329 if (PyErr_Occurred()) return NULL
;
10330 } Py_INCREF(Py_None
);
10331 _resultobj
= Py_None
;
10335 static PyMethodDef windowscMethods
[] = {
10336 { "wxMenuItem_ResetOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_ResetOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10337 { "wxMenuItem_IsOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_IsOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10338 { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetDefaultMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10339 { "wxMenuItem_GetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10340 { "wxMenuItem_SetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_SetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10341 { "wxMenuItem_GetBitmap", (PyCFunction
) _wrap_wxMenuItem_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10342 { "wxMenuItem_SetBitmap", (PyCFunction
) _wrap_wxMenuItem_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10343 { "wxMenuItem_SetBitmaps", (PyCFunction
) _wrap_wxMenuItem_SetBitmaps
, METH_VARARGS
| METH_KEYWORDS
},
10344 { "wxMenuItem_GetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10345 { "wxMenuItem_SetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10346 { "wxMenuItem_GetTextColour", (PyCFunction
) _wrap_wxMenuItem_GetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10347 { "wxMenuItem_SetTextColour", (PyCFunction
) _wrap_wxMenuItem_SetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10348 { "wxMenuItem_GetFont", (PyCFunction
) _wrap_wxMenuItem_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10349 { "wxMenuItem_SetFont", (PyCFunction
) _wrap_wxMenuItem_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10350 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
10351 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10352 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10353 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10354 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10355 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
10356 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10357 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
10358 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10359 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10360 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10361 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10362 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10363 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10364 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10365 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
10366 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10367 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
10368 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10369 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10370 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10371 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10372 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10373 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10374 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10375 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10376 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10377 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10378 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10379 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
10380 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10381 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10382 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10383 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10384 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10385 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
10386 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10387 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10388 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10389 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
10390 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10391 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
10392 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
10393 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10394 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
10395 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
10396 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10397 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10398 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10399 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10400 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10401 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
10402 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
10403 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
10404 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
10405 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10406 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
10407 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10408 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10409 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
10410 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
10411 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
10412 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10413 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10414 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10415 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10416 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10417 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10418 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10419 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
10420 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10421 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10422 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10423 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
10424 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
10425 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10426 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
10427 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
10428 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
10429 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
10430 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10431 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
10432 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
10433 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
10434 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10435 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10436 { "wxScrolledWindow_ViewStart", (PyCFunction
) _wrap_wxScrolledWindow_ViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10437 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10438 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10439 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10440 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10441 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
10442 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
10443 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10444 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
10445 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10446 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
10447 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10448 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
10449 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10450 { "wxDialog_CreateButtonSizer", (PyCFunction
) _wrap_wxDialog_CreateButtonSizer
, METH_VARARGS
| METH_KEYWORDS
},
10451 { "wxDialog_CreateTextSizer", (PyCFunction
) _wrap_wxDialog_CreateTextSizer
, METH_VARARGS
| METH_KEYWORDS
},
10452 { "wxDialog_SetReturnCode", (PyCFunction
) _wrap_wxDialog_SetReturnCode
, METH_VARARGS
| METH_KEYWORDS
},
10453 { "wxDialog_GetReturnCode", (PyCFunction
) _wrap_wxDialog_GetReturnCode
, METH_VARARGS
| METH_KEYWORDS
},
10454 { "wxDialog_ShowModal", (PyCFunction
) _wrap_wxDialog_ShowModal
, METH_VARARGS
| METH_KEYWORDS
},
10455 { "wxDialog_Show", (PyCFunction
) _wrap_wxDialog_Show
, METH_VARARGS
| METH_KEYWORDS
},
10456 { "wxDialog_SetTitle", (PyCFunction
) _wrap_wxDialog_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10457 { "wxDialog_IsModal", (PyCFunction
) _wrap_wxDialog_IsModal
, METH_VARARGS
| METH_KEYWORDS
},
10458 { "wxDialog_SetModal", (PyCFunction
) _wrap_wxDialog_SetModal
, METH_VARARGS
| METH_KEYWORDS
},
10459 { "wxDialog_IsIconized", (PyCFunction
) _wrap_wxDialog_IsIconized
, METH_VARARGS
| METH_KEYWORDS
},
10460 { "wxDialog_Iconize", (PyCFunction
) _wrap_wxDialog_Iconize
, METH_VARARGS
| METH_KEYWORDS
},
10461 { "wxDialog_GetTitle", (PyCFunction
) _wrap_wxDialog_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10462 { "wxDialog_EndModal", (PyCFunction
) _wrap_wxDialog_EndModal
, METH_VARARGS
| METH_KEYWORDS
},
10463 { "wxDialog_Centre", (PyCFunction
) _wrap_wxDialog_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10464 { "new_wxDialog", (PyCFunction
) _wrap_new_wxDialog
, METH_VARARGS
| METH_KEYWORDS
},
10465 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10466 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10467 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10468 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
10469 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10470 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10471 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10472 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10473 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10474 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10475 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10476 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10477 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10478 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10479 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10480 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10481 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10482 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10483 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10484 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10485 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10486 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10487 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10488 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10489 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10490 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10491 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10492 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10493 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10494 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10495 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10496 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10497 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10498 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10499 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10500 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10501 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10502 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10503 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10504 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10505 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10506 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10507 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10508 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10509 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10510 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10511 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10512 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10513 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10514 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10515 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10516 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10517 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10518 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10519 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10520 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10521 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10522 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10523 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10524 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10525 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10526 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10527 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10528 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10529 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10530 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10531 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10532 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10533 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10534 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10535 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10536 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10537 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10538 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10539 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10540 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10541 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10542 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10543 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10544 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10545 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10546 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10547 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10548 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10549 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10550 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10551 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10552 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10553 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10554 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10555 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10556 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10557 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10558 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10559 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10560 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10561 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10562 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10563 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10564 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10565 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10566 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10567 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10568 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10569 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10570 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10571 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10572 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10573 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10574 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10575 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10576 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10577 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10578 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10579 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10580 { "wxWindow_DragAcceptFiles", (PyCFunction
) _wrap_wxWindow_DragAcceptFiles
, METH_VARARGS
| METH_KEYWORDS
},
10581 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10582 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10583 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10584 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10585 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10586 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10587 { "wxWindow_Clear", (PyCFunction
) _wrap_wxWindow_Clear
, METH_VARARGS
| METH_KEYWORDS
},
10588 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10589 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10590 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10591 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10592 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10593 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10594 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10595 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10596 { "wxPyValidator__setSelf", (PyCFunction
) _wrap_wxPyValidator__setSelf
, METH_VARARGS
| METH_KEYWORDS
},
10597 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10598 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10599 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10600 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10601 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10602 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10603 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10604 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10605 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10606 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10607 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10608 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10609 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10610 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10611 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10612 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10613 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10614 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10615 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10616 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10617 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10618 { "wxWindow_FromHWND", (PyCFunction
) _wrap_wxWindow_FromHWND
, METH_VARARGS
| METH_KEYWORDS
},
10619 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10626 * This table is used by the pointer type-checker
10628 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10629 { "_signed_long","_long",0},
10630 { "_wxPrintQuality","_wxCoord",0},
10631 { "_wxPrintQuality","_int",0},
10632 { "_wxPrintQuality","_signed_int",0},
10633 { "_wxPrintQuality","_unsigned_int",0},
10634 { "_wxPrintQuality","_wxWindowID",0},
10635 { "_wxPrintQuality","_uint",0},
10636 { "_wxPrintQuality","_EBool",0},
10637 { "_wxPrintQuality","_size_t",0},
10638 { "_wxPrintQuality","_time_t",0},
10639 { "_byte","_unsigned_char",0},
10640 { "_long","_unsigned_long",0},
10641 { "_long","_signed_long",0},
10642 { "_size_t","_wxCoord",0},
10643 { "_size_t","_wxPrintQuality",0},
10644 { "_size_t","_time_t",0},
10645 { "_size_t","_unsigned_int",0},
10646 { "_size_t","_int",0},
10647 { "_size_t","_wxWindowID",0},
10648 { "_size_t","_uint",0},
10649 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10650 { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel
},
10651 { "_uint","_wxCoord",0},
10652 { "_uint","_wxPrintQuality",0},
10653 { "_uint","_time_t",0},
10654 { "_uint","_size_t",0},
10655 { "_uint","_unsigned_int",0},
10656 { "_uint","_int",0},
10657 { "_uint","_wxWindowID",0},
10658 { "_wxChar","_char",0},
10659 { "_char","_wxChar",0},
10660 { "_EBool","_wxCoord",0},
10661 { "_EBool","_wxPrintQuality",0},
10662 { "_EBool","_signed_int",0},
10663 { "_EBool","_int",0},
10664 { "_EBool","_wxWindowID",0},
10665 { "_unsigned_long","_long",0},
10666 { "_signed_int","_wxCoord",0},
10667 { "_signed_int","_wxPrintQuality",0},
10668 { "_signed_int","_EBool",0},
10669 { "_signed_int","_wxWindowID",0},
10670 { "_signed_int","_int",0},
10671 { "_WXTYPE","_short",0},
10672 { "_WXTYPE","_signed_short",0},
10673 { "_WXTYPE","_unsigned_short",0},
10674 { "_unsigned_short","_WXTYPE",0},
10675 { "_unsigned_short","_short",0},
10676 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10677 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10678 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10679 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10680 { "_wxObject","_wxDialog",SwigwxDialogTowxObject
},
10681 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10682 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10683 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10684 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10685 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10686 { "_signed_short","_WXTYPE",0},
10687 { "_signed_short","_short",0},
10688 { "_unsigned_char","_byte",0},
10689 { "_unsigned_int","_wxCoord",0},
10690 { "_unsigned_int","_wxPrintQuality",0},
10691 { "_unsigned_int","_time_t",0},
10692 { "_unsigned_int","_size_t",0},
10693 { "_unsigned_int","_uint",0},
10694 { "_unsigned_int","_wxWindowID",0},
10695 { "_unsigned_int","_int",0},
10696 { "_short","_WXTYPE",0},
10697 { "_short","_unsigned_short",0},
10698 { "_short","_signed_short",0},
10699 { "_wxWindowID","_wxCoord",0},
10700 { "_wxWindowID","_wxPrintQuality",0},
10701 { "_wxWindowID","_time_t",0},
10702 { "_wxWindowID","_size_t",0},
10703 { "_wxWindowID","_EBool",0},
10704 { "_wxWindowID","_uint",0},
10705 { "_wxWindowID","_int",0},
10706 { "_wxWindowID","_signed_int",0},
10707 { "_wxWindowID","_unsigned_int",0},
10708 { "_int","_wxCoord",0},
10709 { "_int","_wxPrintQuality",0},
10710 { "_int","_time_t",0},
10711 { "_int","_size_t",0},
10712 { "_int","_EBool",0},
10713 { "_int","_uint",0},
10714 { "_int","_wxWindowID",0},
10715 { "_int","_unsigned_int",0},
10716 { "_int","_signed_int",0},
10717 { "_time_t","_wxCoord",0},
10718 { "_time_t","_wxPrintQuality",0},
10719 { "_time_t","_unsigned_int",0},
10720 { "_time_t","_int",0},
10721 { "_time_t","_wxWindowID",0},
10722 { "_time_t","_uint",0},
10723 { "_time_t","_size_t",0},
10724 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10725 { "_wxCoord","_int",0},
10726 { "_wxCoord","_signed_int",0},
10727 { "_wxCoord","_unsigned_int",0},
10728 { "_wxCoord","_wxWindowID",0},
10729 { "_wxCoord","_uint",0},
10730 { "_wxCoord","_EBool",0},
10731 { "_wxCoord","_size_t",0},
10732 { "_wxCoord","_time_t",0},
10733 { "_wxCoord","_wxPrintQuality",0},
10734 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10735 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10736 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10737 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler
},
10738 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10739 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10740 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10741 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10742 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10743 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10744 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow
},
10745 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10748 static PyObject
*SWIG_globals
;
10752 SWIGEXPORT(void) initwindowsc() {
10754 SWIG_globals
= SWIG_newvarlink();
10755 m
= Py_InitModule("windowsc", windowscMethods
);
10756 d
= PyModule_GetDict(m
);
10759 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10760 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);