2 * FILE : src/msw/windows.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initwindowsc
56 #define SWIG_name "windowsc"
59 #include <wx/menuitem.h>
60 #include <wx/tooltip.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "string type is required for parameter";
95 static wxString
wxPyEmptyStr("");
97 class wxPyValidator
: public wxValidator
{
98 DECLARE_DYNAMIC_CLASS(wxPyValidator
);
106 wxObject
* wxPyValidator::Clone() const {
107 wxPyValidator
* ptr
= NULL
;
108 wxPyValidator
* self
= (wxPyValidator
*)this;
110 bool doSave
= wxPyRestoreThread();
111 if (self
->m_myInst
.findCallback("Clone")) {
113 ro
= self
->m_myInst
.callCallbackObj(Py_BuildValue("()"));
115 SWIG_GetPtrObj(ro
, (void **)&ptr
, "_wxPyValidator_p");
119 // This is very dangerous!!! But is the only way I could find
120 // to squash a memory leak. Currently it is okay, but if the
121 // validator architecture in wxWindows ever changes, problems
125 wxPySaveThread(doSave
);
130 DEC_PYCALLBACK_BOOL_WXWIN(Validate
);
131 DEC_PYCALLBACK_BOOL_(TransferToWindow
);
132 DEC_PYCALLBACK_BOOL_(TransferFromWindow
);
137 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator
, wxValidator
, Validate
);
138 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferToWindow
);
139 IMP_PYCALLBACK_BOOL_(wxPyValidator
, wxValidator
, TransferFromWindow
);
141 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator
, wxValidator
);
144 wxWindow
* wxWindow_FindFocus() {
145 return wxWindow::FindFocus();
148 wxWindow
* wxWindow_FromHWND(unsigned long hWnd
) {
149 wxWindow
* win
= new wxWindow
;
151 win
->SubclassWin(hWnd
);
155 int wxWindow_NewControlId() {
156 return wxWindow::NewControlId();
158 int wxWindow_NextControlId(int id
) {
159 return wxWindow::NextControlId(id
);
161 int wxWindow_PrevControlId(int id
) {
162 return wxWindow::PrevControlId(id
);
167 static PyObject
*_wrap_wxWindow_FindFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
168 PyObject
* _resultobj
;
170 char *_kwnames
[] = { NULL
};
173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_FindFocus",_kwnames
))
176 wxPy_BEGIN_ALLOW_THREADS
;
177 _result
= (wxWindow
*)wxWindow_FindFocus();
179 wxPy_END_ALLOW_THREADS
;
180 if (PyErr_Occurred()) return NULL
;
181 }{ _resultobj
= wxPyMake_wxObject(_result
); }
185 static PyObject
*_wrap_wxWindow_FromHWND(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
186 PyObject
* _resultobj
;
189 char *_kwnames
[] = { "hWnd", NULL
};
192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"l:wxWindow_FromHWND",_kwnames
,&_arg0
))
195 wxPy_BEGIN_ALLOW_THREADS
;
196 _result
= (wxWindow
*)wxWindow_FromHWND(_arg0
);
198 wxPy_END_ALLOW_THREADS
;
199 if (PyErr_Occurred()) return NULL
;
200 }{ _resultobj
= wxPyMake_wxObject(_result
); }
204 static PyObject
*_wrap_wxWindow_NewControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
205 PyObject
* _resultobj
;
207 char *_kwnames
[] = { NULL
};
210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxWindow_NewControlId",_kwnames
))
213 wxPy_BEGIN_ALLOW_THREADS
;
214 _result
= (int )wxWindow_NewControlId();
216 wxPy_END_ALLOW_THREADS
;
217 if (PyErr_Occurred()) return NULL
;
218 } _resultobj
= Py_BuildValue("i",_result
);
222 static PyObject
*_wrap_wxWindow_NextControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
223 PyObject
* _resultobj
;
226 char *_kwnames
[] = { "id", NULL
};
229 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_NextControlId",_kwnames
,&_arg0
))
232 wxPy_BEGIN_ALLOW_THREADS
;
233 _result
= (int )wxWindow_NextControlId(_arg0
);
235 wxPy_END_ALLOW_THREADS
;
236 if (PyErr_Occurred()) return NULL
;
237 } _resultobj
= Py_BuildValue("i",_result
);
241 static PyObject
*_wrap_wxWindow_PrevControlId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
242 PyObject
* _resultobj
;
245 char *_kwnames
[] = { "id", NULL
};
248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"i:wxWindow_PrevControlId",_kwnames
,&_arg0
))
251 wxPy_BEGIN_ALLOW_THREADS
;
252 _result
= (int )wxWindow_PrevControlId(_arg0
);
254 wxPy_END_ALLOW_THREADS
;
255 if (PyErr_Occurred()) return NULL
;
256 } _resultobj
= Py_BuildValue("i",_result
);
260 static void *SwigwxEvtHandlerTowxObject(void *ptr
) {
263 src
= (wxEvtHandler
*) ptr
;
264 dest
= (wxObject
*) src
;
265 return (void *) dest
;
268 #define new_wxEvtHandler() (new wxEvtHandler())
269 static PyObject
*_wrap_new_wxEvtHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
270 PyObject
* _resultobj
;
271 wxEvtHandler
* _result
;
272 char *_kwnames
[] = { NULL
};
276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxEvtHandler",_kwnames
))
279 wxPy_BEGIN_ALLOW_THREADS
;
280 _result
= (wxEvtHandler
*)new_wxEvtHandler();
282 wxPy_END_ALLOW_THREADS
;
283 if (PyErr_Occurred()) return NULL
;
285 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxEvtHandler_p");
286 _resultobj
= Py_BuildValue("s",_ptemp
);
289 _resultobj
= Py_None
;
294 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
295 static PyObject
*_wrap_wxEvtHandler_ProcessEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
296 PyObject
* _resultobj
;
298 wxEvtHandler
* _arg0
;
300 PyObject
* _argo0
= 0;
301 PyObject
* _argo1
= 0;
302 char *_kwnames
[] = { "self","event", NULL
};
305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_ProcessEvent",_kwnames
,&_argo0
,&_argo1
))
308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
315 if (_argo1
== Py_None
) { _arg1
= NULL
; }
316 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
322 wxPy_BEGIN_ALLOW_THREADS
;
323 _result
= (bool )wxEvtHandler_ProcessEvent(_arg0
,*_arg1
);
325 wxPy_END_ALLOW_THREADS
;
326 if (PyErr_Occurred()) return NULL
;
327 } _resultobj
= Py_BuildValue("i",_result
);
331 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
332 static PyObject
*_wrap_wxEvtHandler_AddPendingEvent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
333 PyObject
* _resultobj
;
334 wxEvtHandler
* _arg0
;
336 PyObject
* _argo0
= 0;
337 PyObject
* _argo1
= 0;
338 char *_kwnames
[] = { "self","event", NULL
};
341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_AddPendingEvent",_kwnames
,&_argo0
,&_argo1
))
344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
351 if (_argo1
== Py_None
) { _arg1
= NULL
; }
352 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvent_p")) {
353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
358 wxPy_BEGIN_ALLOW_THREADS
;
359 wxEvtHandler_AddPendingEvent(_arg0
,*_arg1
);
361 wxPy_END_ALLOW_THREADS
;
362 if (PyErr_Occurred()) return NULL
;
363 } Py_INCREF(Py_None
);
364 _resultobj
= Py_None
;
368 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
369 static PyObject
*_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
370 PyObject
* _resultobj
;
372 wxEvtHandler
* _arg0
;
373 PyObject
* _argo0
= 0;
374 char *_kwnames
[] = { "self", NULL
};
377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames
,&_argo0
))
380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
387 wxPy_BEGIN_ALLOW_THREADS
;
388 _result
= (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0
);
390 wxPy_END_ALLOW_THREADS
;
391 if (PyErr_Occurred()) return NULL
;
392 } _resultobj
= Py_BuildValue("i",_result
);
396 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
397 static PyObject
*_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
398 PyObject
* _resultobj
;
399 wxEvtHandler
* _arg0
;
401 PyObject
* _argo0
= 0;
403 char *_kwnames
[] = { "self","enabled", NULL
};
406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames
,&_argo0
,&tempbool1
))
409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
415 _arg1
= (bool ) tempbool1
;
417 wxPy_BEGIN_ALLOW_THREADS
;
418 wxEvtHandler_SetEvtHandlerEnabled(_arg0
,_arg1
);
420 wxPy_END_ALLOW_THREADS
;
421 if (PyErr_Occurred()) return NULL
;
422 } Py_INCREF(Py_None
);
423 _resultobj
= Py_None
;
427 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
428 static PyObject
*_wrap_wxEvtHandler_GetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
429 PyObject
* _resultobj
;
430 wxEvtHandler
* _result
;
431 wxEvtHandler
* _arg0
;
432 PyObject
* _argo0
= 0;
433 char *_kwnames
[] = { "self", NULL
};
436 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetNextHandler",_kwnames
,&_argo0
))
439 if (_argo0
== Py_None
) { _arg0
= NULL
; }
440 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
441 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
446 wxPy_BEGIN_ALLOW_THREADS
;
447 _result
= (wxEvtHandler
*)wxEvtHandler_GetNextHandler(_arg0
);
449 wxPy_END_ALLOW_THREADS
;
450 if (PyErr_Occurred()) return NULL
;
451 }{ _resultobj
= wxPyMake_wxObject(_result
); }
455 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
456 static PyObject
*_wrap_wxEvtHandler_GetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
457 PyObject
* _resultobj
;
458 wxEvtHandler
* _result
;
459 wxEvtHandler
* _arg0
;
460 PyObject
* _argo0
= 0;
461 char *_kwnames
[] = { "self", NULL
};
464 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxEvtHandler_GetPreviousHandler",_kwnames
,&_argo0
))
467 if (_argo0
== Py_None
) { _arg0
= NULL
; }
468 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
469 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
474 wxPy_BEGIN_ALLOW_THREADS
;
475 _result
= (wxEvtHandler
*)wxEvtHandler_GetPreviousHandler(_arg0
);
477 wxPy_END_ALLOW_THREADS
;
478 if (PyErr_Occurred()) return NULL
;
479 }{ _resultobj
= wxPyMake_wxObject(_result
); }
483 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
484 static PyObject
*_wrap_wxEvtHandler_SetNextHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
485 PyObject
* _resultobj
;
486 wxEvtHandler
* _arg0
;
487 wxEvtHandler
* _arg1
;
488 PyObject
* _argo0
= 0;
489 PyObject
* _argo1
= 0;
490 char *_kwnames
[] = { "self","handler", NULL
};
493 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetNextHandler",_kwnames
,&_argo0
,&_argo1
))
496 if (_argo0
== Py_None
) { _arg0
= NULL
; }
497 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
503 if (_argo1
== Py_None
) { _arg1
= NULL
; }
504 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
510 wxPy_BEGIN_ALLOW_THREADS
;
511 wxEvtHandler_SetNextHandler(_arg0
,_arg1
);
513 wxPy_END_ALLOW_THREADS
;
514 if (PyErr_Occurred()) return NULL
;
515 } Py_INCREF(Py_None
);
516 _resultobj
= Py_None
;
520 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
521 static PyObject
*_wrap_wxEvtHandler_SetPreviousHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
522 PyObject
* _resultobj
;
523 wxEvtHandler
* _arg0
;
524 wxEvtHandler
* _arg1
;
525 PyObject
* _argo0
= 0;
526 PyObject
* _argo1
= 0;
527 char *_kwnames
[] = { "self","handler", NULL
};
530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxEvtHandler_SetPreviousHandler",_kwnames
,&_argo0
,&_argo1
))
533 if (_argo0
== Py_None
) { _arg0
= NULL
; }
534 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
540 if (_argo1
== Py_None
) { _arg1
= NULL
; }
541 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
542 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
547 wxPy_BEGIN_ALLOW_THREADS
;
548 wxEvtHandler_SetPreviousHandler(_arg0
,_arg1
);
550 wxPy_END_ALLOW_THREADS
;
551 if (PyErr_Occurred()) return NULL
;
552 } Py_INCREF(Py_None
);
553 _resultobj
= Py_None
;
557 static void wxEvtHandler_Connect(wxEvtHandler
*self
,int id
,int lastId
,int eventType
,PyObject
* func
) {
558 if (PyCallable_Check(func
)) {
559 self
->Connect(id
, lastId
, eventType
,
560 (wxObjectEventFunction
) &wxPyCallback::EventThunker
,
561 new wxPyCallback(func
));
564 static PyObject
*_wrap_wxEvtHandler_Connect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
565 PyObject
* _resultobj
;
566 wxEvtHandler
* _arg0
;
571 PyObject
* _argo0
= 0;
572 PyObject
* _obj4
= 0;
573 char *_kwnames
[] = { "self","id","lastId","eventType","func", NULL
};
576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiiO:wxEvtHandler_Connect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_obj4
))
579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
589 wxPy_BEGIN_ALLOW_THREADS
;
590 wxEvtHandler_Connect(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
592 wxPy_END_ALLOW_THREADS
;
593 if (PyErr_Occurred()) return NULL
;
594 } Py_INCREF(Py_None
);
595 _resultobj
= Py_None
;
599 static bool wxEvtHandler_Disconnect(wxEvtHandler
*self
,int id
,int lastId
,wxEventType eventType
) {
600 return self
->Disconnect(id
, lastId
, eventType
,
601 (wxObjectEventFunction
)
602 &wxPyCallback::EventThunker
);
604 static PyObject
*_wrap_wxEvtHandler_Disconnect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
605 PyObject
* _resultobj
;
607 wxEvtHandler
* _arg0
;
609 int _arg2
= (int ) -1;
610 wxEventType _arg3
= (wxEventType
) wxEVT_NULL
;
611 PyObject
* _argo0
= 0;
612 char *_kwnames
[] = { "self","id","lastId","eventType", NULL
};
615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|ii:wxEvtHandler_Disconnect",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxEvtHandler_p")) {
620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
625 wxPy_BEGIN_ALLOW_THREADS
;
626 _result
= (bool )wxEvtHandler_Disconnect(_arg0
,_arg1
,_arg2
,_arg3
);
628 wxPy_END_ALLOW_THREADS
;
629 if (PyErr_Occurred()) return NULL
;
630 } _resultobj
= Py_BuildValue("i",_result
);
634 static void *SwigwxValidatorTowxEvtHandler(void *ptr
) {
637 src
= (wxValidator
*) ptr
;
638 dest
= (wxEvtHandler
*) src
;
639 return (void *) dest
;
642 static void *SwigwxValidatorTowxObject(void *ptr
) {
645 src
= (wxValidator
*) ptr
;
646 dest
= (wxObject
*) src
;
647 return (void *) dest
;
650 #define new_wxValidator() (new wxValidator())
651 static PyObject
*_wrap_new_wxValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
652 PyObject
* _resultobj
;
653 wxValidator
* _result
;
654 char *_kwnames
[] = { NULL
};
658 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxValidator",_kwnames
))
661 wxPy_BEGIN_ALLOW_THREADS
;
662 _result
= (wxValidator
*)new_wxValidator();
664 wxPy_END_ALLOW_THREADS
;
665 if (PyErr_Occurred()) return NULL
;
667 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxValidator_p");
668 _resultobj
= Py_BuildValue("s",_ptemp
);
671 _resultobj
= Py_None
;
676 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
677 static PyObject
*_wrap_wxValidator_Clone(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
678 PyObject
* _resultobj
;
679 wxValidator
* _result
;
681 PyObject
* _argo0
= 0;
682 char *_kwnames
[] = { "self", NULL
};
685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_Clone",_kwnames
,&_argo0
))
688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
695 wxPy_BEGIN_ALLOW_THREADS
;
696 _result
= (wxValidator
*)wxValidator_Clone(_arg0
);
698 wxPy_END_ALLOW_THREADS
;
699 if (PyErr_Occurred()) return NULL
;
700 }{ _resultobj
= wxPyMake_wxObject(_result
); }
704 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
705 static PyObject
*_wrap_wxValidator_GetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
706 PyObject
* _resultobj
;
709 PyObject
* _argo0
= 0;
710 char *_kwnames
[] = { "self", NULL
};
713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxValidator_GetWindow",_kwnames
,&_argo0
))
716 if (_argo0
== Py_None
) { _arg0
= NULL
; }
717 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
718 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
723 wxPy_BEGIN_ALLOW_THREADS
;
724 _result
= (wxWindow
*)wxValidator_GetWindow(_arg0
);
726 wxPy_END_ALLOW_THREADS
;
727 if (PyErr_Occurred()) return NULL
;
728 }{ _resultobj
= wxPyMake_wxObject(_result
); }
732 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
733 static PyObject
*_wrap_wxValidator_SetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
734 PyObject
* _resultobj
;
737 PyObject
* _argo0
= 0;
738 PyObject
* _argo1
= 0;
739 char *_kwnames
[] = { "self","window", NULL
};
742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxValidator_SetWindow",_kwnames
,&_argo0
,&_argo1
))
745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxValidator_p")) {
747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
752 if (_argo1
== Py_None
) { _arg1
= NULL
; }
753 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
759 wxPy_BEGIN_ALLOW_THREADS
;
760 wxValidator_SetWindow(_arg0
,_arg1
);
762 wxPy_END_ALLOW_THREADS
;
763 if (PyErr_Occurred()) return NULL
;
764 } Py_INCREF(Py_None
);
765 _resultobj
= Py_None
;
769 static PyObject
*_wrap_wxValidator_IsSilent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
770 PyObject
* _resultobj
;
772 char *_kwnames
[] = { NULL
};
775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxValidator_IsSilent",_kwnames
))
778 wxPy_BEGIN_ALLOW_THREADS
;
779 _result
= (bool )wxValidator::IsSilent();
781 wxPy_END_ALLOW_THREADS
;
782 if (PyErr_Occurred()) return NULL
;
783 } _resultobj
= Py_BuildValue("i",_result
);
787 static PyObject
*_wrap_wxValidator_SetBellOnError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
788 PyObject
* _resultobj
;
789 int _arg0
= (int ) TRUE
;
790 char *_kwnames
[] = { "doIt", NULL
};
793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:wxValidator_SetBellOnError",_kwnames
,&_arg0
))
796 wxPy_BEGIN_ALLOW_THREADS
;
797 wxValidator::SetBellOnError(_arg0
);
799 wxPy_END_ALLOW_THREADS
;
800 if (PyErr_Occurred()) return NULL
;
801 } Py_INCREF(Py_None
);
802 _resultobj
= Py_None
;
806 static void *SwigwxPyValidatorTowxValidator(void *ptr
) {
809 src
= (wxPyValidator
*) ptr
;
810 dest
= (wxValidator
*) src
;
811 return (void *) dest
;
814 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr
) {
817 src
= (wxPyValidator
*) ptr
;
818 dest
= (wxEvtHandler
*) src
;
819 return (void *) dest
;
822 static void *SwigwxPyValidatorTowxObject(void *ptr
) {
825 src
= (wxPyValidator
*) ptr
;
826 dest
= (wxObject
*) src
;
827 return (void *) dest
;
830 #define new_wxPyValidator() (new wxPyValidator())
831 static PyObject
*_wrap_new_wxPyValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
832 PyObject
* _resultobj
;
833 wxPyValidator
* _result
;
834 char *_kwnames
[] = { NULL
};
838 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPyValidator",_kwnames
))
841 wxPy_BEGIN_ALLOW_THREADS
;
842 _result
= (wxPyValidator
*)new_wxPyValidator();
844 wxPy_END_ALLOW_THREADS
;
845 if (PyErr_Occurred()) return NULL
;
847 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyValidator_p");
848 _resultobj
= Py_BuildValue("s",_ptemp
);
851 _resultobj
= Py_None
;
856 #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2))
857 static PyObject
*_wrap_wxPyValidator__setSelf(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
858 PyObject
* _resultobj
;
859 wxPyValidator
* _arg0
;
862 int _arg3
= (int ) TRUE
;
863 PyObject
* _argo0
= 0;
864 PyObject
* _obj1
= 0;
865 PyObject
* _obj2
= 0;
866 char *_kwnames
[] = { "self","self","_class","incref", NULL
};
869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPyValidator__setSelf",_kwnames
,&_argo0
,&_obj1
,&_obj2
,&_arg3
))
872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyValidator_p")) {
874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p.");
885 wxPy_BEGIN_ALLOW_THREADS
;
886 wxPyValidator__setSelf(_arg0
,_arg1
,_arg2
,_arg3
);
888 wxPy_END_ALLOW_THREADS
;
889 if (PyErr_Occurred()) return NULL
;
890 } Py_INCREF(Py_None
);
891 _resultobj
= Py_None
;
895 static void *SwigwxWindowTowxEvtHandler(void *ptr
) {
898 src
= (wxWindow
*) ptr
;
899 dest
= (wxEvtHandler
*) src
;
900 return (void *) dest
;
903 static void *SwigwxWindowTowxObject(void *ptr
) {
906 src
= (wxWindow
*) ptr
;
907 dest
= (wxObject
*) src
;
908 return (void *) dest
;
911 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
912 static PyObject
*_wrap_new_wxWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
913 PyObject
* _resultobj
;
917 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
918 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
919 long _arg4
= (long ) 0;
920 char * _arg5
= (char *) "panel";
921 PyObject
* _argo0
= 0;
923 PyObject
* _obj2
= 0;
925 PyObject
* _obj3
= 0;
926 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
942 if (! wxPoint_helper(_obj2
, &_arg2
))
948 if (! wxSize_helper(_obj3
, &_arg3
))
952 wxPy_BEGIN_ALLOW_THREADS
;
953 _result
= (wxWindow
*)new_wxWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
955 wxPy_END_ALLOW_THREADS
;
956 if (PyErr_Occurred()) return NULL
;
958 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
959 _resultobj
= Py_BuildValue("s",_ptemp
);
962 _resultobj
= Py_None
;
967 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
968 static PyObject
*_wrap_wxWindow_CaptureMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
969 PyObject
* _resultobj
;
971 PyObject
* _argo0
= 0;
972 char *_kwnames
[] = { "self", NULL
};
975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_CaptureMouse",_kwnames
,&_argo0
))
978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
985 wxPy_BEGIN_ALLOW_THREADS
;
986 wxWindow_CaptureMouse(_arg0
);
988 wxPy_END_ALLOW_THREADS
;
989 if (PyErr_Occurred()) return NULL
;
990 } Py_INCREF(Py_None
);
991 _resultobj
= Py_None
;
995 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
996 static PyObject
*_wrap_wxWindow_Center(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
997 PyObject
* _resultobj
;
999 int _arg1
= (int ) wxBOTH
;
1000 PyObject
* _argo0
= 0;
1001 char *_kwnames
[] = { "self","direction", NULL
};
1004 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Center",_kwnames
,&_argo0
,&_arg1
))
1007 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1008 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1009 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1014 wxPy_BEGIN_ALLOW_THREADS
;
1015 wxWindow_Center(_arg0
,_arg1
);
1017 wxPy_END_ALLOW_THREADS
;
1018 if (PyErr_Occurred()) return NULL
;
1019 } Py_INCREF(Py_None
);
1020 _resultobj
= Py_None
;
1024 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1025 static PyObject
*_wrap_wxWindow_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1026 PyObject
* _resultobj
;
1028 int _arg1
= (int ) wxBOTH
;
1029 PyObject
* _argo0
= 0;
1030 char *_kwnames
[] = { "self","direction", NULL
};
1033 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Centre",_kwnames
,&_argo0
,&_arg1
))
1036 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1037 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1038 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1043 wxPy_BEGIN_ALLOW_THREADS
;
1044 wxWindow_Centre(_arg0
,_arg1
);
1046 wxPy_END_ALLOW_THREADS
;
1047 if (PyErr_Occurred()) return NULL
;
1048 } Py_INCREF(Py_None
);
1049 _resultobj
= Py_None
;
1053 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1054 static PyObject
*_wrap_wxWindow_CentreOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1055 PyObject
* _resultobj
;
1057 int _arg1
= (int ) wxBOTH
;
1058 PyObject
* _argo0
= 0;
1059 char *_kwnames
[] = { "self","direction", NULL
};
1062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnParent",_kwnames
,&_argo0
,&_arg1
))
1065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1072 wxPy_BEGIN_ALLOW_THREADS
;
1073 wxWindow_CentreOnParent(_arg0
,_arg1
);
1075 wxPy_END_ALLOW_THREADS
;
1076 if (PyErr_Occurred()) return NULL
;
1077 } Py_INCREF(Py_None
);
1078 _resultobj
= Py_None
;
1082 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1083 static PyObject
*_wrap_wxWindow_CenterOnParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1084 PyObject
* _resultobj
;
1086 int _arg1
= (int ) wxBOTH
;
1087 PyObject
* _argo0
= 0;
1088 char *_kwnames
[] = { "self","direction", NULL
};
1091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnParent",_kwnames
,&_argo0
,&_arg1
))
1094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1101 wxPy_BEGIN_ALLOW_THREADS
;
1102 wxWindow_CenterOnParent(_arg0
,_arg1
);
1104 wxPy_END_ALLOW_THREADS
;
1105 if (PyErr_Occurred()) return NULL
;
1106 } Py_INCREF(Py_None
);
1107 _resultobj
= Py_None
;
1111 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1112 static PyObject
*_wrap_wxWindow_CentreOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1113 PyObject
* _resultobj
;
1115 int _arg1
= (int ) wxBOTH
;
1116 PyObject
* _argo0
= 0;
1117 char *_kwnames
[] = { "self","direction", NULL
};
1120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CentreOnScreen",_kwnames
,&_argo0
,&_arg1
))
1123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1130 wxPy_BEGIN_ALLOW_THREADS
;
1131 wxWindow_CentreOnScreen(_arg0
,_arg1
);
1133 wxPy_END_ALLOW_THREADS
;
1134 if (PyErr_Occurred()) return NULL
;
1135 } Py_INCREF(Py_None
);
1136 _resultobj
= Py_None
;
1140 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1141 static PyObject
*_wrap_wxWindow_CenterOnScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1142 PyObject
* _resultobj
;
1144 int _arg1
= (int ) wxBOTH
;
1145 PyObject
* _argo0
= 0;
1146 char *_kwnames
[] = { "self","direction", NULL
};
1149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_CenterOnScreen",_kwnames
,&_argo0
,&_arg1
))
1152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1159 wxPy_BEGIN_ALLOW_THREADS
;
1160 wxWindow_CenterOnScreen(_arg0
,_arg1
);
1162 wxPy_END_ALLOW_THREADS
;
1163 if (PyErr_Occurred()) return NULL
;
1164 } Py_INCREF(Py_None
);
1165 _resultobj
= Py_None
;
1169 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1170 static PyObject
*_wrap_wxWindow_ClientToScreenXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1171 PyObject
* _resultobj
;
1175 PyObject
* _argo0
= 0;
1177 PyObject
* _obj1
= 0;
1179 PyObject
* _obj2
= 0;
1180 char *_kwnames
[] = { "self","x","y", NULL
};
1183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ClientToScreenXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1193 temp
= (int) PyInt_AsLong(_obj1
);
1197 temp0
= (int) PyInt_AsLong(_obj2
);
1201 wxPy_BEGIN_ALLOW_THREADS
;
1202 wxWindow_ClientToScreenXY(_arg0
,_arg1
,_arg2
);
1204 wxPy_END_ALLOW_THREADS
;
1205 if (PyErr_Occurred()) return NULL
;
1206 } Py_INCREF(Py_None
);
1207 _resultobj
= Py_None
;
1210 o
= PyInt_FromLong((long) (*_arg1
));
1211 _resultobj
= t_output_helper(_resultobj
, o
);
1215 o
= PyInt_FromLong((long) (*_arg2
));
1216 _resultobj
= t_output_helper(_resultobj
, o
);
1221 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1222 static PyObject
*_wrap_wxWindow_ClientToScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1223 PyObject
* _resultobj
;
1227 PyObject
* _argo0
= 0;
1229 PyObject
* _obj1
= 0;
1230 char *_kwnames
[] = { "self","pt", NULL
};
1234 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ClientToScreen",_kwnames
,&_argo0
,&_obj1
))
1237 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1238 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1239 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1245 if (! wxPoint_helper(_obj1
, &_arg1
))
1249 wxPy_BEGIN_ALLOW_THREADS
;
1250 _result
= new wxPoint (wxWindow_ClientToScreen(_arg0
,*_arg1
));
1252 wxPy_END_ALLOW_THREADS
;
1253 if (PyErr_Occurred()) return NULL
;
1254 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1255 _resultobj
= Py_BuildValue("s",_ptemp
);
1259 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1260 static PyObject
*_wrap_wxWindow_Close(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1261 PyObject
* _resultobj
;
1264 int _arg1
= (int ) FALSE
;
1265 PyObject
* _argo0
= 0;
1266 char *_kwnames
[] = { "self","force", NULL
};
1269 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_Close",_kwnames
,&_argo0
,&_arg1
))
1272 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1273 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1279 wxPy_BEGIN_ALLOW_THREADS
;
1280 _result
= (bool )wxWindow_Close(_arg0
,_arg1
);
1282 wxPy_END_ALLOW_THREADS
;
1283 if (PyErr_Occurred()) return NULL
;
1284 } _resultobj
= Py_BuildValue("i",_result
);
1288 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1289 static PyObject
*_wrap_wxWindow_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1290 PyObject
* _resultobj
;
1293 PyObject
* _argo0
= 0;
1294 char *_kwnames
[] = { "self", NULL
};
1297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Destroy",_kwnames
,&_argo0
))
1300 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1301 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1307 wxPy_BEGIN_ALLOW_THREADS
;
1308 _result
= (bool )wxWindow_Destroy(_arg0
);
1310 wxPy_END_ALLOW_THREADS
;
1311 if (PyErr_Occurred()) return NULL
;
1312 } _resultobj
= Py_BuildValue("i",_result
);
1316 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1317 static PyObject
*_wrap_wxWindow_DestroyChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1318 PyObject
* _resultobj
;
1320 PyObject
* _argo0
= 0;
1321 char *_kwnames
[] = { "self", NULL
};
1324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_DestroyChildren",_kwnames
,&_argo0
))
1327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1334 wxPy_BEGIN_ALLOW_THREADS
;
1335 wxWindow_DestroyChildren(_arg0
);
1337 wxPy_END_ALLOW_THREADS
;
1338 if (PyErr_Occurred()) return NULL
;
1339 } Py_INCREF(Py_None
);
1340 _resultobj
= Py_None
;
1344 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1345 static PyObject
*_wrap_wxWindow_IsBeingDeleted(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1346 PyObject
* _resultobj
;
1349 PyObject
* _argo0
= 0;
1350 char *_kwnames
[] = { "self", NULL
};
1353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsBeingDeleted",_kwnames
,&_argo0
))
1356 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1357 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1358 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1363 wxPy_BEGIN_ALLOW_THREADS
;
1364 _result
= (bool )wxWindow_IsBeingDeleted(_arg0
);
1366 wxPy_END_ALLOW_THREADS
;
1367 if (PyErr_Occurred()) return NULL
;
1368 } _resultobj
= Py_BuildValue("i",_result
);
1372 #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0))
1373 static PyObject
*_wrap_wxWindow_DragAcceptFiles(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1374 PyObject
* _resultobj
;
1377 PyObject
* _argo0
= 0;
1379 char *_kwnames
[] = { "self","accept", NULL
};
1382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_DragAcceptFiles",_kwnames
,&_argo0
,&tempbool1
))
1385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p.");
1391 _arg1
= (bool ) tempbool1
;
1393 wxPy_BEGIN_ALLOW_THREADS
;
1394 wxWindow_DragAcceptFiles(_arg0
,_arg1
);
1396 wxPy_END_ALLOW_THREADS
;
1397 if (PyErr_Occurred()) return NULL
;
1398 } Py_INCREF(Py_None
);
1399 _resultobj
= Py_None
;
1403 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1404 static PyObject
*_wrap_wxWindow_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1405 PyObject
* _resultobj
;
1408 PyObject
* _argo0
= 0;
1410 char *_kwnames
[] = { "self","enable", NULL
};
1413 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Enable",_kwnames
,&_argo0
,&tempbool1
))
1416 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1417 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1418 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1422 _arg1
= (bool ) tempbool1
;
1424 wxPy_BEGIN_ALLOW_THREADS
;
1425 wxWindow_Enable(_arg0
,_arg1
);
1427 wxPy_END_ALLOW_THREADS
;
1428 if (PyErr_Occurred()) return NULL
;
1429 } Py_INCREF(Py_None
);
1430 _resultobj
= Py_None
;
1434 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1435 static PyObject
*_wrap_wxWindow_FindWindowById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1436 PyObject
* _resultobj
;
1440 PyObject
* _argo0
= 0;
1441 char *_kwnames
[] = { "self","id", NULL
};
1444 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_FindWindowById",_kwnames
,&_argo0
,&_arg1
))
1447 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1448 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1449 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1454 wxPy_BEGIN_ALLOW_THREADS
;
1455 _result
= (wxWindow
*)wxWindow_FindWindowById(_arg0
,_arg1
);
1457 wxPy_END_ALLOW_THREADS
;
1458 if (PyErr_Occurred()) return NULL
;
1459 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1463 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1464 static PyObject
*_wrap_wxWindow_FindWindowByName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1465 PyObject
* _resultobj
;
1469 PyObject
* _argo0
= 0;
1470 PyObject
* _obj1
= 0;
1471 char *_kwnames
[] = { "self","name", NULL
};
1474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_FindWindowByName",_kwnames
,&_argo0
,&_obj1
))
1477 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1478 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1484 #if PYTHON_API_VERSION >= 1009
1485 char* tmpPtr
; int tmpSize
;
1486 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1487 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1490 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1492 _arg1
= new wxString(tmpPtr
, tmpSize
);
1494 if (!PyString_Check(_obj1
)) {
1495 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1498 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1502 wxPy_BEGIN_ALLOW_THREADS
;
1503 _result
= (wxWindow
*)wxWindow_FindWindowByName(_arg0
,*_arg1
);
1505 wxPy_END_ALLOW_THREADS
;
1506 if (PyErr_Occurred()) return NULL
;
1507 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1515 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1516 static PyObject
*_wrap_wxWindow_Fit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1517 PyObject
* _resultobj
;
1519 PyObject
* _argo0
= 0;
1520 char *_kwnames
[] = { "self", NULL
};
1523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Fit",_kwnames
,&_argo0
))
1526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1533 wxPy_BEGIN_ALLOW_THREADS
;
1534 wxWindow_Fit(_arg0
);
1536 wxPy_END_ALLOW_THREADS
;
1537 if (PyErr_Occurred()) return NULL
;
1538 } Py_INCREF(Py_None
);
1539 _resultobj
= Py_None
;
1543 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1544 static PyObject
*_wrap_wxWindow_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1545 PyObject
* _resultobj
;
1548 PyObject
* _argo0
= 0;
1549 char *_kwnames
[] = { "self", NULL
};
1553 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBackgroundColour",_kwnames
,&_argo0
))
1556 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1557 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1563 wxPy_BEGIN_ALLOW_THREADS
;
1564 _result
= new wxColour (wxWindow_GetBackgroundColour(_arg0
));
1566 wxPy_END_ALLOW_THREADS
;
1567 if (PyErr_Occurred()) return NULL
;
1568 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1569 _resultobj
= Py_BuildValue("s",_ptemp
);
1573 static PyObject
* wxWindow_GetChildren(wxWindow
*self
) {
1574 wxWindowList
& list
= self
->GetChildren();
1575 return wxPy_ConvertList(&list
, "wxWindow");
1577 static PyObject
*_wrap_wxWindow_GetChildren(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1578 PyObject
* _resultobj
;
1581 PyObject
* _argo0
= 0;
1582 char *_kwnames
[] = { "self", NULL
};
1585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetChildren",_kwnames
,&_argo0
))
1588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1595 wxPy_BEGIN_ALLOW_THREADS
;
1596 _result
= (PyObject
*)wxWindow_GetChildren(_arg0
);
1598 wxPy_END_ALLOW_THREADS
;
1599 if (PyErr_Occurred()) return NULL
;
1601 _resultobj
= _result
;
1606 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1607 static PyObject
*_wrap_wxWindow_GetCharHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1608 PyObject
* _resultobj
;
1611 PyObject
* _argo0
= 0;
1612 char *_kwnames
[] = { "self", NULL
};
1615 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCharHeight",_kwnames
,&_argo0
))
1618 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1619 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1620 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1625 wxPy_BEGIN_ALLOW_THREADS
;
1626 _result
= (int )wxWindow_GetCharHeight(_arg0
);
1628 wxPy_END_ALLOW_THREADS
;
1629 if (PyErr_Occurred()) return NULL
;
1630 } _resultobj
= Py_BuildValue("i",_result
);
1634 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1635 static PyObject
*_wrap_wxWindow_GetCharWidth(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_GetCharWidth",_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_GetCharWidth. Expected _wxWindow_p.");
1653 wxPy_BEGIN_ALLOW_THREADS
;
1654 _result
= (int )wxWindow_GetCharWidth(_arg0
);
1656 wxPy_END_ALLOW_THREADS
;
1657 if (PyErr_Occurred()) return NULL
;
1658 } _resultobj
= Py_BuildValue("i",_result
);
1662 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1663 static PyObject
*_wrap_wxWindow_GetClientSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1664 PyObject
* _resultobj
;
1670 PyObject
* _argo0
= 0;
1671 char *_kwnames
[] = { "self", NULL
};
1680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSizeTuple",_kwnames
,&_argo0
))
1683 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1684 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1685 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1690 wxPy_BEGIN_ALLOW_THREADS
;
1691 wxWindow_GetClientSizeTuple(_arg0
,_arg1
,_arg2
);
1693 wxPy_END_ALLOW_THREADS
;
1694 if (PyErr_Occurred()) return NULL
;
1695 } Py_INCREF(Py_None
);
1696 _resultobj
= Py_None
;
1699 o
= PyInt_FromLong((long) (*_arg1
));
1700 _resultobj
= t_output_helper(_resultobj
, o
);
1704 o
= PyInt_FromLong((long) (*_arg2
));
1705 _resultobj
= t_output_helper(_resultobj
, o
);
1710 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1711 static PyObject
*_wrap_wxWindow_GetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1712 PyObject
* _resultobj
;
1715 PyObject
* _argo0
= 0;
1716 char *_kwnames
[] = { "self", NULL
};
1720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetClientSize",_kwnames
,&_argo0
))
1723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1730 wxPy_BEGIN_ALLOW_THREADS
;
1731 _result
= new wxSize (wxWindow_GetClientSize(_arg0
));
1733 wxPy_END_ALLOW_THREADS
;
1734 if (PyErr_Occurred()) return NULL
;
1735 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
1736 _resultobj
= Py_BuildValue("s",_ptemp
);
1740 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1741 static PyObject
*_wrap_wxWindow_GetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1742 PyObject
* _resultobj
;
1743 wxLayoutConstraints
* _result
;
1745 PyObject
* _argo0
= 0;
1746 char *_kwnames
[] = { "self", NULL
};
1750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetConstraints",_kwnames
,&_argo0
))
1753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1760 wxPy_BEGIN_ALLOW_THREADS
;
1761 _result
= (wxLayoutConstraints
*)wxWindow_GetConstraints(_arg0
);
1763 wxPy_END_ALLOW_THREADS
;
1764 if (PyErr_Occurred()) return NULL
;
1766 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxLayoutConstraints_p");
1767 _resultobj
= Py_BuildValue("s",_ptemp
);
1770 _resultobj
= Py_None
;
1775 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1776 static PyObject
*_wrap_wxWindow_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1777 PyObject
* _resultobj
;
1778 wxEvtHandler
* _result
;
1780 PyObject
* _argo0
= 0;
1781 char *_kwnames
[] = { "self", NULL
};
1784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetEventHandler",_kwnames
,&_argo0
))
1787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1794 wxPy_BEGIN_ALLOW_THREADS
;
1795 _result
= (wxEvtHandler
*)wxWindow_GetEventHandler(_arg0
);
1797 wxPy_END_ALLOW_THREADS
;
1798 if (PyErr_Occurred()) return NULL
;
1799 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1803 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1804 static PyObject
*_wrap_wxWindow_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1805 PyObject
* _resultobj
;
1808 PyObject
* _argo0
= 0;
1809 char *_kwnames
[] = { "self", NULL
};
1813 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetFont",_kwnames
,&_argo0
))
1816 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1817 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1818 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1823 wxPy_BEGIN_ALLOW_THREADS
;
1824 wxFont
& _result_ref
= wxWindow_GetFont(_arg0
);
1825 _result
= (wxFont
*) &_result_ref
;
1827 wxPy_END_ALLOW_THREADS
;
1828 if (PyErr_Occurred()) return NULL
;
1830 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
1831 _resultobj
= Py_BuildValue("s",_ptemp
);
1834 _resultobj
= Py_None
;
1839 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1840 static PyObject
*_wrap_wxWindow_GetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1841 PyObject
* _resultobj
;
1844 PyObject
* _argo0
= 0;
1845 char *_kwnames
[] = { "self", NULL
};
1849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetForegroundColour",_kwnames
,&_argo0
))
1852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1859 wxPy_BEGIN_ALLOW_THREADS
;
1860 _result
= new wxColour (wxWindow_GetForegroundColour(_arg0
));
1862 wxPy_END_ALLOW_THREADS
;
1863 if (PyErr_Occurred()) return NULL
;
1864 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
1865 _resultobj
= Py_BuildValue("s",_ptemp
);
1869 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1870 static PyObject
*_wrap_wxWindow_GetGrandParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1871 PyObject
* _resultobj
;
1874 PyObject
* _argo0
= 0;
1875 char *_kwnames
[] = { "self", NULL
};
1878 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetGrandParent",_kwnames
,&_argo0
))
1881 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1882 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1883 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1888 wxPy_BEGIN_ALLOW_THREADS
;
1889 _result
= (wxWindow
*)wxWindow_GetGrandParent(_arg0
);
1891 wxPy_END_ALLOW_THREADS
;
1892 if (PyErr_Occurred()) return NULL
;
1893 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1897 static long wxWindow_GetHandle(wxWindow
*self
) {
1898 return wxPyGetWinHandle(self
); //(long)self->GetHandle();
1900 static PyObject
*_wrap_wxWindow_GetHandle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1901 PyObject
* _resultobj
;
1904 PyObject
* _argo0
= 0;
1905 char *_kwnames
[] = { "self", NULL
};
1908 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetHandle",_kwnames
,&_argo0
))
1911 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1912 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
1913 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
1918 wxPy_BEGIN_ALLOW_THREADS
;
1919 _result
= (long )wxWindow_GetHandle(_arg0
);
1921 wxPy_END_ALLOW_THREADS
;
1922 if (PyErr_Occurred()) return NULL
;
1923 } _resultobj
= Py_BuildValue("l",_result
);
1927 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1928 static PyObject
*_wrap_wxWindow_GetId(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_GetId",_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_GetId. Expected _wxWindow_p.");
1946 wxPy_BEGIN_ALLOW_THREADS
;
1947 _result
= (int )wxWindow_GetId(_arg0
);
1949 wxPy_END_ALLOW_THREADS
;
1950 if (PyErr_Occurred()) return NULL
;
1951 } _resultobj
= Py_BuildValue("i",_result
);
1955 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1956 static PyObject
*_wrap_wxWindow_GetLabel(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_GetLabel",_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_GetLabel. Expected _wxWindow_p.");
1974 wxPy_BEGIN_ALLOW_THREADS
;
1975 _result
= new wxString (wxWindow_GetLabel(_arg0
));
1977 wxPy_END_ALLOW_THREADS
;
1978 if (PyErr_Occurred()) return NULL
;
1980 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1988 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1989 static PyObject
*_wrap_wxWindow_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1990 PyObject
* _resultobj
;
1993 PyObject
* _argo0
= 0;
1994 PyObject
* _obj1
= 0;
1995 char *_kwnames
[] = { "self","label", NULL
};
1998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetLabel",_kwnames
,&_argo0
,&_obj1
))
2001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2008 #if PYTHON_API_VERSION >= 1009
2009 char* tmpPtr
; int tmpSize
;
2010 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2011 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2014 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2016 _arg1
= new wxString(tmpPtr
, tmpSize
);
2018 if (!PyString_Check(_obj1
)) {
2019 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2022 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2026 wxPy_BEGIN_ALLOW_THREADS
;
2027 wxWindow_SetLabel(_arg0
,*_arg1
);
2029 wxPy_END_ALLOW_THREADS
;
2030 if (PyErr_Occurred()) return NULL
;
2031 } Py_INCREF(Py_None
);
2032 _resultobj
= Py_None
;
2040 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2041 static PyObject
*_wrap_wxWindow_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2042 PyObject
* _resultobj
;
2045 PyObject
* _argo0
= 0;
2046 char *_kwnames
[] = { "self", NULL
};
2049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetName",_kwnames
,&_argo0
))
2052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2059 wxPy_BEGIN_ALLOW_THREADS
;
2060 _result
= new wxString (wxWindow_GetName(_arg0
));
2062 wxPy_END_ALLOW_THREADS
;
2063 if (PyErr_Occurred()) return NULL
;
2065 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2073 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2074 static PyObject
*_wrap_wxWindow_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2075 PyObject
* _resultobj
;
2078 PyObject
* _argo0
= 0;
2079 char *_kwnames
[] = { "self", NULL
};
2082 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetParent",_kwnames
,&_argo0
))
2085 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2086 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2087 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2092 wxPy_BEGIN_ALLOW_THREADS
;
2093 _result
= (wxWindow
*)wxWindow_GetParent(_arg0
);
2095 wxPy_END_ALLOW_THREADS
;
2096 if (PyErr_Occurred()) return NULL
;
2097 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2101 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2102 static PyObject
*_wrap_wxWindow_GetPositionTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2103 PyObject
* _resultobj
;
2109 PyObject
* _argo0
= 0;
2110 char *_kwnames
[] = { "self", NULL
};
2119 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPositionTuple",_kwnames
,&_argo0
))
2122 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2123 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2124 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2129 wxPy_BEGIN_ALLOW_THREADS
;
2130 wxWindow_GetPositionTuple(_arg0
,_arg1
,_arg2
);
2132 wxPy_END_ALLOW_THREADS
;
2133 if (PyErr_Occurred()) return NULL
;
2134 } Py_INCREF(Py_None
);
2135 _resultobj
= Py_None
;
2138 o
= PyInt_FromLong((long) (*_arg1
));
2139 _resultobj
= t_output_helper(_resultobj
, o
);
2143 o
= PyInt_FromLong((long) (*_arg2
));
2144 _resultobj
= t_output_helper(_resultobj
, o
);
2149 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2150 static PyObject
*_wrap_wxWindow_GetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2151 PyObject
* _resultobj
;
2154 PyObject
* _argo0
= 0;
2155 char *_kwnames
[] = { "self", NULL
};
2159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetPosition",_kwnames
,&_argo0
))
2162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2169 wxPy_BEGIN_ALLOW_THREADS
;
2170 _result
= new wxPoint (wxWindow_GetPosition(_arg0
));
2172 wxPy_END_ALLOW_THREADS
;
2173 if (PyErr_Occurred()) return NULL
;
2174 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2175 _resultobj
= Py_BuildValue("s",_ptemp
);
2179 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2180 static PyObject
*_wrap_wxWindow_GetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2181 PyObject
* _resultobj
;
2184 PyObject
* _argo0
= 0;
2185 char *_kwnames
[] = { "self", NULL
};
2189 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetRect",_kwnames
,&_argo0
))
2192 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2193 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2194 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2199 wxPy_BEGIN_ALLOW_THREADS
;
2200 _result
= new wxRect (wxWindow_GetRect(_arg0
));
2202 wxPy_END_ALLOW_THREADS
;
2203 if (PyErr_Occurred()) return NULL
;
2204 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRect_p");
2205 _resultobj
= Py_BuildValue("s",_ptemp
);
2209 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2210 static PyObject
*_wrap_wxWindow_GetScrollThumb(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2211 PyObject
* _resultobj
;
2215 PyObject
* _argo0
= 0;
2216 char *_kwnames
[] = { "self","orientation", NULL
};
2219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollThumb",_kwnames
,&_argo0
,&_arg1
))
2222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2229 wxPy_BEGIN_ALLOW_THREADS
;
2230 _result
= (int )wxWindow_GetScrollThumb(_arg0
,_arg1
);
2232 wxPy_END_ALLOW_THREADS
;
2233 if (PyErr_Occurred()) return NULL
;
2234 } _resultobj
= Py_BuildValue("i",_result
);
2238 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2239 static PyObject
*_wrap_wxWindow_GetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2240 PyObject
* _resultobj
;
2244 PyObject
* _argo0
= 0;
2245 char *_kwnames
[] = { "self","orientation", NULL
};
2248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollPos",_kwnames
,&_argo0
,&_arg1
))
2251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2258 wxPy_BEGIN_ALLOW_THREADS
;
2259 _result
= (int )wxWindow_GetScrollPos(_arg0
,_arg1
);
2261 wxPy_END_ALLOW_THREADS
;
2262 if (PyErr_Occurred()) return NULL
;
2263 } _resultobj
= Py_BuildValue("i",_result
);
2267 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2268 static PyObject
*_wrap_wxWindow_GetScrollRange(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2269 PyObject
* _resultobj
;
2273 PyObject
* _argo0
= 0;
2274 char *_kwnames
[] = { "self","orientation", NULL
};
2277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_GetScrollRange",_kwnames
,&_argo0
,&_arg1
))
2280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2287 wxPy_BEGIN_ALLOW_THREADS
;
2288 _result
= (int )wxWindow_GetScrollRange(_arg0
,_arg1
);
2290 wxPy_END_ALLOW_THREADS
;
2291 if (PyErr_Occurred()) return NULL
;
2292 } _resultobj
= Py_BuildValue("i",_result
);
2296 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2297 static PyObject
*_wrap_wxWindow_GetSizeTuple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2298 PyObject
* _resultobj
;
2304 PyObject
* _argo0
= 0;
2305 char *_kwnames
[] = { "self", NULL
};
2314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizeTuple",_kwnames
,&_argo0
))
2317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2324 wxPy_BEGIN_ALLOW_THREADS
;
2325 wxWindow_GetSizeTuple(_arg0
,_arg1
,_arg2
);
2327 wxPy_END_ALLOW_THREADS
;
2328 if (PyErr_Occurred()) return NULL
;
2329 } Py_INCREF(Py_None
);
2330 _resultobj
= Py_None
;
2333 o
= PyInt_FromLong((long) (*_arg1
));
2334 _resultobj
= t_output_helper(_resultobj
, o
);
2338 o
= PyInt_FromLong((long) (*_arg2
));
2339 _resultobj
= t_output_helper(_resultobj
, o
);
2344 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2345 static PyObject
*_wrap_wxWindow_GetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2346 PyObject
* _resultobj
;
2349 PyObject
* _argo0
= 0;
2350 char *_kwnames
[] = { "self", NULL
};
2354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSize",_kwnames
,&_argo0
))
2357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2364 wxPy_BEGIN_ALLOW_THREADS
;
2365 _result
= new wxSize (wxWindow_GetSize(_arg0
));
2367 wxPy_END_ALLOW_THREADS
;
2368 if (PyErr_Occurred()) return NULL
;
2369 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2370 _resultobj
= Py_BuildValue("s",_ptemp
);
2374 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2375 static PyObject
*_wrap_wxWindow_GetTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2376 PyObject
* _resultobj
;
2383 PyObject
* _argo0
= 0;
2384 PyObject
* _obj1
= 0;
2385 char *_kwnames
[] = { "self","string", NULL
};
2394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_GetTextExtent",_kwnames
,&_argo0
,&_obj1
))
2397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2404 #if PYTHON_API_VERSION >= 1009
2405 char* tmpPtr
; int tmpSize
;
2406 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2407 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2410 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2412 _arg1
= new wxString(tmpPtr
, tmpSize
);
2414 if (!PyString_Check(_obj1
)) {
2415 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2418 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2422 wxPy_BEGIN_ALLOW_THREADS
;
2423 wxWindow_GetTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
);
2425 wxPy_END_ALLOW_THREADS
;
2426 if (PyErr_Occurred()) return NULL
;
2427 } Py_INCREF(Py_None
);
2428 _resultobj
= Py_None
;
2431 o
= PyInt_FromLong((long) (*_arg2
));
2432 _resultobj
= t_output_helper(_resultobj
, o
);
2436 o
= PyInt_FromLong((long) (*_arg3
));
2437 _resultobj
= t_output_helper(_resultobj
, o
);
2446 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2447 static PyObject
*_wrap_wxWindow_GetFullTextExtent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2448 PyObject
* _resultobj
;
2459 wxFont
* _arg6
= (wxFont
*) NULL
;
2460 PyObject
* _argo0
= 0;
2461 PyObject
* _obj1
= 0;
2462 PyObject
* _argo6
= 0;
2463 char *_kwnames
[] = { "self","string","font", NULL
};
2478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxWindow_GetFullTextExtent",_kwnames
,&_argo0
,&_obj1
,&_argo6
))
2481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2488 #if PYTHON_API_VERSION >= 1009
2489 char* tmpPtr
; int tmpSize
;
2490 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
2491 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2494 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
2496 _arg1
= new wxString(tmpPtr
, tmpSize
);
2498 if (!PyString_Check(_obj1
)) {
2499 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2502 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
2506 if (_argo6
== Py_None
) { _arg6
= NULL
; }
2507 else if (SWIG_GetPtrObj(_argo6
,(void **) &_arg6
,"_wxFont_p")) {
2508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2513 wxPy_BEGIN_ALLOW_THREADS
;
2514 wxWindow_GetFullTextExtent(_arg0
,*_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2516 wxPy_END_ALLOW_THREADS
;
2517 if (PyErr_Occurred()) return NULL
;
2518 } Py_INCREF(Py_None
);
2519 _resultobj
= Py_None
;
2522 o
= PyInt_FromLong((long) (*_arg2
));
2523 _resultobj
= t_output_helper(_resultobj
, o
);
2527 o
= PyInt_FromLong((long) (*_arg3
));
2528 _resultobj
= t_output_helper(_resultobj
, o
);
2532 o
= PyInt_FromLong((long) (*_arg4
));
2533 _resultobj
= t_output_helper(_resultobj
, o
);
2537 o
= PyInt_FromLong((long) (*_arg5
));
2538 _resultobj
= t_output_helper(_resultobj
, o
);
2547 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2548 static PyObject
*_wrap_wxWindow_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2549 PyObject
* _resultobj
;
2552 PyObject
* _argo0
= 0;
2553 char *_kwnames
[] = { "self", NULL
};
2556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetTitle",_kwnames
,&_argo0
))
2559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2566 wxPy_BEGIN_ALLOW_THREADS
;
2567 _result
= new wxString (wxWindow_GetTitle(_arg0
));
2569 wxPy_END_ALLOW_THREADS
;
2570 if (PyErr_Occurred()) return NULL
;
2572 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2580 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2581 static PyObject
*_wrap_wxWindow_GetUpdateRegion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2582 PyObject
* _resultobj
;
2585 PyObject
* _argo0
= 0;
2586 char *_kwnames
[] = { "self", NULL
};
2590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetUpdateRegion",_kwnames
,&_argo0
))
2593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2600 wxPy_BEGIN_ALLOW_THREADS
;
2601 _result
= new wxRegion (wxWindow_GetUpdateRegion(_arg0
));
2603 wxPy_END_ALLOW_THREADS
;
2604 if (PyErr_Occurred()) return NULL
;
2605 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxRegion_p");
2606 _resultobj
= Py_BuildValue("s",_ptemp
);
2610 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2611 static PyObject
*_wrap_wxWindow_GetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2612 PyObject
* _resultobj
;
2615 PyObject
* _argo0
= 0;
2616 char *_kwnames
[] = { "self", NULL
};
2619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetWindowStyleFlag",_kwnames
,&_argo0
))
2622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2629 wxPy_BEGIN_ALLOW_THREADS
;
2630 _result
= (long )wxWindow_GetWindowStyleFlag(_arg0
);
2632 wxPy_END_ALLOW_THREADS
;
2633 if (PyErr_Occurred()) return NULL
;
2634 } _resultobj
= Py_BuildValue("l",_result
);
2638 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2639 static PyObject
*_wrap_wxWindow_SetWindowStyleFlag(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2640 PyObject
* _resultobj
;
2643 PyObject
* _argo0
= 0;
2644 char *_kwnames
[] = { "self","style", NULL
};
2647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyleFlag",_kwnames
,&_argo0
,&_arg1
))
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_SetWindowStyleFlag. Expected _wxWindow_p.");
2657 wxPy_BEGIN_ALLOW_THREADS
;
2658 wxWindow_SetWindowStyleFlag(_arg0
,_arg1
);
2660 wxPy_END_ALLOW_THREADS
;
2661 if (PyErr_Occurred()) return NULL
;
2662 } Py_INCREF(Py_None
);
2663 _resultobj
= Py_None
;
2667 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2668 static PyObject
*_wrap_wxWindow_SetWindowStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2669 PyObject
* _resultobj
;
2672 PyObject
* _argo0
= 0;
2673 char *_kwnames
[] = { "self","style", NULL
};
2676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetWindowStyle",_kwnames
,&_argo0
,&_arg1
))
2679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2686 wxPy_BEGIN_ALLOW_THREADS
;
2687 wxWindow_SetWindowStyle(_arg0
,_arg1
);
2689 wxPy_END_ALLOW_THREADS
;
2690 if (PyErr_Occurred()) return NULL
;
2691 } Py_INCREF(Py_None
);
2692 _resultobj
= Py_None
;
2696 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2697 static PyObject
*_wrap_wxWindow_Hide(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2698 PyObject
* _resultobj
;
2701 PyObject
* _argo0
= 0;
2702 char *_kwnames
[] = { "self", NULL
};
2705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Hide",_kwnames
,&_argo0
))
2708 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2709 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2710 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2715 wxPy_BEGIN_ALLOW_THREADS
;
2716 _result
= (bool )wxWindow_Hide(_arg0
);
2718 wxPy_END_ALLOW_THREADS
;
2719 if (PyErr_Occurred()) return NULL
;
2720 } _resultobj
= Py_BuildValue("i",_result
);
2724 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2725 static PyObject
*_wrap_wxWindow_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2726 PyObject
* _resultobj
;
2728 PyObject
* _argo0
= 0;
2729 char *_kwnames
[] = { "self", NULL
};
2732 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_InitDialog",_kwnames
,&_argo0
))
2735 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2736 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2742 wxPy_BEGIN_ALLOW_THREADS
;
2743 wxWindow_InitDialog(_arg0
);
2745 wxPy_END_ALLOW_THREADS
;
2746 if (PyErr_Occurred()) return NULL
;
2747 } Py_INCREF(Py_None
);
2748 _resultobj
= Py_None
;
2752 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2753 static PyObject
*_wrap_wxWindow_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2754 PyObject
* _resultobj
;
2757 PyObject
* _argo0
= 0;
2758 char *_kwnames
[] = { "self", NULL
};
2761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsEnabled",_kwnames
,&_argo0
))
2764 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2765 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2771 wxPy_BEGIN_ALLOW_THREADS
;
2772 _result
= (bool )wxWindow_IsEnabled(_arg0
);
2774 wxPy_END_ALLOW_THREADS
;
2775 if (PyErr_Occurred()) return NULL
;
2776 } _resultobj
= Py_BuildValue("i",_result
);
2780 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2781 static PyObject
*_wrap_wxWindow_IsExposed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2782 PyObject
* _resultobj
;
2787 int _arg3
= (int ) 0;
2788 int _arg4
= (int ) 0;
2789 PyObject
* _argo0
= 0;
2790 char *_kwnames
[] = { "self","x","y","w","h", NULL
};
2793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|ii:wxWindow_IsExposed",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
2796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2803 wxPy_BEGIN_ALLOW_THREADS
;
2804 _result
= (bool )wxWindow_IsExposed(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
2806 wxPy_END_ALLOW_THREADS
;
2807 if (PyErr_Occurred()) return NULL
;
2808 } _resultobj
= Py_BuildValue("i",_result
);
2812 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2813 static PyObject
*_wrap_wxWindow_IsExposedPoint(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2814 PyObject
* _resultobj
;
2818 PyObject
* _argo0
= 0;
2820 PyObject
* _obj1
= 0;
2821 char *_kwnames
[] = { "self","pt", NULL
};
2824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedPoint",_kwnames
,&_argo0
,&_obj1
))
2827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2835 if (! wxPoint_helper(_obj1
, &_arg1
))
2839 wxPy_BEGIN_ALLOW_THREADS
;
2840 _result
= (bool )wxWindow_IsExposedPoint(_arg0
,*_arg1
);
2842 wxPy_END_ALLOW_THREADS
;
2843 if (PyErr_Occurred()) return NULL
;
2844 } _resultobj
= Py_BuildValue("i",_result
);
2848 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2849 static PyObject
*_wrap_wxWindow_IsExposedRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2850 PyObject
* _resultobj
;
2854 PyObject
* _argo0
= 0;
2856 PyObject
* _obj1
= 0;
2857 char *_kwnames
[] = { "self","rect", NULL
};
2860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_IsExposedRect",_kwnames
,&_argo0
,&_obj1
))
2863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2871 if (! wxRect_helper(_obj1
, &_arg1
))
2875 wxPy_BEGIN_ALLOW_THREADS
;
2876 _result
= (bool )wxWindow_IsExposedRect(_arg0
,*_arg1
);
2878 wxPy_END_ALLOW_THREADS
;
2879 if (PyErr_Occurred()) return NULL
;
2880 } _resultobj
= Py_BuildValue("i",_result
);
2884 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2885 static PyObject
*_wrap_wxWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2886 PyObject
* _resultobj
;
2889 PyObject
* _argo0
= 0;
2890 char *_kwnames
[] = { "self", NULL
};
2893 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_IsRetained",_kwnames
,&_argo0
))
2896 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2897 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2903 wxPy_BEGIN_ALLOW_THREADS
;
2904 _result
= (bool )wxWindow_IsRetained(_arg0
);
2906 wxPy_END_ALLOW_THREADS
;
2907 if (PyErr_Occurred()) return NULL
;
2908 } _resultobj
= Py_BuildValue("i",_result
);
2912 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2913 static PyObject
*_wrap_wxWindow_IsShown(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_IsShown",_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_IsShown. Expected _wxWindow_p.");
2931 wxPy_BEGIN_ALLOW_THREADS
;
2932 _result
= (bool )wxWindow_IsShown(_arg0
);
2934 wxPy_END_ALLOW_THREADS
;
2935 if (PyErr_Occurred()) return NULL
;
2936 } _resultobj
= Py_BuildValue("i",_result
);
2940 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
2941 static PyObject
*_wrap_wxWindow_IsTopLevel(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_IsTopLevel",_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_IsTopLevel. Expected _wxWindow_p.");
2959 wxPy_BEGIN_ALLOW_THREADS
;
2960 _result
= (bool )wxWindow_IsTopLevel(_arg0
);
2962 wxPy_END_ALLOW_THREADS
;
2963 if (PyErr_Occurred()) return NULL
;
2964 } _resultobj
= Py_BuildValue("i",_result
);
2968 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
2969 static PyObject
*_wrap_wxWindow_Layout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2970 PyObject
* _resultobj
;
2972 PyObject
* _argo0
= 0;
2973 char *_kwnames
[] = { "self", NULL
};
2976 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Layout",_kwnames
,&_argo0
))
2979 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2980 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2981 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
2986 wxPy_BEGIN_ALLOW_THREADS
;
2987 wxWindow_Layout(_arg0
);
2989 wxPy_END_ALLOW_THREADS
;
2990 if (PyErr_Occurred()) return NULL
;
2991 } Py_INCREF(Py_None
);
2992 _resultobj
= Py_None
;
2996 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
2997 static PyObject
*_wrap_wxWindow_LoadFromResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2998 PyObject
* _resultobj
;
3003 wxResourceTable
* _arg3
= (wxResourceTable
*) NULL
;
3004 PyObject
* _argo0
= 0;
3005 PyObject
* _argo1
= 0;
3006 PyObject
* _obj2
= 0;
3007 PyObject
* _argo3
= 0;
3008 char *_kwnames
[] = { "self","parent","resourceName","resourceTable", NULL
};
3011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxWindow_LoadFromResource",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_argo3
))
3014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3021 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3022 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3023 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
3028 #if PYTHON_API_VERSION >= 1009
3029 char* tmpPtr
; int tmpSize
;
3030 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
3031 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3034 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
3036 _arg2
= new wxString(tmpPtr
, tmpSize
);
3038 if (!PyString_Check(_obj2
)) {
3039 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
3042 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
3046 if (_argo3
== Py_None
) { _arg3
= NULL
; }
3047 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxResourceTable_p")) {
3048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
3053 wxPy_BEGIN_ALLOW_THREADS
;
3054 _result
= (bool )wxWindow_LoadFromResource(_arg0
,_arg1
,*_arg2
,_arg3
);
3056 wxPy_END_ALLOW_THREADS
;
3057 if (PyErr_Occurred()) return NULL
;
3058 } _resultobj
= Py_BuildValue("i",_result
);
3066 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3067 static PyObject
*_wrap_wxWindow_Lower(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3068 PyObject
* _resultobj
;
3070 PyObject
* _argo0
= 0;
3071 char *_kwnames
[] = { "self", NULL
};
3074 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Lower",_kwnames
,&_argo0
))
3077 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3078 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3079 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3084 wxPy_BEGIN_ALLOW_THREADS
;
3085 wxWindow_Lower(_arg0
);
3087 wxPy_END_ALLOW_THREADS
;
3088 if (PyErr_Occurred()) return NULL
;
3089 } Py_INCREF(Py_None
);
3090 _resultobj
= Py_None
;
3094 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3095 static PyObject
*_wrap_wxWindow_MakeModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3096 PyObject
* _resultobj
;
3099 PyObject
* _argo0
= 0;
3101 char *_kwnames
[] = { "self","flag", NULL
};
3104 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_MakeModal",_kwnames
,&_argo0
,&tempbool1
))
3107 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3108 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3109 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3113 _arg1
= (bool ) tempbool1
;
3115 wxPy_BEGIN_ALLOW_THREADS
;
3116 wxWindow_MakeModal(_arg0
,_arg1
);
3118 wxPy_END_ALLOW_THREADS
;
3119 if (PyErr_Occurred()) return NULL
;
3120 } Py_INCREF(Py_None
);
3121 _resultobj
= Py_None
;
3125 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3126 static PyObject
*_wrap_wxWindow_MoveXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3127 PyObject
* _resultobj
;
3131 PyObject
* _argo0
= 0;
3132 char *_kwnames
[] = { "self","x","y", NULL
};
3135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_MoveXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3145 wxPy_BEGIN_ALLOW_THREADS
;
3146 wxWindow_MoveXY(_arg0
,_arg1
,_arg2
);
3148 wxPy_END_ALLOW_THREADS
;
3149 if (PyErr_Occurred()) return NULL
;
3150 } Py_INCREF(Py_None
);
3151 _resultobj
= Py_None
;
3155 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3156 static PyObject
*_wrap_wxWindow_Move(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3157 PyObject
* _resultobj
;
3160 PyObject
* _argo0
= 0;
3162 PyObject
* _obj1
= 0;
3163 char *_kwnames
[] = { "self","point", NULL
};
3166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Move",_kwnames
,&_argo0
,&_obj1
))
3169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3177 if (! wxPoint_helper(_obj1
, &_arg1
))
3181 wxPy_BEGIN_ALLOW_THREADS
;
3182 wxWindow_Move(_arg0
,*_arg1
);
3184 wxPy_END_ALLOW_THREADS
;
3185 if (PyErr_Occurred()) return NULL
;
3186 } Py_INCREF(Py_None
);
3187 _resultobj
= Py_None
;
3191 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3192 static PyObject
*_wrap_wxWindow_PopEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3193 PyObject
* _resultobj
;
3194 wxEvtHandler
* _result
;
3196 bool _arg1
= (bool ) FALSE
;
3197 PyObject
* _argo0
= 0;
3198 int tempbool1
= (int) FALSE
;
3199 char *_kwnames
[] = { "self","deleteHandler", NULL
};
3202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxWindow_PopEventHandler",_kwnames
,&_argo0
,&tempbool1
))
3205 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3206 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3207 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3211 _arg1
= (bool ) tempbool1
;
3213 wxPy_BEGIN_ALLOW_THREADS
;
3214 _result
= (wxEvtHandler
*)wxWindow_PopEventHandler(_arg0
,_arg1
);
3216 wxPy_END_ALLOW_THREADS
;
3217 if (PyErr_Occurred()) return NULL
;
3218 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3222 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3223 static PyObject
*_wrap_wxWindow_PushEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3224 PyObject
* _resultobj
;
3226 wxEvtHandler
* _arg1
;
3227 PyObject
* _argo0
= 0;
3228 PyObject
* _argo1
= 0;
3229 char *_kwnames
[] = { "self","handler", NULL
};
3232 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_PushEventHandler",_kwnames
,&_argo0
,&_argo1
))
3235 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3236 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3237 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3242 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3243 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
3244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3249 wxPy_BEGIN_ALLOW_THREADS
;
3250 wxWindow_PushEventHandler(_arg0
,_arg1
);
3252 wxPy_END_ALLOW_THREADS
;
3253 if (PyErr_Occurred()) return NULL
;
3254 } Py_INCREF(Py_None
);
3255 _resultobj
= Py_None
;
3259 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3260 static PyObject
*_wrap_wxWindow_PopupMenuXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3261 PyObject
* _resultobj
;
3267 PyObject
* _argo0
= 0;
3268 PyObject
* _argo1
= 0;
3269 char *_kwnames
[] = { "self","menu","x","y", NULL
};
3272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxWindow_PopupMenuXY",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
3275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3282 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3283 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3289 wxPy_BEGIN_ALLOW_THREADS
;
3290 _result
= (bool )wxWindow_PopupMenuXY(_arg0
,_arg1
,_arg2
,_arg3
);
3292 wxPy_END_ALLOW_THREADS
;
3293 if (PyErr_Occurred()) return NULL
;
3294 } _resultobj
= Py_BuildValue("i",_result
);
3298 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3299 static PyObject
*_wrap_wxWindow_PopupMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3300 PyObject
* _resultobj
;
3305 PyObject
* _argo0
= 0;
3306 PyObject
* _argo1
= 0;
3308 PyObject
* _obj2
= 0;
3309 char *_kwnames
[] = { "self","menu","pos", NULL
};
3312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_PopupMenu",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
3315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3322 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3323 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
3324 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3330 if (! wxPoint_helper(_obj2
, &_arg2
))
3334 wxPy_BEGIN_ALLOW_THREADS
;
3335 _result
= (bool )wxWindow_PopupMenu(_arg0
,_arg1
,*_arg2
);
3337 wxPy_END_ALLOW_THREADS
;
3338 if (PyErr_Occurred()) return NULL
;
3339 } _resultobj
= Py_BuildValue("i",_result
);
3343 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3344 static PyObject
*_wrap_wxWindow_Raise(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3345 PyObject
* _resultobj
;
3347 PyObject
* _argo0
= 0;
3348 char *_kwnames
[] = { "self", NULL
};
3351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_Raise",_kwnames
,&_argo0
))
3354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3361 wxPy_BEGIN_ALLOW_THREADS
;
3362 wxWindow_Raise(_arg0
);
3364 wxPy_END_ALLOW_THREADS
;
3365 if (PyErr_Occurred()) return NULL
;
3366 } Py_INCREF(Py_None
);
3367 _resultobj
= Py_None
;
3371 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3372 static PyObject
*_wrap_wxWindow_Refresh(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3373 PyObject
* _resultobj
;
3375 bool _arg1
= (bool ) TRUE
;
3376 wxRect
* _arg2
= (wxRect
*) NULL
;
3377 PyObject
* _argo0
= 0;
3378 int tempbool1
= (int) TRUE
;
3380 PyObject
* _obj2
= 0;
3381 char *_kwnames
[] = { "self","eraseBackground","rect", NULL
};
3384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iO:wxWindow_Refresh",_kwnames
,&_argo0
,&tempbool1
,&_obj2
))
3387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3393 _arg1
= (bool ) tempbool1
;
3397 if (! wxRect_helper(_obj2
, &_arg2
))
3401 wxPy_BEGIN_ALLOW_THREADS
;
3402 wxWindow_Refresh(_arg0
,_arg1
,_arg2
);
3404 wxPy_END_ALLOW_THREADS
;
3405 if (PyErr_Occurred()) return NULL
;
3406 } Py_INCREF(Py_None
);
3407 _resultobj
= Py_None
;
3411 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3412 static PyObject
*_wrap_wxWindow_ReleaseMouse(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3413 PyObject
* _resultobj
;
3415 PyObject
* _argo0
= 0;
3416 char *_kwnames
[] = { "self", NULL
};
3419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_ReleaseMouse",_kwnames
,&_argo0
))
3422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3429 wxPy_BEGIN_ALLOW_THREADS
;
3430 wxWindow_ReleaseMouse(_arg0
);
3432 wxPy_END_ALLOW_THREADS
;
3433 if (PyErr_Occurred()) return NULL
;
3434 } Py_INCREF(Py_None
);
3435 _resultobj
= Py_None
;
3439 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3440 static PyObject
*_wrap_wxWindow_RemoveChild(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3441 PyObject
* _resultobj
;
3444 PyObject
* _argo0
= 0;
3445 PyObject
* _argo1
= 0;
3446 char *_kwnames
[] = { "self","child", NULL
};
3449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_RemoveChild",_kwnames
,&_argo0
,&_argo1
))
3452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3459 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3460 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3466 wxPy_BEGIN_ALLOW_THREADS
;
3467 wxWindow_RemoveChild(_arg0
,_arg1
);
3469 wxPy_END_ALLOW_THREADS
;
3470 if (PyErr_Occurred()) return NULL
;
3471 } Py_INCREF(Py_None
);
3472 _resultobj
= Py_None
;
3476 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3477 static PyObject
*_wrap_wxWindow_Reparent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3478 PyObject
* _resultobj
;
3482 PyObject
* _argo0
= 0;
3483 PyObject
* _argo1
= 0;
3484 char *_kwnames
[] = { "self","newParent", NULL
};
3487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_Reparent",_kwnames
,&_argo0
,&_argo1
))
3490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3497 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3498 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3504 wxPy_BEGIN_ALLOW_THREADS
;
3505 _result
= (bool )wxWindow_Reparent(_arg0
,_arg1
);
3507 wxPy_END_ALLOW_THREADS
;
3508 if (PyErr_Occurred()) return NULL
;
3509 } _resultobj
= Py_BuildValue("i",_result
);
3513 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3514 static PyObject
*_wrap_wxWindow_ScreenToClientXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3515 PyObject
* _resultobj
;
3519 PyObject
* _argo0
= 0;
3521 PyObject
* _obj1
= 0;
3523 PyObject
* _obj2
= 0;
3524 char *_kwnames
[] = { "self","x","y", NULL
};
3527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxWindow_ScreenToClientXY",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3537 temp
= (int) PyInt_AsLong(_obj1
);
3541 temp0
= (int) PyInt_AsLong(_obj2
);
3545 wxPy_BEGIN_ALLOW_THREADS
;
3546 wxWindow_ScreenToClientXY(_arg0
,_arg1
,_arg2
);
3548 wxPy_END_ALLOW_THREADS
;
3549 if (PyErr_Occurred()) return NULL
;
3550 } Py_INCREF(Py_None
);
3551 _resultobj
= Py_None
;
3554 o
= PyInt_FromLong((long) (*_arg1
));
3555 _resultobj
= t_output_helper(_resultobj
, o
);
3559 o
= PyInt_FromLong((long) (*_arg2
));
3560 _resultobj
= t_output_helper(_resultobj
, o
);
3565 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3566 static PyObject
*_wrap_wxWindow_ScreenToClient(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3567 PyObject
* _resultobj
;
3571 PyObject
* _argo0
= 0;
3573 PyObject
* _obj1
= 0;
3574 char *_kwnames
[] = { "self","pt", NULL
};
3578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ScreenToClient",_kwnames
,&_argo0
,&_obj1
))
3581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3589 if (! wxPoint_helper(_obj1
, &_arg1
))
3593 wxPy_BEGIN_ALLOW_THREADS
;
3594 _result
= new wxPoint (wxWindow_ScreenToClient(_arg0
,*_arg1
));
3596 wxPy_END_ALLOW_THREADS
;
3597 if (PyErr_Occurred()) return NULL
;
3598 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
3599 _resultobj
= Py_BuildValue("s",_ptemp
);
3603 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3604 static PyObject
*_wrap_wxWindow_ScrollWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3605 PyObject
* _resultobj
;
3609 wxRect
* _arg3
= (wxRect
*) NULL
;
3610 PyObject
* _argo0
= 0;
3612 PyObject
* _obj3
= 0;
3613 char *_kwnames
[] = { "self","dx","dy","rect", NULL
};
3616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|O:wxWindow_ScrollWindow",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
3619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3628 if (! wxRect_helper(_obj3
, &_arg3
))
3632 wxPy_BEGIN_ALLOW_THREADS
;
3633 wxWindow_ScrollWindow(_arg0
,_arg1
,_arg2
,_arg3
);
3635 wxPy_END_ALLOW_THREADS
;
3636 if (PyErr_Occurred()) return NULL
;
3637 } Py_INCREF(Py_None
);
3638 _resultobj
= Py_None
;
3642 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
3643 static PyObject
*_wrap_wxWindow_SetAcceleratorTable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3644 PyObject
* _resultobj
;
3646 wxAcceleratorTable
* _arg1
;
3647 PyObject
* _argo0
= 0;
3648 PyObject
* _argo1
= 0;
3649 char *_kwnames
[] = { "self","accel", NULL
};
3652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetAcceleratorTable",_kwnames
,&_argo0
,&_argo1
))
3655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
3662 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3663 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorTable_p")) {
3664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
3669 wxPy_BEGIN_ALLOW_THREADS
;
3670 wxWindow_SetAcceleratorTable(_arg0
,*_arg1
);
3672 wxPy_END_ALLOW_THREADS
;
3673 if (PyErr_Occurred()) return NULL
;
3674 } Py_INCREF(Py_None
);
3675 _resultobj
= Py_None
;
3679 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3680 static PyObject
*_wrap_wxWindow_SetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3681 PyObject
* _resultobj
;
3684 PyObject
* _argo0
= 0;
3686 char *_kwnames
[] = { "self","autoLayout", NULL
};
3689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetAutoLayout",_kwnames
,&_argo0
,&tempbool1
))
3692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3698 _arg1
= (bool ) tempbool1
;
3700 wxPy_BEGIN_ALLOW_THREADS
;
3701 wxWindow_SetAutoLayout(_arg0
,_arg1
);
3703 wxPy_END_ALLOW_THREADS
;
3704 if (PyErr_Occurred()) return NULL
;
3705 } Py_INCREF(Py_None
);
3706 _resultobj
= Py_None
;
3710 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3711 static PyObject
*_wrap_wxWindow_GetAutoLayout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3712 PyObject
* _resultobj
;
3715 PyObject
* _argo0
= 0;
3716 char *_kwnames
[] = { "self", NULL
};
3719 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetAutoLayout",_kwnames
,&_argo0
))
3722 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3723 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3724 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3729 wxPy_BEGIN_ALLOW_THREADS
;
3730 _result
= (bool )wxWindow_GetAutoLayout(_arg0
);
3732 wxPy_END_ALLOW_THREADS
;
3733 if (PyErr_Occurred()) return NULL
;
3734 } _resultobj
= Py_BuildValue("i",_result
);
3738 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3739 static PyObject
*_wrap_wxWindow_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3740 PyObject
* _resultobj
;
3743 PyObject
* _argo0
= 0;
3745 PyObject
* _obj1
= 0;
3746 char *_kwnames
[] = { "self","colour", NULL
};
3749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
3752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3760 if (! wxColour_helper(_obj1
, &_arg1
))
3764 wxPy_BEGIN_ALLOW_THREADS
;
3765 wxWindow_SetBackgroundColour(_arg0
,*_arg1
);
3767 wxPy_END_ALLOW_THREADS
;
3768 if (PyErr_Occurred()) return NULL
;
3769 } Py_INCREF(Py_None
);
3770 _resultobj
= Py_None
;
3774 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3775 static PyObject
*_wrap_wxWindow_SetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3776 PyObject
* _resultobj
;
3778 wxLayoutConstraints
* _arg1
;
3779 PyObject
* _argo0
= 0;
3780 PyObject
* _argo1
= 0;
3781 char *_kwnames
[] = { "self","constraints", NULL
};
3784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetConstraints",_kwnames
,&_argo0
,&_argo1
))
3787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3794 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3795 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3796 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3801 wxPy_BEGIN_ALLOW_THREADS
;
3802 wxWindow_SetConstraints(_arg0
,_arg1
);
3804 wxPy_END_ALLOW_THREADS
;
3805 if (PyErr_Occurred()) return NULL
;
3806 } Py_INCREF(Py_None
);
3807 _resultobj
= Py_None
;
3811 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3812 static PyObject
*_wrap_wxWindow_UnsetConstraints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3813 PyObject
* _resultobj
;
3815 wxLayoutConstraints
* _arg1
;
3816 PyObject
* _argo0
= 0;
3817 PyObject
* _argo1
= 0;
3818 char *_kwnames
[] = { "self","constraints", NULL
};
3821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_UnsetConstraints",_kwnames
,&_argo0
,&_argo1
))
3824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3831 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3832 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxLayoutConstraints_p")) {
3833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3838 wxPy_BEGIN_ALLOW_THREADS
;
3839 wxWindow_UnsetConstraints(_arg0
,_arg1
);
3841 wxPy_END_ALLOW_THREADS
;
3842 if (PyErr_Occurred()) return NULL
;
3843 } Py_INCREF(Py_None
);
3844 _resultobj
= Py_None
;
3848 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3849 static PyObject
*_wrap_wxWindow_SetFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3850 PyObject
* _resultobj
;
3852 PyObject
* _argo0
= 0;
3853 char *_kwnames
[] = { "self", NULL
};
3856 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_SetFocus",_kwnames
,&_argo0
))
3859 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3860 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3861 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3866 wxPy_BEGIN_ALLOW_THREADS
;
3867 wxWindow_SetFocus(_arg0
);
3869 wxPy_END_ALLOW_THREADS
;
3870 if (PyErr_Occurred()) return NULL
;
3871 } Py_INCREF(Py_None
);
3872 _resultobj
= Py_None
;
3876 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3877 static PyObject
*_wrap_wxWindow_AcceptsFocus(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3878 PyObject
* _resultobj
;
3881 PyObject
* _argo0
= 0;
3882 char *_kwnames
[] = { "self", NULL
};
3885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_AcceptsFocus",_kwnames
,&_argo0
))
3888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3895 wxPy_BEGIN_ALLOW_THREADS
;
3896 _result
= (bool )wxWindow_AcceptsFocus(_arg0
);
3898 wxPy_END_ALLOW_THREADS
;
3899 if (PyErr_Occurred()) return NULL
;
3900 } _resultobj
= Py_BuildValue("i",_result
);
3904 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3905 static PyObject
*_wrap_wxWindow_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3906 PyObject
* _resultobj
;
3909 PyObject
* _argo0
= 0;
3910 PyObject
* _argo1
= 0;
3911 char *_kwnames
[] = { "self","font", NULL
};
3914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetFont",_kwnames
,&_argo0
,&_argo1
))
3917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3924 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3925 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
3926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3931 wxPy_BEGIN_ALLOW_THREADS
;
3932 wxWindow_SetFont(_arg0
,*_arg1
);
3934 wxPy_END_ALLOW_THREADS
;
3935 if (PyErr_Occurred()) return NULL
;
3936 } Py_INCREF(Py_None
);
3937 _resultobj
= Py_None
;
3941 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3942 static PyObject
*_wrap_wxWindow_SetForegroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3943 PyObject
* _resultobj
;
3946 PyObject
* _argo0
= 0;
3948 PyObject
* _obj1
= 0;
3949 char *_kwnames
[] = { "self","colour", NULL
};
3952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetForegroundColour",_kwnames
,&_argo0
,&_obj1
))
3955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
3963 if (! wxColour_helper(_obj1
, &_arg1
))
3967 wxPy_BEGIN_ALLOW_THREADS
;
3968 wxWindow_SetForegroundColour(_arg0
,*_arg1
);
3970 wxPy_END_ALLOW_THREADS
;
3971 if (PyErr_Occurred()) return NULL
;
3972 } Py_INCREF(Py_None
);
3973 _resultobj
= Py_None
;
3977 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3978 static PyObject
*_wrap_wxWindow_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3979 PyObject
* _resultobj
;
3982 PyObject
* _argo0
= 0;
3983 char *_kwnames
[] = { "self","id", NULL
};
3986 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_SetId",_kwnames
,&_argo0
,&_arg1
))
3989 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3990 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3991 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
3996 wxPy_BEGIN_ALLOW_THREADS
;
3997 wxWindow_SetId(_arg0
,_arg1
);
3999 wxPy_END_ALLOW_THREADS
;
4000 if (PyErr_Occurred()) return NULL
;
4001 } Py_INCREF(Py_None
);
4002 _resultobj
= Py_None
;
4006 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4007 static PyObject
*_wrap_wxWindow_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4008 PyObject
* _resultobj
;
4011 PyObject
* _argo0
= 0;
4012 PyObject
* _obj1
= 0;
4013 char *_kwnames
[] = { "self","name", NULL
};
4016 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetName",_kwnames
,&_argo0
,&_obj1
))
4019 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4020 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4021 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4026 #if PYTHON_API_VERSION >= 1009
4027 char* tmpPtr
; int tmpSize
;
4028 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4029 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4032 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4034 _arg1
= new wxString(tmpPtr
, tmpSize
);
4036 if (!PyString_Check(_obj1
)) {
4037 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4040 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4044 wxPy_BEGIN_ALLOW_THREADS
;
4045 wxWindow_SetName(_arg0
,*_arg1
);
4047 wxPy_END_ALLOW_THREADS
;
4048 if (PyErr_Occurred()) return NULL
;
4049 } Py_INCREF(Py_None
);
4050 _resultobj
= Py_None
;
4058 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4059 static PyObject
*_wrap_wxWindow_SetScrollbar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4060 PyObject
* _resultobj
;
4066 int _arg5
= (int ) TRUE
;
4067 PyObject
* _argo0
= 0;
4068 char *_kwnames
[] = { "self","orientation","position","thumbSize","range","refresh", NULL
};
4071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetScrollbar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4074 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4075 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4081 wxPy_BEGIN_ALLOW_THREADS
;
4082 wxWindow_SetScrollbar(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4084 wxPy_END_ALLOW_THREADS
;
4085 if (PyErr_Occurred()) return NULL
;
4086 } Py_INCREF(Py_None
);
4087 _resultobj
= Py_None
;
4091 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4092 static PyObject
*_wrap_wxWindow_SetScrollPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4093 PyObject
* _resultobj
;
4097 bool _arg3
= (bool ) TRUE
;
4098 PyObject
* _argo0
= 0;
4099 int tempbool3
= (int) TRUE
;
4100 char *_kwnames
[] = { "self","orientation","pos","refresh", NULL
};
4103 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii|i:wxWindow_SetScrollPos",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&tempbool3
))
4106 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4107 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4108 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4112 _arg3
= (bool ) tempbool3
;
4114 wxPy_BEGIN_ALLOW_THREADS
;
4115 wxWindow_SetScrollPos(_arg0
,_arg1
,_arg2
,_arg3
);
4117 wxPy_END_ALLOW_THREADS
;
4118 if (PyErr_Occurred()) return NULL
;
4119 } Py_INCREF(Py_None
);
4120 _resultobj
= Py_None
;
4124 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4125 static PyObject
*_wrap_wxWindow_SetDimensions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4126 PyObject
* _resultobj
;
4132 int _arg5
= (int ) wxSIZE_AUTO
;
4133 PyObject
* _argo0
= 0;
4134 char *_kwnames
[] = { "self","x","y","width","height","sizeFlags", NULL
};
4137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|i:wxWindow_SetDimensions",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
4140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4147 wxPy_BEGIN_ALLOW_THREADS
;
4148 wxWindow_SetDimensions(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
4150 wxPy_END_ALLOW_THREADS
;
4151 if (PyErr_Occurred()) return NULL
;
4152 } Py_INCREF(Py_None
);
4153 _resultobj
= Py_None
;
4157 static void wxWindow_SetSize(wxWindow
*self
,const wxSize
& size
) {
4158 self
->SetSize(size
);
4160 static PyObject
*_wrap_wxWindow_SetSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4161 PyObject
* _resultobj
;
4164 PyObject
* _argo0
= 0;
4166 PyObject
* _obj1
= 0;
4167 char *_kwnames
[] = { "self","size", NULL
};
4170 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSize",_kwnames
,&_argo0
,&_obj1
))
4173 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4174 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4175 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4181 if (! wxSize_helper(_obj1
, &_arg1
))
4185 wxPy_BEGIN_ALLOW_THREADS
;
4186 wxWindow_SetSize(_arg0
,*_arg1
);
4188 wxPy_END_ALLOW_THREADS
;
4189 if (PyErr_Occurred()) return NULL
;
4190 } Py_INCREF(Py_None
);
4191 _resultobj
= Py_None
;
4195 static void wxWindow_SetPosition(wxWindow
*self
,const wxPoint
& pos
) {
4198 static PyObject
*_wrap_wxWindow_SetPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4199 PyObject
* _resultobj
;
4202 PyObject
* _argo0
= 0;
4204 PyObject
* _obj1
= 0;
4205 char *_kwnames
[] = { "self","pos", NULL
};
4208 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetPosition",_kwnames
,&_argo0
,&_obj1
))
4211 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4212 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4219 if (! wxPoint_helper(_obj1
, &_arg1
))
4223 wxPy_BEGIN_ALLOW_THREADS
;
4224 wxWindow_SetPosition(_arg0
,*_arg1
);
4226 wxPy_END_ALLOW_THREADS
;
4227 if (PyErr_Occurred()) return NULL
;
4228 } Py_INCREF(Py_None
);
4229 _resultobj
= Py_None
;
4233 static void wxWindow_SetRect(wxWindow
*self
,const wxRect
& rect
,int sizeFlags
) {
4234 self
->SetSize(rect
, sizeFlags
);
4236 static PyObject
*_wrap_wxWindow_SetRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4237 PyObject
* _resultobj
;
4240 int _arg2
= (int ) wxSIZE_AUTO
;
4241 PyObject
* _argo0
= 0;
4243 PyObject
* _obj1
= 0;
4244 char *_kwnames
[] = { "self","rect","sizeFlags", NULL
};
4247 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxWindow_SetRect",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
4250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4258 if (! wxRect_helper(_obj1
, &_arg1
))
4262 wxPy_BEGIN_ALLOW_THREADS
;
4263 wxWindow_SetRect(_arg0
,*_arg1
,_arg2
);
4265 wxPy_END_ALLOW_THREADS
;
4266 if (PyErr_Occurred()) return NULL
;
4267 } Py_INCREF(Py_None
);
4268 _resultobj
= Py_None
;
4272 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4273 static PyObject
*_wrap_wxWindow_SetSizeHints(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4274 PyObject
* _resultobj
;
4276 int _arg1
= (int ) -1;
4277 int _arg2
= (int ) -1;
4278 int _arg3
= (int ) -1;
4279 int _arg4
= (int ) -1;
4280 int _arg5
= (int ) -1;
4281 int _arg6
= (int ) -1;
4282 PyObject
* _argo0
= 0;
4283 char *_kwnames
[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL
};
4286 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iiiiii:wxWindow_SetSizeHints",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
4289 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4290 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4296 wxPy_BEGIN_ALLOW_THREADS
;
4297 wxWindow_SetSizeHints(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
4299 wxPy_END_ALLOW_THREADS
;
4300 if (PyErr_Occurred()) return NULL
;
4301 } Py_INCREF(Py_None
);
4302 _resultobj
= Py_None
;
4306 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4307 static PyObject
*_wrap_wxWindow_SetClientSizeWH(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4308 PyObject
* _resultobj
;
4312 PyObject
* _argo0
= 0;
4313 char *_kwnames
[] = { "self","width","height", NULL
};
4316 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_SetClientSizeWH",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4319 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4320 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4321 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4326 wxPy_BEGIN_ALLOW_THREADS
;
4327 wxWindow_SetClientSizeWH(_arg0
,_arg1
,_arg2
);
4329 wxPy_END_ALLOW_THREADS
;
4330 if (PyErr_Occurred()) return NULL
;
4331 } Py_INCREF(Py_None
);
4332 _resultobj
= Py_None
;
4336 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4337 static PyObject
*_wrap_wxWindow_SetClientSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4338 PyObject
* _resultobj
;
4341 PyObject
* _argo0
= 0;
4343 PyObject
* _obj1
= 0;
4344 char *_kwnames
[] = { "self","size", NULL
};
4347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetClientSize",_kwnames
,&_argo0
,&_obj1
))
4350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4358 if (! wxSize_helper(_obj1
, &_arg1
))
4362 wxPy_BEGIN_ALLOW_THREADS
;
4363 wxWindow_SetClientSize(_arg0
,*_arg1
);
4365 wxPy_END_ALLOW_THREADS
;
4366 if (PyErr_Occurred()) return NULL
;
4367 } Py_INCREF(Py_None
);
4368 _resultobj
= Py_None
;
4372 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4373 static PyObject
*_wrap_wxWindow_SetCursor(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4374 PyObject
* _resultobj
;
4377 PyObject
* _argo0
= 0;
4378 PyObject
* _argo1
= 0;
4379 char *_kwnames
[] = { "self","cursor", NULL
};
4382 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCursor",_kwnames
,&_argo0
,&_argo1
))
4385 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4386 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4387 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4392 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4393 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCursor_p")) {
4394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4399 wxPy_BEGIN_ALLOW_THREADS
;
4400 wxWindow_SetCursor(_arg0
,*_arg1
);
4402 wxPy_END_ALLOW_THREADS
;
4403 if (PyErr_Occurred()) return NULL
;
4404 } Py_INCREF(Py_None
);
4405 _resultobj
= Py_None
;
4409 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4410 static PyObject
*_wrap_wxWindow_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4411 PyObject
* _resultobj
;
4413 wxEvtHandler
* _arg1
;
4414 PyObject
* _argo0
= 0;
4415 PyObject
* _argo1
= 0;
4416 char *_kwnames
[] = { "self","handler", NULL
};
4419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
4422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4429 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4430 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
4431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4436 wxPy_BEGIN_ALLOW_THREADS
;
4437 wxWindow_SetEventHandler(_arg0
,_arg1
);
4439 wxPy_END_ALLOW_THREADS
;
4440 if (PyErr_Occurred()) return NULL
;
4441 } Py_INCREF(Py_None
);
4442 _resultobj
= Py_None
;
4446 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4447 static PyObject
*_wrap_wxWindow_SetExtraStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4448 PyObject
* _resultobj
;
4451 PyObject
* _argo0
= 0;
4452 char *_kwnames
[] = { "self","exStyle", NULL
};
4455 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxWindow_SetExtraStyle",_kwnames
,&_argo0
,&_arg1
))
4458 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4459 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4460 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4465 wxPy_BEGIN_ALLOW_THREADS
;
4466 wxWindow_SetExtraStyle(_arg0
,_arg1
);
4468 wxPy_END_ALLOW_THREADS
;
4469 if (PyErr_Occurred()) return NULL
;
4470 } Py_INCREF(Py_None
);
4471 _resultobj
= Py_None
;
4475 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4476 static PyObject
*_wrap_wxWindow_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4477 PyObject
* _resultobj
;
4480 PyObject
* _argo0
= 0;
4481 PyObject
* _obj1
= 0;
4482 char *_kwnames
[] = { "self","title", NULL
};
4485 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetTitle",_kwnames
,&_argo0
,&_obj1
))
4488 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4489 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4490 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4495 #if PYTHON_API_VERSION >= 1009
4496 char* tmpPtr
; int tmpSize
;
4497 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4498 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4501 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4503 _arg1
= new wxString(tmpPtr
, tmpSize
);
4505 if (!PyString_Check(_obj1
)) {
4506 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4509 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4513 wxPy_BEGIN_ALLOW_THREADS
;
4514 wxWindow_SetTitle(_arg0
,*_arg1
);
4516 wxPy_END_ALLOW_THREADS
;
4517 if (PyErr_Occurred()) return NULL
;
4518 } Py_INCREF(Py_None
);
4519 _resultobj
= Py_None
;
4527 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4528 static PyObject
*_wrap_wxWindow_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4529 PyObject
* _resultobj
;
4533 PyObject
* _argo0
= 0;
4535 char *_kwnames
[] = { "self","show", NULL
};
4538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxWindow_Show",_kwnames
,&_argo0
,&tempbool1
))
4541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4547 _arg1
= (bool ) tempbool1
;
4549 wxPy_BEGIN_ALLOW_THREADS
;
4550 _result
= (bool )wxWindow_Show(_arg0
,_arg1
);
4552 wxPy_END_ALLOW_THREADS
;
4553 if (PyErr_Occurred()) return NULL
;
4554 } _resultobj
= Py_BuildValue("i",_result
);
4558 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4559 static PyObject
*_wrap_wxWindow_TransferDataFromWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4560 PyObject
* _resultobj
;
4563 PyObject
* _argo0
= 0;
4564 char *_kwnames
[] = { "self", NULL
};
4567 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_TransferDataFromWindow",_kwnames
,&_argo0
))
4570 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4571 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4572 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4577 wxPy_BEGIN_ALLOW_THREADS
;
4578 _result
= (bool )wxWindow_TransferDataFromWindow(_arg0
);
4580 wxPy_END_ALLOW_THREADS
;
4581 if (PyErr_Occurred()) return NULL
;
4582 } _resultobj
= Py_BuildValue("i",_result
);
4586 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4587 static PyObject
*_wrap_wxWindow_TransferDataToWindow(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_TransferDataToWindow",_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_TransferDataToWindow. Expected _wxWindow_p.");
4605 wxPy_BEGIN_ALLOW_THREADS
;
4606 _result
= (bool )wxWindow_TransferDataToWindow(_arg0
);
4608 wxPy_END_ALLOW_THREADS
;
4609 if (PyErr_Occurred()) return NULL
;
4610 } _resultobj
= Py_BuildValue("i",_result
);
4614 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4615 static PyObject
*_wrap_wxWindow_Validate(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_Validate",_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_Validate. Expected _wxWindow_p.");
4633 wxPy_BEGIN_ALLOW_THREADS
;
4634 _result
= (bool )wxWindow_Validate(_arg0
);
4636 wxPy_END_ALLOW_THREADS
;
4637 if (PyErr_Occurred()) return NULL
;
4638 } _resultobj
= Py_BuildValue("i",_result
);
4642 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4643 static PyObject
*_wrap_wxWindow_WarpPointer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4644 PyObject
* _resultobj
;
4648 PyObject
* _argo0
= 0;
4649 char *_kwnames
[] = { "self","x","y", NULL
};
4652 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxWindow_WarpPointer",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
4655 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4656 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4657 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4662 wxPy_BEGIN_ALLOW_THREADS
;
4663 wxWindow_WarpPointer(_arg0
,_arg1
,_arg2
);
4665 wxPy_END_ALLOW_THREADS
;
4666 if (PyErr_Occurred()) return NULL
;
4667 } Py_INCREF(Py_None
);
4668 _resultobj
= Py_None
;
4672 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4673 static PyObject
*_wrap_wxWindow_ConvertDialogPointToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4674 PyObject
* _resultobj
;
4678 PyObject
* _argo0
= 0;
4680 PyObject
* _obj1
= 0;
4681 char *_kwnames
[] = { "self","pt", NULL
};
4685 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames
,&_argo0
,&_obj1
))
4688 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4689 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4690 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4696 if (! wxPoint_helper(_obj1
, &_arg1
))
4700 wxPy_BEGIN_ALLOW_THREADS
;
4701 _result
= new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0
,*_arg1
));
4703 wxPy_END_ALLOW_THREADS
;
4704 if (PyErr_Occurred()) return NULL
;
4705 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4706 _resultobj
= Py_BuildValue("s",_ptemp
);
4710 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4711 static PyObject
*_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4712 PyObject
* _resultobj
;
4716 PyObject
* _argo0
= 0;
4718 PyObject
* _obj1
= 0;
4719 char *_kwnames
[] = { "self","sz", NULL
};
4723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames
,&_argo0
,&_obj1
))
4726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4734 if (! wxSize_helper(_obj1
, &_arg1
))
4738 wxPy_BEGIN_ALLOW_THREADS
;
4739 _result
= new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0
,*_arg1
));
4741 wxPy_END_ALLOW_THREADS
;
4742 if (PyErr_Occurred()) return NULL
;
4743 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4744 _resultobj
= Py_BuildValue("s",_ptemp
);
4748 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4749 static PyObject
*_wrap_wxWindow_ConvertPixelPointToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4750 PyObject
* _resultobj
;
4754 PyObject
* _argo0
= 0;
4756 PyObject
* _obj1
= 0;
4757 char *_kwnames
[] = { "self","pt", NULL
};
4761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames
,&_argo0
,&_obj1
))
4764 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4765 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4772 if (! wxPoint_helper(_obj1
, &_arg1
))
4776 wxPy_BEGIN_ALLOW_THREADS
;
4777 _result
= new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0
,*_arg1
));
4779 wxPy_END_ALLOW_THREADS
;
4780 if (PyErr_Occurred()) return NULL
;
4781 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
4782 _resultobj
= Py_BuildValue("s",_ptemp
);
4786 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4787 static PyObject
*_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4788 PyObject
* _resultobj
;
4792 PyObject
* _argo0
= 0;
4794 PyObject
* _obj1
= 0;
4795 char *_kwnames
[] = { "self","sz", NULL
};
4799 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames
,&_argo0
,&_obj1
))
4802 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4803 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4810 if (! wxSize_helper(_obj1
, &_arg1
))
4814 wxPy_BEGIN_ALLOW_THREADS
;
4815 _result
= new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0
,*_arg1
));
4817 wxPy_END_ALLOW_THREADS
;
4818 if (PyErr_Occurred()) return NULL
;
4819 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
4820 _resultobj
= Py_BuildValue("s",_ptemp
);
4824 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4825 static PyObject
*_wrap_wxWindow_SetToolTipString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4826 PyObject
* _resultobj
;
4829 PyObject
* _argo0
= 0;
4830 PyObject
* _obj1
= 0;
4831 char *_kwnames
[] = { "self","tip", NULL
};
4834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTipString",_kwnames
,&_argo0
,&_obj1
))
4837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4844 #if PYTHON_API_VERSION >= 1009
4845 char* tmpPtr
; int tmpSize
;
4846 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
4847 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4850 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
4852 _arg1
= new wxString(tmpPtr
, tmpSize
);
4854 if (!PyString_Check(_obj1
)) {
4855 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
4858 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
4862 wxPy_BEGIN_ALLOW_THREADS
;
4863 wxWindow_SetToolTipString(_arg0
,*_arg1
);
4865 wxPy_END_ALLOW_THREADS
;
4866 if (PyErr_Occurred()) return NULL
;
4867 } Py_INCREF(Py_None
);
4868 _resultobj
= Py_None
;
4876 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4877 static PyObject
*_wrap_wxWindow_SetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4878 PyObject
* _resultobj
;
4881 PyObject
* _argo0
= 0;
4882 PyObject
* _argo1
= 0;
4883 char *_kwnames
[] = { "self","tooltip", NULL
};
4886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetToolTip",_kwnames
,&_argo0
,&_argo1
))
4889 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4890 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4891 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4896 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4897 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolTip_p")) {
4898 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4903 wxPy_BEGIN_ALLOW_THREADS
;
4904 wxWindow_SetToolTip(_arg0
,_arg1
);
4906 wxPy_END_ALLOW_THREADS
;
4907 if (PyErr_Occurred()) return NULL
;
4908 } Py_INCREF(Py_None
);
4909 _resultobj
= Py_None
;
4913 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4914 static PyObject
*_wrap_wxWindow_GetToolTip(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4915 PyObject
* _resultobj
;
4916 wxToolTip
* _result
;
4918 PyObject
* _argo0
= 0;
4919 char *_kwnames
[] = { "self", NULL
};
4922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetToolTip",_kwnames
,&_argo0
))
4925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4932 wxPy_BEGIN_ALLOW_THREADS
;
4933 _result
= (wxToolTip
*)wxWindow_GetToolTip(_arg0
);
4935 wxPy_END_ALLOW_THREADS
;
4936 if (PyErr_Occurred()) return NULL
;
4937 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4941 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4942 static PyObject
*_wrap_wxWindow_SetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4943 PyObject
* _resultobj
;
4946 PyObject
* _argo0
= 0;
4947 PyObject
* _argo1
= 0;
4948 char *_kwnames
[] = { "self","sizer", NULL
};
4951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetSizer",_kwnames
,&_argo0
,&_argo1
))
4954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4961 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4962 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxSizer_p")) {
4963 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4968 wxPy_BEGIN_ALLOW_THREADS
;
4969 wxWindow_SetSizer(_arg0
,_arg1
);
4971 wxPy_END_ALLOW_THREADS
;
4972 if (PyErr_Occurred()) return NULL
;
4973 } Py_INCREF(Py_None
);
4974 _resultobj
= Py_None
;
4978 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
4979 static PyObject
*_wrap_wxWindow_GetSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4980 PyObject
* _resultobj
;
4983 PyObject
* _argo0
= 0;
4984 char *_kwnames
[] = { "self", NULL
};
4987 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetSizer",_kwnames
,&_argo0
))
4990 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4991 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
4992 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
4997 wxPy_BEGIN_ALLOW_THREADS
;
4998 _result
= (wxSizer
*)wxWindow_GetSizer(_arg0
);
5000 wxPy_END_ALLOW_THREADS
;
5001 if (PyErr_Occurred()) return NULL
;
5002 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5006 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5007 static PyObject
*_wrap_wxWindow_GetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5008 PyObject
* _resultobj
;
5009 wxValidator
* _result
;
5011 PyObject
* _argo0
= 0;
5012 char *_kwnames
[] = { "self", NULL
};
5015 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetValidator",_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_GetValidator. Expected _wxWindow_p.");
5025 wxPy_BEGIN_ALLOW_THREADS
;
5026 _result
= (wxValidator
*)wxWindow_GetValidator(_arg0
);
5028 wxPy_END_ALLOW_THREADS
;
5029 if (PyErr_Occurred()) return NULL
;
5030 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5034 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5035 static PyObject
*_wrap_wxWindow_SetValidator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5036 PyObject
* _resultobj
;
5038 wxValidator
* _arg1
;
5039 PyObject
* _argo0
= 0;
5040 PyObject
* _argo1
= 0;
5041 char *_kwnames
[] = { "self","validator", NULL
};
5044 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetValidator",_kwnames
,&_argo0
,&_argo1
))
5047 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5048 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5049 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5054 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5055 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxValidator_p")) {
5056 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5061 wxPy_BEGIN_ALLOW_THREADS
;
5062 wxWindow_SetValidator(_arg0
,*_arg1
);
5064 wxPy_END_ALLOW_THREADS
;
5065 if (PyErr_Occurred()) return NULL
;
5066 } Py_INCREF(Py_None
);
5067 _resultobj
= Py_None
;
5071 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5072 static PyObject
*_wrap_wxWindow_SetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5073 PyObject
* _resultobj
;
5075 wxDropTarget
* _arg1
;
5076 PyObject
* _argo0
= 0;
5077 PyObject
* _argo1
= 0;
5078 char *_kwnames
[] = { "self","target", NULL
};
5081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetDropTarget",_kwnames
,&_argo0
,&_argo1
))
5084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5091 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5092 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDropTarget_p")) {
5093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5098 wxPy_BEGIN_ALLOW_THREADS
;
5099 wxWindow_SetDropTarget(_arg0
,_arg1
);
5101 wxPy_END_ALLOW_THREADS
;
5102 if (PyErr_Occurred()) return NULL
;
5103 } Py_INCREF(Py_None
);
5104 _resultobj
= Py_None
;
5108 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5109 static PyObject
*_wrap_wxWindow_GetDropTarget(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5110 PyObject
* _resultobj
;
5111 wxDropTarget
* _result
;
5113 PyObject
* _argo0
= 0;
5114 char *_kwnames
[] = { "self", NULL
};
5118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetDropTarget",_kwnames
,&_argo0
))
5121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5128 wxPy_BEGIN_ALLOW_THREADS
;
5129 _result
= (wxDropTarget
*)wxWindow_GetDropTarget(_arg0
);
5131 wxPy_END_ALLOW_THREADS
;
5132 if (PyErr_Occurred()) return NULL
;
5134 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDropTarget_p");
5135 _resultobj
= Py_BuildValue("s",_ptemp
);
5138 _resultobj
= Py_None
;
5143 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5144 static PyObject
*_wrap_wxWindow_GetBestSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5145 PyObject
* _resultobj
;
5148 PyObject
* _argo0
= 0;
5149 char *_kwnames
[] = { "self", NULL
};
5153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetBestSize",_kwnames
,&_argo0
))
5156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5163 wxPy_BEGIN_ALLOW_THREADS
;
5164 _result
= new wxSize (wxWindow_GetBestSize(_arg0
));
5166 wxPy_END_ALLOW_THREADS
;
5167 if (PyErr_Occurred()) return NULL
;
5168 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
5169 _resultobj
= Py_BuildValue("s",_ptemp
);
5173 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5174 static PyObject
*_wrap_wxWindow_SetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5175 PyObject
* _resultobj
;
5178 PyObject
* _argo0
= 0;
5179 PyObject
* _argo1
= 0;
5180 char *_kwnames
[] = { "self","caret", NULL
};
5183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxWindow_SetCaret",_kwnames
,&_argo0
,&_argo1
))
5186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5193 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5194 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxCaret_p")) {
5195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5200 wxPy_BEGIN_ALLOW_THREADS
;
5201 wxWindow_SetCaret(_arg0
,_arg1
);
5203 wxPy_END_ALLOW_THREADS
;
5204 if (PyErr_Occurred()) return NULL
;
5205 } Py_INCREF(Py_None
);
5206 _resultobj
= Py_None
;
5210 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5211 static PyObject
*_wrap_wxWindow_GetCaret(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5212 PyObject
* _resultobj
;
5215 PyObject
* _argo0
= 0;
5216 char *_kwnames
[] = { "self", NULL
};
5220 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxWindow_GetCaret",_kwnames
,&_argo0
))
5223 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5224 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5225 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5230 wxPy_BEGIN_ALLOW_THREADS
;
5231 _result
= (wxCaret
*)wxWindow_GetCaret(_arg0
);
5233 wxPy_END_ALLOW_THREADS
;
5234 if (PyErr_Occurred()) return NULL
;
5236 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxCaret_p");
5237 _resultobj
= Py_BuildValue("s",_ptemp
);
5240 _resultobj
= Py_None
;
5245 static void *SwigwxPanelTowxWindow(void *ptr
) {
5248 src
= (wxPanel
*) ptr
;
5249 dest
= (wxWindow
*) src
;
5250 return (void *) dest
;
5253 static void *SwigwxPanelTowxEvtHandler(void *ptr
) {
5256 src
= (wxPanel
*) ptr
;
5257 dest
= (wxEvtHandler
*) src
;
5258 return (void *) dest
;
5261 static void *SwigwxPanelTowxObject(void *ptr
) {
5264 src
= (wxPanel
*) ptr
;
5265 dest
= (wxObject
*) src
;
5266 return (void *) dest
;
5269 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5270 static PyObject
*_wrap_new_wxPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5271 PyObject
* _resultobj
;
5275 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
5276 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
5277 long _arg4
= (long ) wxTAB_TRAVERSAL
;
5278 char * _arg5
= (char *) "panel";
5279 PyObject
* _argo0
= 0;
5281 PyObject
* _obj2
= 0;
5283 PyObject
* _obj3
= 0;
5284 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
5288 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxPanel",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
5291 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5292 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5293 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5300 if (! wxPoint_helper(_obj2
, &_arg2
))
5306 if (! wxSize_helper(_obj3
, &_arg3
))
5310 wxPy_BEGIN_ALLOW_THREADS
;
5311 _result
= (wxPanel
*)new_wxPanel(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
5313 wxPy_END_ALLOW_THREADS
;
5314 if (PyErr_Occurred()) return NULL
;
5316 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
5317 _resultobj
= Py_BuildValue("s",_ptemp
);
5320 _resultobj
= Py_None
;
5325 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5326 static PyObject
*_wrap_wxPanel_InitDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5327 PyObject
* _resultobj
;
5329 PyObject
* _argo0
= 0;
5330 char *_kwnames
[] = { "self", NULL
};
5333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_InitDialog",_kwnames
,&_argo0
))
5336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5343 wxPy_BEGIN_ALLOW_THREADS
;
5344 wxPanel_InitDialog(_arg0
);
5346 wxPy_END_ALLOW_THREADS
;
5347 if (PyErr_Occurred()) return NULL
;
5348 } Py_INCREF(Py_None
);
5349 _resultobj
= Py_None
;
5353 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5354 static PyObject
*_wrap_wxPanel_GetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5355 PyObject
* _resultobj
;
5358 PyObject
* _argo0
= 0;
5359 char *_kwnames
[] = { "self", NULL
};
5362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPanel_GetDefaultItem",_kwnames
,&_argo0
))
5365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5372 wxPy_BEGIN_ALLOW_THREADS
;
5373 _result
= (wxButton
*)wxPanel_GetDefaultItem(_arg0
);
5375 wxPy_END_ALLOW_THREADS
;
5376 if (PyErr_Occurred()) return NULL
;
5377 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5381 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5382 static PyObject
*_wrap_wxPanel_SetDefaultItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5383 PyObject
* _resultobj
;
5386 PyObject
* _argo0
= 0;
5387 PyObject
* _argo1
= 0;
5388 char *_kwnames
[] = { "self","btn", NULL
};
5391 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPanel_SetDefaultItem",_kwnames
,&_argo0
,&_argo1
))
5394 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5395 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPanel_p")) {
5396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5401 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5402 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxButton_p")) {
5403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5408 wxPy_BEGIN_ALLOW_THREADS
;
5409 wxPanel_SetDefaultItem(_arg0
,_arg1
);
5411 wxPy_END_ALLOW_THREADS
;
5412 if (PyErr_Occurred()) return NULL
;
5413 } Py_INCREF(Py_None
);
5414 _resultobj
= Py_None
;
5418 static void *SwigwxDialogTowxPanel(void *ptr
) {
5421 src
= (wxDialog
*) ptr
;
5422 dest
= (wxPanel
*) src
;
5423 return (void *) dest
;
5426 static void *SwigwxDialogTowxWindow(void *ptr
) {
5429 src
= (wxDialog
*) ptr
;
5430 dest
= (wxWindow
*) src
;
5431 return (void *) dest
;
5434 static void *SwigwxDialogTowxEvtHandler(void *ptr
) {
5437 src
= (wxDialog
*) ptr
;
5438 dest
= (wxEvtHandler
*) src
;
5439 return (void *) dest
;
5442 static void *SwigwxDialogTowxObject(void *ptr
) {
5445 src
= (wxDialog
*) ptr
;
5446 dest
= (wxObject
*) src
;
5447 return (void *) dest
;
5450 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5451 static PyObject
*_wrap_new_wxDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5452 PyObject
* _resultobj
;
5457 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5458 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5459 long _arg5
= (long ) wxDEFAULT_DIALOG_STYLE
;
5460 char * _arg6
= (char *) "dialogBox";
5461 PyObject
* _argo0
= 0;
5462 PyObject
* _obj2
= 0;
5464 PyObject
* _obj3
= 0;
5466 PyObject
* _obj4
= 0;
5467 char *_kwnames
[] = { "parent","id","title","pos","size","style","name", NULL
};
5471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOls:new_wxDialog",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
5476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
5481 #if PYTHON_API_VERSION >= 1009
5482 char* tmpPtr
; int tmpSize
;
5483 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
5484 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5487 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
5489 _arg2
= new wxString(tmpPtr
, tmpSize
);
5491 if (!PyString_Check(_obj2
)) {
5492 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5495 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
5501 if (! wxPoint_helper(_obj3
, &_arg3
))
5507 if (! wxSize_helper(_obj4
, &_arg4
))
5511 wxPy_BEGIN_ALLOW_THREADS
;
5512 _result
= (wxDialog
*)new_wxDialog(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5514 wxPy_END_ALLOW_THREADS
;
5515 if (PyErr_Occurred()) return NULL
;
5517 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
5518 _resultobj
= Py_BuildValue("s",_ptemp
);
5521 _resultobj
= Py_None
;
5530 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
5531 static PyObject
*_wrap_wxDialog_Centre(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5532 PyObject
* _resultobj
;
5534 int _arg1
= (int ) wxBOTH
;
5535 PyObject
* _argo0
= 0;
5536 char *_kwnames
[] = { "self","direction", NULL
};
5539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxDialog_Centre",_kwnames
,&_argo0
,&_arg1
))
5542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
5549 wxPy_BEGIN_ALLOW_THREADS
;
5550 wxDialog_Centre(_arg0
,_arg1
);
5552 wxPy_END_ALLOW_THREADS
;
5553 if (PyErr_Occurred()) return NULL
;
5554 } Py_INCREF(Py_None
);
5555 _resultobj
= Py_None
;
5559 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
5560 static PyObject
*_wrap_wxDialog_EndModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5561 PyObject
* _resultobj
;
5564 PyObject
* _argo0
= 0;
5565 char *_kwnames
[] = { "self","retCode", NULL
};
5568 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_EndModal",_kwnames
,&_argo0
,&_arg1
))
5571 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5572 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5573 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
5578 wxPy_BEGIN_ALLOW_THREADS
;
5579 wxDialog_EndModal(_arg0
,_arg1
);
5581 wxPy_END_ALLOW_THREADS
;
5582 if (PyErr_Occurred()) return NULL
;
5583 } Py_INCREF(Py_None
);
5584 _resultobj
= Py_None
;
5588 #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle())
5589 static PyObject
*_wrap_wxDialog_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5590 PyObject
* _resultobj
;
5593 PyObject
* _argo0
= 0;
5594 char *_kwnames
[] = { "self", NULL
};
5597 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_GetTitle",_kwnames
,&_argo0
))
5600 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5601 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5602 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p.");
5607 wxPy_BEGIN_ALLOW_THREADS
;
5608 _result
= new wxString (wxDialog_GetTitle(_arg0
));
5610 wxPy_END_ALLOW_THREADS
;
5611 if (PyErr_Occurred()) return NULL
;
5613 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
5621 #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
5622 static PyObject
*_wrap_wxDialog_Iconize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5623 PyObject
* _resultobj
;
5626 PyObject
* _argo0
= 0;
5628 char *_kwnames
[] = { "self","iconize", NULL
};
5631 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_Iconize",_kwnames
,&_argo0
,&tempbool1
))
5634 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5635 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5636 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p.");
5640 _arg1
= (bool ) tempbool1
;
5642 wxPy_BEGIN_ALLOW_THREADS
;
5643 wxDialog_Iconize(_arg0
,_arg1
);
5645 wxPy_END_ALLOW_THREADS
;
5646 if (PyErr_Occurred()) return NULL
;
5647 } Py_INCREF(Py_None
);
5648 _resultobj
= Py_None
;
5652 #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized())
5653 static PyObject
*_wrap_wxDialog_IsIconized(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5654 PyObject
* _resultobj
;
5657 PyObject
* _argo0
= 0;
5658 char *_kwnames
[] = { "self", NULL
};
5661 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_IsIconized",_kwnames
,&_argo0
))
5664 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5665 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5666 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p.");
5671 wxPy_BEGIN_ALLOW_THREADS
;
5672 _result
= (bool )wxDialog_IsIconized(_arg0
);
5674 wxPy_END_ALLOW_THREADS
;
5675 if (PyErr_Occurred()) return NULL
;
5676 } _resultobj
= Py_BuildValue("i",_result
);
5680 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
5681 static PyObject
*_wrap_wxDialog_SetModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5682 PyObject
* _resultobj
;
5685 PyObject
* _argo0
= 0;
5687 char *_kwnames
[] = { "self","flag", NULL
};
5690 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_SetModal",_kwnames
,&_argo0
,&tempbool1
))
5693 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5694 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
5699 _arg1
= (bool ) tempbool1
;
5701 wxPy_BEGIN_ALLOW_THREADS
;
5702 wxDialog_SetModal(_arg0
,_arg1
);
5704 wxPy_END_ALLOW_THREADS
;
5705 if (PyErr_Occurred()) return NULL
;
5706 } Py_INCREF(Py_None
);
5707 _resultobj
= Py_None
;
5711 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
5712 static PyObject
*_wrap_wxDialog_IsModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5713 PyObject
* _resultobj
;
5716 PyObject
* _argo0
= 0;
5717 char *_kwnames
[] = { "self", NULL
};
5720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_IsModal",_kwnames
,&_argo0
))
5723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
5730 wxPy_BEGIN_ALLOW_THREADS
;
5731 _result
= (bool )wxDialog_IsModal(_arg0
);
5733 wxPy_END_ALLOW_THREADS
;
5734 if (PyErr_Occurred()) return NULL
;
5735 } _resultobj
= Py_BuildValue("i",_result
);
5739 #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
5740 static PyObject
*_wrap_wxDialog_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5741 PyObject
* _resultobj
;
5744 PyObject
* _argo0
= 0;
5745 PyObject
* _obj1
= 0;
5746 char *_kwnames
[] = { "self","title", NULL
};
5749 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDialog_SetTitle",_kwnames
,&_argo0
,&_obj1
))
5752 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5753 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p.");
5759 #if PYTHON_API_VERSION >= 1009
5760 char* tmpPtr
; int tmpSize
;
5761 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5762 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5765 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5767 _arg1
= new wxString(tmpPtr
, tmpSize
);
5769 if (!PyString_Check(_obj1
)) {
5770 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5773 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5777 wxPy_BEGIN_ALLOW_THREADS
;
5778 wxDialog_SetTitle(_arg0
,*_arg1
);
5780 wxPy_END_ALLOW_THREADS
;
5781 if (PyErr_Occurred()) return NULL
;
5782 } Py_INCREF(Py_None
);
5783 _resultobj
= Py_None
;
5791 #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
5792 static PyObject
*_wrap_wxDialog_Show(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5793 PyObject
* _resultobj
;
5797 PyObject
* _argo0
= 0;
5799 char *_kwnames
[] = { "self","show", NULL
};
5802 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_Show",_kwnames
,&_argo0
,&tempbool1
))
5805 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5806 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5807 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p.");
5811 _arg1
= (bool ) tempbool1
;
5813 wxPy_BEGIN_ALLOW_THREADS
;
5814 _result
= (bool )wxDialog_Show(_arg0
,_arg1
);
5816 wxPy_END_ALLOW_THREADS
;
5817 if (PyErr_Occurred()) return NULL
;
5818 } _resultobj
= Py_BuildValue("i",_result
);
5822 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
5823 static PyObject
*_wrap_wxDialog_ShowModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5824 PyObject
* _resultobj
;
5827 PyObject
* _argo0
= 0;
5828 char *_kwnames
[] = { "self", NULL
};
5831 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxDialog_ShowModal",_kwnames
,&_argo0
))
5834 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5835 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5836 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
5841 wxPy_BEGIN_ALLOW_THREADS
;
5842 _result
= (int )wxDialog_ShowModal(_arg0
);
5844 wxPy_END_ALLOW_THREADS
;
5845 if (PyErr_Occurred()) return NULL
;
5846 } _resultobj
= Py_BuildValue("i",_result
);
5850 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
5851 static PyObject
*_wrap_wxDialog_GetReturnCode(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_GetReturnCode",_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_GetReturnCode. Expected _wxDialog_p.");
5869 wxPy_BEGIN_ALLOW_THREADS
;
5870 _result
= (int )wxDialog_GetReturnCode(_arg0
);
5872 wxPy_END_ALLOW_THREADS
;
5873 if (PyErr_Occurred()) return NULL
;
5874 } _resultobj
= Py_BuildValue("i",_result
);
5878 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
5879 static PyObject
*_wrap_wxDialog_SetReturnCode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5880 PyObject
* _resultobj
;
5883 PyObject
* _argo0
= 0;
5884 char *_kwnames
[] = { "self","retCode", NULL
};
5887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxDialog_SetReturnCode",_kwnames
,&_argo0
,&_arg1
))
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_SetReturnCode. Expected _wxDialog_p.");
5897 wxPy_BEGIN_ALLOW_THREADS
;
5898 wxDialog_SetReturnCode(_arg0
,_arg1
);
5900 wxPy_END_ALLOW_THREADS
;
5901 if (PyErr_Occurred()) return NULL
;
5902 } Py_INCREF(Py_None
);
5903 _resultobj
= Py_None
;
5907 #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0))
5908 static PyObject
*_wrap_wxDialog_CreateTextSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5909 PyObject
* _resultobj
;
5913 PyObject
* _argo0
= 0;
5914 PyObject
* _obj1
= 0;
5915 char *_kwnames
[] = { "self","message", NULL
};
5918 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxDialog_CreateTextSizer",_kwnames
,&_argo0
,&_obj1
))
5921 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5922 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5923 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p.");
5928 #if PYTHON_API_VERSION >= 1009
5929 char* tmpPtr
; int tmpSize
;
5930 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
5931 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5934 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
5936 _arg1
= new wxString(tmpPtr
, tmpSize
);
5938 if (!PyString_Check(_obj1
)) {
5939 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5942 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
5946 wxPy_BEGIN_ALLOW_THREADS
;
5947 _result
= (wxSizer
*)wxDialog_CreateTextSizer(_arg0
,*_arg1
);
5949 wxPy_END_ALLOW_THREADS
;
5950 if (PyErr_Occurred()) return NULL
;
5951 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5959 #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0))
5960 static PyObject
*_wrap_wxDialog_CreateButtonSizer(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5961 PyObject
* _resultobj
;
5965 PyObject
* _argo0
= 0;
5966 char *_kwnames
[] = { "self","flags", NULL
};
5969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxDialog_CreateButtonSizer",_kwnames
,&_argo0
,&_arg1
))
5972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxDialog_p")) {
5974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p.");
5979 wxPy_BEGIN_ALLOW_THREADS
;
5980 _result
= (wxSizer
*)wxDialog_CreateButtonSizer(_arg0
,_arg1
);
5982 wxPy_END_ALLOW_THREADS
;
5983 if (PyErr_Occurred()) return NULL
;
5984 }{ _resultobj
= wxPyMake_wxObject(_result
); }
5988 static void *SwigwxScrolledWindowTowxPanel(void *ptr
) {
5989 wxScrolledWindow
*src
;
5991 src
= (wxScrolledWindow
*) ptr
;
5992 dest
= (wxPanel
*) src
;
5993 return (void *) dest
;
5996 static void *SwigwxScrolledWindowTowxWindow(void *ptr
) {
5997 wxScrolledWindow
*src
;
5999 src
= (wxScrolledWindow
*) ptr
;
6000 dest
= (wxWindow
*) src
;
6001 return (void *) dest
;
6004 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr
) {
6005 wxScrolledWindow
*src
;
6007 src
= (wxScrolledWindow
*) ptr
;
6008 dest
= (wxEvtHandler
*) src
;
6009 return (void *) dest
;
6012 static void *SwigwxScrolledWindowTowxObject(void *ptr
) {
6013 wxScrolledWindow
*src
;
6015 src
= (wxScrolledWindow
*) ptr
;
6016 dest
= (wxObject
*) src
;
6017 return (void *) dest
;
6020 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6021 static PyObject
*_wrap_new_wxScrolledWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6022 PyObject
* _resultobj
;
6023 wxScrolledWindow
* _result
;
6025 wxWindowID _arg1
= (wxWindowID
) -1;
6026 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
6027 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
6028 long _arg4
= (long ) wxHSCROLL
|wxVSCROLL
;
6029 char * _arg5
= (char *) "scrolledWindow";
6030 PyObject
* _argo0
= 0;
6032 PyObject
* _obj2
= 0;
6034 PyObject
* _obj3
= 0;
6035 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
6039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|iOOls:new_wxScrolledWindow",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
6042 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6043 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
6044 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6051 if (! wxPoint_helper(_obj2
, &_arg2
))
6057 if (! wxSize_helper(_obj3
, &_arg3
))
6061 wxPy_BEGIN_ALLOW_THREADS
;
6062 _result
= (wxScrolledWindow
*)new_wxScrolledWindow(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
6064 wxPy_END_ALLOW_THREADS
;
6065 if (PyErr_Occurred()) return NULL
;
6067 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxScrolledWindow_p");
6068 _resultobj
= Py_BuildValue("s",_ptemp
);
6071 _resultobj
= Py_None
;
6076 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6077 static PyObject
*_wrap_wxScrolledWindow_EnableScrolling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6078 PyObject
* _resultobj
;
6079 wxScrolledWindow
* _arg0
;
6082 PyObject
* _argo0
= 0;
6085 char *_kwnames
[] = { "self","xScrolling","yScrolling", NULL
};
6088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_EnableScrolling",_kwnames
,&_argo0
,&tempbool1
,&tempbool2
))
6091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6097 _arg1
= (bool ) tempbool1
;
6098 _arg2
= (bool ) tempbool2
;
6100 wxPy_BEGIN_ALLOW_THREADS
;
6101 wxScrolledWindow_EnableScrolling(_arg0
,_arg1
,_arg2
);
6103 wxPy_END_ALLOW_THREADS
;
6104 if (PyErr_Occurred()) return NULL
;
6105 } Py_INCREF(Py_None
);
6106 _resultobj
= Py_None
;
6110 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6111 static PyObject
*_wrap_wxScrolledWindow_GetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6112 PyObject
* _resultobj
;
6114 wxScrolledWindow
* _arg0
;
6116 PyObject
* _argo0
= 0;
6117 char *_kwnames
[] = { "self","orient", NULL
};
6120 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames
,&_argo0
,&_arg1
))
6123 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6124 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6125 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6130 wxPy_BEGIN_ALLOW_THREADS
;
6131 _result
= (int )wxScrolledWindow_GetScrollPageSize(_arg0
,_arg1
);
6133 wxPy_END_ALLOW_THREADS
;
6134 if (PyErr_Occurred()) return NULL
;
6135 } _resultobj
= Py_BuildValue("i",_result
);
6139 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6140 static PyObject
*_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6141 PyObject
* _resultobj
;
6142 wxScrolledWindow
* _arg0
;
6147 PyObject
* _argo0
= 0;
6148 char *_kwnames
[] = { "self", NULL
};
6157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames
,&_argo0
))
6160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6167 wxPy_BEGIN_ALLOW_THREADS
;
6168 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0
,_arg1
,_arg2
);
6170 wxPy_END_ALLOW_THREADS
;
6171 if (PyErr_Occurred()) return NULL
;
6172 } Py_INCREF(Py_None
);
6173 _resultobj
= Py_None
;
6176 o
= PyInt_FromLong((long) (*_arg1
));
6177 _resultobj
= t_output_helper(_resultobj
, o
);
6181 o
= PyInt_FromLong((long) (*_arg2
));
6182 _resultobj
= t_output_helper(_resultobj
, o
);
6187 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6188 static PyObject
*_wrap_wxScrolledWindow_GetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6189 PyObject
* _resultobj
;
6191 wxScrolledWindow
* _arg0
;
6192 PyObject
* _argo0
= 0;
6193 char *_kwnames
[] = { "self", NULL
};
6196 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetTargetWindow",_kwnames
,&_argo0
))
6199 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6200 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6201 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6206 wxPy_BEGIN_ALLOW_THREADS
;
6207 _result
= (wxWindow
*)wxScrolledWindow_GetTargetWindow(_arg0
);
6209 wxPy_END_ALLOW_THREADS
;
6210 if (PyErr_Occurred()) return NULL
;
6211 }{ _resultobj
= wxPyMake_wxObject(_result
); }
6215 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6216 static PyObject
*_wrap_wxScrolledWindow_GetVirtualSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6217 PyObject
* _resultobj
;
6218 wxScrolledWindow
* _arg0
;
6223 PyObject
* _argo0
= 0;
6224 char *_kwnames
[] = { "self", NULL
};
6233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetVirtualSize",_kwnames
,&_argo0
))
6236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6243 wxPy_BEGIN_ALLOW_THREADS
;
6244 wxScrolledWindow_GetVirtualSize(_arg0
,_arg1
,_arg2
);
6246 wxPy_END_ALLOW_THREADS
;
6247 if (PyErr_Occurred()) return NULL
;
6248 } Py_INCREF(Py_None
);
6249 _resultobj
= Py_None
;
6252 o
= PyInt_FromLong((long) (*_arg1
));
6253 _resultobj
= t_output_helper(_resultobj
, o
);
6257 o
= PyInt_FromLong((long) (*_arg2
));
6258 _resultobj
= t_output_helper(_resultobj
, o
);
6263 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6264 static PyObject
*_wrap_wxScrolledWindow_IsRetained(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6265 PyObject
* _resultobj
;
6267 wxScrolledWindow
* _arg0
;
6268 PyObject
* _argo0
= 0;
6269 char *_kwnames
[] = { "self", NULL
};
6272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_IsRetained",_kwnames
,&_argo0
))
6275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6282 wxPy_BEGIN_ALLOW_THREADS
;
6283 _result
= (bool )wxScrolledWindow_IsRetained(_arg0
);
6285 wxPy_END_ALLOW_THREADS
;
6286 if (PyErr_Occurred()) return NULL
;
6287 } _resultobj
= Py_BuildValue("i",_result
);
6291 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6292 static PyObject
*_wrap_wxScrolledWindow_PrepareDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6293 PyObject
* _resultobj
;
6294 wxScrolledWindow
* _arg0
;
6296 PyObject
* _argo0
= 0;
6297 PyObject
* _argo1
= 0;
6298 char *_kwnames
[] = { "self","dc", NULL
};
6301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_PrepareDC",_kwnames
,&_argo0
,&_argo1
))
6304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6311 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6312 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDC_p")) {
6313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6318 wxPy_BEGIN_ALLOW_THREADS
;
6319 wxScrolledWindow_PrepareDC(_arg0
,*_arg1
);
6321 wxPy_END_ALLOW_THREADS
;
6322 if (PyErr_Occurred()) return NULL
;
6323 } Py_INCREF(Py_None
);
6324 _resultobj
= Py_None
;
6328 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6329 static PyObject
*_wrap_wxScrolledWindow_Scroll(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6330 PyObject
* _resultobj
;
6331 wxScrolledWindow
* _arg0
;
6334 PyObject
* _argo0
= 0;
6335 char *_kwnames
[] = { "self","x","y", NULL
};
6338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_Scroll",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6348 wxPy_BEGIN_ALLOW_THREADS
;
6349 wxScrolledWindow_Scroll(_arg0
,_arg1
,_arg2
);
6351 wxPy_END_ALLOW_THREADS
;
6352 if (PyErr_Occurred()) return NULL
;
6353 } Py_INCREF(Py_None
);
6354 _resultobj
= Py_None
;
6358 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6359 static PyObject
*_wrap_wxScrolledWindow_SetScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6360 PyObject
* _resultobj
;
6361 wxScrolledWindow
* _arg0
;
6366 int _arg5
= (int ) 0;
6367 int _arg6
= (int ) 0;
6368 int _arg7
= (int ) FALSE
;
6369 PyObject
* _argo0
= 0;
6370 char *_kwnames
[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL
};
6373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
,&_arg7
))
6376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6383 wxPy_BEGIN_ALLOW_THREADS
;
6384 wxScrolledWindow_SetScrollbars(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
,_arg7
);
6386 wxPy_END_ALLOW_THREADS
;
6387 if (PyErr_Occurred()) return NULL
;
6388 } Py_INCREF(Py_None
);
6389 _resultobj
= Py_None
;
6393 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6394 static PyObject
*_wrap_wxScrolledWindow_SetScrollPageSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6395 PyObject
* _resultobj
;
6396 wxScrolledWindow
* _arg0
;
6399 PyObject
* _argo0
= 0;
6400 char *_kwnames
[] = { "self","orient","pageSize", NULL
};
6403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6413 wxPy_BEGIN_ALLOW_THREADS
;
6414 wxScrolledWindow_SetScrollPageSize(_arg0
,_arg1
,_arg2
);
6416 wxPy_END_ALLOW_THREADS
;
6417 if (PyErr_Occurred()) return NULL
;
6418 } Py_INCREF(Py_None
);
6419 _resultobj
= Py_None
;
6423 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6424 static PyObject
*_wrap_wxScrolledWindow_SetTargetWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6425 PyObject
* _resultobj
;
6426 wxScrolledWindow
* _arg0
;
6428 PyObject
* _argo0
= 0;
6429 PyObject
* _argo1
= 0;
6430 char *_kwnames
[] = { "self","window", NULL
};
6433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxScrolledWindow_SetTargetWindow",_kwnames
,&_argo0
,&_argo1
))
6436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6443 if (_argo1
== Py_None
) { _arg1
= NULL
; }
6444 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
6445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6450 wxPy_BEGIN_ALLOW_THREADS
;
6451 wxScrolledWindow_SetTargetWindow(_arg0
,_arg1
);
6453 wxPy_END_ALLOW_THREADS
;
6454 if (PyErr_Occurred()) return NULL
;
6455 } Py_INCREF(Py_None
);
6456 _resultobj
= Py_None
;
6460 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6461 static PyObject
*_wrap_wxScrolledWindow_GetViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6462 PyObject
* _resultobj
;
6463 wxScrolledWindow
* _arg0
;
6468 PyObject
* _argo0
= 0;
6469 char *_kwnames
[] = { "self", NULL
};
6478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetViewStart",_kwnames
,&_argo0
))
6481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6488 wxPy_BEGIN_ALLOW_THREADS
;
6489 wxScrolledWindow_GetViewStart(_arg0
,_arg1
,_arg2
);
6491 wxPy_END_ALLOW_THREADS
;
6492 if (PyErr_Occurred()) return NULL
;
6493 } Py_INCREF(Py_None
);
6494 _resultobj
= Py_None
;
6497 o
= PyInt_FromLong((long) (*_arg1
));
6498 _resultobj
= t_output_helper(_resultobj
, o
);
6502 o
= PyInt_FromLong((long) (*_arg2
));
6503 _resultobj
= t_output_helper(_resultobj
, o
);
6508 #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1))
6509 static PyObject
*_wrap_wxScrolledWindow_ViewStart(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6510 PyObject
* _resultobj
;
6511 wxScrolledWindow
* _arg0
;
6516 PyObject
* _argo0
= 0;
6517 char *_kwnames
[] = { "self", NULL
};
6526 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_ViewStart",_kwnames
,&_argo0
))
6529 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6530 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6531 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p.");
6536 wxPy_BEGIN_ALLOW_THREADS
;
6537 wxScrolledWindow_ViewStart(_arg0
,_arg1
,_arg2
);
6539 wxPy_END_ALLOW_THREADS
;
6540 if (PyErr_Occurred()) return NULL
;
6541 } Py_INCREF(Py_None
);
6542 _resultobj
= Py_None
;
6545 o
= PyInt_FromLong((long) (*_arg1
));
6546 _resultobj
= t_output_helper(_resultobj
, o
);
6550 o
= PyInt_FromLong((long) (*_arg2
));
6551 _resultobj
= t_output_helper(_resultobj
, o
);
6556 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6557 static PyObject
*_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6558 PyObject
* _resultobj
;
6559 wxScrolledWindow
* _arg0
;
6566 PyObject
* _argo0
= 0;
6567 char *_kwnames
[] = { "self","x","y", NULL
};
6576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6586 wxPy_BEGIN_ALLOW_THREADS
;
6587 wxScrolledWindow_CalcScrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6589 wxPy_END_ALLOW_THREADS
;
6590 if (PyErr_Occurred()) return NULL
;
6591 } Py_INCREF(Py_None
);
6592 _resultobj
= Py_None
;
6595 o
= PyInt_FromLong((long) (*_arg3
));
6596 _resultobj
= t_output_helper(_resultobj
, o
);
6600 o
= PyInt_FromLong((long) (*_arg4
));
6601 _resultobj
= t_output_helper(_resultobj
, o
);
6606 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6607 static PyObject
*_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6608 PyObject
* _resultobj
;
6609 wxScrolledWindow
* _arg0
;
6616 PyObject
* _argo0
= 0;
6617 char *_kwnames
[] = { "self","x","y", NULL
};
6626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6636 wxPy_BEGIN_ALLOW_THREADS
;
6637 wxScrolledWindow_CalcUnscrolledPosition(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
6639 wxPy_END_ALLOW_THREADS
;
6640 if (PyErr_Occurred()) return NULL
;
6641 } Py_INCREF(Py_None
);
6642 _resultobj
= Py_None
;
6645 o
= PyInt_FromLong((long) (*_arg3
));
6646 _resultobj
= t_output_helper(_resultobj
, o
);
6650 o
= PyInt_FromLong((long) (*_arg4
));
6651 _resultobj
= t_output_helper(_resultobj
, o
);
6656 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6657 static PyObject
*_wrap_wxScrolledWindow_SetScale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6658 PyObject
* _resultobj
;
6659 wxScrolledWindow
* _arg0
;
6662 PyObject
* _argo0
= 0;
6663 char *_kwnames
[] = { "self","xs","ys", NULL
};
6666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxScrolledWindow_SetScale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
6669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6676 wxPy_BEGIN_ALLOW_THREADS
;
6677 wxScrolledWindow_SetScale(_arg0
,_arg1
,_arg2
);
6679 wxPy_END_ALLOW_THREADS
;
6680 if (PyErr_Occurred()) return NULL
;
6681 } Py_INCREF(Py_None
);
6682 _resultobj
= Py_None
;
6686 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6687 static PyObject
*_wrap_wxScrolledWindow_GetScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6688 PyObject
* _resultobj
;
6690 wxScrolledWindow
* _arg0
;
6691 PyObject
* _argo0
= 0;
6692 char *_kwnames
[] = { "self", NULL
};
6695 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_GetScaleX",_kwnames
,&_argo0
))
6698 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6699 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6705 wxPy_BEGIN_ALLOW_THREADS
;
6706 _result
= (double )wxScrolledWindow_GetScaleX(_arg0
);
6708 wxPy_END_ALLOW_THREADS
;
6709 if (PyErr_Occurred()) return NULL
;
6710 } _resultobj
= Py_BuildValue("d",_result
);
6714 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6715 static PyObject
*_wrap_wxScrolledWindow_GetScaleY(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_GetScaleY",_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_GetScaleY. Expected _wxScrolledWindow_p.");
6733 wxPy_BEGIN_ALLOW_THREADS
;
6734 _result
= (double )wxScrolledWindow_GetScaleY(_arg0
);
6736 wxPy_END_ALLOW_THREADS
;
6737 if (PyErr_Occurred()) return NULL
;
6738 } _resultobj
= Py_BuildValue("d",_result
);
6742 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6743 static PyObject
*_wrap_wxScrolledWindow_AdjustScrollbars(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6744 PyObject
* _resultobj
;
6745 wxScrolledWindow
* _arg0
;
6746 PyObject
* _argo0
= 0;
6747 char *_kwnames
[] = { "self", NULL
};
6750 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxScrolledWindow_AdjustScrollbars",_kwnames
,&_argo0
))
6753 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6754 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxScrolledWindow_p")) {
6755 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6760 wxPy_BEGIN_ALLOW_THREADS
;
6761 wxScrolledWindow_AdjustScrollbars(_arg0
);
6763 wxPy_END_ALLOW_THREADS
;
6764 if (PyErr_Occurred()) return NULL
;
6765 } Py_INCREF(Py_None
);
6766 _resultobj
= Py_None
;
6770 static void *SwigwxMenuTowxEvtHandler(void *ptr
) {
6773 src
= (wxMenu
*) ptr
;
6774 dest
= (wxEvtHandler
*) src
;
6775 return (void *) dest
;
6778 static void *SwigwxMenuTowxObject(void *ptr
) {
6781 src
= (wxMenu
*) ptr
;
6782 dest
= (wxObject
*) src
;
6783 return (void *) dest
;
6786 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6787 static PyObject
*_wrap_new_wxMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6788 PyObject
* _resultobj
;
6790 wxString
* _arg0
= (wxString
*) &wxPyEmptyStr
;
6791 long _arg1
= (long ) 0;
6792 PyObject
* _obj0
= 0;
6793 char *_kwnames
[] = { "title","style", NULL
};
6797 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|Ol:new_wxMenu",_kwnames
,&_obj0
,&_arg1
))
6801 #if PYTHON_API_VERSION >= 1009
6802 char* tmpPtr
; int tmpSize
;
6803 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
6804 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6807 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
6809 _arg0
= new wxString(tmpPtr
, tmpSize
);
6811 if (!PyString_Check(_obj0
)) {
6812 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6815 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
6819 wxPy_BEGIN_ALLOW_THREADS
;
6820 _result
= (wxMenu
*)new_wxMenu(*_arg0
,_arg1
);
6822 wxPy_END_ALLOW_THREADS
;
6823 if (PyErr_Occurred()) return NULL
;
6825 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenu_p");
6826 _resultobj
= Py_BuildValue("s",_ptemp
);
6829 _resultobj
= Py_None
;
6838 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6839 static PyObject
*_wrap_wxMenu_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6840 PyObject
* _resultobj
;
6844 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
6845 int _arg4
= (int ) FALSE
;
6846 PyObject
* _argo0
= 0;
6847 PyObject
* _obj2
= 0;
6848 PyObject
* _obj3
= 0;
6849 char *_kwnames
[] = { "self","id","item","helpString","checkable", NULL
};
6852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|Oi:wxMenu_Append",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
))
6855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6862 #if PYTHON_API_VERSION >= 1009
6863 char* tmpPtr
; int tmpSize
;
6864 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6865 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6868 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6870 _arg2
= new wxString(tmpPtr
, tmpSize
);
6872 if (!PyString_Check(_obj2
)) {
6873 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6876 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6881 #if PYTHON_API_VERSION >= 1009
6882 char* tmpPtr
; int tmpSize
;
6883 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
6884 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6887 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
6889 _arg3
= new wxString(tmpPtr
, tmpSize
);
6891 if (!PyString_Check(_obj3
)) {
6892 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6895 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
6899 wxPy_BEGIN_ALLOW_THREADS
;
6900 wxMenu_Append(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
);
6902 wxPy_END_ALLOW_THREADS
;
6903 if (PyErr_Occurred()) return NULL
;
6904 } Py_INCREF(Py_None
);
6905 _resultobj
= Py_None
;
6917 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6918 static PyObject
*_wrap_wxMenu_AppendMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
6919 PyObject
* _resultobj
;
6924 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
6925 PyObject
* _argo0
= 0;
6926 PyObject
* _obj2
= 0;
6927 PyObject
* _argo3
= 0;
6928 PyObject
* _obj4
= 0;
6929 char *_kwnames
[] = { "self","id","item","subMenu","helpString", NULL
};
6932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO|O:wxMenu_AppendMenu",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_argo3
,&_obj4
))
6935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
6936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
6937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6942 #if PYTHON_API_VERSION >= 1009
6943 char* tmpPtr
; int tmpSize
;
6944 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
6945 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6948 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
6950 _arg2
= new wxString(tmpPtr
, tmpSize
);
6952 if (!PyString_Check(_obj2
)) {
6953 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6956 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
6960 if (_argo3
== Py_None
) { _arg3
= NULL
; }
6961 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxMenu_p")) {
6962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6968 #if PYTHON_API_VERSION >= 1009
6969 char* tmpPtr
; int tmpSize
;
6970 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
6971 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6974 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
6976 _arg4
= new wxString(tmpPtr
, tmpSize
);
6978 if (!PyString_Check(_obj4
)) {
6979 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
6982 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
6986 wxPy_BEGIN_ALLOW_THREADS
;
6987 wxMenu_AppendMenu(_arg0
,_arg1
,*_arg2
,_arg3
,*_arg4
);
6989 wxPy_END_ALLOW_THREADS
;
6990 if (PyErr_Occurred()) return NULL
;
6991 } Py_INCREF(Py_None
);
6992 _resultobj
= Py_None
;
7004 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7005 static PyObject
*_wrap_wxMenu_AppendItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7006 PyObject
* _resultobj
;
7009 PyObject
* _argo0
= 0;
7010 PyObject
* _argo1
= 0;
7011 char *_kwnames
[] = { "self","item", NULL
};
7014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_AppendItem",_kwnames
,&_argo0
,&_argo1
))
7017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7024 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7025 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7026 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7031 wxPy_BEGIN_ALLOW_THREADS
;
7032 wxMenu_AppendItem(_arg0
,_arg1
);
7034 wxPy_END_ALLOW_THREADS
;
7035 if (PyErr_Occurred()) return NULL
;
7036 } Py_INCREF(Py_None
);
7037 _resultobj
= Py_None
;
7041 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7042 static PyObject
*_wrap_wxMenu_AppendSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7043 PyObject
* _resultobj
;
7045 PyObject
* _argo0
= 0;
7046 char *_kwnames
[] = { "self", NULL
};
7049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_AppendSeparator",_kwnames
,&_argo0
))
7052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7059 wxPy_BEGIN_ALLOW_THREADS
;
7060 wxMenu_AppendSeparator(_arg0
);
7062 wxPy_END_ALLOW_THREADS
;
7063 if (PyErr_Occurred()) return NULL
;
7064 } Py_INCREF(Py_None
);
7065 _resultobj
= Py_None
;
7069 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7070 static PyObject
*_wrap_wxMenu_Break(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_Break",_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_Break. Expected _wxMenu_p.");
7087 wxPy_BEGIN_ALLOW_THREADS
;
7088 wxMenu_Break(_arg0
);
7090 wxPy_END_ALLOW_THREADS
;
7091 if (PyErr_Occurred()) return NULL
;
7092 } Py_INCREF(Py_None
);
7093 _resultobj
= Py_None
;
7097 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7098 static PyObject
*_wrap_wxMenu_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7099 PyObject
* _resultobj
;
7103 PyObject
* _argo0
= 0;
7105 char *_kwnames
[] = { "self","id","flag", NULL
};
7108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7117 _arg2
= (bool ) tempbool2
;
7119 wxPy_BEGIN_ALLOW_THREADS
;
7120 wxMenu_Check(_arg0
,_arg1
,_arg2
);
7122 wxPy_END_ALLOW_THREADS
;
7123 if (PyErr_Occurred()) return NULL
;
7124 } Py_INCREF(Py_None
);
7125 _resultobj
= Py_None
;
7129 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7130 static PyObject
*_wrap_wxMenu_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7131 PyObject
* _resultobj
;
7135 PyObject
* _argo0
= 0;
7136 char *_kwnames
[] = { "self","id", NULL
};
7139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsChecked",_kwnames
,&_argo0
,&_arg1
))
7142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7149 wxPy_BEGIN_ALLOW_THREADS
;
7150 _result
= (bool )wxMenu_IsChecked(_arg0
,_arg1
);
7152 wxPy_END_ALLOW_THREADS
;
7153 if (PyErr_Occurred()) return NULL
;
7154 } _resultobj
= Py_BuildValue("i",_result
);
7158 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7159 static PyObject
*_wrap_wxMenu_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7160 PyObject
* _resultobj
;
7164 PyObject
* _argo0
= 0;
7166 char *_kwnames
[] = { "self","id","enable", NULL
};
7169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenu_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
7172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7178 _arg2
= (bool ) tempbool2
;
7180 wxPy_BEGIN_ALLOW_THREADS
;
7181 wxMenu_Enable(_arg0
,_arg1
,_arg2
);
7183 wxPy_END_ALLOW_THREADS
;
7184 if (PyErr_Occurred()) return NULL
;
7185 } Py_INCREF(Py_None
);
7186 _resultobj
= Py_None
;
7190 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7191 static PyObject
*_wrap_wxMenu_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7192 PyObject
* _resultobj
;
7196 PyObject
* _argo0
= 0;
7197 char *_kwnames
[] = { "self","id", NULL
};
7200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
7203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7210 wxPy_BEGIN_ALLOW_THREADS
;
7211 _result
= (bool )wxMenu_IsEnabled(_arg0
,_arg1
);
7213 wxPy_END_ALLOW_THREADS
;
7214 if (PyErr_Occurred()) return NULL
;
7215 } _resultobj
= Py_BuildValue("i",_result
);
7219 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7220 static PyObject
*_wrap_wxMenu_FindItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7221 PyObject
* _resultobj
;
7225 PyObject
* _argo0
= 0;
7226 PyObject
* _obj1
= 0;
7227 char *_kwnames
[] = { "self","itemString", NULL
};
7230 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_FindItem",_kwnames
,&_argo0
,&_obj1
))
7233 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7234 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7235 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7240 #if PYTHON_API_VERSION >= 1009
7241 char* tmpPtr
; int tmpSize
;
7242 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7243 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7246 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7248 _arg1
= new wxString(tmpPtr
, tmpSize
);
7250 if (!PyString_Check(_obj1
)) {
7251 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7254 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7258 wxPy_BEGIN_ALLOW_THREADS
;
7259 _result
= (int )wxMenu_FindItem(_arg0
,*_arg1
);
7261 wxPy_END_ALLOW_THREADS
;
7262 if (PyErr_Occurred()) return NULL
;
7263 } _resultobj
= Py_BuildValue("i",_result
);
7271 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7272 static PyObject
*_wrap_wxMenu_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7273 PyObject
* _resultobj
;
7274 wxMenuItem
* _result
;
7277 PyObject
* _argo0
= 0;
7278 char *_kwnames
[] = { "self","id", NULL
};
7281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_FindItemById",_kwnames
,&_argo0
,&_arg1
))
7284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7291 wxPy_BEGIN_ALLOW_THREADS
;
7292 _result
= (wxMenuItem
*)wxMenu_FindItemById(_arg0
,_arg1
);
7294 wxPy_END_ALLOW_THREADS
;
7295 if (PyErr_Occurred()) return NULL
;
7296 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7300 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7301 static PyObject
*_wrap_wxMenu_GetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7302 PyObject
* _resultobj
;
7305 PyObject
* _argo0
= 0;
7306 char *_kwnames
[] = { "self", NULL
};
7309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetTitle",_kwnames
,&_argo0
))
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_GetTitle. Expected _wxMenu_p.");
7319 wxPy_BEGIN_ALLOW_THREADS
;
7320 _result
= new wxString (wxMenu_GetTitle(_arg0
));
7322 wxPy_END_ALLOW_THREADS
;
7323 if (PyErr_Occurred()) return NULL
;
7325 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7333 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7334 static PyObject
*_wrap_wxMenu_SetTitle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7335 PyObject
* _resultobj
;
7338 PyObject
* _argo0
= 0;
7339 PyObject
* _obj1
= 0;
7340 char *_kwnames
[] = { "self","title", NULL
};
7343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetTitle",_kwnames
,&_argo0
,&_obj1
))
7346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7353 #if PYTHON_API_VERSION >= 1009
7354 char* tmpPtr
; int tmpSize
;
7355 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
7356 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7359 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
7361 _arg1
= new wxString(tmpPtr
, tmpSize
);
7363 if (!PyString_Check(_obj1
)) {
7364 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7367 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
7371 wxPy_BEGIN_ALLOW_THREADS
;
7372 wxMenu_SetTitle(_arg0
,*_arg1
);
7374 wxPy_END_ALLOW_THREADS
;
7375 if (PyErr_Occurred()) return NULL
;
7376 } Py_INCREF(Py_None
);
7377 _resultobj
= Py_None
;
7385 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7386 static PyObject
*_wrap_wxMenu_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7387 PyObject
* _resultobj
;
7391 PyObject
* _argo0
= 0;
7392 char *_kwnames
[] = { "self","id", NULL
};
7395 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetLabel",_kwnames
,&_argo0
,&_arg1
))
7398 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7399 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7400 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7405 wxPy_BEGIN_ALLOW_THREADS
;
7406 _result
= new wxString (wxMenu_GetLabel(_arg0
,_arg1
));
7408 wxPy_END_ALLOW_THREADS
;
7409 if (PyErr_Occurred()) return NULL
;
7411 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7419 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7420 static PyObject
*_wrap_wxMenu_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7421 PyObject
* _resultobj
;
7425 PyObject
* _argo0
= 0;
7426 PyObject
* _obj2
= 0;
7427 char *_kwnames
[] = { "self","id","label", NULL
};
7430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7440 #if PYTHON_API_VERSION >= 1009
7441 char* tmpPtr
; int tmpSize
;
7442 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7443 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7446 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7448 _arg2
= new wxString(tmpPtr
, tmpSize
);
7450 if (!PyString_Check(_obj2
)) {
7451 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7454 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7458 wxPy_BEGIN_ALLOW_THREADS
;
7459 wxMenu_SetLabel(_arg0
,_arg1
,*_arg2
);
7461 wxPy_END_ALLOW_THREADS
;
7462 if (PyErr_Occurred()) return NULL
;
7463 } Py_INCREF(Py_None
);
7464 _resultobj
= Py_None
;
7472 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7473 static PyObject
*_wrap_wxMenu_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7474 PyObject
* _resultobj
;
7478 PyObject
* _argo0
= 0;
7479 char *_kwnames
[] = { "self","id", NULL
};
7482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
7485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7492 wxPy_BEGIN_ALLOW_THREADS
;
7493 _result
= new wxString (wxMenu_GetHelpString(_arg0
,_arg1
));
7495 wxPy_END_ALLOW_THREADS
;
7496 if (PyErr_Occurred()) return NULL
;
7498 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
7506 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7507 static PyObject
*_wrap_wxMenu_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7508 PyObject
* _resultobj
;
7512 PyObject
* _argo0
= 0;
7513 PyObject
* _obj2
= 0;
7514 char *_kwnames
[] = { "self","id","helpString", NULL
};
7517 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
7520 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7521 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7522 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7527 #if PYTHON_API_VERSION >= 1009
7528 char* tmpPtr
; int tmpSize
;
7529 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
7530 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7533 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
7535 _arg2
= new wxString(tmpPtr
, tmpSize
);
7537 if (!PyString_Check(_obj2
)) {
7538 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
7541 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
7545 wxPy_BEGIN_ALLOW_THREADS
;
7546 wxMenu_SetHelpString(_arg0
,_arg1
,*_arg2
);
7548 wxPy_END_ALLOW_THREADS
;
7549 if (PyErr_Occurred()) return NULL
;
7550 } Py_INCREF(Py_None
);
7551 _resultobj
= Py_None
;
7559 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7560 static PyObject
*_wrap_wxMenu_UpdateUI(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7561 PyObject
* _resultobj
;
7563 wxEvtHandler
* _arg1
= (wxEvtHandler
*) NULL
;
7564 PyObject
* _argo0
= 0;
7565 PyObject
* _argo1
= 0;
7566 char *_kwnames
[] = { "self","source", NULL
};
7569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:wxMenu_UpdateUI",_kwnames
,&_argo0
,&_argo1
))
7572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7579 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7580 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7586 wxPy_BEGIN_ALLOW_THREADS
;
7587 wxMenu_UpdateUI(_arg0
,_arg1
);
7589 wxPy_END_ALLOW_THREADS
;
7590 if (PyErr_Occurred()) return NULL
;
7591 } Py_INCREF(Py_None
);
7592 _resultobj
= Py_None
;
7596 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7597 static PyObject
*_wrap_wxMenu_Delete(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7598 PyObject
* _resultobj
;
7602 PyObject
* _argo0
= 0;
7603 char *_kwnames
[] = { "self","id", NULL
};
7606 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Delete",_kwnames
,&_argo0
,&_arg1
))
7609 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7610 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7611 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7616 wxPy_BEGIN_ALLOW_THREADS
;
7617 _result
= (bool )wxMenu_Delete(_arg0
,_arg1
);
7619 wxPy_END_ALLOW_THREADS
;
7620 if (PyErr_Occurred()) return NULL
;
7621 } _resultobj
= Py_BuildValue("i",_result
);
7625 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7626 static PyObject
*_wrap_wxMenu_DeleteItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7627 PyObject
* _resultobj
;
7631 PyObject
* _argo0
= 0;
7632 PyObject
* _argo1
= 0;
7633 char *_kwnames
[] = { "self","item", NULL
};
7636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DeleteItem",_kwnames
,&_argo0
,&_argo1
))
7639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7646 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7647 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7653 wxPy_BEGIN_ALLOW_THREADS
;
7654 _result
= (bool )wxMenu_DeleteItem(_arg0
,_arg1
);
7656 wxPy_END_ALLOW_THREADS
;
7657 if (PyErr_Occurred()) return NULL
;
7658 } _resultobj
= Py_BuildValue("i",_result
);
7662 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7663 static PyObject
*_wrap_wxMenu_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7664 PyObject
* _resultobj
;
7669 PyObject
* _argo0
= 0;
7670 PyObject
* _argo2
= 0;
7671 char *_kwnames
[] = { "self","pos","item", NULL
};
7674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenu_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
7677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7684 if (_argo2
== Py_None
) { _arg2
= NULL
; }
7685 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenuItem_p")) {
7686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7691 wxPy_BEGIN_ALLOW_THREADS
;
7692 _result
= (bool )wxMenu_Insert(_arg0
,_arg1
,_arg2
);
7694 wxPy_END_ALLOW_THREADS
;
7695 if (PyErr_Occurred()) return NULL
;
7696 } _resultobj
= Py_BuildValue("i",_result
);
7700 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7701 static PyObject
*_wrap_wxMenu_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7702 PyObject
* _resultobj
;
7703 wxMenuItem
* _result
;
7706 PyObject
* _argo0
= 0;
7707 char *_kwnames
[] = { "self","id", NULL
};
7710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_Remove",_kwnames
,&_argo0
,&_arg1
))
7713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7720 wxPy_BEGIN_ALLOW_THREADS
;
7721 _result
= (wxMenuItem
*)wxMenu_Remove(_arg0
,_arg1
);
7723 wxPy_END_ALLOW_THREADS
;
7724 if (PyErr_Occurred()) return NULL
;
7725 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7729 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7730 static PyObject
*_wrap_wxMenu_RemoveItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7731 PyObject
* _resultobj
;
7732 wxMenuItem
* _result
;
7735 PyObject
* _argo0
= 0;
7736 PyObject
* _argo1
= 0;
7737 char *_kwnames
[] = { "self","item", NULL
};
7740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_RemoveItem",_kwnames
,&_argo0
,&_argo1
))
7743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7750 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7751 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7757 wxPy_BEGIN_ALLOW_THREADS
;
7758 _result
= (wxMenuItem
*)wxMenu_RemoveItem(_arg0
,_arg1
);
7760 wxPy_END_ALLOW_THREADS
;
7761 if (PyErr_Occurred()) return NULL
;
7762 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7766 static void wxMenu_Destroy(wxMenu
*self
) { delete self
; }
7767 static PyObject
*_wrap_wxMenu_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7768 PyObject
* _resultobj
;
7770 PyObject
* _argo0
= 0;
7771 char *_kwnames
[] = { "self", NULL
};
7774 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_Destroy",_kwnames
,&_argo0
))
7777 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7778 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7779 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7784 wxPy_BEGIN_ALLOW_THREADS
;
7785 wxMenu_Destroy(_arg0
);
7787 wxPy_END_ALLOW_THREADS
;
7788 if (PyErr_Occurred()) return NULL
;
7789 } Py_INCREF(Py_None
);
7790 _resultobj
= Py_None
;
7794 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7795 static PyObject
*_wrap_wxMenu_DestroyId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7796 PyObject
* _resultobj
;
7800 PyObject
* _argo0
= 0;
7801 char *_kwnames
[] = { "self","id", NULL
};
7804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenu_DestroyId",_kwnames
,&_argo0
,&_arg1
))
7807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7814 wxPy_BEGIN_ALLOW_THREADS
;
7815 _result
= (bool )wxMenu_DestroyId(_arg0
,_arg1
);
7817 wxPy_END_ALLOW_THREADS
;
7818 if (PyErr_Occurred()) return NULL
;
7819 } _resultobj
= Py_BuildValue("i",_result
);
7823 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7824 static PyObject
*_wrap_wxMenu_DestroyItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7825 PyObject
* _resultobj
;
7829 PyObject
* _argo0
= 0;
7830 PyObject
* _argo1
= 0;
7831 char *_kwnames
[] = { "self","item", NULL
};
7834 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_DestroyItem",_kwnames
,&_argo0
,&_argo1
))
7837 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7838 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7839 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7844 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7845 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenuItem_p")) {
7846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7851 wxPy_BEGIN_ALLOW_THREADS
;
7852 _result
= (bool )wxMenu_DestroyItem(_arg0
,_arg1
);
7854 wxPy_END_ALLOW_THREADS
;
7855 if (PyErr_Occurred()) return NULL
;
7856 } _resultobj
= Py_BuildValue("i",_result
);
7860 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7861 static PyObject
*_wrap_wxMenu_GetMenuItemCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7862 PyObject
* _resultobj
;
7865 PyObject
* _argo0
= 0;
7866 char *_kwnames
[] = { "self", NULL
};
7869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItemCount",_kwnames
,&_argo0
))
7872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7879 wxPy_BEGIN_ALLOW_THREADS
;
7880 _result
= (size_t )wxMenu_GetMenuItemCount(_arg0
);
7882 wxPy_END_ALLOW_THREADS
;
7883 if (PyErr_Occurred()) return NULL
;
7884 } _resultobj
= Py_BuildValue("i",_result
);
7888 static PyObject
* wxMenu_GetMenuItems(wxMenu
*self
) {
7889 wxMenuItemList
& list
= self
->GetMenuItems();
7890 return wxPy_ConvertList(&list
, "wxMenuItem");
7892 static PyObject
*_wrap_wxMenu_GetMenuItems(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7893 PyObject
* _resultobj
;
7896 PyObject
* _argo0
= 0;
7897 char *_kwnames
[] = { "self", NULL
};
7900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetMenuItems",_kwnames
,&_argo0
))
7903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7910 wxPy_BEGIN_ALLOW_THREADS
;
7911 _result
= (PyObject
*)wxMenu_GetMenuItems(_arg0
);
7913 wxPy_END_ALLOW_THREADS
;
7914 if (PyErr_Occurred()) return NULL
;
7916 _resultobj
= _result
;
7921 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7922 static PyObject
*_wrap_wxMenu_SetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7923 PyObject
* _resultobj
;
7925 wxEvtHandler
* _arg1
;
7926 PyObject
* _argo0
= 0;
7927 PyObject
* _argo1
= 0;
7928 char *_kwnames
[] = { "self","handler", NULL
};
7931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetEventHandler",_kwnames
,&_argo0
,&_argo1
))
7934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7941 if (_argo1
== Py_None
) { _arg1
= NULL
; }
7942 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxEvtHandler_p")) {
7943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7948 wxPy_BEGIN_ALLOW_THREADS
;
7949 wxMenu_SetEventHandler(_arg0
,_arg1
);
7951 wxPy_END_ALLOW_THREADS
;
7952 if (PyErr_Occurred()) return NULL
;
7953 } Py_INCREF(Py_None
);
7954 _resultobj
= Py_None
;
7958 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
7959 static PyObject
*_wrap_wxMenu_GetEventHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7960 PyObject
* _resultobj
;
7961 wxEvtHandler
* _result
;
7963 PyObject
* _argo0
= 0;
7964 char *_kwnames
[] = { "self", NULL
};
7967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetEventHandler",_kwnames
,&_argo0
))
7970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
7971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
7972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
7977 wxPy_BEGIN_ALLOW_THREADS
;
7978 _result
= (wxEvtHandler
*)wxMenu_GetEventHandler(_arg0
);
7980 wxPy_END_ALLOW_THREADS
;
7981 if (PyErr_Occurred()) return NULL
;
7982 }{ _resultobj
= wxPyMake_wxObject(_result
); }
7986 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
7987 static PyObject
*_wrap_wxMenu_SetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
7988 PyObject
* _resultobj
;
7991 PyObject
* _argo0
= 0;
7992 PyObject
* _argo1
= 0;
7993 char *_kwnames
[] = { "self","win", NULL
};
7996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetInvokingWindow",_kwnames
,&_argo0
,&_argo1
))
7999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
8006 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8007 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
8008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
8013 wxPy_BEGIN_ALLOW_THREADS
;
8014 wxMenu_SetInvokingWindow(_arg0
,_arg1
);
8016 wxPy_END_ALLOW_THREADS
;
8017 if (PyErr_Occurred()) return NULL
;
8018 } Py_INCREF(Py_None
);
8019 _resultobj
= Py_None
;
8023 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
8024 static PyObject
*_wrap_wxMenu_GetInvokingWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8025 PyObject
* _resultobj
;
8028 PyObject
* _argo0
= 0;
8029 char *_kwnames
[] = { "self", NULL
};
8032 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetInvokingWindow",_kwnames
,&_argo0
))
8035 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8036 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8037 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8042 wxPy_BEGIN_ALLOW_THREADS
;
8043 _result
= (wxWindow
*)wxMenu_GetInvokingWindow(_arg0
);
8045 wxPy_END_ALLOW_THREADS
;
8046 if (PyErr_Occurred()) return NULL
;
8047 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8051 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8052 static PyObject
*_wrap_wxMenu_GetStyle(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_GetStyle",_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_GetStyle. Expected _wxMenu_p.");
8070 wxPy_BEGIN_ALLOW_THREADS
;
8071 _result
= (long )wxMenu_GetStyle(_arg0
);
8073 wxPy_END_ALLOW_THREADS
;
8074 if (PyErr_Occurred()) return NULL
;
8075 } _resultobj
= Py_BuildValue("l",_result
);
8079 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8080 static PyObject
*_wrap_wxMenu_IsAttached(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_IsAttached",_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_IsAttached. Expected _wxMenu_p.");
8098 wxPy_BEGIN_ALLOW_THREADS
;
8099 _result
= (bool )wxMenu_IsAttached(_arg0
);
8101 wxPy_END_ALLOW_THREADS
;
8102 if (PyErr_Occurred()) return NULL
;
8103 } _resultobj
= Py_BuildValue("i",_result
);
8107 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8108 static PyObject
*_wrap_wxMenu_SetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8109 PyObject
* _resultobj
;
8112 PyObject
* _argo0
= 0;
8113 PyObject
* _argo1
= 0;
8114 char *_kwnames
[] = { "self","parent", NULL
};
8117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenu_SetParent",_kwnames
,&_argo0
,&_argo1
))
8120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8127 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8128 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8134 wxPy_BEGIN_ALLOW_THREADS
;
8135 wxMenu_SetParent(_arg0
,_arg1
);
8137 wxPy_END_ALLOW_THREADS
;
8138 if (PyErr_Occurred()) return NULL
;
8139 } Py_INCREF(Py_None
);
8140 _resultobj
= Py_None
;
8144 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8145 static PyObject
*_wrap_wxMenu_GetParent(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8146 PyObject
* _resultobj
;
8149 PyObject
* _argo0
= 0;
8150 char *_kwnames
[] = { "self", NULL
};
8153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenu_GetParent",_kwnames
,&_argo0
))
8156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
8158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8163 wxPy_BEGIN_ALLOW_THREADS
;
8164 _result
= (wxMenu
*)wxMenu_GetParent(_arg0
);
8166 wxPy_END_ALLOW_THREADS
;
8167 if (PyErr_Occurred()) return NULL
;
8168 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8172 static void *SwigwxMenuBarTowxWindow(void *ptr
) {
8175 src
= (wxMenuBar
*) ptr
;
8176 dest
= (wxWindow
*) src
;
8177 return (void *) dest
;
8180 static void *SwigwxMenuBarTowxEvtHandler(void *ptr
) {
8183 src
= (wxMenuBar
*) ptr
;
8184 dest
= (wxEvtHandler
*) src
;
8185 return (void *) dest
;
8188 static void *SwigwxMenuBarTowxObject(void *ptr
) {
8191 src
= (wxMenuBar
*) ptr
;
8192 dest
= (wxObject
*) src
;
8193 return (void *) dest
;
8196 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8197 static PyObject
*_wrap_new_wxMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8198 PyObject
* _resultobj
;
8199 wxMenuBar
* _result
;
8200 long _arg0
= (long ) 0;
8201 char *_kwnames
[] = { "style", NULL
};
8205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|l:new_wxMenuBar",_kwnames
,&_arg0
))
8208 wxPy_BEGIN_ALLOW_THREADS
;
8209 _result
= (wxMenuBar
*)new_wxMenuBar(_arg0
);
8211 wxPy_END_ALLOW_THREADS
;
8212 if (PyErr_Occurred()) return NULL
;
8214 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuBar_p");
8215 _resultobj
= Py_BuildValue("s",_ptemp
);
8218 _resultobj
= Py_None
;
8223 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8224 static PyObject
*_wrap_wxMenuBar_Append(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8225 PyObject
* _resultobj
;
8230 PyObject
* _argo0
= 0;
8231 PyObject
* _argo1
= 0;
8232 PyObject
* _obj2
= 0;
8233 char *_kwnames
[] = { "self","menu","title", NULL
};
8236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_Append",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
8239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8246 if (_argo1
== Py_None
) { _arg1
= NULL
; }
8247 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
8248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8253 #if PYTHON_API_VERSION >= 1009
8254 char* tmpPtr
; int tmpSize
;
8255 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8256 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8259 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8261 _arg2
= new wxString(tmpPtr
, tmpSize
);
8263 if (!PyString_Check(_obj2
)) {
8264 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8267 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8271 wxPy_BEGIN_ALLOW_THREADS
;
8272 _result
= (bool )wxMenuBar_Append(_arg0
,_arg1
,*_arg2
);
8274 wxPy_END_ALLOW_THREADS
;
8275 if (PyErr_Occurred()) return NULL
;
8276 } _resultobj
= Py_BuildValue("i",_result
);
8284 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8285 static PyObject
*_wrap_wxMenuBar_Insert(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8286 PyObject
* _resultobj
;
8292 PyObject
* _argo0
= 0;
8293 PyObject
* _argo2
= 0;
8294 PyObject
* _obj3
= 0;
8295 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8298 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Insert",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8301 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8302 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8308 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8309 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8315 #if PYTHON_API_VERSION >= 1009
8316 char* tmpPtr
; int tmpSize
;
8317 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8318 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8321 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8323 _arg3
= new wxString(tmpPtr
, tmpSize
);
8325 if (!PyString_Check(_obj3
)) {
8326 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8329 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8333 wxPy_BEGIN_ALLOW_THREADS
;
8334 _result
= (bool )wxMenuBar_Insert(_arg0
,_arg1
,_arg2
,*_arg3
);
8336 wxPy_END_ALLOW_THREADS
;
8337 if (PyErr_Occurred()) return NULL
;
8338 } _resultobj
= Py_BuildValue("i",_result
);
8346 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8347 static PyObject
*_wrap_wxMenuBar_GetMenuCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8348 PyObject
* _resultobj
;
8351 PyObject
* _argo0
= 0;
8352 char *_kwnames
[] = { "self", NULL
};
8355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuBar_GetMenuCount",_kwnames
,&_argo0
))
8358 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8359 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8365 wxPy_BEGIN_ALLOW_THREADS
;
8366 _result
= (size_t )wxMenuBar_GetMenuCount(_arg0
);
8368 wxPy_END_ALLOW_THREADS
;
8369 if (PyErr_Occurred()) return NULL
;
8370 } _resultobj
= Py_BuildValue("i",_result
);
8374 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8375 static PyObject
*_wrap_wxMenuBar_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8376 PyObject
* _resultobj
;
8380 PyObject
* _argo0
= 0;
8381 char *_kwnames
[] = { "self","pos", NULL
};
8384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetMenu",_kwnames
,&_argo0
,&_arg1
))
8387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8394 wxPy_BEGIN_ALLOW_THREADS
;
8395 _result
= (wxMenu
*)wxMenuBar_GetMenu(_arg0
,_arg1
);
8397 wxPy_END_ALLOW_THREADS
;
8398 if (PyErr_Occurred()) return NULL
;
8399 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8403 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8404 static PyObject
*_wrap_wxMenuBar_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8405 PyObject
* _resultobj
;
8411 PyObject
* _argo0
= 0;
8412 PyObject
* _argo2
= 0;
8413 PyObject
* _obj3
= 0;
8414 char *_kwnames
[] = { "self","pos","menu","title", NULL
};
8417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiOO:wxMenuBar_Replace",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
))
8420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8427 if (_argo2
== Py_None
) { _arg2
= NULL
; }
8428 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxMenu_p")) {
8429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8434 #if PYTHON_API_VERSION >= 1009
8435 char* tmpPtr
; int tmpSize
;
8436 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
8437 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8440 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
8442 _arg3
= new wxString(tmpPtr
, tmpSize
);
8444 if (!PyString_Check(_obj3
)) {
8445 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8448 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
8452 wxPy_BEGIN_ALLOW_THREADS
;
8453 _result
= (wxMenu
*)wxMenuBar_Replace(_arg0
,_arg1
,_arg2
,*_arg3
);
8455 wxPy_END_ALLOW_THREADS
;
8456 if (PyErr_Occurred()) return NULL
;
8457 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8465 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8466 static PyObject
*_wrap_wxMenuBar_Remove(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8467 PyObject
* _resultobj
;
8471 PyObject
* _argo0
= 0;
8472 char *_kwnames
[] = { "self","pos", NULL
};
8475 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_Remove",_kwnames
,&_argo0
,&_arg1
))
8478 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8479 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8485 wxPy_BEGIN_ALLOW_THREADS
;
8486 _result
= (wxMenu
*)wxMenuBar_Remove(_arg0
,_arg1
);
8488 wxPy_END_ALLOW_THREADS
;
8489 if (PyErr_Occurred()) return NULL
;
8490 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8494 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8495 static PyObject
*_wrap_wxMenuBar_EnableTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8496 PyObject
* _resultobj
;
8500 PyObject
* _argo0
= 0;
8502 char *_kwnames
[] = { "self","pos","enable", NULL
};
8505 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_EnableTop",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8508 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8509 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8510 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8514 _arg2
= (bool ) tempbool2
;
8516 wxPy_BEGIN_ALLOW_THREADS
;
8517 wxMenuBar_EnableTop(_arg0
,_arg1
,_arg2
);
8519 wxPy_END_ALLOW_THREADS
;
8520 if (PyErr_Occurred()) return NULL
;
8521 } Py_INCREF(Py_None
);
8522 _resultobj
= Py_None
;
8526 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8527 static PyObject
*_wrap_wxMenuBar_SetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8528 PyObject
* _resultobj
;
8532 PyObject
* _argo0
= 0;
8533 PyObject
* _obj2
= 0;
8534 char *_kwnames
[] = { "self","pos","label", NULL
};
8537 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabelTop",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8540 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8541 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8542 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8547 #if PYTHON_API_VERSION >= 1009
8548 char* tmpPtr
; int tmpSize
;
8549 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8550 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8553 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8555 _arg2
= new wxString(tmpPtr
, tmpSize
);
8557 if (!PyString_Check(_obj2
)) {
8558 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8561 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8565 wxPy_BEGIN_ALLOW_THREADS
;
8566 wxMenuBar_SetLabelTop(_arg0
,_arg1
,*_arg2
);
8568 wxPy_END_ALLOW_THREADS
;
8569 if (PyErr_Occurred()) return NULL
;
8570 } Py_INCREF(Py_None
);
8571 _resultobj
= Py_None
;
8579 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8580 static PyObject
*_wrap_wxMenuBar_GetLabelTop(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8581 PyObject
* _resultobj
;
8585 PyObject
* _argo0
= 0;
8586 char *_kwnames
[] = { "self","pos", NULL
};
8589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabelTop",_kwnames
,&_argo0
,&_arg1
))
8592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8599 wxPy_BEGIN_ALLOW_THREADS
;
8600 _result
= new wxString (wxMenuBar_GetLabelTop(_arg0
,_arg1
));
8602 wxPy_END_ALLOW_THREADS
;
8603 if (PyErr_Occurred()) return NULL
;
8605 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8613 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8614 static PyObject
*_wrap_wxMenuBar_FindMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8615 PyObject
* _resultobj
;
8620 PyObject
* _argo0
= 0;
8621 PyObject
* _obj1
= 0;
8622 PyObject
* _obj2
= 0;
8623 char *_kwnames
[] = { "self","menuString","itemString", NULL
};
8626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxMenuBar_FindMenuItem",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
8629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8636 #if PYTHON_API_VERSION >= 1009
8637 char* tmpPtr
; int tmpSize
;
8638 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
8639 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8642 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
8644 _arg1
= new wxString(tmpPtr
, tmpSize
);
8646 if (!PyString_Check(_obj1
)) {
8647 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8650 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
8654 #if PYTHON_API_VERSION >= 1009
8655 char* tmpPtr
; int tmpSize
;
8656 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8657 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8660 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8662 _arg2
= new wxString(tmpPtr
, tmpSize
);
8664 if (!PyString_Check(_obj2
)) {
8665 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8668 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8672 wxPy_BEGIN_ALLOW_THREADS
;
8673 _result
= (int )wxMenuBar_FindMenuItem(_arg0
,*_arg1
,*_arg2
);
8675 wxPy_END_ALLOW_THREADS
;
8676 if (PyErr_Occurred()) return NULL
;
8677 } _resultobj
= Py_BuildValue("i",_result
);
8689 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8690 static PyObject
*_wrap_wxMenuBar_FindItemById(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8691 PyObject
* _resultobj
;
8692 wxMenuItem
* _result
;
8695 PyObject
* _argo0
= 0;
8696 char *_kwnames
[] = { "self","id", NULL
};
8699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_FindItemById",_kwnames
,&_argo0
,&_arg1
))
8702 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8703 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8704 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8709 wxPy_BEGIN_ALLOW_THREADS
;
8710 _result
= (wxMenuItem
*)wxMenuBar_FindItemById(_arg0
,_arg1
);
8712 wxPy_END_ALLOW_THREADS
;
8713 if (PyErr_Occurred()) return NULL
;
8714 }{ _resultobj
= wxPyMake_wxObject(_result
); }
8718 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8719 static PyObject
*_wrap_wxMenuBar_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8720 PyObject
* _resultobj
;
8724 PyObject
* _argo0
= 0;
8726 char *_kwnames
[] = { "self","id","enable", NULL
};
8729 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Enable",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8732 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8733 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8734 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8738 _arg2
= (bool ) tempbool2
;
8740 wxPy_BEGIN_ALLOW_THREADS
;
8741 wxMenuBar_Enable(_arg0
,_arg1
,_arg2
);
8743 wxPy_END_ALLOW_THREADS
;
8744 if (PyErr_Occurred()) return NULL
;
8745 } Py_INCREF(Py_None
);
8746 _resultobj
= Py_None
;
8750 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8751 static PyObject
*_wrap_wxMenuBar_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8752 PyObject
* _resultobj
;
8756 PyObject
* _argo0
= 0;
8758 char *_kwnames
[] = { "self","id","check", NULL
};
8761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxMenuBar_Check",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
8764 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8765 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8770 _arg2
= (bool ) tempbool2
;
8772 wxPy_BEGIN_ALLOW_THREADS
;
8773 wxMenuBar_Check(_arg0
,_arg1
,_arg2
);
8775 wxPy_END_ALLOW_THREADS
;
8776 if (PyErr_Occurred()) return NULL
;
8777 } Py_INCREF(Py_None
);
8778 _resultobj
= Py_None
;
8782 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8783 static PyObject
*_wrap_wxMenuBar_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8784 PyObject
* _resultobj
;
8788 PyObject
* _argo0
= 0;
8789 char *_kwnames
[] = { "self","id", NULL
};
8792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsChecked",_kwnames
,&_argo0
,&_arg1
))
8795 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8796 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8802 wxPy_BEGIN_ALLOW_THREADS
;
8803 _result
= (bool )wxMenuBar_IsChecked(_arg0
,_arg1
);
8805 wxPy_END_ALLOW_THREADS
;
8806 if (PyErr_Occurred()) return NULL
;
8807 } _resultobj
= Py_BuildValue("i",_result
);
8811 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8812 static PyObject
*_wrap_wxMenuBar_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8813 PyObject
* _resultobj
;
8817 PyObject
* _argo0
= 0;
8818 char *_kwnames
[] = { "self","id", NULL
};
8821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_IsEnabled",_kwnames
,&_argo0
,&_arg1
))
8824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8831 wxPy_BEGIN_ALLOW_THREADS
;
8832 _result
= (bool )wxMenuBar_IsEnabled(_arg0
,_arg1
);
8834 wxPy_END_ALLOW_THREADS
;
8835 if (PyErr_Occurred()) return NULL
;
8836 } _resultobj
= Py_BuildValue("i",_result
);
8840 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8841 static PyObject
*_wrap_wxMenuBar_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8842 PyObject
* _resultobj
;
8846 PyObject
* _argo0
= 0;
8847 PyObject
* _obj2
= 0;
8848 char *_kwnames
[] = { "self","id","label", NULL
};
8851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetLabel",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8861 #if PYTHON_API_VERSION >= 1009
8862 char* tmpPtr
; int tmpSize
;
8863 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8864 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8867 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8869 _arg2
= new wxString(tmpPtr
, tmpSize
);
8871 if (!PyString_Check(_obj2
)) {
8872 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8875 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8879 wxPy_BEGIN_ALLOW_THREADS
;
8880 wxMenuBar_SetLabel(_arg0
,_arg1
,*_arg2
);
8882 wxPy_END_ALLOW_THREADS
;
8883 if (PyErr_Occurred()) return NULL
;
8884 } Py_INCREF(Py_None
);
8885 _resultobj
= Py_None
;
8893 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8894 static PyObject
*_wrap_wxMenuBar_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8895 PyObject
* _resultobj
;
8899 PyObject
* _argo0
= 0;
8900 char *_kwnames
[] = { "self","id", NULL
};
8903 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetLabel",_kwnames
,&_argo0
,&_arg1
))
8906 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8907 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8908 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
8913 wxPy_BEGIN_ALLOW_THREADS
;
8914 _result
= new wxString (wxMenuBar_GetLabel(_arg0
,_arg1
));
8916 wxPy_END_ALLOW_THREADS
;
8917 if (PyErr_Occurred()) return NULL
;
8919 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
8927 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
8928 static PyObject
*_wrap_wxMenuBar_SetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8929 PyObject
* _resultobj
;
8933 PyObject
* _argo0
= 0;
8934 PyObject
* _obj2
= 0;
8935 char *_kwnames
[] = { "self","id","helpString", NULL
};
8938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxMenuBar_SetHelpString",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
8941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
8948 #if PYTHON_API_VERSION >= 1009
8949 char* tmpPtr
; int tmpSize
;
8950 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
8951 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8954 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
8956 _arg2
= new wxString(tmpPtr
, tmpSize
);
8958 if (!PyString_Check(_obj2
)) {
8959 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
8962 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
8966 wxPy_BEGIN_ALLOW_THREADS
;
8967 wxMenuBar_SetHelpString(_arg0
,_arg1
,*_arg2
);
8969 wxPy_END_ALLOW_THREADS
;
8970 if (PyErr_Occurred()) return NULL
;
8971 } Py_INCREF(Py_None
);
8972 _resultobj
= Py_None
;
8980 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
8981 static PyObject
*_wrap_wxMenuBar_GetHelpString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
8982 PyObject
* _resultobj
;
8986 PyObject
* _argo0
= 0;
8987 char *_kwnames
[] = { "self","id", NULL
};
8990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuBar_GetHelpString",_kwnames
,&_argo0
,&_arg1
))
8993 if (_argo0
== Py_None
) { _arg0
= NULL
; }
8994 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuBar_p")) {
8995 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9000 wxPy_BEGIN_ALLOW_THREADS
;
9001 _result
= new wxString (wxMenuBar_GetHelpString(_arg0
,_arg1
));
9003 wxPy_END_ALLOW_THREADS
;
9004 if (PyErr_Occurred()) return NULL
;
9006 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9014 static void *SwigwxMenuItemTowxObject(void *ptr
) {
9017 src
= (wxMenuItem
*) ptr
;
9018 dest
= (wxObject
*) src
;
9019 return (void *) dest
;
9022 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9023 static PyObject
*_wrap_new_wxMenuItem(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9024 PyObject
* _resultobj
;
9025 wxMenuItem
* _result
;
9026 wxMenu
* _arg0
= (wxMenu
*) NULL
;
9027 int _arg1
= (int ) wxID_SEPARATOR
;
9028 wxString
* _arg2
= (wxString
*) &wxPyEmptyStr
;
9029 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
9030 bool _arg4
= (bool ) FALSE
;
9031 wxMenu
* _arg5
= (wxMenu
*) NULL
;
9032 PyObject
* _argo0
= 0;
9033 PyObject
* _obj2
= 0;
9034 PyObject
* _obj3
= 0;
9035 int tempbool4
= (int) FALSE
;
9036 PyObject
* _argo5
= 0;
9037 char *_kwnames
[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL
};
9041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|OiOOiO:new_wxMenuItem",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&tempbool4
,&_argo5
))
9044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenu_p")) {
9046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9052 #if PYTHON_API_VERSION >= 1009
9053 char* tmpPtr
; int tmpSize
;
9054 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
9055 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9058 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
9060 _arg2
= new wxString(tmpPtr
, tmpSize
);
9062 if (!PyString_Check(_obj2
)) {
9063 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9066 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
9071 #if PYTHON_API_VERSION >= 1009
9072 char* tmpPtr
; int tmpSize
;
9073 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
9074 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9077 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
9079 _arg3
= new wxString(tmpPtr
, tmpSize
);
9081 if (!PyString_Check(_obj3
)) {
9082 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9085 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
9088 _arg4
= (bool ) tempbool4
;
9090 if (_argo5
== Py_None
) { _arg5
= NULL
; }
9091 else if (SWIG_GetPtrObj(_argo5
,(void **) &_arg5
,"_wxMenu_p")) {
9092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9097 wxPy_BEGIN_ALLOW_THREADS
;
9098 _result
= (wxMenuItem
*)new_wxMenuItem(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
9100 wxPy_END_ALLOW_THREADS
;
9101 if (PyErr_Occurred()) return NULL
;
9103 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxMenuItem_p");
9104 _resultobj
= Py_BuildValue("s",_ptemp
);
9107 _resultobj
= Py_None
;
9120 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9121 static PyObject
*_wrap_wxMenuItem_GetMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9122 PyObject
* _resultobj
;
9125 PyObject
* _argo0
= 0;
9126 char *_kwnames
[] = { "self", NULL
};
9129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMenu",_kwnames
,&_argo0
))
9132 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9133 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9134 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9139 wxPy_BEGIN_ALLOW_THREADS
;
9140 _result
= (wxMenu
*)wxMenuItem_GetMenu(_arg0
);
9142 wxPy_END_ALLOW_THREADS
;
9143 if (PyErr_Occurred()) return NULL
;
9144 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9148 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9149 static PyObject
*_wrap_wxMenuItem_SetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9150 PyObject
* _resultobj
;
9153 PyObject
* _argo0
= 0;
9154 char *_kwnames
[] = { "self","id", NULL
};
9157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetId",_kwnames
,&_argo0
,&_arg1
))
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_SetId. Expected _wxMenuItem_p.");
9167 wxPy_BEGIN_ALLOW_THREADS
;
9168 wxMenuItem_SetId(_arg0
,_arg1
);
9170 wxPy_END_ALLOW_THREADS
;
9171 if (PyErr_Occurred()) return NULL
;
9172 } Py_INCREF(Py_None
);
9173 _resultobj
= Py_None
;
9177 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9178 static PyObject
*_wrap_wxMenuItem_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9179 PyObject
* _resultobj
;
9182 PyObject
* _argo0
= 0;
9183 char *_kwnames
[] = { "self", NULL
};
9186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetId",_kwnames
,&_argo0
))
9189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9196 wxPy_BEGIN_ALLOW_THREADS
;
9197 _result
= (int )wxMenuItem_GetId(_arg0
);
9199 wxPy_END_ALLOW_THREADS
;
9200 if (PyErr_Occurred()) return NULL
;
9201 } _resultobj
= Py_BuildValue("i",_result
);
9205 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9206 static PyObject
*_wrap_wxMenuItem_IsSeparator(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_IsSeparator",_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_IsSeparator. Expected _wxMenuItem_p.");
9224 wxPy_BEGIN_ALLOW_THREADS
;
9225 _result
= (bool )wxMenuItem_IsSeparator(_arg0
);
9227 wxPy_END_ALLOW_THREADS
;
9228 if (PyErr_Occurred()) return NULL
;
9229 } _resultobj
= Py_BuildValue("i",_result
);
9233 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9234 static PyObject
*_wrap_wxMenuItem_SetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9235 PyObject
* _resultobj
;
9238 PyObject
* _argo0
= 0;
9239 PyObject
* _obj1
= 0;
9240 char *_kwnames
[] = { "self","str", NULL
};
9243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetText",_kwnames
,&_argo0
,&_obj1
))
9246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9253 #if PYTHON_API_VERSION >= 1009
9254 char* tmpPtr
; int tmpSize
;
9255 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9256 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9259 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9261 _arg1
= new wxString(tmpPtr
, tmpSize
);
9263 if (!PyString_Check(_obj1
)) {
9264 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9267 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9271 wxPy_BEGIN_ALLOW_THREADS
;
9272 wxMenuItem_SetText(_arg0
,*_arg1
);
9274 wxPy_END_ALLOW_THREADS
;
9275 if (PyErr_Occurred()) return NULL
;
9276 } Py_INCREF(Py_None
);
9277 _resultobj
= Py_None
;
9285 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9286 static PyObject
*_wrap_wxMenuItem_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9287 PyObject
* _resultobj
;
9290 PyObject
* _argo0
= 0;
9291 char *_kwnames
[] = { "self", NULL
};
9294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabel",_kwnames
,&_argo0
))
9297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9304 wxPy_BEGIN_ALLOW_THREADS
;
9305 _result
= new wxString (wxMenuItem_GetLabel(_arg0
));
9307 wxPy_END_ALLOW_THREADS
;
9308 if (PyErr_Occurred()) return NULL
;
9310 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9318 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9319 static PyObject
*_wrap_wxMenuItem_GetText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9320 PyObject
* _resultobj
;
9323 PyObject
* _argo0
= 0;
9324 char *_kwnames
[] = { "self", NULL
};
9327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetText",_kwnames
,&_argo0
))
9330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9337 wxPy_BEGIN_ALLOW_THREADS
;
9338 const wxString
& _result_ref
= wxMenuItem_GetText(_arg0
);
9339 _result
= (wxString
*) &_result_ref
;
9341 wxPy_END_ALLOW_THREADS
;
9342 if (PyErr_Occurred()) return NULL
;
9344 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9349 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9350 static PyObject
*_wrap_wxMenuItem_SetCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9351 PyObject
* _resultobj
;
9354 PyObject
* _argo0
= 0;
9356 char *_kwnames
[] = { "self","checkable", NULL
};
9359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetCheckable",_kwnames
,&_argo0
,&tempbool1
))
9362 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9363 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9364 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9368 _arg1
= (bool ) tempbool1
;
9370 wxPy_BEGIN_ALLOW_THREADS
;
9371 wxMenuItem_SetCheckable(_arg0
,_arg1
);
9373 wxPy_END_ALLOW_THREADS
;
9374 if (PyErr_Occurred()) return NULL
;
9375 } Py_INCREF(Py_None
);
9376 _resultobj
= Py_None
;
9380 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9381 static PyObject
*_wrap_wxMenuItem_IsCheckable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9382 PyObject
* _resultobj
;
9385 PyObject
* _argo0
= 0;
9386 char *_kwnames
[] = { "self", NULL
};
9389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsCheckable",_kwnames
,&_argo0
))
9392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9399 wxPy_BEGIN_ALLOW_THREADS
;
9400 _result
= (bool )wxMenuItem_IsCheckable(_arg0
);
9402 wxPy_END_ALLOW_THREADS
;
9403 if (PyErr_Occurred()) return NULL
;
9404 } _resultobj
= Py_BuildValue("i",_result
);
9408 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9409 static PyObject
*_wrap_wxMenuItem_IsSubMenu(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_IsSubMenu",_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_IsSubMenu. Expected _wxMenuItem_p.");
9427 wxPy_BEGIN_ALLOW_THREADS
;
9428 _result
= (bool )wxMenuItem_IsSubMenu(_arg0
);
9430 wxPy_END_ALLOW_THREADS
;
9431 if (PyErr_Occurred()) return NULL
;
9432 } _resultobj
= Py_BuildValue("i",_result
);
9436 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9437 static PyObject
*_wrap_wxMenuItem_SetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9438 PyObject
* _resultobj
;
9441 PyObject
* _argo0
= 0;
9442 PyObject
* _argo1
= 0;
9443 char *_kwnames
[] = { "self","menu", NULL
};
9446 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetSubMenu",_kwnames
,&_argo0
,&_argo1
))
9449 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9450 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9451 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9456 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9457 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxMenu_p")) {
9458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9463 wxPy_BEGIN_ALLOW_THREADS
;
9464 wxMenuItem_SetSubMenu(_arg0
,_arg1
);
9466 wxPy_END_ALLOW_THREADS
;
9467 if (PyErr_Occurred()) return NULL
;
9468 } Py_INCREF(Py_None
);
9469 _resultobj
= Py_None
;
9473 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9474 static PyObject
*_wrap_wxMenuItem_GetSubMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9475 PyObject
* _resultobj
;
9478 PyObject
* _argo0
= 0;
9479 char *_kwnames
[] = { "self", NULL
};
9482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetSubMenu",_kwnames
,&_argo0
))
9485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9492 wxPy_BEGIN_ALLOW_THREADS
;
9493 _result
= (wxMenu
*)wxMenuItem_GetSubMenu(_arg0
);
9495 wxPy_END_ALLOW_THREADS
;
9496 if (PyErr_Occurred()) return NULL
;
9497 }{ _resultobj
= wxPyMake_wxObject(_result
); }
9501 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9502 static PyObject
*_wrap_wxMenuItem_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9503 PyObject
* _resultobj
;
9505 bool _arg1
= (bool ) TRUE
;
9506 PyObject
* _argo0
= 0;
9507 int tempbool1
= (int) TRUE
;
9508 char *_kwnames
[] = { "self","enable", NULL
};
9511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Enable",_kwnames
,&_argo0
,&tempbool1
))
9514 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9515 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9520 _arg1
= (bool ) tempbool1
;
9522 wxPy_BEGIN_ALLOW_THREADS
;
9523 wxMenuItem_Enable(_arg0
,_arg1
);
9525 wxPy_END_ALLOW_THREADS
;
9526 if (PyErr_Occurred()) return NULL
;
9527 } Py_INCREF(Py_None
);
9528 _resultobj
= Py_None
;
9532 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9533 static PyObject
*_wrap_wxMenuItem_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9534 PyObject
* _resultobj
;
9537 PyObject
* _argo0
= 0;
9538 char *_kwnames
[] = { "self", NULL
};
9541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsEnabled",_kwnames
,&_argo0
))
9544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9551 wxPy_BEGIN_ALLOW_THREADS
;
9552 _result
= (bool )wxMenuItem_IsEnabled(_arg0
);
9554 wxPy_END_ALLOW_THREADS
;
9555 if (PyErr_Occurred()) return NULL
;
9556 } _resultobj
= Py_BuildValue("i",_result
);
9560 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9561 static PyObject
*_wrap_wxMenuItem_Check(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9562 PyObject
* _resultobj
;
9564 bool _arg1
= (bool ) TRUE
;
9565 PyObject
* _argo0
= 0;
9566 int tempbool1
= (int) TRUE
;
9567 char *_kwnames
[] = { "self","check", NULL
};
9570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_Check",_kwnames
,&_argo0
,&tempbool1
))
9573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9579 _arg1
= (bool ) tempbool1
;
9581 wxPy_BEGIN_ALLOW_THREADS
;
9582 wxMenuItem_Check(_arg0
,_arg1
);
9584 wxPy_END_ALLOW_THREADS
;
9585 if (PyErr_Occurred()) return NULL
;
9586 } Py_INCREF(Py_None
);
9587 _resultobj
= Py_None
;
9591 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9592 static PyObject
*_wrap_wxMenuItem_IsChecked(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9593 PyObject
* _resultobj
;
9596 PyObject
* _argo0
= 0;
9597 char *_kwnames
[] = { "self", NULL
};
9600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsChecked",_kwnames
,&_argo0
))
9603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9610 wxPy_BEGIN_ALLOW_THREADS
;
9611 _result
= (bool )wxMenuItem_IsChecked(_arg0
);
9613 wxPy_END_ALLOW_THREADS
;
9614 if (PyErr_Occurred()) return NULL
;
9615 } _resultobj
= Py_BuildValue("i",_result
);
9619 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9620 static PyObject
*_wrap_wxMenuItem_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9621 PyObject
* _resultobj
;
9623 PyObject
* _argo0
= 0;
9624 char *_kwnames
[] = { "self", NULL
};
9627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_Toggle",_kwnames
,&_argo0
))
9630 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9631 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9632 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9637 wxPy_BEGIN_ALLOW_THREADS
;
9638 wxMenuItem_Toggle(_arg0
);
9640 wxPy_END_ALLOW_THREADS
;
9641 if (PyErr_Occurred()) return NULL
;
9642 } Py_INCREF(Py_None
);
9643 _resultobj
= Py_None
;
9647 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9648 static PyObject
*_wrap_wxMenuItem_SetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9649 PyObject
* _resultobj
;
9652 PyObject
* _argo0
= 0;
9653 PyObject
* _obj1
= 0;
9654 char *_kwnames
[] = { "self","str", NULL
};
9657 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetHelp",_kwnames
,&_argo0
,&_obj1
))
9660 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9661 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9662 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9667 #if PYTHON_API_VERSION >= 1009
9668 char* tmpPtr
; int tmpSize
;
9669 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
9670 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9673 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
9675 _arg1
= new wxString(tmpPtr
, tmpSize
);
9677 if (!PyString_Check(_obj1
)) {
9678 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9681 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
9685 wxPy_BEGIN_ALLOW_THREADS
;
9686 wxMenuItem_SetHelp(_arg0
,*_arg1
);
9688 wxPy_END_ALLOW_THREADS
;
9689 if (PyErr_Occurred()) return NULL
;
9690 } Py_INCREF(Py_None
);
9691 _resultobj
= Py_None
;
9699 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9700 static PyObject
*_wrap_wxMenuItem_GetHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9701 PyObject
* _resultobj
;
9704 PyObject
* _argo0
= 0;
9705 char *_kwnames
[] = { "self", NULL
};
9708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetHelp",_kwnames
,&_argo0
))
9711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9718 wxPy_BEGIN_ALLOW_THREADS
;
9719 const wxString
& _result_ref
= wxMenuItem_GetHelp(_arg0
);
9720 _result
= (wxString
*) &_result_ref
;
9722 wxPy_END_ALLOW_THREADS
;
9723 if (PyErr_Occurred()) return NULL
;
9725 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9730 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9731 static PyObject
*_wrap_wxMenuItem_GetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9732 PyObject
* _resultobj
;
9733 wxAcceleratorEntry
* _result
;
9735 PyObject
* _argo0
= 0;
9736 char *_kwnames
[] = { "self", NULL
};
9740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetAccel",_kwnames
,&_argo0
))
9743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9750 wxPy_BEGIN_ALLOW_THREADS
;
9751 _result
= (wxAcceleratorEntry
*)wxMenuItem_GetAccel(_arg0
);
9753 wxPy_END_ALLOW_THREADS
;
9754 if (PyErr_Occurred()) return NULL
;
9756 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxAcceleratorEntry_p");
9757 _resultobj
= Py_BuildValue("s",_ptemp
);
9760 _resultobj
= Py_None
;
9765 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9766 static PyObject
*_wrap_wxMenuItem_SetAccel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9767 PyObject
* _resultobj
;
9769 wxAcceleratorEntry
* _arg1
;
9770 PyObject
* _argo0
= 0;
9771 PyObject
* _argo1
= 0;
9772 char *_kwnames
[] = { "self","accel", NULL
};
9775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetAccel",_kwnames
,&_argo0
,&_argo1
))
9778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9785 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9786 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxAcceleratorEntry_p")) {
9787 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9792 wxPy_BEGIN_ALLOW_THREADS
;
9793 wxMenuItem_SetAccel(_arg0
,_arg1
);
9795 wxPy_END_ALLOW_THREADS
;
9796 if (PyErr_Occurred()) return NULL
;
9797 } Py_INCREF(Py_None
);
9798 _resultobj
= Py_None
;
9802 static PyObject
*_wrap_wxMenuItem_GetLabelFromText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9803 PyObject
* _resultobj
;
9806 PyObject
* _obj0
= 0;
9807 char *_kwnames
[] = { "text", NULL
};
9810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetLabelFromText",_kwnames
,&_obj0
))
9813 #if PYTHON_API_VERSION >= 1009
9814 char* tmpPtr
; int tmpSize
;
9815 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
9816 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9819 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
9821 _arg0
= new wxString(tmpPtr
, tmpSize
);
9823 if (!PyString_Check(_obj0
)) {
9824 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
9827 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
9831 wxPy_BEGIN_ALLOW_THREADS
;
9832 _result
= new wxString (wxMenuItem::GetLabelFromText(*_arg0
));
9834 wxPy_END_ALLOW_THREADS
;
9835 if (PyErr_Occurred()) return NULL
;
9837 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
9849 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
9850 static PyObject
*_wrap_wxMenuItem_SetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9851 PyObject
* _resultobj
;
9854 PyObject
* _argo0
= 0;
9855 PyObject
* _argo1
= 0;
9856 char *_kwnames
[] = { "self","font", NULL
};
9859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetFont",_kwnames
,&_argo0
,&_argo1
))
9862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
9869 if (_argo1
== Py_None
) { _arg1
= NULL
; }
9870 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFont_p")) {
9871 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
9876 wxPy_BEGIN_ALLOW_THREADS
;
9877 wxMenuItem_SetFont(_arg0
,*_arg1
);
9879 wxPy_END_ALLOW_THREADS
;
9880 if (PyErr_Occurred()) return NULL
;
9881 } Py_INCREF(Py_None
);
9882 _resultobj
= Py_None
;
9886 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
9887 static PyObject
*_wrap_wxMenuItem_GetFont(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9888 PyObject
* _resultobj
;
9891 PyObject
* _argo0
= 0;
9892 char *_kwnames
[] = { "self", NULL
};
9896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetFont",_kwnames
,&_argo0
))
9899 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9900 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
9906 wxPy_BEGIN_ALLOW_THREADS
;
9907 wxFont
& _result_ref
= wxMenuItem_GetFont(_arg0
);
9908 _result
= (wxFont
*) &_result_ref
;
9910 wxPy_END_ALLOW_THREADS
;
9911 if (PyErr_Occurred()) return NULL
;
9913 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxFont_p");
9914 _resultobj
= Py_BuildValue("s",_ptemp
);
9917 _resultobj
= Py_None
;
9922 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
9923 static PyObject
*_wrap_wxMenuItem_SetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9924 PyObject
* _resultobj
;
9927 PyObject
* _argo0
= 0;
9929 PyObject
* _obj1
= 0;
9930 char *_kwnames
[] = { "self","colText", NULL
};
9933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetTextColour",_kwnames
,&_argo0
,&_obj1
))
9936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
9944 if (! wxColour_helper(_obj1
, &_arg1
))
9948 wxPy_BEGIN_ALLOW_THREADS
;
9949 wxMenuItem_SetTextColour(_arg0
,*_arg1
);
9951 wxPy_END_ALLOW_THREADS
;
9952 if (PyErr_Occurred()) return NULL
;
9953 } Py_INCREF(Py_None
);
9954 _resultobj
= Py_None
;
9958 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
9959 static PyObject
*_wrap_wxMenuItem_GetTextColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9960 PyObject
* _resultobj
;
9963 PyObject
* _argo0
= 0;
9964 char *_kwnames
[] = { "self", NULL
};
9968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetTextColour",_kwnames
,&_argo0
))
9971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
9972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
9973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
9978 wxPy_BEGIN_ALLOW_THREADS
;
9979 _result
= new wxColour (wxMenuItem_GetTextColour(_arg0
));
9981 wxPy_END_ALLOW_THREADS
;
9982 if (PyErr_Occurred()) return NULL
;
9983 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
9984 _resultobj
= Py_BuildValue("s",_ptemp
);
9988 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
9989 static PyObject
*_wrap_wxMenuItem_SetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
9990 PyObject
* _resultobj
;
9993 PyObject
* _argo0
= 0;
9995 PyObject
* _obj1
= 0;
9996 char *_kwnames
[] = { "self","colBack", NULL
};
9999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBackgroundColour",_kwnames
,&_argo0
,&_obj1
))
10002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
10010 if (! wxColour_helper(_obj1
, &_arg1
))
10014 wxPy_BEGIN_ALLOW_THREADS
;
10015 wxMenuItem_SetBackgroundColour(_arg0
,*_arg1
);
10017 wxPy_END_ALLOW_THREADS
;
10018 if (PyErr_Occurred()) return NULL
;
10019 } Py_INCREF(Py_None
);
10020 _resultobj
= Py_None
;
10024 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
10025 static PyObject
*_wrap_wxMenuItem_GetBackgroundColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10026 PyObject
* _resultobj
;
10027 wxColour
* _result
;
10028 wxMenuItem
* _arg0
;
10029 PyObject
* _argo0
= 0;
10030 char *_kwnames
[] = { "self", NULL
};
10034 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetBackgroundColour",_kwnames
,&_argo0
))
10037 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10038 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10039 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
10044 wxPy_BEGIN_ALLOW_THREADS
;
10045 _result
= new wxColour (wxMenuItem_GetBackgroundColour(_arg0
));
10047 wxPy_END_ALLOW_THREADS
;
10048 if (PyErr_Occurred()) return NULL
;
10049 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxColour_p");
10050 _resultobj
= Py_BuildValue("s",_ptemp
);
10054 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
10055 static PyObject
*_wrap_wxMenuItem_SetBitmaps(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10056 PyObject
* _resultobj
;
10057 wxMenuItem
* _arg0
;
10059 wxBitmap
* _arg2
= (wxBitmap
*) &wxNullBitmap
;
10060 PyObject
* _argo0
= 0;
10061 PyObject
* _argo1
= 0;
10062 PyObject
* _argo2
= 0;
10063 char *_kwnames
[] = { "self","bmpChecked","bmpUnchecked", NULL
};
10066 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:wxMenuItem_SetBitmaps",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
10069 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10070 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10071 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
10076 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10077 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10078 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10083 if (_argo2
== Py_None
) { _arg2
= NULL
; }
10084 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
10085 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
10090 wxPy_BEGIN_ALLOW_THREADS
;
10091 wxMenuItem_SetBitmaps(_arg0
,*_arg1
,*_arg2
);
10093 wxPy_END_ALLOW_THREADS
;
10094 if (PyErr_Occurred()) return NULL
;
10095 } Py_INCREF(Py_None
);
10096 _resultobj
= Py_None
;
10100 #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
10101 static PyObject
*_wrap_wxMenuItem_SetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10102 PyObject
* _resultobj
;
10103 wxMenuItem
* _arg0
;
10105 PyObject
* _argo0
= 0;
10106 PyObject
* _argo1
= 0;
10107 char *_kwnames
[] = { "self","bmpChecked", NULL
};
10110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxMenuItem_SetBitmap",_kwnames
,&_argo0
,&_argo1
))
10113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p.");
10120 if (_argo1
== Py_None
) { _arg1
= NULL
; }
10121 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
10122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p.");
10127 wxPy_BEGIN_ALLOW_THREADS
;
10128 wxMenuItem_SetBitmap(_arg0
,*_arg1
);
10130 wxPy_END_ALLOW_THREADS
;
10131 if (PyErr_Occurred()) return NULL
;
10132 } Py_INCREF(Py_None
);
10133 _resultobj
= Py_None
;
10137 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
10138 static PyObject
*_wrap_wxMenuItem_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10139 PyObject
* _resultobj
;
10140 wxBitmap
* _result
;
10141 wxMenuItem
* _arg0
;
10142 bool _arg1
= (bool ) TRUE
;
10143 PyObject
* _argo0
= 0;
10144 int tempbool1
= (int) TRUE
;
10145 char *_kwnames
[] = { "self","bChecked", NULL
};
10149 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxMenuItem_GetBitmap",_kwnames
,&_argo0
,&tempbool1
))
10152 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10153 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10154 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
10158 _arg1
= (bool ) tempbool1
;
10160 wxPy_BEGIN_ALLOW_THREADS
;
10161 const wxBitmap
& _result_ref
= wxMenuItem_GetBitmap(_arg0
,_arg1
);
10162 _result
= (wxBitmap
*) &_result_ref
;
10164 wxPy_END_ALLOW_THREADS
;
10165 if (PyErr_Occurred()) return NULL
;
10167 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
10168 _resultobj
= Py_BuildValue("s",_ptemp
);
10170 Py_INCREF(Py_None
);
10171 _resultobj
= Py_None
;
10176 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
10177 static PyObject
*_wrap_wxMenuItem_SetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10178 PyObject
* _resultobj
;
10179 wxMenuItem
* _arg0
;
10181 PyObject
* _argo0
= 0;
10182 char *_kwnames
[] = { "self","nWidth", NULL
};
10185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxMenuItem_SetMarginWidth",_kwnames
,&_argo0
,&_arg1
))
10188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
10195 wxPy_BEGIN_ALLOW_THREADS
;
10196 wxMenuItem_SetMarginWidth(_arg0
,_arg1
);
10198 wxPy_END_ALLOW_THREADS
;
10199 if (PyErr_Occurred()) return NULL
;
10200 } Py_INCREF(Py_None
);
10201 _resultobj
= Py_None
;
10205 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
10206 static PyObject
*_wrap_wxMenuItem_GetMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10207 PyObject
* _resultobj
;
10209 wxMenuItem
* _arg0
;
10210 PyObject
* _argo0
= 0;
10211 char *_kwnames
[] = { "self", NULL
};
10214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_GetMarginWidth",_kwnames
,&_argo0
))
10217 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10218 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
10224 wxPy_BEGIN_ALLOW_THREADS
;
10225 _result
= (int )wxMenuItem_GetMarginWidth(_arg0
);
10227 wxPy_END_ALLOW_THREADS
;
10228 if (PyErr_Occurred()) return NULL
;
10229 } _resultobj
= Py_BuildValue("i",_result
);
10233 static PyObject
*_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10234 PyObject
* _resultobj
;
10236 char *_kwnames
[] = { NULL
};
10239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxMenuItem_GetDefaultMarginWidth",_kwnames
))
10242 wxPy_BEGIN_ALLOW_THREADS
;
10243 _result
= (int )wxMenuItem::GetDefaultMarginWidth();
10245 wxPy_END_ALLOW_THREADS
;
10246 if (PyErr_Occurred()) return NULL
;
10247 } _resultobj
= Py_BuildValue("i",_result
);
10251 #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn())
10252 static PyObject
*_wrap_wxMenuItem_IsOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10253 PyObject
* _resultobj
;
10255 wxMenuItem
* _arg0
;
10256 PyObject
* _argo0
= 0;
10257 char *_kwnames
[] = { "self", NULL
};
10260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_IsOwnerDrawn",_kwnames
,&_argo0
))
10263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p.");
10270 wxPy_BEGIN_ALLOW_THREADS
;
10271 _result
= (bool )wxMenuItem_IsOwnerDrawn(_arg0
);
10273 wxPy_END_ALLOW_THREADS
;
10274 if (PyErr_Occurred()) return NULL
;
10275 } _resultobj
= Py_BuildValue("i",_result
);
10279 #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn())
10280 static PyObject
*_wrap_wxMenuItem_ResetOwnerDrawn(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
10281 PyObject
* _resultobj
;
10282 wxMenuItem
* _arg0
;
10283 PyObject
* _argo0
= 0;
10284 char *_kwnames
[] = { "self", NULL
};
10287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxMenuItem_ResetOwnerDrawn",_kwnames
,&_argo0
))
10290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
10291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxMenuItem_p")) {
10292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p.");
10297 wxPy_BEGIN_ALLOW_THREADS
;
10298 wxMenuItem_ResetOwnerDrawn(_arg0
);
10300 wxPy_END_ALLOW_THREADS
;
10301 if (PyErr_Occurred()) return NULL
;
10302 } Py_INCREF(Py_None
);
10303 _resultobj
= Py_None
;
10307 static PyMethodDef windowscMethods
[] = {
10308 { "wxMenuItem_ResetOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_ResetOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10309 { "wxMenuItem_IsOwnerDrawn", (PyCFunction
) _wrap_wxMenuItem_IsOwnerDrawn
, METH_VARARGS
| METH_KEYWORDS
},
10310 { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetDefaultMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10311 { "wxMenuItem_GetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_GetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10312 { "wxMenuItem_SetMarginWidth", (PyCFunction
) _wrap_wxMenuItem_SetMarginWidth
, METH_VARARGS
| METH_KEYWORDS
},
10313 { "wxMenuItem_GetBitmap", (PyCFunction
) _wrap_wxMenuItem_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10314 { "wxMenuItem_SetBitmap", (PyCFunction
) _wrap_wxMenuItem_SetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
10315 { "wxMenuItem_SetBitmaps", (PyCFunction
) _wrap_wxMenuItem_SetBitmaps
, METH_VARARGS
| METH_KEYWORDS
},
10316 { "wxMenuItem_GetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10317 { "wxMenuItem_SetBackgroundColour", (PyCFunction
) _wrap_wxMenuItem_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10318 { "wxMenuItem_GetTextColour", (PyCFunction
) _wrap_wxMenuItem_GetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10319 { "wxMenuItem_SetTextColour", (PyCFunction
) _wrap_wxMenuItem_SetTextColour
, METH_VARARGS
| METH_KEYWORDS
},
10320 { "wxMenuItem_GetFont", (PyCFunction
) _wrap_wxMenuItem_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10321 { "wxMenuItem_SetFont", (PyCFunction
) _wrap_wxMenuItem_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10322 { "wxMenuItem_GetLabelFromText", (PyCFunction
) _wrap_wxMenuItem_GetLabelFromText
, METH_VARARGS
| METH_KEYWORDS
},
10323 { "wxMenuItem_SetAccel", (PyCFunction
) _wrap_wxMenuItem_SetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10324 { "wxMenuItem_GetAccel", (PyCFunction
) _wrap_wxMenuItem_GetAccel
, METH_VARARGS
| METH_KEYWORDS
},
10325 { "wxMenuItem_GetHelp", (PyCFunction
) _wrap_wxMenuItem_GetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10326 { "wxMenuItem_SetHelp", (PyCFunction
) _wrap_wxMenuItem_SetHelp
, METH_VARARGS
| METH_KEYWORDS
},
10327 { "wxMenuItem_Toggle", (PyCFunction
) _wrap_wxMenuItem_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
10328 { "wxMenuItem_IsChecked", (PyCFunction
) _wrap_wxMenuItem_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10329 { "wxMenuItem_Check", (PyCFunction
) _wrap_wxMenuItem_Check
, METH_VARARGS
| METH_KEYWORDS
},
10330 { "wxMenuItem_IsEnabled", (PyCFunction
) _wrap_wxMenuItem_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10331 { "wxMenuItem_Enable", (PyCFunction
) _wrap_wxMenuItem_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10332 { "wxMenuItem_GetSubMenu", (PyCFunction
) _wrap_wxMenuItem_GetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10333 { "wxMenuItem_SetSubMenu", (PyCFunction
) _wrap_wxMenuItem_SetSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10334 { "wxMenuItem_IsSubMenu", (PyCFunction
) _wrap_wxMenuItem_IsSubMenu
, METH_VARARGS
| METH_KEYWORDS
},
10335 { "wxMenuItem_IsCheckable", (PyCFunction
) _wrap_wxMenuItem_IsCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10336 { "wxMenuItem_SetCheckable", (PyCFunction
) _wrap_wxMenuItem_SetCheckable
, METH_VARARGS
| METH_KEYWORDS
},
10337 { "wxMenuItem_GetText", (PyCFunction
) _wrap_wxMenuItem_GetText
, METH_VARARGS
| METH_KEYWORDS
},
10338 { "wxMenuItem_GetLabel", (PyCFunction
) _wrap_wxMenuItem_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10339 { "wxMenuItem_SetText", (PyCFunction
) _wrap_wxMenuItem_SetText
, METH_VARARGS
| METH_KEYWORDS
},
10340 { "wxMenuItem_IsSeparator", (PyCFunction
) _wrap_wxMenuItem_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10341 { "wxMenuItem_GetId", (PyCFunction
) _wrap_wxMenuItem_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10342 { "wxMenuItem_SetId", (PyCFunction
) _wrap_wxMenuItem_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10343 { "wxMenuItem_GetMenu", (PyCFunction
) _wrap_wxMenuItem_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10344 { "new_wxMenuItem", (PyCFunction
) _wrap_new_wxMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10345 { "wxMenuBar_GetHelpString", (PyCFunction
) _wrap_wxMenuBar_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10346 { "wxMenuBar_SetHelpString", (PyCFunction
) _wrap_wxMenuBar_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10347 { "wxMenuBar_GetLabel", (PyCFunction
) _wrap_wxMenuBar_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10348 { "wxMenuBar_SetLabel", (PyCFunction
) _wrap_wxMenuBar_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10349 { "wxMenuBar_IsEnabled", (PyCFunction
) _wrap_wxMenuBar_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10350 { "wxMenuBar_IsChecked", (PyCFunction
) _wrap_wxMenuBar_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10351 { "wxMenuBar_Check", (PyCFunction
) _wrap_wxMenuBar_Check
, METH_VARARGS
| METH_KEYWORDS
},
10352 { "wxMenuBar_Enable", (PyCFunction
) _wrap_wxMenuBar_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10353 { "wxMenuBar_FindItemById", (PyCFunction
) _wrap_wxMenuBar_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10354 { "wxMenuBar_FindMenuItem", (PyCFunction
) _wrap_wxMenuBar_FindMenuItem
, METH_VARARGS
| METH_KEYWORDS
},
10355 { "wxMenuBar_GetLabelTop", (PyCFunction
) _wrap_wxMenuBar_GetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10356 { "wxMenuBar_SetLabelTop", (PyCFunction
) _wrap_wxMenuBar_SetLabelTop
, METH_VARARGS
| METH_KEYWORDS
},
10357 { "wxMenuBar_EnableTop", (PyCFunction
) _wrap_wxMenuBar_EnableTop
, METH_VARARGS
| METH_KEYWORDS
},
10358 { "wxMenuBar_Remove", (PyCFunction
) _wrap_wxMenuBar_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10359 { "wxMenuBar_Replace", (PyCFunction
) _wrap_wxMenuBar_Replace
, METH_VARARGS
| METH_KEYWORDS
},
10360 { "wxMenuBar_GetMenu", (PyCFunction
) _wrap_wxMenuBar_GetMenu
, METH_VARARGS
| METH_KEYWORDS
},
10361 { "wxMenuBar_GetMenuCount", (PyCFunction
) _wrap_wxMenuBar_GetMenuCount
, METH_VARARGS
| METH_KEYWORDS
},
10362 { "wxMenuBar_Insert", (PyCFunction
) _wrap_wxMenuBar_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10363 { "wxMenuBar_Append", (PyCFunction
) _wrap_wxMenuBar_Append
, METH_VARARGS
| METH_KEYWORDS
},
10364 { "new_wxMenuBar", (PyCFunction
) _wrap_new_wxMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
10365 { "wxMenu_GetParent", (PyCFunction
) _wrap_wxMenu_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10366 { "wxMenu_SetParent", (PyCFunction
) _wrap_wxMenu_SetParent
, METH_VARARGS
| METH_KEYWORDS
},
10367 { "wxMenu_IsAttached", (PyCFunction
) _wrap_wxMenu_IsAttached
, METH_VARARGS
| METH_KEYWORDS
},
10368 { "wxMenu_GetStyle", (PyCFunction
) _wrap_wxMenu_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
10369 { "wxMenu_GetInvokingWindow", (PyCFunction
) _wrap_wxMenu_GetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10370 { "wxMenu_SetInvokingWindow", (PyCFunction
) _wrap_wxMenu_SetInvokingWindow
, METH_VARARGS
| METH_KEYWORDS
},
10371 { "wxMenu_GetEventHandler", (PyCFunction
) _wrap_wxMenu_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10372 { "wxMenu_SetEventHandler", (PyCFunction
) _wrap_wxMenu_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10373 { "wxMenu_GetMenuItems", (PyCFunction
) _wrap_wxMenu_GetMenuItems
, METH_VARARGS
| METH_KEYWORDS
},
10374 { "wxMenu_GetMenuItemCount", (PyCFunction
) _wrap_wxMenu_GetMenuItemCount
, METH_VARARGS
| METH_KEYWORDS
},
10375 { "wxMenu_DestroyItem", (PyCFunction
) _wrap_wxMenu_DestroyItem
, METH_VARARGS
| METH_KEYWORDS
},
10376 { "wxMenu_DestroyId", (PyCFunction
) _wrap_wxMenu_DestroyId
, METH_VARARGS
| METH_KEYWORDS
},
10377 { "wxMenu_Destroy", (PyCFunction
) _wrap_wxMenu_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10378 { "wxMenu_RemoveItem", (PyCFunction
) _wrap_wxMenu_RemoveItem
, METH_VARARGS
| METH_KEYWORDS
},
10379 { "wxMenu_Remove", (PyCFunction
) _wrap_wxMenu_Remove
, METH_VARARGS
| METH_KEYWORDS
},
10380 { "wxMenu_Insert", (PyCFunction
) _wrap_wxMenu_Insert
, METH_VARARGS
| METH_KEYWORDS
},
10381 { "wxMenu_DeleteItem", (PyCFunction
) _wrap_wxMenu_DeleteItem
, METH_VARARGS
| METH_KEYWORDS
},
10382 { "wxMenu_Delete", (PyCFunction
) _wrap_wxMenu_Delete
, METH_VARARGS
| METH_KEYWORDS
},
10383 { "wxMenu_UpdateUI", (PyCFunction
) _wrap_wxMenu_UpdateUI
, METH_VARARGS
| METH_KEYWORDS
},
10384 { "wxMenu_SetHelpString", (PyCFunction
) _wrap_wxMenu_SetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10385 { "wxMenu_GetHelpString", (PyCFunction
) _wrap_wxMenu_GetHelpString
, METH_VARARGS
| METH_KEYWORDS
},
10386 { "wxMenu_SetLabel", (PyCFunction
) _wrap_wxMenu_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10387 { "wxMenu_GetLabel", (PyCFunction
) _wrap_wxMenu_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10388 { "wxMenu_SetTitle", (PyCFunction
) _wrap_wxMenu_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10389 { "wxMenu_GetTitle", (PyCFunction
) _wrap_wxMenu_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10390 { "wxMenu_FindItemById", (PyCFunction
) _wrap_wxMenu_FindItemById
, METH_VARARGS
| METH_KEYWORDS
},
10391 { "wxMenu_FindItem", (PyCFunction
) _wrap_wxMenu_FindItem
, METH_VARARGS
| METH_KEYWORDS
},
10392 { "wxMenu_IsEnabled", (PyCFunction
) _wrap_wxMenu_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10393 { "wxMenu_Enable", (PyCFunction
) _wrap_wxMenu_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10394 { "wxMenu_IsChecked", (PyCFunction
) _wrap_wxMenu_IsChecked
, METH_VARARGS
| METH_KEYWORDS
},
10395 { "wxMenu_Check", (PyCFunction
) _wrap_wxMenu_Check
, METH_VARARGS
| METH_KEYWORDS
},
10396 { "wxMenu_Break", (PyCFunction
) _wrap_wxMenu_Break
, METH_VARARGS
| METH_KEYWORDS
},
10397 { "wxMenu_AppendSeparator", (PyCFunction
) _wrap_wxMenu_AppendSeparator
, METH_VARARGS
| METH_KEYWORDS
},
10398 { "wxMenu_AppendItem", (PyCFunction
) _wrap_wxMenu_AppendItem
, METH_VARARGS
| METH_KEYWORDS
},
10399 { "wxMenu_AppendMenu", (PyCFunction
) _wrap_wxMenu_AppendMenu
, METH_VARARGS
| METH_KEYWORDS
},
10400 { "wxMenu_Append", (PyCFunction
) _wrap_wxMenu_Append
, METH_VARARGS
| METH_KEYWORDS
},
10401 { "new_wxMenu", (PyCFunction
) _wrap_new_wxMenu
, METH_VARARGS
| METH_KEYWORDS
},
10402 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_AdjustScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10403 { "wxScrolledWindow_GetScaleY", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleY
, METH_VARARGS
| METH_KEYWORDS
},
10404 { "wxScrolledWindow_GetScaleX", (PyCFunction
) _wrap_wxScrolledWindow_GetScaleX
, METH_VARARGS
| METH_KEYWORDS
},
10405 { "wxScrolledWindow_SetScale", (PyCFunction
) _wrap_wxScrolledWindow_SetScale
, METH_VARARGS
| METH_KEYWORDS
},
10406 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcUnscrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10407 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction
) _wrap_wxScrolledWindow_CalcScrolledPosition
, METH_VARARGS
| METH_KEYWORDS
},
10408 { "wxScrolledWindow_ViewStart", (PyCFunction
) _wrap_wxScrolledWindow_ViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10409 { "wxScrolledWindow_GetViewStart", (PyCFunction
) _wrap_wxScrolledWindow_GetViewStart
, METH_VARARGS
| METH_KEYWORDS
},
10410 { "wxScrolledWindow_SetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_SetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10411 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10412 { "wxScrolledWindow_SetScrollbars", (PyCFunction
) _wrap_wxScrolledWindow_SetScrollbars
, METH_VARARGS
| METH_KEYWORDS
},
10413 { "wxScrolledWindow_Scroll", (PyCFunction
) _wrap_wxScrolledWindow_Scroll
, METH_VARARGS
| METH_KEYWORDS
},
10414 { "wxScrolledWindow_PrepareDC", (PyCFunction
) _wrap_wxScrolledWindow_PrepareDC
, METH_VARARGS
| METH_KEYWORDS
},
10415 { "wxScrolledWindow_IsRetained", (PyCFunction
) _wrap_wxScrolledWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10416 { "wxScrolledWindow_GetVirtualSize", (PyCFunction
) _wrap_wxScrolledWindow_GetVirtualSize
, METH_VARARGS
| METH_KEYWORDS
},
10417 { "wxScrolledWindow_GetTargetWindow", (PyCFunction
) _wrap_wxScrolledWindow_GetTargetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10418 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit
, METH_VARARGS
| METH_KEYWORDS
},
10419 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction
) _wrap_wxScrolledWindow_GetScrollPageSize
, METH_VARARGS
| METH_KEYWORDS
},
10420 { "wxScrolledWindow_EnableScrolling", (PyCFunction
) _wrap_wxScrolledWindow_EnableScrolling
, METH_VARARGS
| METH_KEYWORDS
},
10421 { "new_wxScrolledWindow", (PyCFunction
) _wrap_new_wxScrolledWindow
, METH_VARARGS
| METH_KEYWORDS
},
10422 { "wxDialog_CreateButtonSizer", (PyCFunction
) _wrap_wxDialog_CreateButtonSizer
, METH_VARARGS
| METH_KEYWORDS
},
10423 { "wxDialog_CreateTextSizer", (PyCFunction
) _wrap_wxDialog_CreateTextSizer
, METH_VARARGS
| METH_KEYWORDS
},
10424 { "wxDialog_SetReturnCode", (PyCFunction
) _wrap_wxDialog_SetReturnCode
, METH_VARARGS
| METH_KEYWORDS
},
10425 { "wxDialog_GetReturnCode", (PyCFunction
) _wrap_wxDialog_GetReturnCode
, METH_VARARGS
| METH_KEYWORDS
},
10426 { "wxDialog_ShowModal", (PyCFunction
) _wrap_wxDialog_ShowModal
, METH_VARARGS
| METH_KEYWORDS
},
10427 { "wxDialog_Show", (PyCFunction
) _wrap_wxDialog_Show
, METH_VARARGS
| METH_KEYWORDS
},
10428 { "wxDialog_SetTitle", (PyCFunction
) _wrap_wxDialog_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10429 { "wxDialog_IsModal", (PyCFunction
) _wrap_wxDialog_IsModal
, METH_VARARGS
| METH_KEYWORDS
},
10430 { "wxDialog_SetModal", (PyCFunction
) _wrap_wxDialog_SetModal
, METH_VARARGS
| METH_KEYWORDS
},
10431 { "wxDialog_IsIconized", (PyCFunction
) _wrap_wxDialog_IsIconized
, METH_VARARGS
| METH_KEYWORDS
},
10432 { "wxDialog_Iconize", (PyCFunction
) _wrap_wxDialog_Iconize
, METH_VARARGS
| METH_KEYWORDS
},
10433 { "wxDialog_GetTitle", (PyCFunction
) _wrap_wxDialog_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10434 { "wxDialog_EndModal", (PyCFunction
) _wrap_wxDialog_EndModal
, METH_VARARGS
| METH_KEYWORDS
},
10435 { "wxDialog_Centre", (PyCFunction
) _wrap_wxDialog_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10436 { "new_wxDialog", (PyCFunction
) _wrap_new_wxDialog
, METH_VARARGS
| METH_KEYWORDS
},
10437 { "wxPanel_SetDefaultItem", (PyCFunction
) _wrap_wxPanel_SetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10438 { "wxPanel_GetDefaultItem", (PyCFunction
) _wrap_wxPanel_GetDefaultItem
, METH_VARARGS
| METH_KEYWORDS
},
10439 { "wxPanel_InitDialog", (PyCFunction
) _wrap_wxPanel_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10440 { "new_wxPanel", (PyCFunction
) _wrap_new_wxPanel
, METH_VARARGS
| METH_KEYWORDS
},
10441 { "wxWindow_GetCaret", (PyCFunction
) _wrap_wxWindow_GetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10442 { "wxWindow_SetCaret", (PyCFunction
) _wrap_wxWindow_SetCaret
, METH_VARARGS
| METH_KEYWORDS
},
10443 { "wxWindow_GetBestSize", (PyCFunction
) _wrap_wxWindow_GetBestSize
, METH_VARARGS
| METH_KEYWORDS
},
10444 { "wxWindow_GetDropTarget", (PyCFunction
) _wrap_wxWindow_GetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10445 { "wxWindow_SetDropTarget", (PyCFunction
) _wrap_wxWindow_SetDropTarget
, METH_VARARGS
| METH_KEYWORDS
},
10446 { "wxWindow_SetValidator", (PyCFunction
) _wrap_wxWindow_SetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10447 { "wxWindow_GetValidator", (PyCFunction
) _wrap_wxWindow_GetValidator
, METH_VARARGS
| METH_KEYWORDS
},
10448 { "wxWindow_GetSizer", (PyCFunction
) _wrap_wxWindow_GetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10449 { "wxWindow_SetSizer", (PyCFunction
) _wrap_wxWindow_SetSizer
, METH_VARARGS
| METH_KEYWORDS
},
10450 { "wxWindow_GetToolTip", (PyCFunction
) _wrap_wxWindow_GetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10451 { "wxWindow_SetToolTip", (PyCFunction
) _wrap_wxWindow_SetToolTip
, METH_VARARGS
| METH_KEYWORDS
},
10452 { "wxWindow_SetToolTipString", (PyCFunction
) _wrap_wxWindow_SetToolTipString
, METH_VARARGS
| METH_KEYWORDS
},
10453 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelSizeToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10454 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction
) _wrap_wxWindow_ConvertPixelPointToDialog
, METH_VARARGS
| METH_KEYWORDS
},
10455 { "wxWindow_DLG_SZE", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10456 { "wxWindow_DLG_PNT", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10457 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogSizeToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10458 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction
) _wrap_wxWindow_ConvertDialogPointToPixels
, METH_VARARGS
| METH_KEYWORDS
},
10459 { "wxWindow_WarpPointer", (PyCFunction
) _wrap_wxWindow_WarpPointer
, METH_VARARGS
| METH_KEYWORDS
},
10460 { "wxWindow_Validate", (PyCFunction
) _wrap_wxWindow_Validate
, METH_VARARGS
| METH_KEYWORDS
},
10461 { "wxWindow_TransferDataToWindow", (PyCFunction
) _wrap_wxWindow_TransferDataToWindow
, METH_VARARGS
| METH_KEYWORDS
},
10462 { "wxWindow_TransferDataFromWindow", (PyCFunction
) _wrap_wxWindow_TransferDataFromWindow
, METH_VARARGS
| METH_KEYWORDS
},
10463 { "wxWindow_Show", (PyCFunction
) _wrap_wxWindow_Show
, METH_VARARGS
| METH_KEYWORDS
},
10464 { "wxWindow_SetTitle", (PyCFunction
) _wrap_wxWindow_SetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10465 { "wxWindow_SetExtraStyle", (PyCFunction
) _wrap_wxWindow_SetExtraStyle
, METH_VARARGS
| METH_KEYWORDS
},
10466 { "wxWindow_SetEventHandler", (PyCFunction
) _wrap_wxWindow_SetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10467 { "wxWindow_SetCursor", (PyCFunction
) _wrap_wxWindow_SetCursor
, METH_VARARGS
| METH_KEYWORDS
},
10468 { "wxWindow_SetClientSize", (PyCFunction
) _wrap_wxWindow_SetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10469 { "wxWindow_SetClientSizeWH", (PyCFunction
) _wrap_wxWindow_SetClientSizeWH
, METH_VARARGS
| METH_KEYWORDS
},
10470 { "wxWindow_SetSizeHints", (PyCFunction
) _wrap_wxWindow_SetSizeHints
, METH_VARARGS
| METH_KEYWORDS
},
10471 { "wxWindow_SetRect", (PyCFunction
) _wrap_wxWindow_SetRect
, METH_VARARGS
| METH_KEYWORDS
},
10472 { "wxWindow_SetPosition", (PyCFunction
) _wrap_wxWindow_SetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10473 { "wxWindow_SetSize", (PyCFunction
) _wrap_wxWindow_SetSize
, METH_VARARGS
| METH_KEYWORDS
},
10474 { "wxWindow_SetDimensions", (PyCFunction
) _wrap_wxWindow_SetDimensions
, METH_VARARGS
| METH_KEYWORDS
},
10475 { "wxWindow_SetScrollPos", (PyCFunction
) _wrap_wxWindow_SetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10476 { "wxWindow_SetScrollbar", (PyCFunction
) _wrap_wxWindow_SetScrollbar
, METH_VARARGS
| METH_KEYWORDS
},
10477 { "wxWindow_SetName", (PyCFunction
) _wrap_wxWindow_SetName
, METH_VARARGS
| METH_KEYWORDS
},
10478 { "wxWindow_SetId", (PyCFunction
) _wrap_wxWindow_SetId
, METH_VARARGS
| METH_KEYWORDS
},
10479 { "wxWindow_SetForegroundColour", (PyCFunction
) _wrap_wxWindow_SetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10480 { "wxWindow_SetFont", (PyCFunction
) _wrap_wxWindow_SetFont
, METH_VARARGS
| METH_KEYWORDS
},
10481 { "wxWindow_AcceptsFocus", (PyCFunction
) _wrap_wxWindow_AcceptsFocus
, METH_VARARGS
| METH_KEYWORDS
},
10482 { "wxWindow_SetFocus", (PyCFunction
) _wrap_wxWindow_SetFocus
, METH_VARARGS
| METH_KEYWORDS
},
10483 { "wxWindow_UnsetConstraints", (PyCFunction
) _wrap_wxWindow_UnsetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10484 { "wxWindow_SetConstraints", (PyCFunction
) _wrap_wxWindow_SetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10485 { "wxWindow_SetBackgroundColour", (PyCFunction
) _wrap_wxWindow_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10486 { "wxWindow_GetAutoLayout", (PyCFunction
) _wrap_wxWindow_GetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10487 { "wxWindow_SetAutoLayout", (PyCFunction
) _wrap_wxWindow_SetAutoLayout
, METH_VARARGS
| METH_KEYWORDS
},
10488 { "wxWindow_SetAcceleratorTable", (PyCFunction
) _wrap_wxWindow_SetAcceleratorTable
, METH_VARARGS
| METH_KEYWORDS
},
10489 { "wxWindow_ScrollWindow", (PyCFunction
) _wrap_wxWindow_ScrollWindow
, METH_VARARGS
| METH_KEYWORDS
},
10490 { "wxWindow_ScreenToClient", (PyCFunction
) _wrap_wxWindow_ScreenToClient
, METH_VARARGS
| METH_KEYWORDS
},
10491 { "wxWindow_ScreenToClientXY", (PyCFunction
) _wrap_wxWindow_ScreenToClientXY
, METH_VARARGS
| METH_KEYWORDS
},
10492 { "wxWindow_Reparent", (PyCFunction
) _wrap_wxWindow_Reparent
, METH_VARARGS
| METH_KEYWORDS
},
10493 { "wxWindow_RemoveChild", (PyCFunction
) _wrap_wxWindow_RemoveChild
, METH_VARARGS
| METH_KEYWORDS
},
10494 { "wxWindow_ReleaseMouse", (PyCFunction
) _wrap_wxWindow_ReleaseMouse
, METH_VARARGS
| METH_KEYWORDS
},
10495 { "wxWindow_Refresh", (PyCFunction
) _wrap_wxWindow_Refresh
, METH_VARARGS
| METH_KEYWORDS
},
10496 { "wxWindow_Raise", (PyCFunction
) _wrap_wxWindow_Raise
, METH_VARARGS
| METH_KEYWORDS
},
10497 { "wxWindow_PopupMenu", (PyCFunction
) _wrap_wxWindow_PopupMenu
, METH_VARARGS
| METH_KEYWORDS
},
10498 { "wxWindow_PopupMenuXY", (PyCFunction
) _wrap_wxWindow_PopupMenuXY
, METH_VARARGS
| METH_KEYWORDS
},
10499 { "wxWindow_PushEventHandler", (PyCFunction
) _wrap_wxWindow_PushEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10500 { "wxWindow_PopEventHandler", (PyCFunction
) _wrap_wxWindow_PopEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10501 { "wxWindow_Move", (PyCFunction
) _wrap_wxWindow_Move
, METH_VARARGS
| METH_KEYWORDS
},
10502 { "wxWindow_MoveXY", (PyCFunction
) _wrap_wxWindow_MoveXY
, METH_VARARGS
| METH_KEYWORDS
},
10503 { "wxWindow_MakeModal", (PyCFunction
) _wrap_wxWindow_MakeModal
, METH_VARARGS
| METH_KEYWORDS
},
10504 { "wxWindow_Lower", (PyCFunction
) _wrap_wxWindow_Lower
, METH_VARARGS
| METH_KEYWORDS
},
10505 { "wxWindow_LoadFromResource", (PyCFunction
) _wrap_wxWindow_LoadFromResource
, METH_VARARGS
| METH_KEYWORDS
},
10506 { "wxWindow_Layout", (PyCFunction
) _wrap_wxWindow_Layout
, METH_VARARGS
| METH_KEYWORDS
},
10507 { "wxWindow_IsTopLevel", (PyCFunction
) _wrap_wxWindow_IsTopLevel
, METH_VARARGS
| METH_KEYWORDS
},
10508 { "wxWindow_IsShown", (PyCFunction
) _wrap_wxWindow_IsShown
, METH_VARARGS
| METH_KEYWORDS
},
10509 { "wxWindow_IsRetained", (PyCFunction
) _wrap_wxWindow_IsRetained
, METH_VARARGS
| METH_KEYWORDS
},
10510 { "wxWindow_IsExposedRect", (PyCFunction
) _wrap_wxWindow_IsExposedRect
, METH_VARARGS
| METH_KEYWORDS
},
10511 { "wxWindow_IsExposedPoint", (PyCFunction
) _wrap_wxWindow_IsExposedPoint
, METH_VARARGS
| METH_KEYWORDS
},
10512 { "wxWindow_IsExposed", (PyCFunction
) _wrap_wxWindow_IsExposed
, METH_VARARGS
| METH_KEYWORDS
},
10513 { "wxWindow_IsEnabled", (PyCFunction
) _wrap_wxWindow_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10514 { "wxWindow_InitDialog", (PyCFunction
) _wrap_wxWindow_InitDialog
, METH_VARARGS
| METH_KEYWORDS
},
10515 { "wxWindow_Hide", (PyCFunction
) _wrap_wxWindow_Hide
, METH_VARARGS
| METH_KEYWORDS
},
10516 { "wxWindow_SetWindowStyle", (PyCFunction
) _wrap_wxWindow_SetWindowStyle
, METH_VARARGS
| METH_KEYWORDS
},
10517 { "wxWindow_SetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_SetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10518 { "wxWindow_GetWindowStyleFlag", (PyCFunction
) _wrap_wxWindow_GetWindowStyleFlag
, METH_VARARGS
| METH_KEYWORDS
},
10519 { "wxWindow_GetUpdateRegion", (PyCFunction
) _wrap_wxWindow_GetUpdateRegion
, METH_VARARGS
| METH_KEYWORDS
},
10520 { "wxWindow_GetTitle", (PyCFunction
) _wrap_wxWindow_GetTitle
, METH_VARARGS
| METH_KEYWORDS
},
10521 { "wxWindow_GetFullTextExtent", (PyCFunction
) _wrap_wxWindow_GetFullTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10522 { "wxWindow_GetTextExtent", (PyCFunction
) _wrap_wxWindow_GetTextExtent
, METH_VARARGS
| METH_KEYWORDS
},
10523 { "wxWindow_GetSize", (PyCFunction
) _wrap_wxWindow_GetSize
, METH_VARARGS
| METH_KEYWORDS
},
10524 { "wxWindow_GetSizeTuple", (PyCFunction
) _wrap_wxWindow_GetSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10525 { "wxWindow_GetScrollRange", (PyCFunction
) _wrap_wxWindow_GetScrollRange
, METH_VARARGS
| METH_KEYWORDS
},
10526 { "wxWindow_GetScrollPos", (PyCFunction
) _wrap_wxWindow_GetScrollPos
, METH_VARARGS
| METH_KEYWORDS
},
10527 { "wxWindow_GetScrollThumb", (PyCFunction
) _wrap_wxWindow_GetScrollThumb
, METH_VARARGS
| METH_KEYWORDS
},
10528 { "wxWindow_GetRect", (PyCFunction
) _wrap_wxWindow_GetRect
, METH_VARARGS
| METH_KEYWORDS
},
10529 { "wxWindow_GetPosition", (PyCFunction
) _wrap_wxWindow_GetPosition
, METH_VARARGS
| METH_KEYWORDS
},
10530 { "wxWindow_GetPositionTuple", (PyCFunction
) _wrap_wxWindow_GetPositionTuple
, METH_VARARGS
| METH_KEYWORDS
},
10531 { "wxWindow_GetParent", (PyCFunction
) _wrap_wxWindow_GetParent
, METH_VARARGS
| METH_KEYWORDS
},
10532 { "wxWindow_GetName", (PyCFunction
) _wrap_wxWindow_GetName
, METH_VARARGS
| METH_KEYWORDS
},
10533 { "wxWindow_SetLabel", (PyCFunction
) _wrap_wxWindow_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10534 { "wxWindow_GetLabel", (PyCFunction
) _wrap_wxWindow_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
10535 { "wxWindow_GetId", (PyCFunction
) _wrap_wxWindow_GetId
, METH_VARARGS
| METH_KEYWORDS
},
10536 { "wxWindow_GetHandle", (PyCFunction
) _wrap_wxWindow_GetHandle
, METH_VARARGS
| METH_KEYWORDS
},
10537 { "wxWindow_GetGrandParent", (PyCFunction
) _wrap_wxWindow_GetGrandParent
, METH_VARARGS
| METH_KEYWORDS
},
10538 { "wxWindow_GetForegroundColour", (PyCFunction
) _wrap_wxWindow_GetForegroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10539 { "wxWindow_GetFont", (PyCFunction
) _wrap_wxWindow_GetFont
, METH_VARARGS
| METH_KEYWORDS
},
10540 { "wxWindow_GetEventHandler", (PyCFunction
) _wrap_wxWindow_GetEventHandler
, METH_VARARGS
| METH_KEYWORDS
},
10541 { "wxWindow_GetConstraints", (PyCFunction
) _wrap_wxWindow_GetConstraints
, METH_VARARGS
| METH_KEYWORDS
},
10542 { "wxWindow_GetClientSize", (PyCFunction
) _wrap_wxWindow_GetClientSize
, METH_VARARGS
| METH_KEYWORDS
},
10543 { "wxWindow_GetClientSizeTuple", (PyCFunction
) _wrap_wxWindow_GetClientSizeTuple
, METH_VARARGS
| METH_KEYWORDS
},
10544 { "wxWindow_GetCharWidth", (PyCFunction
) _wrap_wxWindow_GetCharWidth
, METH_VARARGS
| METH_KEYWORDS
},
10545 { "wxWindow_GetCharHeight", (PyCFunction
) _wrap_wxWindow_GetCharHeight
, METH_VARARGS
| METH_KEYWORDS
},
10546 { "wxWindow_GetChildren", (PyCFunction
) _wrap_wxWindow_GetChildren
, METH_VARARGS
| METH_KEYWORDS
},
10547 { "wxWindow_GetBackgroundColour", (PyCFunction
) _wrap_wxWindow_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
},
10548 { "wxWindow_Fit", (PyCFunction
) _wrap_wxWindow_Fit
, METH_VARARGS
| METH_KEYWORDS
},
10549 { "wxWindow_FindWindowByName", (PyCFunction
) _wrap_wxWindow_FindWindowByName
, METH_VARARGS
| METH_KEYWORDS
},
10550 { "wxWindow_FindWindowById", (PyCFunction
) _wrap_wxWindow_FindWindowById
, METH_VARARGS
| METH_KEYWORDS
},
10551 { "wxWindow_Enable", (PyCFunction
) _wrap_wxWindow_Enable
, METH_VARARGS
| METH_KEYWORDS
},
10552 { "wxWindow_DragAcceptFiles", (PyCFunction
) _wrap_wxWindow_DragAcceptFiles
, METH_VARARGS
| METH_KEYWORDS
},
10553 { "wxWindow_IsBeingDeleted", (PyCFunction
) _wrap_wxWindow_IsBeingDeleted
, METH_VARARGS
| METH_KEYWORDS
},
10554 { "wxWindow_DestroyChildren", (PyCFunction
) _wrap_wxWindow_DestroyChildren
, METH_VARARGS
| METH_KEYWORDS
},
10555 { "wxWindow_Destroy", (PyCFunction
) _wrap_wxWindow_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
10556 { "wxWindow_Close", (PyCFunction
) _wrap_wxWindow_Close
, METH_VARARGS
| METH_KEYWORDS
},
10557 { "wxWindow_ClientToScreen", (PyCFunction
) _wrap_wxWindow_ClientToScreen
, METH_VARARGS
| METH_KEYWORDS
},
10558 { "wxWindow_ClientToScreenXY", (PyCFunction
) _wrap_wxWindow_ClientToScreenXY
, METH_VARARGS
| METH_KEYWORDS
},
10559 { "wxWindow_CenterOnScreen", (PyCFunction
) _wrap_wxWindow_CenterOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10560 { "wxWindow_CentreOnScreen", (PyCFunction
) _wrap_wxWindow_CentreOnScreen
, METH_VARARGS
| METH_KEYWORDS
},
10561 { "wxWindow_CenterOnParent", (PyCFunction
) _wrap_wxWindow_CenterOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10562 { "wxWindow_CentreOnParent", (PyCFunction
) _wrap_wxWindow_CentreOnParent
, METH_VARARGS
| METH_KEYWORDS
},
10563 { "wxWindow_Centre", (PyCFunction
) _wrap_wxWindow_Centre
, METH_VARARGS
| METH_KEYWORDS
},
10564 { "wxWindow_Center", (PyCFunction
) _wrap_wxWindow_Center
, METH_VARARGS
| METH_KEYWORDS
},
10565 { "wxWindow_CaptureMouse", (PyCFunction
) _wrap_wxWindow_CaptureMouse
, METH_VARARGS
| METH_KEYWORDS
},
10566 { "new_wxWindow", (PyCFunction
) _wrap_new_wxWindow
, METH_VARARGS
| METH_KEYWORDS
},
10567 { "wxPyValidator__setSelf", (PyCFunction
) _wrap_wxPyValidator__setSelf
, METH_VARARGS
| METH_KEYWORDS
},
10568 { "new_wxPyValidator", (PyCFunction
) _wrap_new_wxPyValidator
, METH_VARARGS
| METH_KEYWORDS
},
10569 { "wxValidator_SetBellOnError", (PyCFunction
) _wrap_wxValidator_SetBellOnError
, METH_VARARGS
| METH_KEYWORDS
},
10570 { "wxValidator_IsSilent", (PyCFunction
) _wrap_wxValidator_IsSilent
, METH_VARARGS
| METH_KEYWORDS
},
10571 { "wxValidator_SetWindow", (PyCFunction
) _wrap_wxValidator_SetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10572 { "wxValidator_GetWindow", (PyCFunction
) _wrap_wxValidator_GetWindow
, METH_VARARGS
| METH_KEYWORDS
},
10573 { "wxValidator_Clone", (PyCFunction
) _wrap_wxValidator_Clone
, METH_VARARGS
| METH_KEYWORDS
},
10574 { "new_wxValidator", (PyCFunction
) _wrap_new_wxValidator
, METH_VARARGS
| METH_KEYWORDS
},
10575 { "wxEvtHandler_Disconnect", (PyCFunction
) _wrap_wxEvtHandler_Disconnect
, METH_VARARGS
| METH_KEYWORDS
},
10576 { "wxEvtHandler_Connect", (PyCFunction
) _wrap_wxEvtHandler_Connect
, METH_VARARGS
| METH_KEYWORDS
},
10577 { "wxEvtHandler_SetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_SetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10578 { "wxEvtHandler_SetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_SetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10579 { "wxEvtHandler_GetPreviousHandler", (PyCFunction
) _wrap_wxEvtHandler_GetPreviousHandler
, METH_VARARGS
| METH_KEYWORDS
},
10580 { "wxEvtHandler_GetNextHandler", (PyCFunction
) _wrap_wxEvtHandler_GetNextHandler
, METH_VARARGS
| METH_KEYWORDS
},
10581 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_SetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10582 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction
) _wrap_wxEvtHandler_GetEvtHandlerEnabled
, METH_VARARGS
| METH_KEYWORDS
},
10583 { "wxEvtHandler_AddPendingEvent", (PyCFunction
) _wrap_wxEvtHandler_AddPendingEvent
, METH_VARARGS
| METH_KEYWORDS
},
10584 { "wxEvtHandler_ProcessEvent", (PyCFunction
) _wrap_wxEvtHandler_ProcessEvent
, METH_VARARGS
| METH_KEYWORDS
},
10585 { "new_wxEvtHandler", (PyCFunction
) _wrap_new_wxEvtHandler
, METH_VARARGS
| METH_KEYWORDS
},
10586 { "wxWindow_PrevControlId", (PyCFunction
) _wrap_wxWindow_PrevControlId
, METH_VARARGS
| METH_KEYWORDS
},
10587 { "wxWindow_NextControlId", (PyCFunction
) _wrap_wxWindow_NextControlId
, METH_VARARGS
| METH_KEYWORDS
},
10588 { "wxWindow_NewControlId", (PyCFunction
) _wrap_wxWindow_NewControlId
, METH_VARARGS
| METH_KEYWORDS
},
10589 { "wxWindow_FromHWND", (PyCFunction
) _wrap_wxWindow_FromHWND
, METH_VARARGS
| METH_KEYWORDS
},
10590 { "wxWindow_FindFocus", (PyCFunction
) _wrap_wxWindow_FindFocus
, METH_VARARGS
| METH_KEYWORDS
},
10597 * This table is used by the pointer type-checker
10599 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
10600 { "_signed_long","_long",0},
10601 { "_wxPrintQuality","_wxCoord",0},
10602 { "_wxPrintQuality","_int",0},
10603 { "_wxPrintQuality","_signed_int",0},
10604 { "_wxPrintQuality","_unsigned_int",0},
10605 { "_wxPrintQuality","_wxWindowID",0},
10606 { "_wxPrintQuality","_uint",0},
10607 { "_wxPrintQuality","_EBool",0},
10608 { "_wxPrintQuality","_size_t",0},
10609 { "_wxPrintQuality","_time_t",0},
10610 { "_byte","_unsigned_char",0},
10611 { "_long","_unsigned_long",0},
10612 { "_long","_signed_long",0},
10613 { "_size_t","_wxCoord",0},
10614 { "_size_t","_wxPrintQuality",0},
10615 { "_size_t","_time_t",0},
10616 { "_size_t","_unsigned_int",0},
10617 { "_size_t","_int",0},
10618 { "_size_t","_wxWindowID",0},
10619 { "_size_t","_uint",0},
10620 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel
},
10621 { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel
},
10622 { "_uint","_wxCoord",0},
10623 { "_uint","_wxPrintQuality",0},
10624 { "_uint","_time_t",0},
10625 { "_uint","_size_t",0},
10626 { "_uint","_unsigned_int",0},
10627 { "_uint","_int",0},
10628 { "_uint","_wxWindowID",0},
10629 { "_wxChar","_char",0},
10630 { "_char","_wxChar",0},
10631 { "_EBool","_wxCoord",0},
10632 { "_EBool","_wxPrintQuality",0},
10633 { "_EBool","_signed_int",0},
10634 { "_EBool","_int",0},
10635 { "_EBool","_wxWindowID",0},
10636 { "_unsigned_long","_long",0},
10637 { "_signed_int","_wxCoord",0},
10638 { "_signed_int","_wxPrintQuality",0},
10639 { "_signed_int","_EBool",0},
10640 { "_signed_int","_wxWindowID",0},
10641 { "_signed_int","_int",0},
10642 { "_WXTYPE","_short",0},
10643 { "_WXTYPE","_signed_short",0},
10644 { "_WXTYPE","_unsigned_short",0},
10645 { "_unsigned_short","_WXTYPE",0},
10646 { "_unsigned_short","_short",0},
10647 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject
},
10648 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject
},
10649 { "_wxObject","_wxMenu",SwigwxMenuTowxObject
},
10650 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject
},
10651 { "_wxObject","_wxDialog",SwigwxDialogTowxObject
},
10652 { "_wxObject","_wxPanel",SwigwxPanelTowxObject
},
10653 { "_wxObject","_wxWindow",SwigwxWindowTowxObject
},
10654 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject
},
10655 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject
},
10656 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject
},
10657 { "_signed_short","_WXTYPE",0},
10658 { "_signed_short","_short",0},
10659 { "_unsigned_char","_byte",0},
10660 { "_unsigned_int","_wxCoord",0},
10661 { "_unsigned_int","_wxPrintQuality",0},
10662 { "_unsigned_int","_time_t",0},
10663 { "_unsigned_int","_size_t",0},
10664 { "_unsigned_int","_uint",0},
10665 { "_unsigned_int","_wxWindowID",0},
10666 { "_unsigned_int","_int",0},
10667 { "_short","_WXTYPE",0},
10668 { "_short","_unsigned_short",0},
10669 { "_short","_signed_short",0},
10670 { "_wxWindowID","_wxCoord",0},
10671 { "_wxWindowID","_wxPrintQuality",0},
10672 { "_wxWindowID","_time_t",0},
10673 { "_wxWindowID","_size_t",0},
10674 { "_wxWindowID","_EBool",0},
10675 { "_wxWindowID","_uint",0},
10676 { "_wxWindowID","_int",0},
10677 { "_wxWindowID","_signed_int",0},
10678 { "_wxWindowID","_unsigned_int",0},
10679 { "_int","_wxCoord",0},
10680 { "_int","_wxPrintQuality",0},
10681 { "_int","_time_t",0},
10682 { "_int","_size_t",0},
10683 { "_int","_EBool",0},
10684 { "_int","_uint",0},
10685 { "_int","_wxWindowID",0},
10686 { "_int","_unsigned_int",0},
10687 { "_int","_signed_int",0},
10688 { "_time_t","_wxCoord",0},
10689 { "_time_t","_wxPrintQuality",0},
10690 { "_time_t","_unsigned_int",0},
10691 { "_time_t","_int",0},
10692 { "_time_t","_wxWindowID",0},
10693 { "_time_t","_uint",0},
10694 { "_time_t","_size_t",0},
10695 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator
},
10696 { "_wxCoord","_int",0},
10697 { "_wxCoord","_signed_int",0},
10698 { "_wxCoord","_unsigned_int",0},
10699 { "_wxCoord","_wxWindowID",0},
10700 { "_wxCoord","_uint",0},
10701 { "_wxCoord","_EBool",0},
10702 { "_wxCoord","_size_t",0},
10703 { "_wxCoord","_time_t",0},
10704 { "_wxCoord","_wxPrintQuality",0},
10705 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler
},
10706 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler
},
10707 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler
},
10708 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler
},
10709 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler
},
10710 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler
},
10711 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler
},
10712 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler
},
10713 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow
},
10714 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow
},
10715 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow
},
10716 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow
},
10719 static PyObject
*SWIG_globals
;
10723 SWIGEXPORT(void) initwindowsc() {
10725 SWIG_globals
= SWIG_newvarlink();
10726 m
= Py_InitModule("windowsc", windowscMethods
);
10727 d
= PyModule_GetDict(m
);
10730 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
10731 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);