2 * FILE : src/gtk/stattool.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
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
47 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
48 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initstattoolc
54 #define SWIG_name "stattoolc"
57 #include <wx/toolbar.h>
58 #include <wx/tbarsmpl.h>
60 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
64 } else if (target
== Py_None
) {
68 if (!PyList_Check(target
)) {
70 target
= PyList_New(0);
71 PyList_Append(target
, o2
);
74 PyList_Append(target
,o
);
80 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
86 } else if (target
== Py_None
) {
90 if (!PyTuple_Check(target
)) {
92 target
= PyTuple_New(1);
93 PyTuple_SetItem(target
, 0, o2
);
96 PyTuple_SetItem(o3
, 0, o
);
99 target
= PySequence_Concat(o2
, o3
);
106 #if PYTHON_API_VERSION >= 1009
107 static char* wxStringErrorMsg
= "String or Unicode type required";
109 static char* wxStringErrorMsg
= "String type required";
112 static wxString
wxPyEmptyStr("");
116 static void *SwigwxStatusBarTowxWindow(void *ptr
) {
119 src
= (wxStatusBar
*) ptr
;
120 dest
= (wxWindow
*) src
;
121 return (void *) dest
;
124 static void *SwigwxStatusBarTowxEvtHandler(void *ptr
) {
127 src
= (wxStatusBar
*) ptr
;
128 dest
= (wxEvtHandler
*) src
;
129 return (void *) dest
;
132 static void *SwigwxStatusBarTowxObject(void *ptr
) {
135 src
= (wxStatusBar
*) ptr
;
136 dest
= (wxObject
*) src
;
137 return (void *) dest
;
140 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
141 static PyObject
*_wrap_new_wxStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
142 PyObject
* _resultobj
;
143 wxStatusBar
* _result
;
146 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
147 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
148 long _arg4
= (long ) wxST_SIZEGRIP
;
149 char * _arg5
= (char *) "statusBar";
150 PyObject
* _argo0
= 0;
152 PyObject
* _obj2
= 0;
154 PyObject
* _obj3
= 0;
155 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxStatusBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
171 if (! wxPoint_helper(_obj2
, &_arg2
))
177 if (! wxSize_helper(_obj3
, &_arg3
))
181 wxPy_BEGIN_ALLOW_THREADS
;
182 _result
= (wxStatusBar
*)new_wxStatusBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
184 wxPy_END_ALLOW_THREADS
;
185 if (PyErr_Occurred()) return NULL
;
187 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
188 _resultobj
= Py_BuildValue("s",_ptemp
);
191 _resultobj
= Py_None
;
196 #define new_wxPreStatusBar() (new wxStatusBar())
197 static PyObject
*_wrap_new_wxPreStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
198 PyObject
* _resultobj
;
199 wxStatusBar
* _result
;
200 char *_kwnames
[] = { NULL
};
204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreStatusBar",_kwnames
))
207 wxPy_BEGIN_ALLOW_THREADS
;
208 _result
= (wxStatusBar
*)new_wxPreStatusBar();
210 wxPy_END_ALLOW_THREADS
;
211 if (PyErr_Occurred()) return NULL
;
213 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
214 _resultobj
= Py_BuildValue("s",_ptemp
);
217 _resultobj
= Py_None
;
222 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
223 static PyObject
*_wrap_wxStatusBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
224 PyObject
* _resultobj
;
229 long _arg3
= (long ) wxST_SIZEGRIP
;
230 char * _arg4
= (char *) "statusBar";
231 PyObject
* _argo0
= 0;
232 PyObject
* _argo1
= 0;
233 char *_kwnames
[] = { "self","parent","id","style","name", NULL
};
236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|ls:wxStatusBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
246 if (_argo1
== Py_None
) { _arg1
= NULL
; }
247 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
253 wxPy_BEGIN_ALLOW_THREADS
;
254 _result
= (bool )wxStatusBar_Create(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
256 wxPy_END_ALLOW_THREADS
;
257 if (PyErr_Occurred()) return NULL
;
258 } _resultobj
= Py_BuildValue("i",_result
);
262 static wxRect
* wxStatusBar_GetFieldRect(wxStatusBar
*self
,long item
) {
263 wxRect
* rect
= new wxRect
;
264 self
->GetFieldRect(item
, *rect
);
267 static PyObject
*_wrap_wxStatusBar_GetFieldRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
268 PyObject
* _resultobj
;
272 PyObject
* _argo0
= 0;
273 char *_kwnames
[] = { "self","item", NULL
};
277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxStatusBar_GetFieldRect",_kwnames
,&_argo0
,&_arg1
))
280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
287 wxPy_BEGIN_ALLOW_THREADS
;
288 _result
= (wxRect
*)wxStatusBar_GetFieldRect(_arg0
,_arg1
);
290 wxPy_END_ALLOW_THREADS
;
291 if (PyErr_Occurred()) return NULL
;
293 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRect_p");
294 _resultobj
= Py_BuildValue("s",_ptemp
);
297 _resultobj
= Py_None
;
302 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
303 static PyObject
*_wrap_wxStatusBar_GetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
304 PyObject
* _resultobj
;
307 PyObject
* _argo0
= 0;
308 char *_kwnames
[] = { "self", NULL
};
311 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetFieldsCount",_kwnames
,&_argo0
))
314 if (_argo0
== Py_None
) { _arg0
= NULL
; }
315 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
316 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
321 wxPy_BEGIN_ALLOW_THREADS
;
322 _result
= (int )wxStatusBar_GetFieldsCount(_arg0
);
324 wxPy_END_ALLOW_THREADS
;
325 if (PyErr_Occurred()) return NULL
;
326 } _resultobj
= Py_BuildValue("i",_result
);
330 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
331 static PyObject
*_wrap_wxStatusBar_GetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
332 PyObject
* _resultobj
;
335 int _arg1
= (int ) 0;
336 PyObject
* _argo0
= 0;
337 char *_kwnames
[] = { "self","ir", NULL
};
340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_GetStatusText",_kwnames
,&_argo0
,&_arg1
))
343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
350 wxPy_BEGIN_ALLOW_THREADS
;
351 _result
= new wxString (wxStatusBar_GetStatusText(_arg0
,_arg1
));
353 wxPy_END_ALLOW_THREADS
;
354 if (PyErr_Occurred()) return NULL
;
356 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
364 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
365 static PyObject
*_wrap_wxStatusBar_GetBorderX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
366 PyObject
* _resultobj
;
369 PyObject
* _argo0
= 0;
370 char *_kwnames
[] = { "self", NULL
};
373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderX",_kwnames
,&_argo0
))
376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
383 wxPy_BEGIN_ALLOW_THREADS
;
384 _result
= (int )wxStatusBar_GetBorderX(_arg0
);
386 wxPy_END_ALLOW_THREADS
;
387 if (PyErr_Occurred()) return NULL
;
388 } _resultobj
= Py_BuildValue("i",_result
);
392 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
393 static PyObject
*_wrap_wxStatusBar_GetBorderY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
394 PyObject
* _resultobj
;
397 PyObject
* _argo0
= 0;
398 char *_kwnames
[] = { "self", NULL
};
401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderY",_kwnames
,&_argo0
))
404 if (_argo0
== Py_None
) { _arg0
= NULL
; }
405 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
411 wxPy_BEGIN_ALLOW_THREADS
;
412 _result
= (int )wxStatusBar_GetBorderY(_arg0
);
414 wxPy_END_ALLOW_THREADS
;
415 if (PyErr_Occurred()) return NULL
;
416 } _resultobj
= Py_BuildValue("i",_result
);
420 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
421 static PyObject
*_wrap_wxStatusBar_SetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
422 PyObject
* _resultobj
;
424 int _arg1
= (int ) 1;
425 PyObject
* _argo0
= 0;
426 char *_kwnames
[] = { "self","number", NULL
};
429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_SetFieldsCount",_kwnames
,&_argo0
,&_arg1
))
432 if (_argo0
== Py_None
) { _arg0
= NULL
; }
433 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
439 wxPy_BEGIN_ALLOW_THREADS
;
440 wxStatusBar_SetFieldsCount(_arg0
,_arg1
);
442 wxPy_END_ALLOW_THREADS
;
443 if (PyErr_Occurred()) return NULL
;
444 } Py_INCREF(Py_None
);
445 _resultobj
= Py_None
;
449 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
450 static PyObject
*_wrap_wxStatusBar_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
451 PyObject
* _resultobj
;
454 int _arg2
= (int ) 0;
455 PyObject
* _argo0
= 0;
456 PyObject
* _obj1
= 0;
457 char *_kwnames
[] = { "self","text","i", NULL
};
460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
470 #if PYTHON_API_VERSION >= 1009
471 char* tmpPtr
; int tmpSize
;
472 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
473 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
476 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
478 _arg1
= new wxString(tmpPtr
, tmpSize
);
480 if (!PyString_Check(_obj1
)) {
481 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
484 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
488 wxPy_BEGIN_ALLOW_THREADS
;
489 wxStatusBar_SetStatusText(_arg0
,*_arg1
,_arg2
);
491 wxPy_END_ALLOW_THREADS
;
492 if (PyErr_Occurred()) return NULL
;
493 } Py_INCREF(Py_None
);
494 _resultobj
= Py_None
;
502 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
503 static PyObject
*_wrap_wxStatusBar_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
504 PyObject
* _resultobj
;
508 PyObject
* _argo0
= 0;
509 PyObject
* _obj2
= 0;
510 char *_kwnames
[] = { "self","choices", NULL
};
513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxStatusBar_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
524 _arg2
= int_LIST_helper(_obj2
);
531 _arg1
= PyList_Size(_obj2
);
538 wxPy_BEGIN_ALLOW_THREADS
;
539 wxStatusBar_SetStatusWidths(_arg0
,_arg1
,_arg2
);
541 wxPy_END_ALLOW_THREADS
;
542 if (PyErr_Occurred()) return NULL
;
543 } Py_INCREF(Py_None
);
544 _resultobj
= Py_None
;
551 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
552 static PyObject
*_wrap_wxStatusBar_SetMinHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
553 PyObject
* _resultobj
;
556 PyObject
* _argo0
= 0;
557 char *_kwnames
[] = { "self","height", NULL
};
560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxStatusBar_SetMinHeight",_kwnames
,&_argo0
,&_arg1
))
563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
570 wxPy_BEGIN_ALLOW_THREADS
;
571 wxStatusBar_SetMinHeight(_arg0
,_arg1
);
573 wxPy_END_ALLOW_THREADS
;
574 if (PyErr_Occurred()) return NULL
;
575 } Py_INCREF(Py_None
);
576 _resultobj
= Py_None
;
580 static void *SwigwxToolBarToolBaseTowxObject(void *ptr
) {
581 wxToolBarToolBase
*src
;
583 src
= (wxToolBarToolBase
*) ptr
;
584 dest
= (wxObject
*) src
;
585 return (void *) dest
;
588 static void wxToolBarToolBase_Destroy(wxToolBarToolBase
*self
) { delete self
; }
589 static PyObject
*_wrap_wxToolBarToolBase_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
590 PyObject
* _resultobj
;
591 wxToolBarToolBase
* _arg0
;
592 PyObject
* _argo0
= 0;
593 char *_kwnames
[] = { "self", NULL
};
596 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Destroy",_kwnames
,&_argo0
))
599 if (_argo0
== Py_None
) { _arg0
= NULL
; }
600 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
606 wxPy_BEGIN_ALLOW_THREADS
;
607 wxToolBarToolBase_Destroy(_arg0
);
609 wxPy_END_ALLOW_THREADS
;
610 if (PyErr_Occurred()) return NULL
;
611 } Py_INCREF(Py_None
);
612 _resultobj
= Py_None
;
616 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
617 static PyObject
*_wrap_wxToolBarToolBase_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
618 PyObject
* _resultobj
;
620 wxToolBarToolBase
* _arg0
;
621 PyObject
* _argo0
= 0;
622 char *_kwnames
[] = { "self", NULL
};
625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetId",_kwnames
,&_argo0
))
628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
635 wxPy_BEGIN_ALLOW_THREADS
;
636 _result
= (int )wxToolBarToolBase_GetId(_arg0
);
638 wxPy_END_ALLOW_THREADS
;
639 if (PyErr_Occurred()) return NULL
;
640 } _resultobj
= Py_BuildValue("i",_result
);
644 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
645 static PyObject
*_wrap_wxToolBarToolBase_GetControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
646 PyObject
* _resultobj
;
648 wxToolBarToolBase
* _arg0
;
649 PyObject
* _argo0
= 0;
650 char *_kwnames
[] = { "self", NULL
};
653 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetControl",_kwnames
,&_argo0
))
656 if (_argo0
== Py_None
) { _arg0
= NULL
; }
657 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
658 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
663 wxPy_BEGIN_ALLOW_THREADS
;
664 _result
= (wxControl
*)wxToolBarToolBase_GetControl(_arg0
);
666 wxPy_END_ALLOW_THREADS
;
667 if (PyErr_Occurred()) return NULL
;
668 }{ _resultobj
= wxPyMake_wxObject(_result
); }
672 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
673 static PyObject
*_wrap_wxToolBarToolBase_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
674 PyObject
* _resultobj
;
675 wxToolBarBase
* _result
;
676 wxToolBarToolBase
* _arg0
;
677 PyObject
* _argo0
= 0;
678 char *_kwnames
[] = { "self", NULL
};
681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetToolBar",_kwnames
,&_argo0
))
684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
691 wxPy_BEGIN_ALLOW_THREADS
;
692 _result
= (wxToolBarBase
*)wxToolBarToolBase_GetToolBar(_arg0
);
694 wxPy_END_ALLOW_THREADS
;
695 if (PyErr_Occurred()) return NULL
;
696 }{ _resultobj
= wxPyMake_wxObject(_result
); }
700 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
701 static PyObject
*_wrap_wxToolBarToolBase_IsButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
702 PyObject
* _resultobj
;
704 wxToolBarToolBase
* _arg0
;
705 PyObject
* _argo0
= 0;
706 char *_kwnames
[] = { "self", NULL
};
709 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsButton",_kwnames
,&_argo0
))
712 if (_argo0
== Py_None
) { _arg0
= NULL
; }
713 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
714 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
719 wxPy_BEGIN_ALLOW_THREADS
;
720 _result
= (int )wxToolBarToolBase_IsButton(_arg0
);
722 wxPy_END_ALLOW_THREADS
;
723 if (PyErr_Occurred()) return NULL
;
724 } _resultobj
= Py_BuildValue("i",_result
);
728 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
729 static PyObject
*_wrap_wxToolBarToolBase_IsControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
730 PyObject
* _resultobj
;
732 wxToolBarToolBase
* _arg0
;
733 PyObject
* _argo0
= 0;
734 char *_kwnames
[] = { "self", NULL
};
737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsControl",_kwnames
,&_argo0
))
740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
747 wxPy_BEGIN_ALLOW_THREADS
;
748 _result
= (int )wxToolBarToolBase_IsControl(_arg0
);
750 wxPy_END_ALLOW_THREADS
;
751 if (PyErr_Occurred()) return NULL
;
752 } _resultobj
= Py_BuildValue("i",_result
);
756 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
757 static PyObject
*_wrap_wxToolBarToolBase_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
758 PyObject
* _resultobj
;
760 wxToolBarToolBase
* _arg0
;
761 PyObject
* _argo0
= 0;
762 char *_kwnames
[] = { "self", NULL
};
765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsSeparator",_kwnames
,&_argo0
))
768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
775 wxPy_BEGIN_ALLOW_THREADS
;
776 _result
= (int )wxToolBarToolBase_IsSeparator(_arg0
);
778 wxPy_END_ALLOW_THREADS
;
779 if (PyErr_Occurred()) return NULL
;
780 } _resultobj
= Py_BuildValue("i",_result
);
784 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
785 static PyObject
*_wrap_wxToolBarToolBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
786 PyObject
* _resultobj
;
788 wxToolBarToolBase
* _arg0
;
789 PyObject
* _argo0
= 0;
790 char *_kwnames
[] = { "self", NULL
};
793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetStyle",_kwnames
,&_argo0
))
796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
803 wxPy_BEGIN_ALLOW_THREADS
;
804 _result
= (int )wxToolBarToolBase_GetStyle(_arg0
);
806 wxPy_END_ALLOW_THREADS
;
807 if (PyErr_Occurred()) return NULL
;
808 } _resultobj
= Py_BuildValue("i",_result
);
812 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
813 static PyObject
*_wrap_wxToolBarToolBase_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
814 PyObject
* _resultobj
;
816 wxToolBarToolBase
* _arg0
;
817 PyObject
* _argo0
= 0;
818 char *_kwnames
[] = { "self", NULL
};
821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsEnabled",_kwnames
,&_argo0
))
824 if (_argo0
== Py_None
) { _arg0
= NULL
; }
825 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
826 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
831 wxPy_BEGIN_ALLOW_THREADS
;
832 _result
= (bool )wxToolBarToolBase_IsEnabled(_arg0
);
834 wxPy_END_ALLOW_THREADS
;
835 if (PyErr_Occurred()) return NULL
;
836 } _resultobj
= Py_BuildValue("i",_result
);
840 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
841 static PyObject
*_wrap_wxToolBarToolBase_IsToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
842 PyObject
* _resultobj
;
844 wxToolBarToolBase
* _arg0
;
845 PyObject
* _argo0
= 0;
846 char *_kwnames
[] = { "self", NULL
};
849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsToggled",_kwnames
,&_argo0
))
852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
859 wxPy_BEGIN_ALLOW_THREADS
;
860 _result
= (bool )wxToolBarToolBase_IsToggled(_arg0
);
862 wxPy_END_ALLOW_THREADS
;
863 if (PyErr_Occurred()) return NULL
;
864 } _resultobj
= Py_BuildValue("i",_result
);
868 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
869 static PyObject
*_wrap_wxToolBarToolBase_CanBeToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
870 PyObject
* _resultobj
;
872 wxToolBarToolBase
* _arg0
;
873 PyObject
* _argo0
= 0;
874 char *_kwnames
[] = { "self", NULL
};
877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_CanBeToggled",_kwnames
,&_argo0
))
880 if (_argo0
== Py_None
) { _arg0
= NULL
; }
881 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
882 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
887 wxPy_BEGIN_ALLOW_THREADS
;
888 _result
= (bool )wxToolBarToolBase_CanBeToggled(_arg0
);
890 wxPy_END_ALLOW_THREADS
;
891 if (PyErr_Occurred()) return NULL
;
892 } _resultobj
= Py_BuildValue("i",_result
);
896 #define wxToolBarToolBase_GetBitmap1(_swigobj) (_swigobj->GetBitmap1())
897 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
898 PyObject
* _resultobj
;
900 wxToolBarToolBase
* _arg0
;
901 PyObject
* _argo0
= 0;
902 char *_kwnames
[] = { "self", NULL
};
906 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap1",_kwnames
,&_argo0
))
909 if (_argo0
== Py_None
) { _arg0
= NULL
; }
910 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
911 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap1. Expected _wxToolBarToolBase_p.");
916 wxPy_BEGIN_ALLOW_THREADS
;
917 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap1(_arg0
);
918 _result
= (wxBitmap
*) &_result_ref
;
920 wxPy_END_ALLOW_THREADS
;
921 if (PyErr_Occurred()) return NULL
;
923 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
924 _resultobj
= Py_BuildValue("s",_ptemp
);
927 _resultobj
= Py_None
;
932 #define wxToolBarToolBase_GetBitmap2(_swigobj) (_swigobj->GetBitmap2())
933 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
934 PyObject
* _resultobj
;
936 wxToolBarToolBase
* _arg0
;
937 PyObject
* _argo0
= 0;
938 char *_kwnames
[] = { "self", NULL
};
942 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap2",_kwnames
,&_argo0
))
945 if (_argo0
== Py_None
) { _arg0
= NULL
; }
946 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
947 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap2. Expected _wxToolBarToolBase_p.");
952 wxPy_BEGIN_ALLOW_THREADS
;
953 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap2(_arg0
);
954 _result
= (wxBitmap
*) &_result_ref
;
956 wxPy_END_ALLOW_THREADS
;
957 if (PyErr_Occurred()) return NULL
;
959 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
960 _resultobj
= Py_BuildValue("s",_ptemp
);
963 _resultobj
= Py_None
;
968 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
969 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
970 PyObject
* _resultobj
;
972 wxToolBarToolBase
* _arg0
;
973 PyObject
* _argo0
= 0;
974 char *_kwnames
[] = { "self", NULL
};
978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap",_kwnames
,&_argo0
))
981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
988 wxPy_BEGIN_ALLOW_THREADS
;
989 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap(_arg0
);
990 _result
= (wxBitmap
*) &_result_ref
;
992 wxPy_END_ALLOW_THREADS
;
993 if (PyErr_Occurred()) return NULL
;
995 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
996 _resultobj
= Py_BuildValue("s",_ptemp
);
999 _resultobj
= Py_None
;
1004 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
1005 static PyObject
*_wrap_wxToolBarToolBase_GetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1006 PyObject
* _resultobj
;
1008 wxToolBarToolBase
* _arg0
;
1009 PyObject
* _argo0
= 0;
1010 char *_kwnames
[] = { "self", NULL
};
1013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetShortHelp",_kwnames
,&_argo0
))
1016 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1017 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
1023 wxPy_BEGIN_ALLOW_THREADS
;
1024 _result
= new wxString (wxToolBarToolBase_GetShortHelp(_arg0
));
1026 wxPy_END_ALLOW_THREADS
;
1027 if (PyErr_Occurred()) return NULL
;
1029 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1037 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
1038 static PyObject
*_wrap_wxToolBarToolBase_GetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1039 PyObject
* _resultobj
;
1041 wxToolBarToolBase
* _arg0
;
1042 PyObject
* _argo0
= 0;
1043 char *_kwnames
[] = { "self", NULL
};
1046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLongHelp",_kwnames
,&_argo0
))
1049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1056 wxPy_BEGIN_ALLOW_THREADS
;
1057 _result
= new wxString (wxToolBarToolBase_GetLongHelp(_arg0
));
1059 wxPy_END_ALLOW_THREADS
;
1060 if (PyErr_Occurred()) return NULL
;
1062 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1070 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1071 static PyObject
*_wrap_wxToolBarToolBase_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1072 PyObject
* _resultobj
;
1074 wxToolBarToolBase
* _arg0
;
1076 PyObject
* _argo0
= 0;
1078 char *_kwnames
[] = { "self","enable", NULL
};
1081 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Enable",_kwnames
,&_argo0
,&tempbool1
))
1084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1090 _arg1
= (bool ) tempbool1
;
1092 wxPy_BEGIN_ALLOW_THREADS
;
1093 _result
= (bool )wxToolBarToolBase_Enable(_arg0
,_arg1
);
1095 wxPy_END_ALLOW_THREADS
;
1096 if (PyErr_Occurred()) return NULL
;
1097 } _resultobj
= Py_BuildValue("i",_result
);
1101 #define wxToolBarToolBase_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
1102 static PyObject
*_wrap_wxToolBarToolBase_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1103 PyObject
* _resultobj
;
1105 wxToolBarToolBase
* _arg0
;
1107 PyObject
* _argo0
= 0;
1109 char *_kwnames
[] = { "self","toggle", NULL
};
1112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Toggle",_kwnames
,&_argo0
,&tempbool1
))
1115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1121 _arg1
= (bool ) tempbool1
;
1123 wxPy_BEGIN_ALLOW_THREADS
;
1124 _result
= (bool )wxToolBarToolBase_Toggle(_arg0
,_arg1
);
1126 wxPy_END_ALLOW_THREADS
;
1127 if (PyErr_Occurred()) return NULL
;
1128 } _resultobj
= Py_BuildValue("i",_result
);
1132 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1133 static PyObject
*_wrap_wxToolBarToolBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1134 PyObject
* _resultobj
;
1136 wxToolBarToolBase
* _arg0
;
1138 PyObject
* _argo0
= 0;
1140 char *_kwnames
[] = { "self","toggle", NULL
};
1143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_SetToggle",_kwnames
,&_argo0
,&tempbool1
))
1146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1152 _arg1
= (bool ) tempbool1
;
1154 wxPy_BEGIN_ALLOW_THREADS
;
1155 _result
= (bool )wxToolBarToolBase_SetToggle(_arg0
,_arg1
);
1157 wxPy_END_ALLOW_THREADS
;
1158 if (PyErr_Occurred()) return NULL
;
1159 } _resultobj
= Py_BuildValue("i",_result
);
1163 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1164 static PyObject
*_wrap_wxToolBarToolBase_SetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1165 PyObject
* _resultobj
;
1167 wxToolBarToolBase
* _arg0
;
1169 PyObject
* _argo0
= 0;
1170 PyObject
* _obj1
= 0;
1171 char *_kwnames
[] = { "self","help", NULL
};
1174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetShortHelp",_kwnames
,&_argo0
,&_obj1
))
1177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1184 #if PYTHON_API_VERSION >= 1009
1185 char* tmpPtr
; int tmpSize
;
1186 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1187 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1190 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1192 _arg1
= new wxString(tmpPtr
, tmpSize
);
1194 if (!PyString_Check(_obj1
)) {
1195 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1198 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1202 wxPy_BEGIN_ALLOW_THREADS
;
1203 _result
= (bool )wxToolBarToolBase_SetShortHelp(_arg0
,*_arg1
);
1205 wxPy_END_ALLOW_THREADS
;
1206 if (PyErr_Occurred()) return NULL
;
1207 } _resultobj
= Py_BuildValue("i",_result
);
1215 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1216 static PyObject
*_wrap_wxToolBarToolBase_SetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1217 PyObject
* _resultobj
;
1219 wxToolBarToolBase
* _arg0
;
1221 PyObject
* _argo0
= 0;
1222 PyObject
* _obj1
= 0;
1223 char *_kwnames
[] = { "self","help", NULL
};
1226 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLongHelp",_kwnames
,&_argo0
,&_obj1
))
1229 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1230 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1236 #if PYTHON_API_VERSION >= 1009
1237 char* tmpPtr
; int tmpSize
;
1238 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1239 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1242 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1244 _arg1
= new wxString(tmpPtr
, tmpSize
);
1246 if (!PyString_Check(_obj1
)) {
1247 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1250 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1254 wxPy_BEGIN_ALLOW_THREADS
;
1255 _result
= (bool )wxToolBarToolBase_SetLongHelp(_arg0
,*_arg1
);
1257 wxPy_END_ALLOW_THREADS
;
1258 if (PyErr_Occurred()) return NULL
;
1259 } _resultobj
= Py_BuildValue("i",_result
);
1267 #define wxToolBarToolBase_SetBitmap1(_swigobj,_swigarg0) (_swigobj->SetBitmap1(_swigarg0))
1268 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1269 PyObject
* _resultobj
;
1270 wxToolBarToolBase
* _arg0
;
1272 PyObject
* _argo0
= 0;
1273 PyObject
* _argo1
= 0;
1274 char *_kwnames
[] = { "self","bmp", NULL
};
1277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap1",_kwnames
,&_argo0
,&_argo1
))
1280 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1281 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1282 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap1. Expected _wxToolBarToolBase_p.");
1287 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1288 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap1. Expected _wxBitmap_p.");
1294 wxPy_BEGIN_ALLOW_THREADS
;
1295 wxToolBarToolBase_SetBitmap1(_arg0
,*_arg1
);
1297 wxPy_END_ALLOW_THREADS
;
1298 if (PyErr_Occurred()) return NULL
;
1299 } Py_INCREF(Py_None
);
1300 _resultobj
= Py_None
;
1304 #define wxToolBarToolBase_SetBitmap2(_swigobj,_swigarg0) (_swigobj->SetBitmap2(_swigarg0))
1305 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1306 PyObject
* _resultobj
;
1307 wxToolBarToolBase
* _arg0
;
1309 PyObject
* _argo0
= 0;
1310 PyObject
* _argo1
= 0;
1311 char *_kwnames
[] = { "self","bmp", NULL
};
1314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap2",_kwnames
,&_argo0
,&_argo1
))
1317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap2. Expected _wxToolBarToolBase_p.");
1324 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1325 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap2. Expected _wxBitmap_p.");
1331 wxPy_BEGIN_ALLOW_THREADS
;
1332 wxToolBarToolBase_SetBitmap2(_arg0
,*_arg1
);
1334 wxPy_END_ALLOW_THREADS
;
1335 if (PyErr_Occurred()) return NULL
;
1336 } Py_INCREF(Py_None
);
1337 _resultobj
= Py_None
;
1341 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1342 static PyObject
*_wrap_wxToolBarToolBase_Detach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1343 PyObject
* _resultobj
;
1344 wxToolBarToolBase
* _arg0
;
1345 PyObject
* _argo0
= 0;
1346 char *_kwnames
[] = { "self", NULL
};
1349 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Detach",_kwnames
,&_argo0
))
1352 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1353 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1354 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1359 wxPy_BEGIN_ALLOW_THREADS
;
1360 wxToolBarToolBase_Detach(_arg0
);
1362 wxPy_END_ALLOW_THREADS
;
1363 if (PyErr_Occurred()) return NULL
;
1364 } Py_INCREF(Py_None
);
1365 _resultobj
= Py_None
;
1369 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1370 static PyObject
*_wrap_wxToolBarToolBase_Attach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1371 PyObject
* _resultobj
;
1372 wxToolBarToolBase
* _arg0
;
1373 wxToolBarBase
* _arg1
;
1374 PyObject
* _argo0
= 0;
1375 PyObject
* _argo1
= 0;
1376 char *_kwnames
[] = { "self","tbar", NULL
};
1379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_Attach",_kwnames
,&_argo0
,&_argo1
))
1382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1389 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1390 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBarBase_p")) {
1391 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1396 wxPy_BEGIN_ALLOW_THREADS
;
1397 wxToolBarToolBase_Attach(_arg0
,_arg1
);
1399 wxPy_END_ALLOW_THREADS
;
1400 if (PyErr_Occurred()) return NULL
;
1401 } Py_INCREF(Py_None
);
1402 _resultobj
= Py_None
;
1406 static PyObject
* wxToolBarToolBase_GetClientData(wxToolBarToolBase
*self
) {
1407 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetClientData();
1409 Py_INCREF(udata
->m_obj
);
1410 return udata
->m_obj
;
1416 static PyObject
*_wrap_wxToolBarToolBase_GetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1417 PyObject
* _resultobj
;
1419 wxToolBarToolBase
* _arg0
;
1420 PyObject
* _argo0
= 0;
1421 char *_kwnames
[] = { "self", NULL
};
1424 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetClientData",_kwnames
,&_argo0
))
1427 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1428 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1429 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1434 wxPy_BEGIN_ALLOW_THREADS
;
1435 _result
= (PyObject
*)wxToolBarToolBase_GetClientData(_arg0
);
1437 wxPy_END_ALLOW_THREADS
;
1438 if (PyErr_Occurred()) return NULL
;
1440 _resultobj
= _result
;
1445 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase
*self
,PyObject
* clientData
) {
1446 self
->SetClientData(new wxPyUserData(clientData
));
1448 static PyObject
*_wrap_wxToolBarToolBase_SetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1449 PyObject
* _resultobj
;
1450 wxToolBarToolBase
* _arg0
;
1452 PyObject
* _argo0
= 0;
1453 PyObject
* _obj1
= 0;
1454 char *_kwnames
[] = { "self","clientData", NULL
};
1457 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetClientData",_kwnames
,&_argo0
,&_obj1
))
1460 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1461 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1462 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1470 wxPy_BEGIN_ALLOW_THREADS
;
1471 wxToolBarToolBase_SetClientData(_arg0
,_arg1
);
1473 wxPy_END_ALLOW_THREADS
;
1474 if (PyErr_Occurred()) return NULL
;
1475 } Py_INCREF(Py_None
);
1476 _resultobj
= Py_None
;
1480 static void *SwigwxToolBarBaseTowxControl(void *ptr
) {
1483 src
= (wxToolBarBase
*) ptr
;
1484 dest
= (wxControl
*) src
;
1485 return (void *) dest
;
1488 static void *SwigwxToolBarBaseTowxWindow(void *ptr
) {
1491 src
= (wxToolBarBase
*) ptr
;
1492 dest
= (wxWindow
*) src
;
1493 return (void *) dest
;
1496 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr
) {
1499 src
= (wxToolBarBase
*) ptr
;
1500 dest
= (wxEvtHandler
*) src
;
1501 return (void *) dest
;
1504 static void *SwigwxToolBarBaseTowxObject(void *ptr
) {
1507 src
= (wxToolBarBase
*) ptr
;
1508 dest
= (wxObject
*) src
;
1509 return (void *) dest
;
1512 static wxToolBarToolBase
* wxToolBarBase_AddTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxBitmap
& pushedBitmap
,int isToggle
,PyObject
* clientData
,const wxString
& shortHelpString
,const wxString
& longHelpString
) {
1513 wxPyUserData
* udata
= NULL
;
1515 udata
= new wxPyUserData(clientData
);
1516 return self
->AddTool(id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1517 udata
, shortHelpString
, longHelpString
);
1519 static PyObject
*_wrap_wxToolBarBase_AddTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1520 PyObject
* _resultobj
;
1521 wxToolBarToolBase
* _result
;
1522 wxToolBarBase
* _arg0
;
1525 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
1526 int _arg4
= (int ) FALSE
;
1527 PyObject
* _arg5
= (PyObject
*) NULL
;
1528 wxString
* _arg6
= (wxString
*) &wxPyEmptyStr
;
1529 wxString
* _arg7
= (wxString
*) &wxPyEmptyStr
;
1530 PyObject
* _argo0
= 0;
1531 PyObject
* _argo2
= 0;
1532 PyObject
* _argo3
= 0;
1533 PyObject
* _obj5
= 0;
1534 PyObject
* _obj6
= 0;
1535 PyObject
* _obj7
= 0;
1536 char *_kwnames
[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1539 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_arg4
,&_obj5
,&_obj6
,&_obj7
))
1542 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1543 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1544 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
1549 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1550 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1556 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1557 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1558 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1568 #if PYTHON_API_VERSION >= 1009
1569 char* tmpPtr
; int tmpSize
;
1570 if (!PyString_Check(_obj6
) && !PyUnicode_Check(_obj6
)) {
1571 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1574 if (PyString_AsStringAndSize(_obj6
, &tmpPtr
, &tmpSize
) == -1)
1576 _arg6
= new wxString(tmpPtr
, tmpSize
);
1578 if (!PyString_Check(_obj6
)) {
1579 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1582 _arg6
= new wxString(PyString_AS_STRING(_obj6
), PyString_GET_SIZE(_obj6
));
1587 #if PYTHON_API_VERSION >= 1009
1588 char* tmpPtr
; int tmpSize
;
1589 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1590 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1593 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1595 _arg7
= new wxString(tmpPtr
, tmpSize
);
1597 if (!PyString_Check(_obj7
)) {
1598 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1601 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1605 wxPy_BEGIN_ALLOW_THREADS
;
1606 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddTool(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,*_arg6
,*_arg7
);
1608 wxPy_END_ALLOW_THREADS
;
1609 if (PyErr_Occurred()) return NULL
;
1610 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1622 static wxToolBarToolBase
* wxToolBarBase_AddSimpleTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1623 return self
->AddTool(id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1624 shortHelpString
, longHelpString
);
1626 static PyObject
*_wrap_wxToolBarBase_AddSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1627 PyObject
* _resultobj
;
1628 wxToolBarToolBase
* _result
;
1629 wxToolBarBase
* _arg0
;
1632 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
1633 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
1634 int _arg5
= (int ) FALSE
;
1635 PyObject
* _argo0
= 0;
1636 PyObject
* _argo2
= 0;
1637 PyObject
* _obj3
= 0;
1638 PyObject
* _obj4
= 0;
1639 char *_kwnames
[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1642 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
,&_obj4
,&_arg5
))
1645 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1646 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1647 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
1652 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1653 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1660 #if PYTHON_API_VERSION >= 1009
1661 char* tmpPtr
; int tmpSize
;
1662 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
1663 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1666 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
1668 _arg3
= new wxString(tmpPtr
, tmpSize
);
1670 if (!PyString_Check(_obj3
)) {
1671 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1674 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
1679 #if PYTHON_API_VERSION >= 1009
1680 char* tmpPtr
; int tmpSize
;
1681 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1682 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1685 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1687 _arg4
= new wxString(tmpPtr
, tmpSize
);
1689 if (!PyString_Check(_obj4
)) {
1690 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1693 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1697 wxPy_BEGIN_ALLOW_THREADS
;
1698 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSimpleTool(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
);
1700 wxPy_END_ALLOW_THREADS
;
1701 if (PyErr_Occurred()) return NULL
;
1702 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1714 static wxToolBarToolBase
* wxToolBarBase_InsertTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxBitmap
& bitmap
,const wxBitmap
& pushedBitmap
,int isToggle
,PyObject
* clientData
,const wxString
& shortHelpString
,const wxString
& longHelpString
) {
1715 wxPyUserData
* udata
= NULL
;
1717 udata
= new wxPyUserData(clientData
);
1718 return self
->InsertTool(pos
, id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1719 udata
, shortHelpString
, longHelpString
);
1721 static PyObject
*_wrap_wxToolBarBase_InsertTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1722 PyObject
* _resultobj
;
1723 wxToolBarToolBase
* _result
;
1724 wxToolBarBase
* _arg0
;
1728 wxBitmap
* _arg4
= (wxBitmap
*) &wxNullBitmap
;
1729 int _arg5
= (int ) FALSE
;
1730 PyObject
* _arg6
= (PyObject
*) NULL
;
1731 wxString
* _arg7
= (wxString
*) &wxPyEmptyStr
;
1732 wxString
* _arg8
= (wxString
*) &wxPyEmptyStr
;
1733 PyObject
* _argo0
= 0;
1734 PyObject
* _argo3
= 0;
1735 PyObject
* _argo4
= 0;
1736 PyObject
* _obj6
= 0;
1737 PyObject
* _obj7
= 0;
1738 PyObject
* _obj8
= 0;
1739 char *_kwnames
[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1742 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_argo4
,&_arg5
,&_obj6
,&_obj7
,&_obj8
))
1745 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1746 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1747 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1752 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1753 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1754 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1759 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1760 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1771 #if PYTHON_API_VERSION >= 1009
1772 char* tmpPtr
; int tmpSize
;
1773 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1774 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1777 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1779 _arg7
= new wxString(tmpPtr
, tmpSize
);
1781 if (!PyString_Check(_obj7
)) {
1782 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1785 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1790 #if PYTHON_API_VERSION >= 1009
1791 char* tmpPtr
; int tmpSize
;
1792 if (!PyString_Check(_obj8
) && !PyUnicode_Check(_obj8
)) {
1793 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1796 if (PyString_AsStringAndSize(_obj8
, &tmpPtr
, &tmpSize
) == -1)
1798 _arg8
= new wxString(tmpPtr
, tmpSize
);
1800 if (!PyString_Check(_obj8
)) {
1801 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1804 _arg8
= new wxString(PyString_AS_STRING(_obj8
), PyString_GET_SIZE(_obj8
));
1808 wxPy_BEGIN_ALLOW_THREADS
;
1809 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,*_arg7
,*_arg8
);
1811 wxPy_END_ALLOW_THREADS
;
1812 if (PyErr_Occurred()) return NULL
;
1813 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1825 static wxToolBarToolBase
* wxToolBarBase_InsertSimpleTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1826 return self
->InsertTool(pos
, id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1827 shortHelpString
, longHelpString
);
1829 static PyObject
*_wrap_wxToolBarBase_InsertSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1830 PyObject
* _resultobj
;
1831 wxToolBarToolBase
* _result
;
1832 wxToolBarBase
* _arg0
;
1836 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
1837 wxString
* _arg5
= (wxString
*) &wxPyEmptyStr
;
1838 int _arg6
= (int ) FALSE
;
1839 PyObject
* _argo0
= 0;
1840 PyObject
* _argo3
= 0;
1841 PyObject
* _obj4
= 0;
1842 PyObject
* _obj5
= 0;
1843 char *_kwnames
[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_obj4
,&_obj5
,&_arg6
))
1849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
1856 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1857 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1864 #if PYTHON_API_VERSION >= 1009
1865 char* tmpPtr
; int tmpSize
;
1866 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1867 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1870 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1872 _arg4
= new wxString(tmpPtr
, tmpSize
);
1874 if (!PyString_Check(_obj4
)) {
1875 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1878 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1883 #if PYTHON_API_VERSION >= 1009
1884 char* tmpPtr
; int tmpSize
;
1885 if (!PyString_Check(_obj5
) && !PyUnicode_Check(_obj5
)) {
1886 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1889 if (PyString_AsStringAndSize(_obj5
, &tmpPtr
, &tmpSize
) == -1)
1891 _arg5
= new wxString(tmpPtr
, tmpSize
);
1893 if (!PyString_Check(_obj5
)) {
1894 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1897 _arg5
= new wxString(PyString_AS_STRING(_obj5
), PyString_GET_SIZE(_obj5
));
1901 wxPy_BEGIN_ALLOW_THREADS
;
1902 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSimpleTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
);
1904 wxPy_END_ALLOW_THREADS
;
1905 if (PyErr_Occurred()) return NULL
;
1906 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1918 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1919 static PyObject
*_wrap_wxToolBarBase_AddControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1920 PyObject
* _resultobj
;
1921 wxToolBarToolBase
* _result
;
1922 wxToolBarBase
* _arg0
;
1924 PyObject
* _argo0
= 0;
1925 PyObject
* _argo1
= 0;
1926 char *_kwnames
[] = { "self","control", NULL
};
1929 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_AddControl",_kwnames
,&_argo0
,&_argo1
))
1932 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1933 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1934 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1939 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1940 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxControl_p")) {
1941 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1946 wxPy_BEGIN_ALLOW_THREADS
;
1947 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddControl(_arg0
,_arg1
);
1949 wxPy_END_ALLOW_THREADS
;
1950 if (PyErr_Occurred()) return NULL
;
1951 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1955 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1956 static PyObject
*_wrap_wxToolBarBase_InsertControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1957 PyObject
* _resultobj
;
1958 wxToolBarToolBase
* _result
;
1959 wxToolBarBase
* _arg0
;
1962 PyObject
* _argo0
= 0;
1963 PyObject
* _argo2
= 0;
1964 char *_kwnames
[] = { "self","pos","control", NULL
};
1967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_InsertControl",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1977 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1978 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxControl_p")) {
1979 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1984 wxPy_BEGIN_ALLOW_THREADS
;
1985 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertControl(_arg0
,_arg1
,_arg2
);
1987 wxPy_END_ALLOW_THREADS
;
1988 if (PyErr_Occurred()) return NULL
;
1989 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1993 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1994 static PyObject
*_wrap_wxToolBarBase_AddSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1995 PyObject
* _resultobj
;
1996 wxToolBarToolBase
* _result
;
1997 wxToolBarBase
* _arg0
;
1998 PyObject
* _argo0
= 0;
1999 char *_kwnames
[] = { "self", NULL
};
2002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_AddSeparator",_kwnames
,&_argo0
))
2005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
2012 wxPy_BEGIN_ALLOW_THREADS
;
2013 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSeparator(_arg0
);
2015 wxPy_END_ALLOW_THREADS
;
2016 if (PyErr_Occurred()) return NULL
;
2017 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2021 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
2022 static PyObject
*_wrap_wxToolBarBase_InsertSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2023 PyObject
* _resultobj
;
2024 wxToolBarToolBase
* _result
;
2025 wxToolBarBase
* _arg0
;
2027 PyObject
* _argo0
= 0;
2028 char *_kwnames
[] = { "self","pos", NULL
};
2031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_InsertSeparator",_kwnames
,&_argo0
,&_arg1
))
2034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
2041 wxPy_BEGIN_ALLOW_THREADS
;
2042 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSeparator(_arg0
,_arg1
);
2044 wxPy_END_ALLOW_THREADS
;
2045 if (PyErr_Occurred()) return NULL
;
2046 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2050 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
2051 static PyObject
*_wrap_wxToolBarBase_RemoveTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2052 PyObject
* _resultobj
;
2053 wxToolBarToolBase
* _result
;
2054 wxToolBarBase
* _arg0
;
2056 PyObject
* _argo0
= 0;
2057 char *_kwnames
[] = { "self","id", NULL
};
2060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_RemoveTool",_kwnames
,&_argo0
,&_arg1
))
2063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
2070 wxPy_BEGIN_ALLOW_THREADS
;
2071 _result
= (wxToolBarToolBase
*)wxToolBarBase_RemoveTool(_arg0
,_arg1
);
2073 wxPy_END_ALLOW_THREADS
;
2074 if (PyErr_Occurred()) return NULL
;
2075 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2079 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2080 static PyObject
*_wrap_wxToolBarBase_DeleteToolByPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2081 PyObject
* _resultobj
;
2083 wxToolBarBase
* _arg0
;
2085 PyObject
* _argo0
= 0;
2086 char *_kwnames
[] = { "self","pos", NULL
};
2089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames
,&_argo0
,&_arg1
))
2092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2099 wxPy_BEGIN_ALLOW_THREADS
;
2100 _result
= (bool )wxToolBarBase_DeleteToolByPos(_arg0
,_arg1
);
2102 wxPy_END_ALLOW_THREADS
;
2103 if (PyErr_Occurred()) return NULL
;
2104 } _resultobj
= Py_BuildValue("i",_result
);
2108 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2109 static PyObject
*_wrap_wxToolBarBase_DeleteTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2110 PyObject
* _resultobj
;
2112 wxToolBarBase
* _arg0
;
2114 PyObject
* _argo0
= 0;
2115 char *_kwnames
[] = { "self","id", NULL
};
2118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteTool",_kwnames
,&_argo0
,&_arg1
))
2121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2128 wxPy_BEGIN_ALLOW_THREADS
;
2129 _result
= (bool )wxToolBarBase_DeleteTool(_arg0
,_arg1
);
2131 wxPy_END_ALLOW_THREADS
;
2132 if (PyErr_Occurred()) return NULL
;
2133 } _resultobj
= Py_BuildValue("i",_result
);
2137 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2138 static PyObject
*_wrap_wxToolBarBase_ClearTools(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2139 PyObject
* _resultobj
;
2140 wxToolBarBase
* _arg0
;
2141 PyObject
* _argo0
= 0;
2142 char *_kwnames
[] = { "self", NULL
};
2145 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_ClearTools",_kwnames
,&_argo0
))
2148 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2149 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2150 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2155 wxPy_BEGIN_ALLOW_THREADS
;
2156 wxToolBarBase_ClearTools(_arg0
);
2158 wxPy_END_ALLOW_THREADS
;
2159 if (PyErr_Occurred()) return NULL
;
2160 } Py_INCREF(Py_None
);
2161 _resultobj
= Py_None
;
2165 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2166 static PyObject
*_wrap_wxToolBarBase_Realize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2167 PyObject
* _resultobj
;
2169 wxToolBarBase
* _arg0
;
2170 PyObject
* _argo0
= 0;
2171 char *_kwnames
[] = { "self", NULL
};
2174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_Realize",_kwnames
,&_argo0
))
2177 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2178 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2179 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2184 wxPy_BEGIN_ALLOW_THREADS
;
2185 _result
= (bool )wxToolBarBase_Realize(_arg0
);
2187 wxPy_END_ALLOW_THREADS
;
2188 if (PyErr_Occurred()) return NULL
;
2189 } _resultobj
= Py_BuildValue("i",_result
);
2193 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2194 static PyObject
*_wrap_wxToolBarBase_EnableTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2195 PyObject
* _resultobj
;
2196 wxToolBarBase
* _arg0
;
2199 PyObject
* _argo0
= 0;
2201 char *_kwnames
[] = { "self","id","enable", NULL
};
2204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_EnableTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2213 _arg2
= (bool ) tempbool2
;
2215 wxPy_BEGIN_ALLOW_THREADS
;
2216 wxToolBarBase_EnableTool(_arg0
,_arg1
,_arg2
);
2218 wxPy_END_ALLOW_THREADS
;
2219 if (PyErr_Occurred()) return NULL
;
2220 } Py_INCREF(Py_None
);
2221 _resultobj
= Py_None
;
2225 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2226 static PyObject
*_wrap_wxToolBarBase_ToggleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2227 PyObject
* _resultobj
;
2228 wxToolBarBase
* _arg0
;
2231 PyObject
* _argo0
= 0;
2233 char *_kwnames
[] = { "self","id","toggle", NULL
};
2236 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_ToggleTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2239 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2240 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2241 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2245 _arg2
= (bool ) tempbool2
;
2247 wxPy_BEGIN_ALLOW_THREADS
;
2248 wxToolBarBase_ToggleTool(_arg0
,_arg1
,_arg2
);
2250 wxPy_END_ALLOW_THREADS
;
2251 if (PyErr_Occurred()) return NULL
;
2252 } Py_INCREF(Py_None
);
2253 _resultobj
= Py_None
;
2257 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2258 static PyObject
*_wrap_wxToolBarBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2259 PyObject
* _resultobj
;
2260 wxToolBarBase
* _arg0
;
2263 PyObject
* _argo0
= 0;
2265 char *_kwnames
[] = { "self","id","toggle", NULL
};
2268 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetToggle",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2271 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2272 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2277 _arg2
= (bool ) tempbool2
;
2279 wxPy_BEGIN_ALLOW_THREADS
;
2280 wxToolBarBase_SetToggle(_arg0
,_arg1
,_arg2
);
2282 wxPy_END_ALLOW_THREADS
;
2283 if (PyErr_Occurred()) return NULL
;
2284 } Py_INCREF(Py_None
);
2285 _resultobj
= Py_None
;
2289 static PyObject
* wxToolBarBase_GetToolClientData(wxToolBarBase
*self
,int index
) {
2290 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetToolClientData(index
);
2292 Py_INCREF(udata
->m_obj
);
2293 return udata
->m_obj
;
2299 static PyObject
*_wrap_wxToolBarBase_GetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2300 PyObject
* _resultobj
;
2302 wxToolBarBase
* _arg0
;
2304 PyObject
* _argo0
= 0;
2305 char *_kwnames
[] = { "self","index", NULL
};
2308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolClientData",_kwnames
,&_argo0
,&_arg1
))
2311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2318 wxPy_BEGIN_ALLOW_THREADS
;
2319 _result
= (PyObject
*)wxToolBarBase_GetToolClientData(_arg0
,_arg1
);
2321 wxPy_END_ALLOW_THREADS
;
2322 if (PyErr_Occurred()) return NULL
;
2324 _resultobj
= _result
;
2329 static void wxToolBarBase_SetToolClientData(wxToolBarBase
*self
,int index
,PyObject
* clientData
) {
2330 self
->SetToolClientData(index
, new wxPyUserData(clientData
));
2332 static PyObject
*_wrap_wxToolBarBase_SetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2333 PyObject
* _resultobj
;
2334 wxToolBarBase
* _arg0
;
2337 PyObject
* _argo0
= 0;
2338 PyObject
* _obj2
= 0;
2339 char *_kwnames
[] = { "self","index","clientData", NULL
};
2342 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolClientData",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2345 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2346 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2347 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2355 wxPy_BEGIN_ALLOW_THREADS
;
2356 wxToolBarBase_SetToolClientData(_arg0
,_arg1
,_arg2
);
2358 wxPy_END_ALLOW_THREADS
;
2359 if (PyErr_Occurred()) return NULL
;
2360 } Py_INCREF(Py_None
);
2361 _resultobj
= Py_None
;
2365 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2366 static PyObject
*_wrap_wxToolBarBase_GetToolState(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2367 PyObject
* _resultobj
;
2369 wxToolBarBase
* _arg0
;
2371 PyObject
* _argo0
= 0;
2372 char *_kwnames
[] = { "self","id", NULL
};
2375 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolState",_kwnames
,&_argo0
,&_arg1
))
2378 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2379 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2380 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2385 wxPy_BEGIN_ALLOW_THREADS
;
2386 _result
= (bool )wxToolBarBase_GetToolState(_arg0
,_arg1
);
2388 wxPy_END_ALLOW_THREADS
;
2389 if (PyErr_Occurred()) return NULL
;
2390 } _resultobj
= Py_BuildValue("i",_result
);
2394 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2395 static PyObject
*_wrap_wxToolBarBase_GetToolEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2396 PyObject
* _resultobj
;
2398 wxToolBarBase
* _arg0
;
2400 PyObject
* _argo0
= 0;
2401 char *_kwnames
[] = { "self","id", NULL
};
2404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolEnabled",_kwnames
,&_argo0
,&_arg1
))
2407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2414 wxPy_BEGIN_ALLOW_THREADS
;
2415 _result
= (bool )wxToolBarBase_GetToolEnabled(_arg0
,_arg1
);
2417 wxPy_END_ALLOW_THREADS
;
2418 if (PyErr_Occurred()) return NULL
;
2419 } _resultobj
= Py_BuildValue("i",_result
);
2423 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2424 static PyObject
*_wrap_wxToolBarBase_SetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2425 PyObject
* _resultobj
;
2426 wxToolBarBase
* _arg0
;
2429 PyObject
* _argo0
= 0;
2430 PyObject
* _obj2
= 0;
2431 char *_kwnames
[] = { "self","id","helpString", NULL
};
2434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2437 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2438 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2439 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2444 #if PYTHON_API_VERSION >= 1009
2445 char* tmpPtr
; int tmpSize
;
2446 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2447 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2450 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2452 _arg2
= new wxString(tmpPtr
, tmpSize
);
2454 if (!PyString_Check(_obj2
)) {
2455 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2458 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2462 wxPy_BEGIN_ALLOW_THREADS
;
2463 wxToolBarBase_SetToolShortHelp(_arg0
,_arg1
,*_arg2
);
2465 wxPy_END_ALLOW_THREADS
;
2466 if (PyErr_Occurred()) return NULL
;
2467 } Py_INCREF(Py_None
);
2468 _resultobj
= Py_None
;
2476 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2477 static PyObject
*_wrap_wxToolBarBase_GetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2478 PyObject
* _resultobj
;
2480 wxToolBarBase
* _arg0
;
2482 PyObject
* _argo0
= 0;
2483 char *_kwnames
[] = { "self","id", NULL
};
2486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames
,&_argo0
,&_arg1
))
2489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2496 wxPy_BEGIN_ALLOW_THREADS
;
2497 _result
= new wxString (wxToolBarBase_GetToolShortHelp(_arg0
,_arg1
));
2499 wxPy_END_ALLOW_THREADS
;
2500 if (PyErr_Occurred()) return NULL
;
2502 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2510 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2511 static PyObject
*_wrap_wxToolBarBase_SetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2512 PyObject
* _resultobj
;
2513 wxToolBarBase
* _arg0
;
2516 PyObject
* _argo0
= 0;
2517 PyObject
* _obj2
= 0;
2518 char *_kwnames
[] = { "self","id","helpString", NULL
};
2521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2531 #if PYTHON_API_VERSION >= 1009
2532 char* tmpPtr
; int tmpSize
;
2533 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2534 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2537 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2539 _arg2
= new wxString(tmpPtr
, tmpSize
);
2541 if (!PyString_Check(_obj2
)) {
2542 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2545 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2549 wxPy_BEGIN_ALLOW_THREADS
;
2550 wxToolBarBase_SetToolLongHelp(_arg0
,_arg1
,*_arg2
);
2552 wxPy_END_ALLOW_THREADS
;
2553 if (PyErr_Occurred()) return NULL
;
2554 } Py_INCREF(Py_None
);
2555 _resultobj
= Py_None
;
2563 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2564 static PyObject
*_wrap_wxToolBarBase_GetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2565 PyObject
* _resultobj
;
2567 wxToolBarBase
* _arg0
;
2569 PyObject
* _argo0
= 0;
2570 char *_kwnames
[] = { "self","id", NULL
};
2573 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames
,&_argo0
,&_arg1
))
2576 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2577 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2578 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2583 wxPy_BEGIN_ALLOW_THREADS
;
2584 _result
= new wxString (wxToolBarBase_GetToolLongHelp(_arg0
,_arg1
));
2586 wxPy_END_ALLOW_THREADS
;
2587 if (PyErr_Occurred()) return NULL
;
2589 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2597 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2598 static PyObject
*_wrap_wxToolBarBase_SetMarginsXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2599 PyObject
* _resultobj
;
2600 wxToolBarBase
* _arg0
;
2603 PyObject
* _argo0
= 0;
2604 char *_kwnames
[] = { "self","x","y", NULL
};
2607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMarginsXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2617 wxPy_BEGIN_ALLOW_THREADS
;
2618 wxToolBarBase_SetMarginsXY(_arg0
,_arg1
,_arg2
);
2620 wxPy_END_ALLOW_THREADS
;
2621 if (PyErr_Occurred()) return NULL
;
2622 } Py_INCREF(Py_None
);
2623 _resultobj
= Py_None
;
2627 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2628 static PyObject
*_wrap_wxToolBarBase_SetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2629 PyObject
* _resultobj
;
2630 wxToolBarBase
* _arg0
;
2632 PyObject
* _argo0
= 0;
2634 PyObject
* _obj1
= 0;
2635 char *_kwnames
[] = { "self","size", NULL
};
2638 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetMargins",_kwnames
,&_argo0
,&_obj1
))
2641 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2642 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2643 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2649 if (! wxSize_helper(_obj1
, &_arg1
))
2653 wxPy_BEGIN_ALLOW_THREADS
;
2654 wxToolBarBase_SetMargins(_arg0
,*_arg1
);
2656 wxPy_END_ALLOW_THREADS
;
2657 if (PyErr_Occurred()) return NULL
;
2658 } Py_INCREF(Py_None
);
2659 _resultobj
= Py_None
;
2663 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2664 static PyObject
*_wrap_wxToolBarBase_SetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2665 PyObject
* _resultobj
;
2666 wxToolBarBase
* _arg0
;
2668 PyObject
* _argo0
= 0;
2669 char *_kwnames
[] = { "self","packing", NULL
};
2672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolPacking",_kwnames
,&_argo0
,&_arg1
))
2675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2682 wxPy_BEGIN_ALLOW_THREADS
;
2683 wxToolBarBase_SetToolPacking(_arg0
,_arg1
);
2685 wxPy_END_ALLOW_THREADS
;
2686 if (PyErr_Occurred()) return NULL
;
2687 } Py_INCREF(Py_None
);
2688 _resultobj
= Py_None
;
2692 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2693 static PyObject
*_wrap_wxToolBarBase_SetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2694 PyObject
* _resultobj
;
2695 wxToolBarBase
* _arg0
;
2697 PyObject
* _argo0
= 0;
2698 char *_kwnames
[] = { "self","separation", NULL
};
2701 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolSeparation",_kwnames
,&_argo0
,&_arg1
))
2704 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2705 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2706 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2711 wxPy_BEGIN_ALLOW_THREADS
;
2712 wxToolBarBase_SetToolSeparation(_arg0
,_arg1
);
2714 wxPy_END_ALLOW_THREADS
;
2715 if (PyErr_Occurred()) return NULL
;
2716 } Py_INCREF(Py_None
);
2717 _resultobj
= Py_None
;
2721 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2722 static PyObject
*_wrap_wxToolBarBase_GetToolMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2723 PyObject
* _resultobj
;
2725 wxToolBarBase
* _arg0
;
2726 PyObject
* _argo0
= 0;
2727 char *_kwnames
[] = { "self", NULL
};
2731 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolMargins",_kwnames
,&_argo0
))
2734 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2735 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2736 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2741 wxPy_BEGIN_ALLOW_THREADS
;
2742 _result
= new wxSize (wxToolBarBase_GetToolMargins(_arg0
));
2744 wxPy_END_ALLOW_THREADS
;
2745 if (PyErr_Occurred()) return NULL
;
2746 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2747 _resultobj
= Py_BuildValue("s",_ptemp
);
2751 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2752 static PyObject
*_wrap_wxToolBarBase_GetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2753 PyObject
* _resultobj
;
2755 wxToolBarBase
* _arg0
;
2756 PyObject
* _argo0
= 0;
2757 char *_kwnames
[] = { "self", NULL
};
2761 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMargins",_kwnames
,&_argo0
))
2764 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2765 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2766 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2771 wxPy_BEGIN_ALLOW_THREADS
;
2772 _result
= new wxSize (wxToolBarBase_GetMargins(_arg0
));
2774 wxPy_END_ALLOW_THREADS
;
2775 if (PyErr_Occurred()) return NULL
;
2776 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2777 _resultobj
= Py_BuildValue("s",_ptemp
);
2781 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2782 static PyObject
*_wrap_wxToolBarBase_GetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2783 PyObject
* _resultobj
;
2785 wxToolBarBase
* _arg0
;
2786 PyObject
* _argo0
= 0;
2787 char *_kwnames
[] = { "self", NULL
};
2790 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolPacking",_kwnames
,&_argo0
))
2793 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2794 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2795 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2800 wxPy_BEGIN_ALLOW_THREADS
;
2801 _result
= (int )wxToolBarBase_GetToolPacking(_arg0
);
2803 wxPy_END_ALLOW_THREADS
;
2804 if (PyErr_Occurred()) return NULL
;
2805 } _resultobj
= Py_BuildValue("i",_result
);
2809 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2810 static PyObject
*_wrap_wxToolBarBase_GetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2811 PyObject
* _resultobj
;
2813 wxToolBarBase
* _arg0
;
2814 PyObject
* _argo0
= 0;
2815 char *_kwnames
[] = { "self", NULL
};
2818 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSeparation",_kwnames
,&_argo0
))
2821 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2822 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2828 wxPy_BEGIN_ALLOW_THREADS
;
2829 _result
= (int )wxToolBarBase_GetToolSeparation(_arg0
);
2831 wxPy_END_ALLOW_THREADS
;
2832 if (PyErr_Occurred()) return NULL
;
2833 } _resultobj
= Py_BuildValue("i",_result
);
2837 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2838 static PyObject
*_wrap_wxToolBarBase_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2839 PyObject
* _resultobj
;
2840 wxToolBarBase
* _arg0
;
2842 PyObject
* _argo0
= 0;
2843 char *_kwnames
[] = { "self","nRows", NULL
};
2846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetRows",_kwnames
,&_argo0
,&_arg1
))
2849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2856 wxPy_BEGIN_ALLOW_THREADS
;
2857 wxToolBarBase_SetRows(_arg0
,_arg1
);
2859 wxPy_END_ALLOW_THREADS
;
2860 if (PyErr_Occurred()) return NULL
;
2861 } Py_INCREF(Py_None
);
2862 _resultobj
= Py_None
;
2866 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2867 static PyObject
*_wrap_wxToolBarBase_SetMaxRowsCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2868 PyObject
* _resultobj
;
2869 wxToolBarBase
* _arg0
;
2872 PyObject
* _argo0
= 0;
2873 char *_kwnames
[] = { "self","rows","cols", NULL
};
2876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2886 wxPy_BEGIN_ALLOW_THREADS
;
2887 wxToolBarBase_SetMaxRowsCols(_arg0
,_arg1
,_arg2
);
2889 wxPy_END_ALLOW_THREADS
;
2890 if (PyErr_Occurred()) return NULL
;
2891 } Py_INCREF(Py_None
);
2892 _resultobj
= Py_None
;
2896 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2897 static PyObject
*_wrap_wxToolBarBase_GetMaxRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2898 PyObject
* _resultobj
;
2900 wxToolBarBase
* _arg0
;
2901 PyObject
* _argo0
= 0;
2902 char *_kwnames
[] = { "self", NULL
};
2905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxRows",_kwnames
,&_argo0
))
2908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2915 wxPy_BEGIN_ALLOW_THREADS
;
2916 _result
= (int )wxToolBarBase_GetMaxRows(_arg0
);
2918 wxPy_END_ALLOW_THREADS
;
2919 if (PyErr_Occurred()) return NULL
;
2920 } _resultobj
= Py_BuildValue("i",_result
);
2924 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2925 static PyObject
*_wrap_wxToolBarBase_GetMaxCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2926 PyObject
* _resultobj
;
2928 wxToolBarBase
* _arg0
;
2929 PyObject
* _argo0
= 0;
2930 char *_kwnames
[] = { "self", NULL
};
2933 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxCols",_kwnames
,&_argo0
))
2936 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2937 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2938 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2943 wxPy_BEGIN_ALLOW_THREADS
;
2944 _result
= (int )wxToolBarBase_GetMaxCols(_arg0
);
2946 wxPy_END_ALLOW_THREADS
;
2947 if (PyErr_Occurred()) return NULL
;
2948 } _resultobj
= Py_BuildValue("i",_result
);
2952 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2953 static PyObject
*_wrap_wxToolBarBase_SetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2954 PyObject
* _resultobj
;
2955 wxToolBarBase
* _arg0
;
2957 PyObject
* _argo0
= 0;
2959 PyObject
* _obj1
= 0;
2960 char *_kwnames
[] = { "self","size", NULL
};
2963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames
,&_argo0
,&_obj1
))
2966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
2974 if (! wxSize_helper(_obj1
, &_arg1
))
2978 wxPy_BEGIN_ALLOW_THREADS
;
2979 wxToolBarBase_SetToolBitmapSize(_arg0
,*_arg1
);
2981 wxPy_END_ALLOW_THREADS
;
2982 if (PyErr_Occurred()) return NULL
;
2983 } Py_INCREF(Py_None
);
2984 _resultobj
= Py_None
;
2988 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2989 static PyObject
*_wrap_wxToolBarBase_GetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2990 PyObject
* _resultobj
;
2992 wxToolBarBase
* _arg0
;
2993 PyObject
* _argo0
= 0;
2994 char *_kwnames
[] = { "self", NULL
};
2998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolBitmapSize",_kwnames
,&_argo0
))
3001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
3003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
3008 wxPy_BEGIN_ALLOW_THREADS
;
3009 _result
= new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0
));
3011 wxPy_END_ALLOW_THREADS
;
3012 if (PyErr_Occurred()) return NULL
;
3013 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
3014 _resultobj
= Py_BuildValue("s",_ptemp
);
3018 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
3019 static PyObject
*_wrap_wxToolBarBase_GetToolSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3020 PyObject
* _resultobj
;
3022 wxToolBarBase
* _arg0
;
3023 PyObject
* _argo0
= 0;
3024 char *_kwnames
[] = { "self", NULL
};
3028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSize",_kwnames
,&_argo0
))
3031 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3032 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
3033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
3038 wxPy_BEGIN_ALLOW_THREADS
;
3039 _result
= new wxSize (wxToolBarBase_GetToolSize(_arg0
));
3041 wxPy_END_ALLOW_THREADS
;
3042 if (PyErr_Occurred()) return NULL
;
3043 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
3044 _resultobj
= Py_BuildValue("s",_ptemp
);
3048 static void *SwigwxToolBarTowxToolBarBase(void *ptr
) {
3050 wxToolBarBase
*dest
;
3051 src
= (wxToolBar
*) ptr
;
3052 dest
= (wxToolBarBase
*) src
;
3053 return (void *) dest
;
3056 static void *SwigwxToolBarTowxControl(void *ptr
) {
3059 src
= (wxToolBar
*) ptr
;
3060 dest
= (wxControl
*) src
;
3061 return (void *) dest
;
3064 static void *SwigwxToolBarTowxWindow(void *ptr
) {
3067 src
= (wxToolBar
*) ptr
;
3068 dest
= (wxWindow
*) src
;
3069 return (void *) dest
;
3072 static void *SwigwxToolBarTowxEvtHandler(void *ptr
) {
3075 src
= (wxToolBar
*) ptr
;
3076 dest
= (wxEvtHandler
*) src
;
3077 return (void *) dest
;
3080 static void *SwigwxToolBarTowxObject(void *ptr
) {
3083 src
= (wxToolBar
*) ptr
;
3084 dest
= (wxObject
*) src
;
3085 return (void *) dest
;
3088 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3089 static PyObject
*_wrap_new_wxToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3090 PyObject
* _resultobj
;
3091 wxToolBar
* _result
;
3094 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3095 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3096 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3097 char * _arg5
= (char *) wxToolBarNameStr
;
3098 PyObject
* _argo0
= 0;
3100 PyObject
* _obj2
= 0;
3102 PyObject
* _obj3
= 0;
3103 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3119 if (! wxPoint_helper(_obj2
, &_arg2
))
3125 if (! wxSize_helper(_obj3
, &_arg3
))
3129 wxPy_BEGIN_ALLOW_THREADS
;
3130 _result
= (wxToolBar
*)new_wxToolBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3132 wxPy_END_ALLOW_THREADS
;
3133 if (PyErr_Occurred()) return NULL
;
3135 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3136 _resultobj
= Py_BuildValue("s",_ptemp
);
3139 _resultobj
= Py_None
;
3144 #define new_wxPreToolBar() (new wxToolBar())
3145 static PyObject
*_wrap_new_wxPreToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3146 PyObject
* _resultobj
;
3147 wxToolBar
* _result
;
3148 char *_kwnames
[] = { NULL
};
3152 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBar",_kwnames
))
3155 wxPy_BEGIN_ALLOW_THREADS
;
3156 _result
= (wxToolBar
*)new_wxPreToolBar();
3158 wxPy_END_ALLOW_THREADS
;
3159 if (PyErr_Occurred()) return NULL
;
3161 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3162 _resultobj
= Py_BuildValue("s",_ptemp
);
3165 _resultobj
= Py_None
;
3170 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3171 static PyObject
*_wrap_wxToolBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3172 PyObject
* _resultobj
;
3177 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3178 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3179 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3180 char * _arg6
= (char *) wxToolBarNameStr
;
3181 PyObject
* _argo0
= 0;
3182 PyObject
* _argo1
= 0;
3184 PyObject
* _obj3
= 0;
3186 PyObject
* _obj4
= 0;
3187 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3193 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3194 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3195 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3200 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3201 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3202 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3209 if (! wxPoint_helper(_obj3
, &_arg3
))
3215 if (! wxSize_helper(_obj4
, &_arg4
))
3219 wxPy_BEGIN_ALLOW_THREADS
;
3220 _result
= (bool )wxToolBar_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3222 wxPy_END_ALLOW_THREADS
;
3223 if (PyErr_Occurred()) return NULL
;
3224 } _resultobj
= Py_BuildValue("i",_result
);
3228 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3229 static PyObject
*_wrap_wxToolBar_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3230 PyObject
* _resultobj
;
3231 wxToolBarToolBase
* _result
;
3235 PyObject
* _argo0
= 0;
3236 char *_kwnames
[] = { "self","x","y", NULL
};
3239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBar_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3249 wxPy_BEGIN_ALLOW_THREADS
;
3250 _result
= (wxToolBarToolBase
*)wxToolBar_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3252 wxPy_END_ALLOW_THREADS
;
3253 if (PyErr_Occurred()) return NULL
;
3254 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3258 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr
) {
3259 wxToolBarSimple
*src
;
3260 wxToolBarBase
*dest
;
3261 src
= (wxToolBarSimple
*) ptr
;
3262 dest
= (wxToolBarBase
*) src
;
3263 return (void *) dest
;
3266 static void *SwigwxToolBarSimpleTowxControl(void *ptr
) {
3267 wxToolBarSimple
*src
;
3269 src
= (wxToolBarSimple
*) ptr
;
3270 dest
= (wxControl
*) src
;
3271 return (void *) dest
;
3274 static void *SwigwxToolBarSimpleTowxWindow(void *ptr
) {
3275 wxToolBarSimple
*src
;
3277 src
= (wxToolBarSimple
*) ptr
;
3278 dest
= (wxWindow
*) src
;
3279 return (void *) dest
;
3282 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr
) {
3283 wxToolBarSimple
*src
;
3285 src
= (wxToolBarSimple
*) ptr
;
3286 dest
= (wxEvtHandler
*) src
;
3287 return (void *) dest
;
3290 static void *SwigwxToolBarSimpleTowxObject(void *ptr
) {
3291 wxToolBarSimple
*src
;
3293 src
= (wxToolBarSimple
*) ptr
;
3294 dest
= (wxObject
*) src
;
3295 return (void *) dest
;
3298 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3299 static PyObject
*_wrap_new_wxToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3300 PyObject
* _resultobj
;
3301 wxToolBarSimple
* _result
;
3304 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3305 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3306 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3307 char * _arg5
= (char *) wxToolBarNameStr
;
3308 PyObject
* _argo0
= 0;
3310 PyObject
* _obj2
= 0;
3312 PyObject
* _obj3
= 0;
3313 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBarSimple",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3320 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3321 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3329 if (! wxPoint_helper(_obj2
, &_arg2
))
3335 if (! wxSize_helper(_obj3
, &_arg3
))
3339 wxPy_BEGIN_ALLOW_THREADS
;
3340 _result
= (wxToolBarSimple
*)new_wxToolBarSimple(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3342 wxPy_END_ALLOW_THREADS
;
3343 if (PyErr_Occurred()) return NULL
;
3345 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3346 _resultobj
= Py_BuildValue("s",_ptemp
);
3349 _resultobj
= Py_None
;
3354 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3355 static PyObject
*_wrap_new_wxPreToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3356 PyObject
* _resultobj
;
3357 wxToolBarSimple
* _result
;
3358 char *_kwnames
[] = { NULL
};
3362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBarSimple",_kwnames
))
3365 wxPy_BEGIN_ALLOW_THREADS
;
3366 _result
= (wxToolBarSimple
*)new_wxPreToolBarSimple();
3368 wxPy_END_ALLOW_THREADS
;
3369 if (PyErr_Occurred()) return NULL
;
3371 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3372 _resultobj
= Py_BuildValue("s",_ptemp
);
3375 _resultobj
= Py_None
;
3380 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3381 static PyObject
*_wrap_wxToolBarSimple_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3382 PyObject
* _resultobj
;
3384 wxToolBarSimple
* _arg0
;
3387 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3388 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3389 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3390 char * _arg6
= (char *) wxToolBarNameStr
;
3391 PyObject
* _argo0
= 0;
3392 PyObject
* _argo1
= 0;
3394 PyObject
* _obj3
= 0;
3396 PyObject
* _obj4
= 0;
3397 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBarSimple_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3410 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3411 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3419 if (! wxPoint_helper(_obj3
, &_arg3
))
3425 if (! wxSize_helper(_obj4
, &_arg4
))
3429 wxPy_BEGIN_ALLOW_THREADS
;
3430 _result
= (bool )wxToolBarSimple_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3432 wxPy_END_ALLOW_THREADS
;
3433 if (PyErr_Occurred()) return NULL
;
3434 } _resultobj
= Py_BuildValue("i",_result
);
3438 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3439 static PyObject
*_wrap_wxToolBarSimple_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3440 PyObject
* _resultobj
;
3441 wxToolBarToolBase
* _result
;
3442 wxToolBarSimple
* _arg0
;
3445 PyObject
* _argo0
= 0;
3446 char *_kwnames
[] = { "self","x","y", NULL
};
3449 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3452 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3453 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3459 wxPy_BEGIN_ALLOW_THREADS
;
3460 _result
= (wxToolBarToolBase
*)wxToolBarSimple_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3462 wxPy_END_ALLOW_THREADS
;
3463 if (PyErr_Occurred()) return NULL
;
3464 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3468 static PyMethodDef stattoolcMethods
[] = {
3469 { "wxToolBarSimple_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarSimple_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3470 { "wxToolBarSimple_Create", (PyCFunction
) _wrap_wxToolBarSimple_Create
, METH_VARARGS
| METH_KEYWORDS
},
3471 { "new_wxPreToolBarSimple", (PyCFunction
) _wrap_new_wxPreToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3472 { "new_wxToolBarSimple", (PyCFunction
) _wrap_new_wxToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3473 { "wxToolBar_FindToolForPosition", (PyCFunction
) _wrap_wxToolBar_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "wxToolBar_Create", (PyCFunction
) _wrap_wxToolBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "new_wxPreToolBar", (PyCFunction
) _wrap_new_wxPreToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "new_wxToolBar", (PyCFunction
) _wrap_new_wxToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "wxToolBarBase_GetToolSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolSize
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_SetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "wxToolBarBase_GetMaxCols", (PyCFunction
) _wrap_wxToolBarBase_GetMaxCols
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "wxToolBarBase_GetMaxRows", (PyCFunction
) _wrap_wxToolBarBase_GetMaxRows
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction
) _wrap_wxToolBarBase_SetMaxRowsCols
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "wxToolBarBase_SetRows", (PyCFunction
) _wrap_wxToolBarBase_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "wxToolBarBase_GetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_GetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxToolBarBase_GetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_GetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxToolBarBase_GetMargins", (PyCFunction
) _wrap_wxToolBarBase_GetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "wxToolBarBase_GetToolMargins", (PyCFunction
) _wrap_wxToolBarBase_GetToolMargins
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxToolBarBase_SetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_SetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "wxToolBarBase_SetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_SetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxToolBarBase_SetMargins", (PyCFunction
) _wrap_wxToolBarBase_SetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxToolBarBase_SetMarginsXY", (PyCFunction
) _wrap_wxToolBarBase_SetMarginsXY
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxToolBarBase_GetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxToolBarBase_SetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxToolBarBase_GetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "wxToolBarBase_SetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxToolBarBase_GetToolEnabled", (PyCFunction
) _wrap_wxToolBarBase_GetToolEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "wxToolBarBase_GetToolState", (PyCFunction
) _wrap_wxToolBarBase_GetToolState
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxToolBarBase_SetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_SetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "wxToolBarBase_GetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_GetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "wxToolBarBase_SetToggle", (PyCFunction
) _wrap_wxToolBarBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "wxToolBarBase_ToggleTool", (PyCFunction
) _wrap_wxToolBarBase_ToggleTool
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "wxToolBarBase_EnableTool", (PyCFunction
) _wrap_wxToolBarBase_EnableTool
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxToolBarBase_Realize", (PyCFunction
) _wrap_wxToolBarBase_Realize
, METH_VARARGS
| METH_KEYWORDS
},
3504 { "wxToolBarBase_ClearTools", (PyCFunction
) _wrap_wxToolBarBase_ClearTools
, METH_VARARGS
| METH_KEYWORDS
},
3505 { "wxToolBarBase_DeleteTool", (PyCFunction
) _wrap_wxToolBarBase_DeleteTool
, METH_VARARGS
| METH_KEYWORDS
},
3506 { "wxToolBarBase_DeleteToolByPos", (PyCFunction
) _wrap_wxToolBarBase_DeleteToolByPos
, METH_VARARGS
| METH_KEYWORDS
},
3507 { "wxToolBarBase_RemoveTool", (PyCFunction
) _wrap_wxToolBarBase_RemoveTool
, METH_VARARGS
| METH_KEYWORDS
},
3508 { "wxToolBarBase_InsertSeparator", (PyCFunction
) _wrap_wxToolBarBase_InsertSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3509 { "wxToolBarBase_AddSeparator", (PyCFunction
) _wrap_wxToolBarBase_AddSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3510 { "wxToolBarBase_InsertControl", (PyCFunction
) _wrap_wxToolBarBase_InsertControl
, METH_VARARGS
| METH_KEYWORDS
},
3511 { "wxToolBarBase_AddControl", (PyCFunction
) _wrap_wxToolBarBase_AddControl
, METH_VARARGS
| METH_KEYWORDS
},
3512 { "wxToolBarBase_InsertSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_InsertSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3513 { "wxToolBarBase_InsertTool", (PyCFunction
) _wrap_wxToolBarBase_InsertTool
, METH_VARARGS
| METH_KEYWORDS
},
3514 { "wxToolBarBase_AddSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_AddSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3515 { "wxToolBarBase_AddTool", (PyCFunction
) _wrap_wxToolBarBase_AddTool
, METH_VARARGS
| METH_KEYWORDS
},
3516 { "wxToolBarToolBase_SetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_SetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3517 { "wxToolBarToolBase_GetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_GetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3518 { "wxToolBarToolBase_Attach", (PyCFunction
) _wrap_wxToolBarToolBase_Attach
, METH_VARARGS
| METH_KEYWORDS
},
3519 { "wxToolBarToolBase_Detach", (PyCFunction
) _wrap_wxToolBarToolBase_Detach
, METH_VARARGS
| METH_KEYWORDS
},
3520 { "wxToolBarToolBase_SetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3521 { "wxToolBarToolBase_SetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3522 { "wxToolBarToolBase_SetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3523 { "wxToolBarToolBase_SetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3524 { "wxToolBarToolBase_SetToggle", (PyCFunction
) _wrap_wxToolBarToolBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3525 { "wxToolBarToolBase_Toggle", (PyCFunction
) _wrap_wxToolBarToolBase_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
3526 { "wxToolBarToolBase_Enable", (PyCFunction
) _wrap_wxToolBarToolBase_Enable
, METH_VARARGS
| METH_KEYWORDS
},
3527 { "wxToolBarToolBase_GetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3528 { "wxToolBarToolBase_GetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3529 { "wxToolBarToolBase_GetBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3530 { "wxToolBarToolBase_GetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3531 { "wxToolBarToolBase_GetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3532 { "wxToolBarToolBase_CanBeToggled", (PyCFunction
) _wrap_wxToolBarToolBase_CanBeToggled
, METH_VARARGS
| METH_KEYWORDS
},
3533 { "wxToolBarToolBase_IsToggled", (PyCFunction
) _wrap_wxToolBarToolBase_IsToggled
, METH_VARARGS
| METH_KEYWORDS
},
3534 { "wxToolBarToolBase_IsEnabled", (PyCFunction
) _wrap_wxToolBarToolBase_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3535 { "wxToolBarToolBase_GetStyle", (PyCFunction
) _wrap_wxToolBarToolBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
3536 { "wxToolBarToolBase_IsSeparator", (PyCFunction
) _wrap_wxToolBarToolBase_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3537 { "wxToolBarToolBase_IsControl", (PyCFunction
) _wrap_wxToolBarToolBase_IsControl
, METH_VARARGS
| METH_KEYWORDS
},
3538 { "wxToolBarToolBase_IsButton", (PyCFunction
) _wrap_wxToolBarToolBase_IsButton
, METH_VARARGS
| METH_KEYWORDS
},
3539 { "wxToolBarToolBase_GetToolBar", (PyCFunction
) _wrap_wxToolBarToolBase_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3540 { "wxToolBarToolBase_GetControl", (PyCFunction
) _wrap_wxToolBarToolBase_GetControl
, METH_VARARGS
| METH_KEYWORDS
},
3541 { "wxToolBarToolBase_GetId", (PyCFunction
) _wrap_wxToolBarToolBase_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3542 { "wxToolBarToolBase_Destroy", (PyCFunction
) _wrap_wxToolBarToolBase_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3543 { "wxStatusBar_SetMinHeight", (PyCFunction
) _wrap_wxStatusBar_SetMinHeight
, METH_VARARGS
| METH_KEYWORDS
},
3544 { "wxStatusBar_SetStatusWidths", (PyCFunction
) _wrap_wxStatusBar_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
3545 { "wxStatusBar_SetStatusText", (PyCFunction
) _wrap_wxStatusBar_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3546 { "wxStatusBar_SetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_SetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3547 { "wxStatusBar_GetBorderY", (PyCFunction
) _wrap_wxStatusBar_GetBorderY
, METH_VARARGS
| METH_KEYWORDS
},
3548 { "wxStatusBar_GetBorderX", (PyCFunction
) _wrap_wxStatusBar_GetBorderX
, METH_VARARGS
| METH_KEYWORDS
},
3549 { "wxStatusBar_GetStatusText", (PyCFunction
) _wrap_wxStatusBar_GetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3550 { "wxStatusBar_GetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_GetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3551 { "wxStatusBar_GetFieldRect", (PyCFunction
) _wrap_wxStatusBar_GetFieldRect
, METH_VARARGS
| METH_KEYWORDS
},
3552 { "wxStatusBar_Create", (PyCFunction
) _wrap_wxStatusBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3553 { "new_wxPreStatusBar", (PyCFunction
) _wrap_new_wxPreStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3554 { "new_wxStatusBar", (PyCFunction
) _wrap_new_wxStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3561 * This table is used by the pointer type-checker
3563 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3564 { "_signed_long","_long",0},
3565 { "_wxPrintQuality","_wxCoord",0},
3566 { "_wxPrintQuality","_int",0},
3567 { "_wxPrintQuality","_signed_int",0},
3568 { "_wxPrintQuality","_unsigned_int",0},
3569 { "_wxPrintQuality","_wxWindowID",0},
3570 { "_wxPrintQuality","_uint",0},
3571 { "_wxPrintQuality","_EBool",0},
3572 { "_wxPrintQuality","_size_t",0},
3573 { "_wxPrintQuality","_time_t",0},
3574 { "_class_wxEvtHandler","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3575 { "_class_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3576 { "_class_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3577 { "_class_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3578 { "_class_wxEvtHandler","_class_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3579 { "_class_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3580 { "_class_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3581 { "_class_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3582 { "_class_wxToolBarBase","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3583 { "_class_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3584 { "_class_wxToolBarBase","_class_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3585 { "_class_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3586 { "_byte","_unsigned_char",0},
3587 { "_long","_unsigned_long",0},
3588 { "_long","_signed_long",0},
3589 { "_class_wxObject","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3590 { "_class_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3591 { "_class_wxObject","_class_wxToolBar",SwigwxToolBarTowxObject
},
3592 { "_class_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3593 { "_class_wxObject","_class_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3594 { "_class_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3595 { "_class_wxObject","_class_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3596 { "_class_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3597 { "_class_wxObject","_class_wxStatusBar",SwigwxStatusBarTowxObject
},
3598 { "_class_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3599 { "_size_t","_wxCoord",0},
3600 { "_size_t","_wxPrintQuality",0},
3601 { "_size_t","_time_t",0},
3602 { "_size_t","_unsigned_int",0},
3603 { "_size_t","_int",0},
3604 { "_size_t","_wxWindowID",0},
3605 { "_size_t","_uint",0},
3606 { "_uint","_wxCoord",0},
3607 { "_uint","_wxPrintQuality",0},
3608 { "_uint","_time_t",0},
3609 { "_uint","_size_t",0},
3610 { "_uint","_unsigned_int",0},
3611 { "_uint","_int",0},
3612 { "_uint","_wxWindowID",0},
3613 { "_wxChar","_char",0},
3614 { "_char","_wxChar",0},
3615 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3616 { "_EBool","_wxCoord",0},
3617 { "_EBool","_wxPrintQuality",0},
3618 { "_EBool","_signed_int",0},
3619 { "_EBool","_int",0},
3620 { "_EBool","_wxWindowID",0},
3621 { "_unsigned_long","_long",0},
3622 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3623 { "_signed_int","_wxCoord",0},
3624 { "_signed_int","_wxPrintQuality",0},
3625 { "_signed_int","_EBool",0},
3626 { "_signed_int","_wxWindowID",0},
3627 { "_signed_int","_int",0},
3628 { "_WXTYPE","_short",0},
3629 { "_WXTYPE","_signed_short",0},
3630 { "_WXTYPE","_unsigned_short",0},
3631 { "_unsigned_short","_WXTYPE",0},
3632 { "_unsigned_short","_short",0},
3633 { "_class_wxWindow","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3634 { "_class_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3635 { "_class_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow
},
3636 { "_class_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3637 { "_class_wxWindow","_class_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3638 { "_class_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3639 { "_class_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow
},
3640 { "_class_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3641 { "_wxObject","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3642 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3643 { "_wxObject","_class_wxToolBar",SwigwxToolBarTowxObject
},
3644 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3645 { "_wxObject","_class_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3646 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3647 { "_wxObject","_class_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3648 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3649 { "_wxObject","_class_wxStatusBar",SwigwxStatusBarTowxObject
},
3650 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3651 { "_signed_short","_WXTYPE",0},
3652 { "_signed_short","_short",0},
3653 { "_unsigned_char","_byte",0},
3654 { "_wxControl","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3655 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3656 { "_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl
},
3657 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3658 { "_wxControl","_class_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3659 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3660 { "_unsigned_int","_wxCoord",0},
3661 { "_unsigned_int","_wxPrintQuality",0},
3662 { "_unsigned_int","_time_t",0},
3663 { "_unsigned_int","_size_t",0},
3664 { "_unsigned_int","_uint",0},
3665 { "_unsigned_int","_wxWindowID",0},
3666 { "_unsigned_int","_int",0},
3667 { "_short","_WXTYPE",0},
3668 { "_short","_unsigned_short",0},
3669 { "_short","_signed_short",0},
3670 { "_wxWindowID","_wxCoord",0},
3671 { "_wxWindowID","_wxPrintQuality",0},
3672 { "_wxWindowID","_time_t",0},
3673 { "_wxWindowID","_size_t",0},
3674 { "_wxWindowID","_EBool",0},
3675 { "_wxWindowID","_uint",0},
3676 { "_wxWindowID","_int",0},
3677 { "_wxWindowID","_signed_int",0},
3678 { "_wxWindowID","_unsigned_int",0},
3679 { "_int","_wxCoord",0},
3680 { "_int","_wxPrintQuality",0},
3681 { "_int","_time_t",0},
3682 { "_int","_size_t",0},
3683 { "_int","_EBool",0},
3684 { "_int","_uint",0},
3685 { "_int","_wxWindowID",0},
3686 { "_int","_unsigned_int",0},
3687 { "_int","_signed_int",0},
3688 { "_time_t","_wxCoord",0},
3689 { "_time_t","_wxPrintQuality",0},
3690 { "_time_t","_unsigned_int",0},
3691 { "_time_t","_int",0},
3692 { "_time_t","_wxWindowID",0},
3693 { "_time_t","_uint",0},
3694 { "_time_t","_size_t",0},
3695 { "_wxToolBarBase","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3696 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3697 { "_wxToolBarBase","_class_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3698 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3699 { "_class_wxControl","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3700 { "_class_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3701 { "_class_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl
},
3702 { "_class_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3703 { "_class_wxControl","_class_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3704 { "_class_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3705 { "_wxCoord","_int",0},
3706 { "_wxCoord","_signed_int",0},
3707 { "_wxCoord","_unsigned_int",0},
3708 { "_wxCoord","_wxWindowID",0},
3709 { "_wxCoord","_uint",0},
3710 { "_wxCoord","_EBool",0},
3711 { "_wxCoord","_size_t",0},
3712 { "_wxCoord","_time_t",0},
3713 { "_wxCoord","_wxPrintQuality",0},
3714 { "_wxEvtHandler","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3715 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3716 { "_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3717 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3718 { "_wxEvtHandler","_class_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3719 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3720 { "_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3721 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3722 { "_wxWindow","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3723 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3724 { "_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow
},
3725 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3726 { "_wxWindow","_class_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3727 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3728 { "_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow
},
3729 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3732 static PyObject
*SWIG_globals
;
3736 SWIGEXPORT(void) initstattoolc() {
3738 SWIG_globals
= SWIG_newvarlink();
3739 m
= Py_InitModule("stattoolc", stattoolcMethods
);
3740 d
= PyModule_GetDict(m
);
3741 PyDict_SetItemString(d
,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON
));
3742 PyDict_SetItemString(d
,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR
));
3743 PyDict_SetItemString(d
,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL
));
3746 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3747 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);