2 * FILE : src/msw/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
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initstattoolc
56 #define SWIG_name "stattoolc"
59 #include <wx/toolbar.h>
60 #include <wx/tbarsmpl.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "string type is required for parameter";
95 static wxString
wxPyEmptyStr("");
99 static void *SwigwxStatusBarTowxWindow(void *ptr
) {
102 src
= (wxStatusBar
*) ptr
;
103 dest
= (wxWindow
*) src
;
104 return (void *) dest
;
107 static void *SwigwxStatusBarTowxEvtHandler(void *ptr
) {
110 src
= (wxStatusBar
*) ptr
;
111 dest
= (wxEvtHandler
*) src
;
112 return (void *) dest
;
115 static void *SwigwxStatusBarTowxObject(void *ptr
) {
118 src
= (wxStatusBar
*) ptr
;
119 dest
= (wxObject
*) src
;
120 return (void *) dest
;
123 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
124 static PyObject
*_wrap_new_wxStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
125 PyObject
* _resultobj
;
126 wxStatusBar
* _result
;
129 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
130 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
131 long _arg4
= (long ) wxST_SIZEGRIP
;
132 char * _arg5
= (char *) "statusBar";
133 PyObject
* _argo0
= 0;
135 PyObject
* _obj2
= 0;
137 PyObject
* _obj3
= 0;
138 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxStatusBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
145 if (_argo0
== Py_None
) { _arg0
= NULL
; }
146 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
154 if (! wxPoint_helper(_obj2
, &_arg2
))
160 if (! wxSize_helper(_obj3
, &_arg3
))
164 wxPy_BEGIN_ALLOW_THREADS
;
165 _result
= (wxStatusBar
*)new_wxStatusBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
167 wxPy_END_ALLOW_THREADS
;
168 if (PyErr_Occurred()) return NULL
;
170 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
171 _resultobj
= Py_BuildValue("s",_ptemp
);
174 _resultobj
= Py_None
;
179 #define new_wxPreStatusBar() (new wxStatusBar())
180 static PyObject
*_wrap_new_wxPreStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
181 PyObject
* _resultobj
;
182 wxStatusBar
* _result
;
183 char *_kwnames
[] = { NULL
};
187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreStatusBar",_kwnames
))
190 wxPy_BEGIN_ALLOW_THREADS
;
191 _result
= (wxStatusBar
*)new_wxPreStatusBar();
193 wxPy_END_ALLOW_THREADS
;
194 if (PyErr_Occurred()) return NULL
;
196 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
197 _resultobj
= Py_BuildValue("s",_ptemp
);
200 _resultobj
= Py_None
;
205 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
206 static PyObject
*_wrap_wxStatusBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
207 PyObject
* _resultobj
;
212 long _arg3
= (long ) wxST_SIZEGRIP
;
213 char * _arg4
= (char *) "statusBar";
214 PyObject
* _argo0
= 0;
215 PyObject
* _argo1
= 0;
216 char *_kwnames
[] = { "self","parent","id","style","name", NULL
};
219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|ls:wxStatusBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
229 if (_argo1
== Py_None
) { _arg1
= NULL
; }
230 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
236 wxPy_BEGIN_ALLOW_THREADS
;
237 _result
= (bool )wxStatusBar_Create(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
239 wxPy_END_ALLOW_THREADS
;
240 if (PyErr_Occurred()) return NULL
;
241 } _resultobj
= Py_BuildValue("i",_result
);
245 static wxRect
* wxStatusBar_GetFieldRect(wxStatusBar
*self
,long item
) {
246 wxRect
* rect
= new wxRect
;
247 self
->GetFieldRect(item
, *rect
);
250 static PyObject
*_wrap_wxStatusBar_GetFieldRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
251 PyObject
* _resultobj
;
255 PyObject
* _argo0
= 0;
256 char *_kwnames
[] = { "self","item", NULL
};
260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxStatusBar_GetFieldRect",_kwnames
,&_argo0
,&_arg1
))
263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
270 wxPy_BEGIN_ALLOW_THREADS
;
271 _result
= (wxRect
*)wxStatusBar_GetFieldRect(_arg0
,_arg1
);
273 wxPy_END_ALLOW_THREADS
;
274 if (PyErr_Occurred()) return NULL
;
276 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRect_p");
277 _resultobj
= Py_BuildValue("s",_ptemp
);
280 _resultobj
= Py_None
;
285 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
286 static PyObject
*_wrap_wxStatusBar_GetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
287 PyObject
* _resultobj
;
290 PyObject
* _argo0
= 0;
291 char *_kwnames
[] = { "self", NULL
};
294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetFieldsCount",_kwnames
,&_argo0
))
297 if (_argo0
== Py_None
) { _arg0
= NULL
; }
298 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
304 wxPy_BEGIN_ALLOW_THREADS
;
305 _result
= (int )wxStatusBar_GetFieldsCount(_arg0
);
307 wxPy_END_ALLOW_THREADS
;
308 if (PyErr_Occurred()) return NULL
;
309 } _resultobj
= Py_BuildValue("i",_result
);
313 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
314 static PyObject
*_wrap_wxStatusBar_GetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
315 PyObject
* _resultobj
;
318 int _arg1
= (int ) 0;
319 PyObject
* _argo0
= 0;
320 char *_kwnames
[] = { "self","ir", NULL
};
323 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_GetStatusText",_kwnames
,&_argo0
,&_arg1
))
326 if (_argo0
== Py_None
) { _arg0
= NULL
; }
327 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
328 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
333 wxPy_BEGIN_ALLOW_THREADS
;
334 _result
= new wxString (wxStatusBar_GetStatusText(_arg0
,_arg1
));
336 wxPy_END_ALLOW_THREADS
;
337 if (PyErr_Occurred()) return NULL
;
339 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
347 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
348 static PyObject
*_wrap_wxStatusBar_GetBorderX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
349 PyObject
* _resultobj
;
352 PyObject
* _argo0
= 0;
353 char *_kwnames
[] = { "self", NULL
};
356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderX",_kwnames
,&_argo0
))
359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
366 wxPy_BEGIN_ALLOW_THREADS
;
367 _result
= (int )wxStatusBar_GetBorderX(_arg0
);
369 wxPy_END_ALLOW_THREADS
;
370 if (PyErr_Occurred()) return NULL
;
371 } _resultobj
= Py_BuildValue("i",_result
);
375 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
376 static PyObject
*_wrap_wxStatusBar_GetBorderY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
377 PyObject
* _resultobj
;
380 PyObject
* _argo0
= 0;
381 char *_kwnames
[] = { "self", NULL
};
384 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderY",_kwnames
,&_argo0
))
387 if (_argo0
== Py_None
) { _arg0
= NULL
; }
388 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
389 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
394 wxPy_BEGIN_ALLOW_THREADS
;
395 _result
= (int )wxStatusBar_GetBorderY(_arg0
);
397 wxPy_END_ALLOW_THREADS
;
398 if (PyErr_Occurred()) return NULL
;
399 } _resultobj
= Py_BuildValue("i",_result
);
403 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
404 static PyObject
*_wrap_wxStatusBar_SetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
405 PyObject
* _resultobj
;
407 int _arg1
= (int ) 1;
408 PyObject
* _argo0
= 0;
409 char *_kwnames
[] = { "self","number", NULL
};
412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_SetFieldsCount",_kwnames
,&_argo0
,&_arg1
))
415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
422 wxPy_BEGIN_ALLOW_THREADS
;
423 wxStatusBar_SetFieldsCount(_arg0
,_arg1
);
425 wxPy_END_ALLOW_THREADS
;
426 if (PyErr_Occurred()) return NULL
;
427 } Py_INCREF(Py_None
);
428 _resultobj
= Py_None
;
432 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
433 static PyObject
*_wrap_wxStatusBar_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
434 PyObject
* _resultobj
;
437 int _arg2
= (int ) 0;
438 PyObject
* _argo0
= 0;
439 PyObject
* _obj1
= 0;
440 char *_kwnames
[] = { "self","text","i", NULL
};
443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
453 #if PYTHON_API_VERSION >= 1009
454 char* tmpPtr
; int tmpSize
;
455 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
456 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
459 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
461 _arg1
= new wxString(tmpPtr
, tmpSize
);
463 if (!PyString_Check(_obj1
)) {
464 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
467 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
471 wxPy_BEGIN_ALLOW_THREADS
;
472 wxStatusBar_SetStatusText(_arg0
,*_arg1
,_arg2
);
474 wxPy_END_ALLOW_THREADS
;
475 if (PyErr_Occurred()) return NULL
;
476 } Py_INCREF(Py_None
);
477 _resultobj
= Py_None
;
485 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
486 static PyObject
*_wrap_wxStatusBar_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
487 PyObject
* _resultobj
;
491 PyObject
* _argo0
= 0;
492 PyObject
* _obj2
= 0;
493 char *_kwnames
[] = { "self","choices", NULL
};
496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxStatusBar_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
507 _arg2
= int_LIST_helper(_obj2
);
514 _arg1
= PyList_Size(_obj2
);
521 wxPy_BEGIN_ALLOW_THREADS
;
522 wxStatusBar_SetStatusWidths(_arg0
,_arg1
,_arg2
);
524 wxPy_END_ALLOW_THREADS
;
525 if (PyErr_Occurred()) return NULL
;
526 } Py_INCREF(Py_None
);
527 _resultobj
= Py_None
;
534 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
535 static PyObject
*_wrap_wxStatusBar_SetMinHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
536 PyObject
* _resultobj
;
539 PyObject
* _argo0
= 0;
540 char *_kwnames
[] = { "self","height", NULL
};
543 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxStatusBar_SetMinHeight",_kwnames
,&_argo0
,&_arg1
))
546 if (_argo0
== Py_None
) { _arg0
= NULL
; }
547 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
548 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
553 wxPy_BEGIN_ALLOW_THREADS
;
554 wxStatusBar_SetMinHeight(_arg0
,_arg1
);
556 wxPy_END_ALLOW_THREADS
;
557 if (PyErr_Occurred()) return NULL
;
558 } Py_INCREF(Py_None
);
559 _resultobj
= Py_None
;
563 static void *SwigwxToolBarToolBaseTowxObject(void *ptr
) {
564 wxToolBarToolBase
*src
;
566 src
= (wxToolBarToolBase
*) ptr
;
567 dest
= (wxObject
*) src
;
568 return (void *) dest
;
571 static void wxToolBarToolBase_Destroy(wxToolBarToolBase
*self
) { delete self
; }
572 static PyObject
*_wrap_wxToolBarToolBase_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
573 PyObject
* _resultobj
;
574 wxToolBarToolBase
* _arg0
;
575 PyObject
* _argo0
= 0;
576 char *_kwnames
[] = { "self", NULL
};
579 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Destroy",_kwnames
,&_argo0
))
582 if (_argo0
== Py_None
) { _arg0
= NULL
; }
583 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
584 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
589 wxPy_BEGIN_ALLOW_THREADS
;
590 wxToolBarToolBase_Destroy(_arg0
);
592 wxPy_END_ALLOW_THREADS
;
593 if (PyErr_Occurred()) return NULL
;
594 } Py_INCREF(Py_None
);
595 _resultobj
= Py_None
;
599 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
600 static PyObject
*_wrap_wxToolBarToolBase_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
601 PyObject
* _resultobj
;
603 wxToolBarToolBase
* _arg0
;
604 PyObject
* _argo0
= 0;
605 char *_kwnames
[] = { "self", NULL
};
608 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetId",_kwnames
,&_argo0
))
611 if (_argo0
== Py_None
) { _arg0
= NULL
; }
612 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
613 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
618 wxPy_BEGIN_ALLOW_THREADS
;
619 _result
= (int )wxToolBarToolBase_GetId(_arg0
);
621 wxPy_END_ALLOW_THREADS
;
622 if (PyErr_Occurred()) return NULL
;
623 } _resultobj
= Py_BuildValue("i",_result
);
627 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
628 static PyObject
*_wrap_wxToolBarToolBase_GetControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
629 PyObject
* _resultobj
;
631 wxToolBarToolBase
* _arg0
;
632 PyObject
* _argo0
= 0;
633 char *_kwnames
[] = { "self", NULL
};
636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetControl",_kwnames
,&_argo0
))
639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
646 wxPy_BEGIN_ALLOW_THREADS
;
647 _result
= (wxControl
*)wxToolBarToolBase_GetControl(_arg0
);
649 wxPy_END_ALLOW_THREADS
;
650 if (PyErr_Occurred()) return NULL
;
651 }{ _resultobj
= wxPyMake_wxObject(_result
); }
655 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
656 static PyObject
*_wrap_wxToolBarToolBase_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
657 PyObject
* _resultobj
;
658 wxToolBarBase
* _result
;
659 wxToolBarToolBase
* _arg0
;
660 PyObject
* _argo0
= 0;
661 char *_kwnames
[] = { "self", NULL
};
664 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetToolBar",_kwnames
,&_argo0
))
667 if (_argo0
== Py_None
) { _arg0
= NULL
; }
668 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
669 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
674 wxPy_BEGIN_ALLOW_THREADS
;
675 _result
= (wxToolBarBase
*)wxToolBarToolBase_GetToolBar(_arg0
);
677 wxPy_END_ALLOW_THREADS
;
678 if (PyErr_Occurred()) return NULL
;
679 }{ _resultobj
= wxPyMake_wxObject(_result
); }
683 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
684 static PyObject
*_wrap_wxToolBarToolBase_IsButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
685 PyObject
* _resultobj
;
687 wxToolBarToolBase
* _arg0
;
688 PyObject
* _argo0
= 0;
689 char *_kwnames
[] = { "self", NULL
};
692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsButton",_kwnames
,&_argo0
))
695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
702 wxPy_BEGIN_ALLOW_THREADS
;
703 _result
= (int )wxToolBarToolBase_IsButton(_arg0
);
705 wxPy_END_ALLOW_THREADS
;
706 if (PyErr_Occurred()) return NULL
;
707 } _resultobj
= Py_BuildValue("i",_result
);
711 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
712 static PyObject
*_wrap_wxToolBarToolBase_IsControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
713 PyObject
* _resultobj
;
715 wxToolBarToolBase
* _arg0
;
716 PyObject
* _argo0
= 0;
717 char *_kwnames
[] = { "self", NULL
};
720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsControl",_kwnames
,&_argo0
))
723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
730 wxPy_BEGIN_ALLOW_THREADS
;
731 _result
= (int )wxToolBarToolBase_IsControl(_arg0
);
733 wxPy_END_ALLOW_THREADS
;
734 if (PyErr_Occurred()) return NULL
;
735 } _resultobj
= Py_BuildValue("i",_result
);
739 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
740 static PyObject
*_wrap_wxToolBarToolBase_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
741 PyObject
* _resultobj
;
743 wxToolBarToolBase
* _arg0
;
744 PyObject
* _argo0
= 0;
745 char *_kwnames
[] = { "self", NULL
};
748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsSeparator",_kwnames
,&_argo0
))
751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
758 wxPy_BEGIN_ALLOW_THREADS
;
759 _result
= (int )wxToolBarToolBase_IsSeparator(_arg0
);
761 wxPy_END_ALLOW_THREADS
;
762 if (PyErr_Occurred()) return NULL
;
763 } _resultobj
= Py_BuildValue("i",_result
);
767 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
768 static PyObject
*_wrap_wxToolBarToolBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
769 PyObject
* _resultobj
;
771 wxToolBarToolBase
* _arg0
;
772 PyObject
* _argo0
= 0;
773 char *_kwnames
[] = { "self", NULL
};
776 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetStyle",_kwnames
,&_argo0
))
779 if (_argo0
== Py_None
) { _arg0
= NULL
; }
780 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
781 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
786 wxPy_BEGIN_ALLOW_THREADS
;
787 _result
= (int )wxToolBarToolBase_GetStyle(_arg0
);
789 wxPy_END_ALLOW_THREADS
;
790 if (PyErr_Occurred()) return NULL
;
791 } _resultobj
= Py_BuildValue("i",_result
);
795 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
796 static PyObject
*_wrap_wxToolBarToolBase_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
797 PyObject
* _resultobj
;
799 wxToolBarToolBase
* _arg0
;
800 PyObject
* _argo0
= 0;
801 char *_kwnames
[] = { "self", NULL
};
804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsEnabled",_kwnames
,&_argo0
))
807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
814 wxPy_BEGIN_ALLOW_THREADS
;
815 _result
= (bool )wxToolBarToolBase_IsEnabled(_arg0
);
817 wxPy_END_ALLOW_THREADS
;
818 if (PyErr_Occurred()) return NULL
;
819 } _resultobj
= Py_BuildValue("i",_result
);
823 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
824 static PyObject
*_wrap_wxToolBarToolBase_IsToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
825 PyObject
* _resultobj
;
827 wxToolBarToolBase
* _arg0
;
828 PyObject
* _argo0
= 0;
829 char *_kwnames
[] = { "self", NULL
};
832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsToggled",_kwnames
,&_argo0
))
835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
842 wxPy_BEGIN_ALLOW_THREADS
;
843 _result
= (bool )wxToolBarToolBase_IsToggled(_arg0
);
845 wxPy_END_ALLOW_THREADS
;
846 if (PyErr_Occurred()) return NULL
;
847 } _resultobj
= Py_BuildValue("i",_result
);
851 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
852 static PyObject
*_wrap_wxToolBarToolBase_CanBeToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
853 PyObject
* _resultobj
;
855 wxToolBarToolBase
* _arg0
;
856 PyObject
* _argo0
= 0;
857 char *_kwnames
[] = { "self", NULL
};
860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_CanBeToggled",_kwnames
,&_argo0
))
863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
870 wxPy_BEGIN_ALLOW_THREADS
;
871 _result
= (bool )wxToolBarToolBase_CanBeToggled(_arg0
);
873 wxPy_END_ALLOW_THREADS
;
874 if (PyErr_Occurred()) return NULL
;
875 } _resultobj
= Py_BuildValue("i",_result
);
879 #define wxToolBarToolBase_GetBitmap1(_swigobj) (_swigobj->GetBitmap1())
880 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
881 PyObject
* _resultobj
;
883 wxToolBarToolBase
* _arg0
;
884 PyObject
* _argo0
= 0;
885 char *_kwnames
[] = { "self", NULL
};
889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap1",_kwnames
,&_argo0
))
892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap1. Expected _wxToolBarToolBase_p.");
899 wxPy_BEGIN_ALLOW_THREADS
;
900 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap1(_arg0
);
901 _result
= (wxBitmap
*) &_result_ref
;
903 wxPy_END_ALLOW_THREADS
;
904 if (PyErr_Occurred()) return NULL
;
906 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
907 _resultobj
= Py_BuildValue("s",_ptemp
);
910 _resultobj
= Py_None
;
915 #define wxToolBarToolBase_GetBitmap2(_swigobj) (_swigobj->GetBitmap2())
916 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
917 PyObject
* _resultobj
;
919 wxToolBarToolBase
* _arg0
;
920 PyObject
* _argo0
= 0;
921 char *_kwnames
[] = { "self", NULL
};
925 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap2",_kwnames
,&_argo0
))
928 if (_argo0
== Py_None
) { _arg0
= NULL
; }
929 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
930 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap2. Expected _wxToolBarToolBase_p.");
935 wxPy_BEGIN_ALLOW_THREADS
;
936 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap2(_arg0
);
937 _result
= (wxBitmap
*) &_result_ref
;
939 wxPy_END_ALLOW_THREADS
;
940 if (PyErr_Occurred()) return NULL
;
942 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
943 _resultobj
= Py_BuildValue("s",_ptemp
);
946 _resultobj
= Py_None
;
951 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
952 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
953 PyObject
* _resultobj
;
955 wxToolBarToolBase
* _arg0
;
956 PyObject
* _argo0
= 0;
957 char *_kwnames
[] = { "self", NULL
};
961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap",_kwnames
,&_argo0
))
964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
971 wxPy_BEGIN_ALLOW_THREADS
;
972 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap(_arg0
);
973 _result
= (wxBitmap
*) &_result_ref
;
975 wxPy_END_ALLOW_THREADS
;
976 if (PyErr_Occurred()) return NULL
;
978 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
979 _resultobj
= Py_BuildValue("s",_ptemp
);
982 _resultobj
= Py_None
;
987 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
988 static PyObject
*_wrap_wxToolBarToolBase_GetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
989 PyObject
* _resultobj
;
991 wxToolBarToolBase
* _arg0
;
992 PyObject
* _argo0
= 0;
993 char *_kwnames
[] = { "self", NULL
};
996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetShortHelp",_kwnames
,&_argo0
))
999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
1006 wxPy_BEGIN_ALLOW_THREADS
;
1007 _result
= new wxString (wxToolBarToolBase_GetShortHelp(_arg0
));
1009 wxPy_END_ALLOW_THREADS
;
1010 if (PyErr_Occurred()) return NULL
;
1012 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1020 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
1021 static PyObject
*_wrap_wxToolBarToolBase_GetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1022 PyObject
* _resultobj
;
1024 wxToolBarToolBase
* _arg0
;
1025 PyObject
* _argo0
= 0;
1026 char *_kwnames
[] = { "self", NULL
};
1029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLongHelp",_kwnames
,&_argo0
))
1032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1039 wxPy_BEGIN_ALLOW_THREADS
;
1040 _result
= new wxString (wxToolBarToolBase_GetLongHelp(_arg0
));
1042 wxPy_END_ALLOW_THREADS
;
1043 if (PyErr_Occurred()) return NULL
;
1045 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1053 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1054 static PyObject
*_wrap_wxToolBarToolBase_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1055 PyObject
* _resultobj
;
1057 wxToolBarToolBase
* _arg0
;
1059 PyObject
* _argo0
= 0;
1061 char *_kwnames
[] = { "self","enable", NULL
};
1064 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Enable",_kwnames
,&_argo0
,&tempbool1
))
1067 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1068 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1069 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1073 _arg1
= (bool ) tempbool1
;
1075 wxPy_BEGIN_ALLOW_THREADS
;
1076 _result
= (bool )wxToolBarToolBase_Enable(_arg0
,_arg1
);
1078 wxPy_END_ALLOW_THREADS
;
1079 if (PyErr_Occurred()) return NULL
;
1080 } _resultobj
= Py_BuildValue("i",_result
);
1084 #define wxToolBarToolBase_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
1085 static PyObject
*_wrap_wxToolBarToolBase_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1086 PyObject
* _resultobj
;
1088 wxToolBarToolBase
* _arg0
;
1090 PyObject
* _argo0
= 0;
1092 char *_kwnames
[] = { "self","toggle", NULL
};
1095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Toggle",_kwnames
,&_argo0
,&tempbool1
))
1098 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1099 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1104 _arg1
= (bool ) tempbool1
;
1106 wxPy_BEGIN_ALLOW_THREADS
;
1107 _result
= (bool )wxToolBarToolBase_Toggle(_arg0
,_arg1
);
1109 wxPy_END_ALLOW_THREADS
;
1110 if (PyErr_Occurred()) return NULL
;
1111 } _resultobj
= Py_BuildValue("i",_result
);
1115 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1116 static PyObject
*_wrap_wxToolBarToolBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1117 PyObject
* _resultobj
;
1119 wxToolBarToolBase
* _arg0
;
1121 PyObject
* _argo0
= 0;
1123 char *_kwnames
[] = { "self","toggle", NULL
};
1126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_SetToggle",_kwnames
,&_argo0
,&tempbool1
))
1129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1135 _arg1
= (bool ) tempbool1
;
1137 wxPy_BEGIN_ALLOW_THREADS
;
1138 _result
= (bool )wxToolBarToolBase_SetToggle(_arg0
,_arg1
);
1140 wxPy_END_ALLOW_THREADS
;
1141 if (PyErr_Occurred()) return NULL
;
1142 } _resultobj
= Py_BuildValue("i",_result
);
1146 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1147 static PyObject
*_wrap_wxToolBarToolBase_SetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1148 PyObject
* _resultobj
;
1150 wxToolBarToolBase
* _arg0
;
1152 PyObject
* _argo0
= 0;
1153 PyObject
* _obj1
= 0;
1154 char *_kwnames
[] = { "self","help", NULL
};
1157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetShortHelp",_kwnames
,&_argo0
,&_obj1
))
1160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1167 #if PYTHON_API_VERSION >= 1009
1168 char* tmpPtr
; int tmpSize
;
1169 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1170 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1173 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1175 _arg1
= new wxString(tmpPtr
, tmpSize
);
1177 if (!PyString_Check(_obj1
)) {
1178 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1181 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1185 wxPy_BEGIN_ALLOW_THREADS
;
1186 _result
= (bool )wxToolBarToolBase_SetShortHelp(_arg0
,*_arg1
);
1188 wxPy_END_ALLOW_THREADS
;
1189 if (PyErr_Occurred()) return NULL
;
1190 } _resultobj
= Py_BuildValue("i",_result
);
1198 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1199 static PyObject
*_wrap_wxToolBarToolBase_SetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1200 PyObject
* _resultobj
;
1202 wxToolBarToolBase
* _arg0
;
1204 PyObject
* _argo0
= 0;
1205 PyObject
* _obj1
= 0;
1206 char *_kwnames
[] = { "self","help", NULL
};
1209 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLongHelp",_kwnames
,&_argo0
,&_obj1
))
1212 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1213 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1214 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1219 #if PYTHON_API_VERSION >= 1009
1220 char* tmpPtr
; int tmpSize
;
1221 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1222 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1225 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1227 _arg1
= new wxString(tmpPtr
, tmpSize
);
1229 if (!PyString_Check(_obj1
)) {
1230 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1233 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1237 wxPy_BEGIN_ALLOW_THREADS
;
1238 _result
= (bool )wxToolBarToolBase_SetLongHelp(_arg0
,*_arg1
);
1240 wxPy_END_ALLOW_THREADS
;
1241 if (PyErr_Occurred()) return NULL
;
1242 } _resultobj
= Py_BuildValue("i",_result
);
1250 #define wxToolBarToolBase_SetBitmap1(_swigobj,_swigarg0) (_swigobj->SetBitmap1(_swigarg0))
1251 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1252 PyObject
* _resultobj
;
1253 wxToolBarToolBase
* _arg0
;
1255 PyObject
* _argo0
= 0;
1256 PyObject
* _argo1
= 0;
1257 char *_kwnames
[] = { "self","bmp", NULL
};
1260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap1",_kwnames
,&_argo0
,&_argo1
))
1263 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1264 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1265 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap1. Expected _wxToolBarToolBase_p.");
1270 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1271 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap1. Expected _wxBitmap_p.");
1277 wxPy_BEGIN_ALLOW_THREADS
;
1278 wxToolBarToolBase_SetBitmap1(_arg0
,*_arg1
);
1280 wxPy_END_ALLOW_THREADS
;
1281 if (PyErr_Occurred()) return NULL
;
1282 } Py_INCREF(Py_None
);
1283 _resultobj
= Py_None
;
1287 #define wxToolBarToolBase_SetBitmap2(_swigobj,_swigarg0) (_swigobj->SetBitmap2(_swigarg0))
1288 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1289 PyObject
* _resultobj
;
1290 wxToolBarToolBase
* _arg0
;
1292 PyObject
* _argo0
= 0;
1293 PyObject
* _argo1
= 0;
1294 char *_kwnames
[] = { "self","bmp", NULL
};
1297 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap2",_kwnames
,&_argo0
,&_argo1
))
1300 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1301 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1302 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap2. Expected _wxToolBarToolBase_p.");
1307 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1308 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1309 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap2. Expected _wxBitmap_p.");
1314 wxPy_BEGIN_ALLOW_THREADS
;
1315 wxToolBarToolBase_SetBitmap2(_arg0
,*_arg1
);
1317 wxPy_END_ALLOW_THREADS
;
1318 if (PyErr_Occurred()) return NULL
;
1319 } Py_INCREF(Py_None
);
1320 _resultobj
= Py_None
;
1324 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1325 static PyObject
*_wrap_wxToolBarToolBase_Detach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1326 PyObject
* _resultobj
;
1327 wxToolBarToolBase
* _arg0
;
1328 PyObject
* _argo0
= 0;
1329 char *_kwnames
[] = { "self", NULL
};
1332 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Detach",_kwnames
,&_argo0
))
1335 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1336 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1337 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1342 wxPy_BEGIN_ALLOW_THREADS
;
1343 wxToolBarToolBase_Detach(_arg0
);
1345 wxPy_END_ALLOW_THREADS
;
1346 if (PyErr_Occurred()) return NULL
;
1347 } Py_INCREF(Py_None
);
1348 _resultobj
= Py_None
;
1352 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1353 static PyObject
*_wrap_wxToolBarToolBase_Attach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1354 PyObject
* _resultobj
;
1355 wxToolBarToolBase
* _arg0
;
1356 wxToolBarBase
* _arg1
;
1357 PyObject
* _argo0
= 0;
1358 PyObject
* _argo1
= 0;
1359 char *_kwnames
[] = { "self","tbar", NULL
};
1362 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_Attach",_kwnames
,&_argo0
,&_argo1
))
1365 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1366 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1367 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1372 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1373 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBarBase_p")) {
1374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1379 wxPy_BEGIN_ALLOW_THREADS
;
1380 wxToolBarToolBase_Attach(_arg0
,_arg1
);
1382 wxPy_END_ALLOW_THREADS
;
1383 if (PyErr_Occurred()) return NULL
;
1384 } Py_INCREF(Py_None
);
1385 _resultobj
= Py_None
;
1389 static PyObject
* wxToolBarToolBase_GetClientData(wxToolBarToolBase
*self
) {
1390 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetClientData();
1392 Py_INCREF(udata
->m_obj
);
1393 return udata
->m_obj
;
1399 static PyObject
*_wrap_wxToolBarToolBase_GetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1400 PyObject
* _resultobj
;
1402 wxToolBarToolBase
* _arg0
;
1403 PyObject
* _argo0
= 0;
1404 char *_kwnames
[] = { "self", NULL
};
1407 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetClientData",_kwnames
,&_argo0
))
1410 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1411 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1412 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1417 wxPy_BEGIN_ALLOW_THREADS
;
1418 _result
= (PyObject
*)wxToolBarToolBase_GetClientData(_arg0
);
1420 wxPy_END_ALLOW_THREADS
;
1421 if (PyErr_Occurred()) return NULL
;
1423 _resultobj
= _result
;
1428 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase
*self
,PyObject
* clientData
) {
1429 self
->SetClientData(new wxPyUserData(clientData
));
1431 static PyObject
*_wrap_wxToolBarToolBase_SetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1432 PyObject
* _resultobj
;
1433 wxToolBarToolBase
* _arg0
;
1435 PyObject
* _argo0
= 0;
1436 PyObject
* _obj1
= 0;
1437 char *_kwnames
[] = { "self","clientData", NULL
};
1440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetClientData",_kwnames
,&_argo0
,&_obj1
))
1443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1453 wxPy_BEGIN_ALLOW_THREADS
;
1454 wxToolBarToolBase_SetClientData(_arg0
,_arg1
);
1456 wxPy_END_ALLOW_THREADS
;
1457 if (PyErr_Occurred()) return NULL
;
1458 } Py_INCREF(Py_None
);
1459 _resultobj
= Py_None
;
1463 static void *SwigwxToolBarBaseTowxControl(void *ptr
) {
1466 src
= (wxToolBarBase
*) ptr
;
1467 dest
= (wxControl
*) src
;
1468 return (void *) dest
;
1471 static void *SwigwxToolBarBaseTowxWindow(void *ptr
) {
1474 src
= (wxToolBarBase
*) ptr
;
1475 dest
= (wxWindow
*) src
;
1476 return (void *) dest
;
1479 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr
) {
1482 src
= (wxToolBarBase
*) ptr
;
1483 dest
= (wxEvtHandler
*) src
;
1484 return (void *) dest
;
1487 static void *SwigwxToolBarBaseTowxObject(void *ptr
) {
1490 src
= (wxToolBarBase
*) ptr
;
1491 dest
= (wxObject
*) src
;
1492 return (void *) dest
;
1495 static wxToolBarToolBase
* wxToolBarBase_AddTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxBitmap
& pushedBitmap
,int isToggle
,PyObject
* clientData
,const wxString
& shortHelpString
,const wxString
& longHelpString
) {
1496 wxPyUserData
* udata
= NULL
;
1498 udata
= new wxPyUserData(clientData
);
1499 return self
->AddTool(id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1500 udata
, shortHelpString
, longHelpString
);
1502 static PyObject
*_wrap_wxToolBarBase_AddTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1503 PyObject
* _resultobj
;
1504 wxToolBarToolBase
* _result
;
1505 wxToolBarBase
* _arg0
;
1508 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
1509 int _arg4
= (int ) FALSE
;
1510 PyObject
* _arg5
= (PyObject
*) NULL
;
1511 wxString
* _arg6
= (wxString
*) &wxPyEmptyStr
;
1512 wxString
* _arg7
= (wxString
*) &wxPyEmptyStr
;
1513 PyObject
* _argo0
= 0;
1514 PyObject
* _argo2
= 0;
1515 PyObject
* _argo3
= 0;
1516 PyObject
* _obj5
= 0;
1517 PyObject
* _obj6
= 0;
1518 PyObject
* _obj7
= 0;
1519 char *_kwnames
[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_arg4
,&_obj5
,&_obj6
,&_obj7
))
1525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
1532 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1533 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1534 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1539 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1540 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1541 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1551 #if PYTHON_API_VERSION >= 1009
1552 char* tmpPtr
; int tmpSize
;
1553 if (!PyString_Check(_obj6
) && !PyUnicode_Check(_obj6
)) {
1554 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1557 if (PyString_AsStringAndSize(_obj6
, &tmpPtr
, &tmpSize
) == -1)
1559 _arg6
= new wxString(tmpPtr
, tmpSize
);
1561 if (!PyString_Check(_obj6
)) {
1562 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1565 _arg6
= new wxString(PyString_AS_STRING(_obj6
), PyString_GET_SIZE(_obj6
));
1570 #if PYTHON_API_VERSION >= 1009
1571 char* tmpPtr
; int tmpSize
;
1572 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1573 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1576 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1578 _arg7
= new wxString(tmpPtr
, tmpSize
);
1580 if (!PyString_Check(_obj7
)) {
1581 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1584 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1588 wxPy_BEGIN_ALLOW_THREADS
;
1589 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddTool(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,*_arg6
,*_arg7
);
1591 wxPy_END_ALLOW_THREADS
;
1592 if (PyErr_Occurred()) return NULL
;
1593 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1605 static wxToolBarToolBase
* wxToolBarBase_AddSimpleTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1606 return self
->AddTool(id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1607 shortHelpString
, longHelpString
);
1609 static PyObject
*_wrap_wxToolBarBase_AddSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1610 PyObject
* _resultobj
;
1611 wxToolBarToolBase
* _result
;
1612 wxToolBarBase
* _arg0
;
1615 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
1616 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
1617 int _arg5
= (int ) FALSE
;
1618 PyObject
* _argo0
= 0;
1619 PyObject
* _argo2
= 0;
1620 PyObject
* _obj3
= 0;
1621 PyObject
* _obj4
= 0;
1622 char *_kwnames
[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1625 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
,&_obj4
,&_arg5
))
1628 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1629 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1630 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
1635 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1636 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1643 #if PYTHON_API_VERSION >= 1009
1644 char* tmpPtr
; int tmpSize
;
1645 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
1646 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1649 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
1651 _arg3
= new wxString(tmpPtr
, tmpSize
);
1653 if (!PyString_Check(_obj3
)) {
1654 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1657 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
1662 #if PYTHON_API_VERSION >= 1009
1663 char* tmpPtr
; int tmpSize
;
1664 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1665 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1668 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1670 _arg4
= new wxString(tmpPtr
, tmpSize
);
1672 if (!PyString_Check(_obj4
)) {
1673 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1676 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1680 wxPy_BEGIN_ALLOW_THREADS
;
1681 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSimpleTool(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
);
1683 wxPy_END_ALLOW_THREADS
;
1684 if (PyErr_Occurred()) return NULL
;
1685 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1697 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
) {
1698 wxPyUserData
* udata
= NULL
;
1700 udata
= new wxPyUserData(clientData
);
1701 return self
->InsertTool(pos
, id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1702 udata
, shortHelpString
, longHelpString
);
1704 static PyObject
*_wrap_wxToolBarBase_InsertTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1705 PyObject
* _resultobj
;
1706 wxToolBarToolBase
* _result
;
1707 wxToolBarBase
* _arg0
;
1711 wxBitmap
* _arg4
= (wxBitmap
*) &wxNullBitmap
;
1712 int _arg5
= (int ) FALSE
;
1713 PyObject
* _arg6
= (PyObject
*) NULL
;
1714 wxString
* _arg7
= (wxString
*) &wxPyEmptyStr
;
1715 wxString
* _arg8
= (wxString
*) &wxPyEmptyStr
;
1716 PyObject
* _argo0
= 0;
1717 PyObject
* _argo3
= 0;
1718 PyObject
* _argo4
= 0;
1719 PyObject
* _obj6
= 0;
1720 PyObject
* _obj7
= 0;
1721 PyObject
* _obj8
= 0;
1722 char *_kwnames
[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_argo4
,&_arg5
,&_obj6
,&_obj7
,&_obj8
))
1728 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1729 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1730 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1735 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1736 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1737 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1742 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1743 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1744 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1754 #if PYTHON_API_VERSION >= 1009
1755 char* tmpPtr
; int tmpSize
;
1756 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1757 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1760 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1762 _arg7
= new wxString(tmpPtr
, tmpSize
);
1764 if (!PyString_Check(_obj7
)) {
1765 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1768 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1773 #if PYTHON_API_VERSION >= 1009
1774 char* tmpPtr
; int tmpSize
;
1775 if (!PyString_Check(_obj8
) && !PyUnicode_Check(_obj8
)) {
1776 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1779 if (PyString_AsStringAndSize(_obj8
, &tmpPtr
, &tmpSize
) == -1)
1781 _arg8
= new wxString(tmpPtr
, tmpSize
);
1783 if (!PyString_Check(_obj8
)) {
1784 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1787 _arg8
= new wxString(PyString_AS_STRING(_obj8
), PyString_GET_SIZE(_obj8
));
1791 wxPy_BEGIN_ALLOW_THREADS
;
1792 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,*_arg7
,*_arg8
);
1794 wxPy_END_ALLOW_THREADS
;
1795 if (PyErr_Occurred()) return NULL
;
1796 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1808 static wxToolBarToolBase
* wxToolBarBase_InsertSimpleTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1809 return self
->InsertTool(pos
, id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1810 shortHelpString
, longHelpString
);
1812 static PyObject
*_wrap_wxToolBarBase_InsertSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1813 PyObject
* _resultobj
;
1814 wxToolBarToolBase
* _result
;
1815 wxToolBarBase
* _arg0
;
1819 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
1820 wxString
* _arg5
= (wxString
*) &wxPyEmptyStr
;
1821 int _arg6
= (int ) FALSE
;
1822 PyObject
* _argo0
= 0;
1823 PyObject
* _argo3
= 0;
1824 PyObject
* _obj4
= 0;
1825 PyObject
* _obj5
= 0;
1826 char *_kwnames
[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_obj4
,&_obj5
,&_arg6
))
1832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
1839 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1840 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1841 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1847 #if PYTHON_API_VERSION >= 1009
1848 char* tmpPtr
; int tmpSize
;
1849 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1850 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1853 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1855 _arg4
= new wxString(tmpPtr
, tmpSize
);
1857 if (!PyString_Check(_obj4
)) {
1858 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1861 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1866 #if PYTHON_API_VERSION >= 1009
1867 char* tmpPtr
; int tmpSize
;
1868 if (!PyString_Check(_obj5
) && !PyUnicode_Check(_obj5
)) {
1869 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1872 if (PyString_AsStringAndSize(_obj5
, &tmpPtr
, &tmpSize
) == -1)
1874 _arg5
= new wxString(tmpPtr
, tmpSize
);
1876 if (!PyString_Check(_obj5
)) {
1877 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1880 _arg5
= new wxString(PyString_AS_STRING(_obj5
), PyString_GET_SIZE(_obj5
));
1884 wxPy_BEGIN_ALLOW_THREADS
;
1885 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSimpleTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
);
1887 wxPy_END_ALLOW_THREADS
;
1888 if (PyErr_Occurred()) return NULL
;
1889 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1901 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1902 static PyObject
*_wrap_wxToolBarBase_AddControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1903 PyObject
* _resultobj
;
1904 wxToolBarToolBase
* _result
;
1905 wxToolBarBase
* _arg0
;
1907 PyObject
* _argo0
= 0;
1908 PyObject
* _argo1
= 0;
1909 char *_kwnames
[] = { "self","control", NULL
};
1912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_AddControl",_kwnames
,&_argo0
,&_argo1
))
1915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1922 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1923 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxControl_p")) {
1924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1929 wxPy_BEGIN_ALLOW_THREADS
;
1930 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddControl(_arg0
,_arg1
);
1932 wxPy_END_ALLOW_THREADS
;
1933 if (PyErr_Occurred()) return NULL
;
1934 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1938 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1939 static PyObject
*_wrap_wxToolBarBase_InsertControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1940 PyObject
* _resultobj
;
1941 wxToolBarToolBase
* _result
;
1942 wxToolBarBase
* _arg0
;
1945 PyObject
* _argo0
= 0;
1946 PyObject
* _argo2
= 0;
1947 char *_kwnames
[] = { "self","pos","control", NULL
};
1950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_InsertControl",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1953 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1954 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1955 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1960 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1961 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxControl_p")) {
1962 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1967 wxPy_BEGIN_ALLOW_THREADS
;
1968 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertControl(_arg0
,_arg1
,_arg2
);
1970 wxPy_END_ALLOW_THREADS
;
1971 if (PyErr_Occurred()) return NULL
;
1972 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1976 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1977 static PyObject
*_wrap_wxToolBarBase_AddSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1978 PyObject
* _resultobj
;
1979 wxToolBarToolBase
* _result
;
1980 wxToolBarBase
* _arg0
;
1981 PyObject
* _argo0
= 0;
1982 char *_kwnames
[] = { "self", NULL
};
1985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_AddSeparator",_kwnames
,&_argo0
))
1988 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1989 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1990 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
1995 wxPy_BEGIN_ALLOW_THREADS
;
1996 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSeparator(_arg0
);
1998 wxPy_END_ALLOW_THREADS
;
1999 if (PyErr_Occurred()) return NULL
;
2000 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2004 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
2005 static PyObject
*_wrap_wxToolBarBase_InsertSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2006 PyObject
* _resultobj
;
2007 wxToolBarToolBase
* _result
;
2008 wxToolBarBase
* _arg0
;
2010 PyObject
* _argo0
= 0;
2011 char *_kwnames
[] = { "self","pos", NULL
};
2014 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_InsertSeparator",_kwnames
,&_argo0
,&_arg1
))
2017 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2018 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2019 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
2024 wxPy_BEGIN_ALLOW_THREADS
;
2025 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSeparator(_arg0
,_arg1
);
2027 wxPy_END_ALLOW_THREADS
;
2028 if (PyErr_Occurred()) return NULL
;
2029 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2033 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
2034 static PyObject
*_wrap_wxToolBarBase_RemoveTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2035 PyObject
* _resultobj
;
2036 wxToolBarToolBase
* _result
;
2037 wxToolBarBase
* _arg0
;
2039 PyObject
* _argo0
= 0;
2040 char *_kwnames
[] = { "self","id", NULL
};
2043 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_RemoveTool",_kwnames
,&_argo0
,&_arg1
))
2046 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2047 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2048 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
2053 wxPy_BEGIN_ALLOW_THREADS
;
2054 _result
= (wxToolBarToolBase
*)wxToolBarBase_RemoveTool(_arg0
,_arg1
);
2056 wxPy_END_ALLOW_THREADS
;
2057 if (PyErr_Occurred()) return NULL
;
2058 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2062 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2063 static PyObject
*_wrap_wxToolBarBase_DeleteToolByPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2064 PyObject
* _resultobj
;
2066 wxToolBarBase
* _arg0
;
2068 PyObject
* _argo0
= 0;
2069 char *_kwnames
[] = { "self","pos", NULL
};
2072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames
,&_argo0
,&_arg1
))
2075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2082 wxPy_BEGIN_ALLOW_THREADS
;
2083 _result
= (bool )wxToolBarBase_DeleteToolByPos(_arg0
,_arg1
);
2085 wxPy_END_ALLOW_THREADS
;
2086 if (PyErr_Occurred()) return NULL
;
2087 } _resultobj
= Py_BuildValue("i",_result
);
2091 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2092 static PyObject
*_wrap_wxToolBarBase_DeleteTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2093 PyObject
* _resultobj
;
2095 wxToolBarBase
* _arg0
;
2097 PyObject
* _argo0
= 0;
2098 char *_kwnames
[] = { "self","id", NULL
};
2101 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteTool",_kwnames
,&_argo0
,&_arg1
))
2104 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2105 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2106 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2111 wxPy_BEGIN_ALLOW_THREADS
;
2112 _result
= (bool )wxToolBarBase_DeleteTool(_arg0
,_arg1
);
2114 wxPy_END_ALLOW_THREADS
;
2115 if (PyErr_Occurred()) return NULL
;
2116 } _resultobj
= Py_BuildValue("i",_result
);
2120 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2121 static PyObject
*_wrap_wxToolBarBase_ClearTools(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2122 PyObject
* _resultobj
;
2123 wxToolBarBase
* _arg0
;
2124 PyObject
* _argo0
= 0;
2125 char *_kwnames
[] = { "self", NULL
};
2128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_ClearTools",_kwnames
,&_argo0
))
2131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2138 wxPy_BEGIN_ALLOW_THREADS
;
2139 wxToolBarBase_ClearTools(_arg0
);
2141 wxPy_END_ALLOW_THREADS
;
2142 if (PyErr_Occurred()) return NULL
;
2143 } Py_INCREF(Py_None
);
2144 _resultobj
= Py_None
;
2148 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2149 static PyObject
*_wrap_wxToolBarBase_Realize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2150 PyObject
* _resultobj
;
2152 wxToolBarBase
* _arg0
;
2153 PyObject
* _argo0
= 0;
2154 char *_kwnames
[] = { "self", NULL
};
2157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_Realize",_kwnames
,&_argo0
))
2160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2167 wxPy_BEGIN_ALLOW_THREADS
;
2168 _result
= (bool )wxToolBarBase_Realize(_arg0
);
2170 wxPy_END_ALLOW_THREADS
;
2171 if (PyErr_Occurred()) return NULL
;
2172 } _resultobj
= Py_BuildValue("i",_result
);
2176 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2177 static PyObject
*_wrap_wxToolBarBase_EnableTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2178 PyObject
* _resultobj
;
2179 wxToolBarBase
* _arg0
;
2182 PyObject
* _argo0
= 0;
2184 char *_kwnames
[] = { "self","id","enable", NULL
};
2187 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_EnableTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2190 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2191 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2192 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2196 _arg2
= (bool ) tempbool2
;
2198 wxPy_BEGIN_ALLOW_THREADS
;
2199 wxToolBarBase_EnableTool(_arg0
,_arg1
,_arg2
);
2201 wxPy_END_ALLOW_THREADS
;
2202 if (PyErr_Occurred()) return NULL
;
2203 } Py_INCREF(Py_None
);
2204 _resultobj
= Py_None
;
2208 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2209 static PyObject
*_wrap_wxToolBarBase_ToggleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2210 PyObject
* _resultobj
;
2211 wxToolBarBase
* _arg0
;
2214 PyObject
* _argo0
= 0;
2216 char *_kwnames
[] = { "self","id","toggle", NULL
};
2219 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_ToggleTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2222 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2223 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2224 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2228 _arg2
= (bool ) tempbool2
;
2230 wxPy_BEGIN_ALLOW_THREADS
;
2231 wxToolBarBase_ToggleTool(_arg0
,_arg1
,_arg2
);
2233 wxPy_END_ALLOW_THREADS
;
2234 if (PyErr_Occurred()) return NULL
;
2235 } Py_INCREF(Py_None
);
2236 _resultobj
= Py_None
;
2240 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2241 static PyObject
*_wrap_wxToolBarBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2242 PyObject
* _resultobj
;
2243 wxToolBarBase
* _arg0
;
2246 PyObject
* _argo0
= 0;
2248 char *_kwnames
[] = { "self","id","toggle", NULL
};
2251 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetToggle",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2254 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2255 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2256 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2260 _arg2
= (bool ) tempbool2
;
2262 wxPy_BEGIN_ALLOW_THREADS
;
2263 wxToolBarBase_SetToggle(_arg0
,_arg1
,_arg2
);
2265 wxPy_END_ALLOW_THREADS
;
2266 if (PyErr_Occurred()) return NULL
;
2267 } Py_INCREF(Py_None
);
2268 _resultobj
= Py_None
;
2272 static PyObject
* wxToolBarBase_GetToolClientData(wxToolBarBase
*self
,int index
) {
2273 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetToolClientData(index
);
2275 Py_INCREF(udata
->m_obj
);
2276 return udata
->m_obj
;
2282 static PyObject
*_wrap_wxToolBarBase_GetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2283 PyObject
* _resultobj
;
2285 wxToolBarBase
* _arg0
;
2287 PyObject
* _argo0
= 0;
2288 char *_kwnames
[] = { "self","index", NULL
};
2291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolClientData",_kwnames
,&_argo0
,&_arg1
))
2294 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2295 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2301 wxPy_BEGIN_ALLOW_THREADS
;
2302 _result
= (PyObject
*)wxToolBarBase_GetToolClientData(_arg0
,_arg1
);
2304 wxPy_END_ALLOW_THREADS
;
2305 if (PyErr_Occurred()) return NULL
;
2307 _resultobj
= _result
;
2312 static void wxToolBarBase_SetToolClientData(wxToolBarBase
*self
,int index
,PyObject
* clientData
) {
2313 self
->SetToolClientData(index
, new wxPyUserData(clientData
));
2315 static PyObject
*_wrap_wxToolBarBase_SetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2316 PyObject
* _resultobj
;
2317 wxToolBarBase
* _arg0
;
2320 PyObject
* _argo0
= 0;
2321 PyObject
* _obj2
= 0;
2322 char *_kwnames
[] = { "self","index","clientData", NULL
};
2325 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolClientData",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2328 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2329 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2338 wxPy_BEGIN_ALLOW_THREADS
;
2339 wxToolBarBase_SetToolClientData(_arg0
,_arg1
,_arg2
);
2341 wxPy_END_ALLOW_THREADS
;
2342 if (PyErr_Occurred()) return NULL
;
2343 } Py_INCREF(Py_None
);
2344 _resultobj
= Py_None
;
2348 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2349 static PyObject
*_wrap_wxToolBarBase_GetToolState(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2350 PyObject
* _resultobj
;
2352 wxToolBarBase
* _arg0
;
2354 PyObject
* _argo0
= 0;
2355 char *_kwnames
[] = { "self","id", NULL
};
2358 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolState",_kwnames
,&_argo0
,&_arg1
))
2361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2368 wxPy_BEGIN_ALLOW_THREADS
;
2369 _result
= (bool )wxToolBarBase_GetToolState(_arg0
,_arg1
);
2371 wxPy_END_ALLOW_THREADS
;
2372 if (PyErr_Occurred()) return NULL
;
2373 } _resultobj
= Py_BuildValue("i",_result
);
2377 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2378 static PyObject
*_wrap_wxToolBarBase_GetToolEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2379 PyObject
* _resultobj
;
2381 wxToolBarBase
* _arg0
;
2383 PyObject
* _argo0
= 0;
2384 char *_kwnames
[] = { "self","id", NULL
};
2387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolEnabled",_kwnames
,&_argo0
,&_arg1
))
2390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2397 wxPy_BEGIN_ALLOW_THREADS
;
2398 _result
= (bool )wxToolBarBase_GetToolEnabled(_arg0
,_arg1
);
2400 wxPy_END_ALLOW_THREADS
;
2401 if (PyErr_Occurred()) return NULL
;
2402 } _resultobj
= Py_BuildValue("i",_result
);
2406 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2407 static PyObject
*_wrap_wxToolBarBase_SetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2408 PyObject
* _resultobj
;
2409 wxToolBarBase
* _arg0
;
2412 PyObject
* _argo0
= 0;
2413 PyObject
* _obj2
= 0;
2414 char *_kwnames
[] = { "self","id","helpString", NULL
};
2417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2427 #if PYTHON_API_VERSION >= 1009
2428 char* tmpPtr
; int tmpSize
;
2429 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2430 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2433 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2435 _arg2
= new wxString(tmpPtr
, tmpSize
);
2437 if (!PyString_Check(_obj2
)) {
2438 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2441 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2445 wxPy_BEGIN_ALLOW_THREADS
;
2446 wxToolBarBase_SetToolShortHelp(_arg0
,_arg1
,*_arg2
);
2448 wxPy_END_ALLOW_THREADS
;
2449 if (PyErr_Occurred()) return NULL
;
2450 } Py_INCREF(Py_None
);
2451 _resultobj
= Py_None
;
2459 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2460 static PyObject
*_wrap_wxToolBarBase_GetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2461 PyObject
* _resultobj
;
2463 wxToolBarBase
* _arg0
;
2465 PyObject
* _argo0
= 0;
2466 char *_kwnames
[] = { "self","id", NULL
};
2469 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames
,&_argo0
,&_arg1
))
2472 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2473 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2474 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2479 wxPy_BEGIN_ALLOW_THREADS
;
2480 _result
= new wxString (wxToolBarBase_GetToolShortHelp(_arg0
,_arg1
));
2482 wxPy_END_ALLOW_THREADS
;
2483 if (PyErr_Occurred()) return NULL
;
2485 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2493 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2494 static PyObject
*_wrap_wxToolBarBase_SetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2495 PyObject
* _resultobj
;
2496 wxToolBarBase
* _arg0
;
2499 PyObject
* _argo0
= 0;
2500 PyObject
* _obj2
= 0;
2501 char *_kwnames
[] = { "self","id","helpString", NULL
};
2504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2514 #if PYTHON_API_VERSION >= 1009
2515 char* tmpPtr
; int tmpSize
;
2516 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2517 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2520 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2522 _arg2
= new wxString(tmpPtr
, tmpSize
);
2524 if (!PyString_Check(_obj2
)) {
2525 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2528 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2532 wxPy_BEGIN_ALLOW_THREADS
;
2533 wxToolBarBase_SetToolLongHelp(_arg0
,_arg1
,*_arg2
);
2535 wxPy_END_ALLOW_THREADS
;
2536 if (PyErr_Occurred()) return NULL
;
2537 } Py_INCREF(Py_None
);
2538 _resultobj
= Py_None
;
2546 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2547 static PyObject
*_wrap_wxToolBarBase_GetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2548 PyObject
* _resultobj
;
2550 wxToolBarBase
* _arg0
;
2552 PyObject
* _argo0
= 0;
2553 char *_kwnames
[] = { "self","id", NULL
};
2556 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames
,&_argo0
,&_arg1
))
2559 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2560 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2561 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2566 wxPy_BEGIN_ALLOW_THREADS
;
2567 _result
= new wxString (wxToolBarBase_GetToolLongHelp(_arg0
,_arg1
));
2569 wxPy_END_ALLOW_THREADS
;
2570 if (PyErr_Occurred()) return NULL
;
2572 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2580 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2581 static PyObject
*_wrap_wxToolBarBase_SetMarginsXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2582 PyObject
* _resultobj
;
2583 wxToolBarBase
* _arg0
;
2586 PyObject
* _argo0
= 0;
2587 char *_kwnames
[] = { "self","x","y", NULL
};
2590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMarginsXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2600 wxPy_BEGIN_ALLOW_THREADS
;
2601 wxToolBarBase_SetMarginsXY(_arg0
,_arg1
,_arg2
);
2603 wxPy_END_ALLOW_THREADS
;
2604 if (PyErr_Occurred()) return NULL
;
2605 } Py_INCREF(Py_None
);
2606 _resultobj
= Py_None
;
2610 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2611 static PyObject
*_wrap_wxToolBarBase_SetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2612 PyObject
* _resultobj
;
2613 wxToolBarBase
* _arg0
;
2615 PyObject
* _argo0
= 0;
2617 PyObject
* _obj1
= 0;
2618 char *_kwnames
[] = { "self","size", NULL
};
2621 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetMargins",_kwnames
,&_argo0
,&_obj1
))
2624 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2625 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2626 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2632 if (! wxSize_helper(_obj1
, &_arg1
))
2636 wxPy_BEGIN_ALLOW_THREADS
;
2637 wxToolBarBase_SetMargins(_arg0
,*_arg1
);
2639 wxPy_END_ALLOW_THREADS
;
2640 if (PyErr_Occurred()) return NULL
;
2641 } Py_INCREF(Py_None
);
2642 _resultobj
= Py_None
;
2646 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2647 static PyObject
*_wrap_wxToolBarBase_SetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2648 PyObject
* _resultobj
;
2649 wxToolBarBase
* _arg0
;
2651 PyObject
* _argo0
= 0;
2652 char *_kwnames
[] = { "self","packing", NULL
};
2655 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolPacking",_kwnames
,&_argo0
,&_arg1
))
2658 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2659 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2660 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2665 wxPy_BEGIN_ALLOW_THREADS
;
2666 wxToolBarBase_SetToolPacking(_arg0
,_arg1
);
2668 wxPy_END_ALLOW_THREADS
;
2669 if (PyErr_Occurred()) return NULL
;
2670 } Py_INCREF(Py_None
);
2671 _resultobj
= Py_None
;
2675 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2676 static PyObject
*_wrap_wxToolBarBase_SetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2677 PyObject
* _resultobj
;
2678 wxToolBarBase
* _arg0
;
2680 PyObject
* _argo0
= 0;
2681 char *_kwnames
[] = { "self","separation", NULL
};
2684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolSeparation",_kwnames
,&_argo0
,&_arg1
))
2687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2694 wxPy_BEGIN_ALLOW_THREADS
;
2695 wxToolBarBase_SetToolSeparation(_arg0
,_arg1
);
2697 wxPy_END_ALLOW_THREADS
;
2698 if (PyErr_Occurred()) return NULL
;
2699 } Py_INCREF(Py_None
);
2700 _resultobj
= Py_None
;
2704 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2705 static PyObject
*_wrap_wxToolBarBase_GetToolMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2706 PyObject
* _resultobj
;
2708 wxToolBarBase
* _arg0
;
2709 PyObject
* _argo0
= 0;
2710 char *_kwnames
[] = { "self", NULL
};
2714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolMargins",_kwnames
,&_argo0
))
2717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2724 wxPy_BEGIN_ALLOW_THREADS
;
2725 _result
= new wxSize (wxToolBarBase_GetToolMargins(_arg0
));
2727 wxPy_END_ALLOW_THREADS
;
2728 if (PyErr_Occurred()) return NULL
;
2729 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2730 _resultobj
= Py_BuildValue("s",_ptemp
);
2734 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2735 static PyObject
*_wrap_wxToolBarBase_GetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2736 PyObject
* _resultobj
;
2738 wxToolBarBase
* _arg0
;
2739 PyObject
* _argo0
= 0;
2740 char *_kwnames
[] = { "self", NULL
};
2744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMargins",_kwnames
,&_argo0
))
2747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2754 wxPy_BEGIN_ALLOW_THREADS
;
2755 _result
= new wxSize (wxToolBarBase_GetMargins(_arg0
));
2757 wxPy_END_ALLOW_THREADS
;
2758 if (PyErr_Occurred()) return NULL
;
2759 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2760 _resultobj
= Py_BuildValue("s",_ptemp
);
2764 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2765 static PyObject
*_wrap_wxToolBarBase_GetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2766 PyObject
* _resultobj
;
2768 wxToolBarBase
* _arg0
;
2769 PyObject
* _argo0
= 0;
2770 char *_kwnames
[] = { "self", NULL
};
2773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolPacking",_kwnames
,&_argo0
))
2776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2783 wxPy_BEGIN_ALLOW_THREADS
;
2784 _result
= (int )wxToolBarBase_GetToolPacking(_arg0
);
2786 wxPy_END_ALLOW_THREADS
;
2787 if (PyErr_Occurred()) return NULL
;
2788 } _resultobj
= Py_BuildValue("i",_result
);
2792 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2793 static PyObject
*_wrap_wxToolBarBase_GetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2794 PyObject
* _resultobj
;
2796 wxToolBarBase
* _arg0
;
2797 PyObject
* _argo0
= 0;
2798 char *_kwnames
[] = { "self", NULL
};
2801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSeparation",_kwnames
,&_argo0
))
2804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2811 wxPy_BEGIN_ALLOW_THREADS
;
2812 _result
= (int )wxToolBarBase_GetToolSeparation(_arg0
);
2814 wxPy_END_ALLOW_THREADS
;
2815 if (PyErr_Occurred()) return NULL
;
2816 } _resultobj
= Py_BuildValue("i",_result
);
2820 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2821 static PyObject
*_wrap_wxToolBarBase_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2822 PyObject
* _resultobj
;
2823 wxToolBarBase
* _arg0
;
2825 PyObject
* _argo0
= 0;
2826 char *_kwnames
[] = { "self","nRows", NULL
};
2829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetRows",_kwnames
,&_argo0
,&_arg1
))
2832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2839 wxPy_BEGIN_ALLOW_THREADS
;
2840 wxToolBarBase_SetRows(_arg0
,_arg1
);
2842 wxPy_END_ALLOW_THREADS
;
2843 if (PyErr_Occurred()) return NULL
;
2844 } Py_INCREF(Py_None
);
2845 _resultobj
= Py_None
;
2849 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2850 static PyObject
*_wrap_wxToolBarBase_SetMaxRowsCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2851 PyObject
* _resultobj
;
2852 wxToolBarBase
* _arg0
;
2855 PyObject
* _argo0
= 0;
2856 char *_kwnames
[] = { "self","rows","cols", NULL
};
2859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2869 wxPy_BEGIN_ALLOW_THREADS
;
2870 wxToolBarBase_SetMaxRowsCols(_arg0
,_arg1
,_arg2
);
2872 wxPy_END_ALLOW_THREADS
;
2873 if (PyErr_Occurred()) return NULL
;
2874 } Py_INCREF(Py_None
);
2875 _resultobj
= Py_None
;
2879 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2880 static PyObject
*_wrap_wxToolBarBase_GetMaxRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2881 PyObject
* _resultobj
;
2883 wxToolBarBase
* _arg0
;
2884 PyObject
* _argo0
= 0;
2885 char *_kwnames
[] = { "self", NULL
};
2888 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxRows",_kwnames
,&_argo0
))
2891 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2892 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2893 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2898 wxPy_BEGIN_ALLOW_THREADS
;
2899 _result
= (int )wxToolBarBase_GetMaxRows(_arg0
);
2901 wxPy_END_ALLOW_THREADS
;
2902 if (PyErr_Occurred()) return NULL
;
2903 } _resultobj
= Py_BuildValue("i",_result
);
2907 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2908 static PyObject
*_wrap_wxToolBarBase_GetMaxCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2909 PyObject
* _resultobj
;
2911 wxToolBarBase
* _arg0
;
2912 PyObject
* _argo0
= 0;
2913 char *_kwnames
[] = { "self", NULL
};
2916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxCols",_kwnames
,&_argo0
))
2919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2926 wxPy_BEGIN_ALLOW_THREADS
;
2927 _result
= (int )wxToolBarBase_GetMaxCols(_arg0
);
2929 wxPy_END_ALLOW_THREADS
;
2930 if (PyErr_Occurred()) return NULL
;
2931 } _resultobj
= Py_BuildValue("i",_result
);
2935 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2936 static PyObject
*_wrap_wxToolBarBase_SetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2937 PyObject
* _resultobj
;
2938 wxToolBarBase
* _arg0
;
2940 PyObject
* _argo0
= 0;
2942 PyObject
* _obj1
= 0;
2943 char *_kwnames
[] = { "self","size", NULL
};
2946 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames
,&_argo0
,&_obj1
))
2949 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2950 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2951 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
2957 if (! wxSize_helper(_obj1
, &_arg1
))
2961 wxPy_BEGIN_ALLOW_THREADS
;
2962 wxToolBarBase_SetToolBitmapSize(_arg0
,*_arg1
);
2964 wxPy_END_ALLOW_THREADS
;
2965 if (PyErr_Occurred()) return NULL
;
2966 } Py_INCREF(Py_None
);
2967 _resultobj
= Py_None
;
2971 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2972 static PyObject
*_wrap_wxToolBarBase_GetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2973 PyObject
* _resultobj
;
2975 wxToolBarBase
* _arg0
;
2976 PyObject
* _argo0
= 0;
2977 char *_kwnames
[] = { "self", NULL
};
2981 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolBitmapSize",_kwnames
,&_argo0
))
2984 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2985 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2986 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
2991 wxPy_BEGIN_ALLOW_THREADS
;
2992 _result
= new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0
));
2994 wxPy_END_ALLOW_THREADS
;
2995 if (PyErr_Occurred()) return NULL
;
2996 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2997 _resultobj
= Py_BuildValue("s",_ptemp
);
3001 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
3002 static PyObject
*_wrap_wxToolBarBase_GetToolSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3003 PyObject
* _resultobj
;
3005 wxToolBarBase
* _arg0
;
3006 PyObject
* _argo0
= 0;
3007 char *_kwnames
[] = { "self", NULL
};
3011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSize",_kwnames
,&_argo0
))
3014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
3016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
3021 wxPy_BEGIN_ALLOW_THREADS
;
3022 _result
= new wxSize (wxToolBarBase_GetToolSize(_arg0
));
3024 wxPy_END_ALLOW_THREADS
;
3025 if (PyErr_Occurred()) return NULL
;
3026 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
3027 _resultobj
= Py_BuildValue("s",_ptemp
);
3031 static void *SwigwxToolBarTowxToolBarBase(void *ptr
) {
3033 wxToolBarBase
*dest
;
3034 src
= (wxToolBar
*) ptr
;
3035 dest
= (wxToolBarBase
*) src
;
3036 return (void *) dest
;
3039 static void *SwigwxToolBarTowxControl(void *ptr
) {
3042 src
= (wxToolBar
*) ptr
;
3043 dest
= (wxControl
*) src
;
3044 return (void *) dest
;
3047 static void *SwigwxToolBarTowxWindow(void *ptr
) {
3050 src
= (wxToolBar
*) ptr
;
3051 dest
= (wxWindow
*) src
;
3052 return (void *) dest
;
3055 static void *SwigwxToolBarTowxEvtHandler(void *ptr
) {
3058 src
= (wxToolBar
*) ptr
;
3059 dest
= (wxEvtHandler
*) src
;
3060 return (void *) dest
;
3063 static void *SwigwxToolBarTowxObject(void *ptr
) {
3066 src
= (wxToolBar
*) ptr
;
3067 dest
= (wxObject
*) src
;
3068 return (void *) dest
;
3071 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3072 static PyObject
*_wrap_new_wxToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3073 PyObject
* _resultobj
;
3074 wxToolBar
* _result
;
3077 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3078 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3079 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3080 char * _arg5
= (char *) wxToolBarNameStr
;
3081 PyObject
* _argo0
= 0;
3083 PyObject
* _obj2
= 0;
3085 PyObject
* _obj3
= 0;
3086 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3102 if (! wxPoint_helper(_obj2
, &_arg2
))
3108 if (! wxSize_helper(_obj3
, &_arg3
))
3112 wxPy_BEGIN_ALLOW_THREADS
;
3113 _result
= (wxToolBar
*)new_wxToolBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3115 wxPy_END_ALLOW_THREADS
;
3116 if (PyErr_Occurred()) return NULL
;
3118 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3119 _resultobj
= Py_BuildValue("s",_ptemp
);
3122 _resultobj
= Py_None
;
3127 #define new_wxPreToolBar() (new wxToolBar())
3128 static PyObject
*_wrap_new_wxPreToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3129 PyObject
* _resultobj
;
3130 wxToolBar
* _result
;
3131 char *_kwnames
[] = { NULL
};
3135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBar",_kwnames
))
3138 wxPy_BEGIN_ALLOW_THREADS
;
3139 _result
= (wxToolBar
*)new_wxPreToolBar();
3141 wxPy_END_ALLOW_THREADS
;
3142 if (PyErr_Occurred()) return NULL
;
3144 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3145 _resultobj
= Py_BuildValue("s",_ptemp
);
3148 _resultobj
= Py_None
;
3153 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3154 static PyObject
*_wrap_wxToolBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3155 PyObject
* _resultobj
;
3160 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3161 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3162 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3163 char * _arg6
= (char *) wxToolBarNameStr
;
3164 PyObject
* _argo0
= 0;
3165 PyObject
* _argo1
= 0;
3167 PyObject
* _obj3
= 0;
3169 PyObject
* _obj4
= 0;
3170 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3183 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3184 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3185 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3192 if (! wxPoint_helper(_obj3
, &_arg3
))
3198 if (! wxSize_helper(_obj4
, &_arg4
))
3202 wxPy_BEGIN_ALLOW_THREADS
;
3203 _result
= (bool )wxToolBar_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3205 wxPy_END_ALLOW_THREADS
;
3206 if (PyErr_Occurred()) return NULL
;
3207 } _resultobj
= Py_BuildValue("i",_result
);
3211 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3212 static PyObject
*_wrap_wxToolBar_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3213 PyObject
* _resultobj
;
3214 wxToolBarToolBase
* _result
;
3218 PyObject
* _argo0
= 0;
3219 char *_kwnames
[] = { "self","x","y", NULL
};
3222 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBar_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3225 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3226 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3227 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3232 wxPy_BEGIN_ALLOW_THREADS
;
3233 _result
= (wxToolBarToolBase
*)wxToolBar_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3235 wxPy_END_ALLOW_THREADS
;
3236 if (PyErr_Occurred()) return NULL
;
3237 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3241 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr
) {
3242 wxToolBarSimple
*src
;
3243 wxToolBarBase
*dest
;
3244 src
= (wxToolBarSimple
*) ptr
;
3245 dest
= (wxToolBarBase
*) src
;
3246 return (void *) dest
;
3249 static void *SwigwxToolBarSimpleTowxControl(void *ptr
) {
3250 wxToolBarSimple
*src
;
3252 src
= (wxToolBarSimple
*) ptr
;
3253 dest
= (wxControl
*) src
;
3254 return (void *) dest
;
3257 static void *SwigwxToolBarSimpleTowxWindow(void *ptr
) {
3258 wxToolBarSimple
*src
;
3260 src
= (wxToolBarSimple
*) ptr
;
3261 dest
= (wxWindow
*) src
;
3262 return (void *) dest
;
3265 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr
) {
3266 wxToolBarSimple
*src
;
3268 src
= (wxToolBarSimple
*) ptr
;
3269 dest
= (wxEvtHandler
*) src
;
3270 return (void *) dest
;
3273 static void *SwigwxToolBarSimpleTowxObject(void *ptr
) {
3274 wxToolBarSimple
*src
;
3276 src
= (wxToolBarSimple
*) ptr
;
3277 dest
= (wxObject
*) src
;
3278 return (void *) dest
;
3281 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3282 static PyObject
*_wrap_new_wxToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3283 PyObject
* _resultobj
;
3284 wxToolBarSimple
* _result
;
3287 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3288 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3289 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3290 char * _arg5
= (char *) wxToolBarNameStr
;
3291 PyObject
* _argo0
= 0;
3293 PyObject
* _obj2
= 0;
3295 PyObject
* _obj3
= 0;
3296 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBarSimple",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3312 if (! wxPoint_helper(_obj2
, &_arg2
))
3318 if (! wxSize_helper(_obj3
, &_arg3
))
3322 wxPy_BEGIN_ALLOW_THREADS
;
3323 _result
= (wxToolBarSimple
*)new_wxToolBarSimple(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3325 wxPy_END_ALLOW_THREADS
;
3326 if (PyErr_Occurred()) return NULL
;
3328 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3329 _resultobj
= Py_BuildValue("s",_ptemp
);
3332 _resultobj
= Py_None
;
3337 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3338 static PyObject
*_wrap_new_wxPreToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3339 PyObject
* _resultobj
;
3340 wxToolBarSimple
* _result
;
3341 char *_kwnames
[] = { NULL
};
3345 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBarSimple",_kwnames
))
3348 wxPy_BEGIN_ALLOW_THREADS
;
3349 _result
= (wxToolBarSimple
*)new_wxPreToolBarSimple();
3351 wxPy_END_ALLOW_THREADS
;
3352 if (PyErr_Occurred()) return NULL
;
3354 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3355 _resultobj
= Py_BuildValue("s",_ptemp
);
3358 _resultobj
= Py_None
;
3363 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3364 static PyObject
*_wrap_wxToolBarSimple_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3365 PyObject
* _resultobj
;
3367 wxToolBarSimple
* _arg0
;
3370 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3371 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3372 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3373 char * _arg6
= (char *) wxToolBarNameStr
;
3374 PyObject
* _argo0
= 0;
3375 PyObject
* _argo1
= 0;
3377 PyObject
* _obj3
= 0;
3379 PyObject
* _obj4
= 0;
3380 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBarSimple_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3386 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3387 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3388 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3393 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3394 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3402 if (! wxPoint_helper(_obj3
, &_arg3
))
3408 if (! wxSize_helper(_obj4
, &_arg4
))
3412 wxPy_BEGIN_ALLOW_THREADS
;
3413 _result
= (bool )wxToolBarSimple_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3415 wxPy_END_ALLOW_THREADS
;
3416 if (PyErr_Occurred()) return NULL
;
3417 } _resultobj
= Py_BuildValue("i",_result
);
3421 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3422 static PyObject
*_wrap_wxToolBarSimple_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3423 PyObject
* _resultobj
;
3424 wxToolBarToolBase
* _result
;
3425 wxToolBarSimple
* _arg0
;
3428 PyObject
* _argo0
= 0;
3429 char *_kwnames
[] = { "self","x","y", NULL
};
3432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3442 wxPy_BEGIN_ALLOW_THREADS
;
3443 _result
= (wxToolBarToolBase
*)wxToolBarSimple_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3445 wxPy_END_ALLOW_THREADS
;
3446 if (PyErr_Occurred()) return NULL
;
3447 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3451 static PyMethodDef stattoolcMethods
[] = {
3452 { "wxToolBarSimple_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarSimple_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3453 { "wxToolBarSimple_Create", (PyCFunction
) _wrap_wxToolBarSimple_Create
, METH_VARARGS
| METH_KEYWORDS
},
3454 { "new_wxPreToolBarSimple", (PyCFunction
) _wrap_new_wxPreToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3455 { "new_wxToolBarSimple", (PyCFunction
) _wrap_new_wxToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3456 { "wxToolBar_FindToolForPosition", (PyCFunction
) _wrap_wxToolBar_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3457 { "wxToolBar_Create", (PyCFunction
) _wrap_wxToolBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3458 { "new_wxPreToolBar", (PyCFunction
) _wrap_new_wxPreToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3459 { "new_wxToolBar", (PyCFunction
) _wrap_new_wxToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3460 { "wxToolBarBase_GetToolSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolSize
, METH_VARARGS
| METH_KEYWORDS
},
3461 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3462 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_SetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3463 { "wxToolBarBase_GetMaxCols", (PyCFunction
) _wrap_wxToolBarBase_GetMaxCols
, METH_VARARGS
| METH_KEYWORDS
},
3464 { "wxToolBarBase_GetMaxRows", (PyCFunction
) _wrap_wxToolBarBase_GetMaxRows
, METH_VARARGS
| METH_KEYWORDS
},
3465 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction
) _wrap_wxToolBarBase_SetMaxRowsCols
, METH_VARARGS
| METH_KEYWORDS
},
3466 { "wxToolBarBase_SetRows", (PyCFunction
) _wrap_wxToolBarBase_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3467 { "wxToolBarBase_GetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_GetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3468 { "wxToolBarBase_GetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_GetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3469 { "wxToolBarBase_GetMargins", (PyCFunction
) _wrap_wxToolBarBase_GetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3470 { "wxToolBarBase_GetToolMargins", (PyCFunction
) _wrap_wxToolBarBase_GetToolMargins
, METH_VARARGS
| METH_KEYWORDS
},
3471 { "wxToolBarBase_SetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_SetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3472 { "wxToolBarBase_SetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_SetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3473 { "wxToolBarBase_SetMargins", (PyCFunction
) _wrap_wxToolBarBase_SetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "wxToolBarBase_SetMarginsXY", (PyCFunction
) _wrap_wxToolBarBase_SetMarginsXY
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "wxToolBarBase_GetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "wxToolBarBase_SetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "wxToolBarBase_GetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxToolBarBase_SetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "wxToolBarBase_GetToolEnabled", (PyCFunction
) _wrap_wxToolBarBase_GetToolEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "wxToolBarBase_GetToolState", (PyCFunction
) _wrap_wxToolBarBase_GetToolState
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "wxToolBarBase_SetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_SetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "wxToolBarBase_GetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_GetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "wxToolBarBase_SetToggle", (PyCFunction
) _wrap_wxToolBarBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "wxToolBarBase_ToggleTool", (PyCFunction
) _wrap_wxToolBarBase_ToggleTool
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxToolBarBase_EnableTool", (PyCFunction
) _wrap_wxToolBarBase_EnableTool
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxToolBarBase_Realize", (PyCFunction
) _wrap_wxToolBarBase_Realize
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "wxToolBarBase_ClearTools", (PyCFunction
) _wrap_wxToolBarBase_ClearTools
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxToolBarBase_DeleteTool", (PyCFunction
) _wrap_wxToolBarBase_DeleteTool
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "wxToolBarBase_DeleteToolByPos", (PyCFunction
) _wrap_wxToolBarBase_DeleteToolByPos
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxToolBarBase_RemoveTool", (PyCFunction
) _wrap_wxToolBarBase_RemoveTool
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxToolBarBase_InsertSeparator", (PyCFunction
) _wrap_wxToolBarBase_InsertSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxToolBarBase_AddSeparator", (PyCFunction
) _wrap_wxToolBarBase_AddSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxToolBarBase_InsertControl", (PyCFunction
) _wrap_wxToolBarBase_InsertControl
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxToolBarBase_AddControl", (PyCFunction
) _wrap_wxToolBarBase_AddControl
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "wxToolBarBase_InsertSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_InsertSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxToolBarBase_InsertTool", (PyCFunction
) _wrap_wxToolBarBase_InsertTool
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "wxToolBarBase_AddSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_AddSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxToolBarBase_AddTool", (PyCFunction
) _wrap_wxToolBarBase_AddTool
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "wxToolBarToolBase_SetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_SetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "wxToolBarToolBase_GetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_GetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "wxToolBarToolBase_Attach", (PyCFunction
) _wrap_wxToolBarToolBase_Attach
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "wxToolBarToolBase_Detach", (PyCFunction
) _wrap_wxToolBarToolBase_Detach
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxToolBarToolBase_SetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3504 { "wxToolBarToolBase_SetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3505 { "wxToolBarToolBase_SetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3506 { "wxToolBarToolBase_SetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3507 { "wxToolBarToolBase_SetToggle", (PyCFunction
) _wrap_wxToolBarToolBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3508 { "wxToolBarToolBase_Toggle", (PyCFunction
) _wrap_wxToolBarToolBase_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
3509 { "wxToolBarToolBase_Enable", (PyCFunction
) _wrap_wxToolBarToolBase_Enable
, METH_VARARGS
| METH_KEYWORDS
},
3510 { "wxToolBarToolBase_GetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3511 { "wxToolBarToolBase_GetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3512 { "wxToolBarToolBase_GetBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3513 { "wxToolBarToolBase_GetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3514 { "wxToolBarToolBase_GetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3515 { "wxToolBarToolBase_CanBeToggled", (PyCFunction
) _wrap_wxToolBarToolBase_CanBeToggled
, METH_VARARGS
| METH_KEYWORDS
},
3516 { "wxToolBarToolBase_IsToggled", (PyCFunction
) _wrap_wxToolBarToolBase_IsToggled
, METH_VARARGS
| METH_KEYWORDS
},
3517 { "wxToolBarToolBase_IsEnabled", (PyCFunction
) _wrap_wxToolBarToolBase_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3518 { "wxToolBarToolBase_GetStyle", (PyCFunction
) _wrap_wxToolBarToolBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
3519 { "wxToolBarToolBase_IsSeparator", (PyCFunction
) _wrap_wxToolBarToolBase_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3520 { "wxToolBarToolBase_IsControl", (PyCFunction
) _wrap_wxToolBarToolBase_IsControl
, METH_VARARGS
| METH_KEYWORDS
},
3521 { "wxToolBarToolBase_IsButton", (PyCFunction
) _wrap_wxToolBarToolBase_IsButton
, METH_VARARGS
| METH_KEYWORDS
},
3522 { "wxToolBarToolBase_GetToolBar", (PyCFunction
) _wrap_wxToolBarToolBase_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3523 { "wxToolBarToolBase_GetControl", (PyCFunction
) _wrap_wxToolBarToolBase_GetControl
, METH_VARARGS
| METH_KEYWORDS
},
3524 { "wxToolBarToolBase_GetId", (PyCFunction
) _wrap_wxToolBarToolBase_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3525 { "wxToolBarToolBase_Destroy", (PyCFunction
) _wrap_wxToolBarToolBase_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3526 { "wxStatusBar_SetMinHeight", (PyCFunction
) _wrap_wxStatusBar_SetMinHeight
, METH_VARARGS
| METH_KEYWORDS
},
3527 { "wxStatusBar_SetStatusWidths", (PyCFunction
) _wrap_wxStatusBar_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
3528 { "wxStatusBar_SetStatusText", (PyCFunction
) _wrap_wxStatusBar_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3529 { "wxStatusBar_SetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_SetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3530 { "wxStatusBar_GetBorderY", (PyCFunction
) _wrap_wxStatusBar_GetBorderY
, METH_VARARGS
| METH_KEYWORDS
},
3531 { "wxStatusBar_GetBorderX", (PyCFunction
) _wrap_wxStatusBar_GetBorderX
, METH_VARARGS
| METH_KEYWORDS
},
3532 { "wxStatusBar_GetStatusText", (PyCFunction
) _wrap_wxStatusBar_GetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3533 { "wxStatusBar_GetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_GetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3534 { "wxStatusBar_GetFieldRect", (PyCFunction
) _wrap_wxStatusBar_GetFieldRect
, METH_VARARGS
| METH_KEYWORDS
},
3535 { "wxStatusBar_Create", (PyCFunction
) _wrap_wxStatusBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3536 { "new_wxPreStatusBar", (PyCFunction
) _wrap_new_wxPreStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3537 { "new_wxStatusBar", (PyCFunction
) _wrap_new_wxStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3544 * This table is used by the pointer type-checker
3546 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3547 { "_signed_long","_long",0},
3548 { "_wxPrintQuality","_wxCoord",0},
3549 { "_wxPrintQuality","_int",0},
3550 { "_wxPrintQuality","_signed_int",0},
3551 { "_wxPrintQuality","_unsigned_int",0},
3552 { "_wxPrintQuality","_wxWindowID",0},
3553 { "_wxPrintQuality","_uint",0},
3554 { "_wxPrintQuality","_EBool",0},
3555 { "_wxPrintQuality","_size_t",0},
3556 { "_wxPrintQuality","_time_t",0},
3557 { "_byte","_unsigned_char",0},
3558 { "_long","_unsigned_long",0},
3559 { "_long","_signed_long",0},
3560 { "_size_t","_wxCoord",0},
3561 { "_size_t","_wxPrintQuality",0},
3562 { "_size_t","_time_t",0},
3563 { "_size_t","_unsigned_int",0},
3564 { "_size_t","_int",0},
3565 { "_size_t","_wxWindowID",0},
3566 { "_size_t","_uint",0},
3567 { "_uint","_wxCoord",0},
3568 { "_uint","_wxPrintQuality",0},
3569 { "_uint","_time_t",0},
3570 { "_uint","_size_t",0},
3571 { "_uint","_unsigned_int",0},
3572 { "_uint","_int",0},
3573 { "_uint","_wxWindowID",0},
3574 { "_wxChar","_char",0},
3575 { "_char","_wxChar",0},
3576 { "_EBool","_wxCoord",0},
3577 { "_EBool","_wxPrintQuality",0},
3578 { "_EBool","_signed_int",0},
3579 { "_EBool","_int",0},
3580 { "_EBool","_wxWindowID",0},
3581 { "_unsigned_long","_long",0},
3582 { "_signed_int","_wxCoord",0},
3583 { "_signed_int","_wxPrintQuality",0},
3584 { "_signed_int","_EBool",0},
3585 { "_signed_int","_wxWindowID",0},
3586 { "_signed_int","_int",0},
3587 { "_WXTYPE","_short",0},
3588 { "_WXTYPE","_signed_short",0},
3589 { "_WXTYPE","_unsigned_short",0},
3590 { "_unsigned_short","_WXTYPE",0},
3591 { "_unsigned_short","_short",0},
3592 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3593 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3594 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3595 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3596 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3597 { "_signed_short","_WXTYPE",0},
3598 { "_signed_short","_short",0},
3599 { "_unsigned_char","_byte",0},
3600 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3601 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3602 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3603 { "_unsigned_int","_wxCoord",0},
3604 { "_unsigned_int","_wxPrintQuality",0},
3605 { "_unsigned_int","_time_t",0},
3606 { "_unsigned_int","_size_t",0},
3607 { "_unsigned_int","_uint",0},
3608 { "_unsigned_int","_wxWindowID",0},
3609 { "_unsigned_int","_int",0},
3610 { "_short","_WXTYPE",0},
3611 { "_short","_unsigned_short",0},
3612 { "_short","_signed_short",0},
3613 { "_wxWindowID","_wxCoord",0},
3614 { "_wxWindowID","_wxPrintQuality",0},
3615 { "_wxWindowID","_time_t",0},
3616 { "_wxWindowID","_size_t",0},
3617 { "_wxWindowID","_EBool",0},
3618 { "_wxWindowID","_uint",0},
3619 { "_wxWindowID","_int",0},
3620 { "_wxWindowID","_signed_int",0},
3621 { "_wxWindowID","_unsigned_int",0},
3622 { "_int","_wxCoord",0},
3623 { "_int","_wxPrintQuality",0},
3624 { "_int","_time_t",0},
3625 { "_int","_size_t",0},
3626 { "_int","_EBool",0},
3627 { "_int","_uint",0},
3628 { "_int","_wxWindowID",0},
3629 { "_int","_unsigned_int",0},
3630 { "_int","_signed_int",0},
3631 { "_time_t","_wxCoord",0},
3632 { "_time_t","_wxPrintQuality",0},
3633 { "_time_t","_unsigned_int",0},
3634 { "_time_t","_int",0},
3635 { "_time_t","_wxWindowID",0},
3636 { "_time_t","_uint",0},
3637 { "_time_t","_size_t",0},
3638 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3639 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3640 { "_wxCoord","_int",0},
3641 { "_wxCoord","_signed_int",0},
3642 { "_wxCoord","_unsigned_int",0},
3643 { "_wxCoord","_wxWindowID",0},
3644 { "_wxCoord","_uint",0},
3645 { "_wxCoord","_EBool",0},
3646 { "_wxCoord","_size_t",0},
3647 { "_wxCoord","_time_t",0},
3648 { "_wxCoord","_wxPrintQuality",0},
3649 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3650 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3651 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3652 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3653 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3654 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3655 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3656 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3659 static PyObject
*SWIG_globals
;
3663 SWIGEXPORT(void) initstattoolc() {
3665 SWIG_globals
= SWIG_newvarlink();
3666 m
= Py_InitModule("stattoolc", stattoolcMethods
);
3667 d
= PyModule_GetDict(m
);
3668 PyDict_SetItemString(d
,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON
));
3669 PyDict_SetItemString(d
,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR
));
3670 PyDict_SetItemString(d
,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL
));
3673 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3674 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);