2 * FILE : src/gtk/stattool.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
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 required";
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) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
124 static PyObject
*_wrap_new_wxStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
125 PyObject
* _resultobj
;
126 wxStatusBar
* _result
;
128 wxWindowID _arg1
= (wxWindowID
) -1;
129 long _arg2
= (long ) wxST_SIZEGRIP
;
130 char * _arg3
= (char *) "statusBar";
131 PyObject
* _argo0
= 0;
132 char *_kwnames
[] = { "parent","id","style","name", NULL
};
136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ils:new_wxStatusBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
146 wxPy_BEGIN_ALLOW_THREADS
;
147 _result
= (wxStatusBar
*)new_wxStatusBar(_arg0
,_arg1
,_arg2
,_arg3
);
149 wxPy_END_ALLOW_THREADS
;
150 if (PyErr_Occurred()) return NULL
;
152 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
153 _resultobj
= Py_BuildValue("s",_ptemp
);
156 _resultobj
= Py_None
;
161 #define new_wxPreStatusBar() (new wxStatusBar())
162 static PyObject
*_wrap_new_wxPreStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
163 PyObject
* _resultobj
;
164 wxStatusBar
* _result
;
165 char *_kwnames
[] = { NULL
};
169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreStatusBar",_kwnames
))
172 wxPy_BEGIN_ALLOW_THREADS
;
173 _result
= (wxStatusBar
*)new_wxPreStatusBar();
175 wxPy_END_ALLOW_THREADS
;
176 if (PyErr_Occurred()) return NULL
;
178 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
179 _resultobj
= Py_BuildValue("s",_ptemp
);
182 _resultobj
= Py_None
;
187 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
188 static PyObject
*_wrap_wxStatusBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
189 PyObject
* _resultobj
;
194 long _arg3
= (long ) wxST_SIZEGRIP
;
195 char * _arg4
= (char *) "statusBar";
196 PyObject
* _argo0
= 0;
197 PyObject
* _argo1
= 0;
198 char *_kwnames
[] = { "self","parent","id","style","name", NULL
};
201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|ls:wxStatusBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
211 if (_argo1
== Py_None
) { _arg1
= NULL
; }
212 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
218 wxPy_BEGIN_ALLOW_THREADS
;
219 _result
= (bool )wxStatusBar_Create(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
221 wxPy_END_ALLOW_THREADS
;
222 if (PyErr_Occurred()) return NULL
;
223 } _resultobj
= Py_BuildValue("i",_result
);
227 static wxRect
* wxStatusBar_GetFieldRect(wxStatusBar
*self
,long item
) {
228 wxRect
* rect
= new wxRect
;
229 self
->GetFieldRect(item
, *rect
);
232 static PyObject
*_wrap_wxStatusBar_GetFieldRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
233 PyObject
* _resultobj
;
237 PyObject
* _argo0
= 0;
238 char *_kwnames
[] = { "self","item", NULL
};
242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxStatusBar_GetFieldRect",_kwnames
,&_argo0
,&_arg1
))
245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
252 wxPy_BEGIN_ALLOW_THREADS
;
253 _result
= (wxRect
*)wxStatusBar_GetFieldRect(_arg0
,_arg1
);
255 wxPy_END_ALLOW_THREADS
;
256 if (PyErr_Occurred()) return NULL
;
258 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRect_p");
259 _resultobj
= Py_BuildValue("s",_ptemp
);
262 _resultobj
= Py_None
;
267 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
268 static PyObject
*_wrap_wxStatusBar_GetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
269 PyObject
* _resultobj
;
272 PyObject
* _argo0
= 0;
273 char *_kwnames
[] = { "self", NULL
};
276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetFieldsCount",_kwnames
,&_argo0
))
279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
286 wxPy_BEGIN_ALLOW_THREADS
;
287 _result
= (int )wxStatusBar_GetFieldsCount(_arg0
);
289 wxPy_END_ALLOW_THREADS
;
290 if (PyErr_Occurred()) return NULL
;
291 } _resultobj
= Py_BuildValue("i",_result
);
295 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
296 static PyObject
*_wrap_wxStatusBar_GetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
297 PyObject
* _resultobj
;
300 int _arg1
= (int ) 0;
301 PyObject
* _argo0
= 0;
302 char *_kwnames
[] = { "self","ir", NULL
};
305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_GetStatusText",_kwnames
,&_argo0
,&_arg1
))
308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
315 wxPy_BEGIN_ALLOW_THREADS
;
316 _result
= new wxString (wxStatusBar_GetStatusText(_arg0
,_arg1
));
318 wxPy_END_ALLOW_THREADS
;
319 if (PyErr_Occurred()) return NULL
;
321 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
329 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
330 static PyObject
*_wrap_wxStatusBar_GetBorderX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
331 PyObject
* _resultobj
;
334 PyObject
* _argo0
= 0;
335 char *_kwnames
[] = { "self", NULL
};
338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderX",_kwnames
,&_argo0
))
341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
348 wxPy_BEGIN_ALLOW_THREADS
;
349 _result
= (int )wxStatusBar_GetBorderX(_arg0
);
351 wxPy_END_ALLOW_THREADS
;
352 if (PyErr_Occurred()) return NULL
;
353 } _resultobj
= Py_BuildValue("i",_result
);
357 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
358 static PyObject
*_wrap_wxStatusBar_GetBorderY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
359 PyObject
* _resultobj
;
362 PyObject
* _argo0
= 0;
363 char *_kwnames
[] = { "self", NULL
};
366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderY",_kwnames
,&_argo0
))
369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
376 wxPy_BEGIN_ALLOW_THREADS
;
377 _result
= (int )wxStatusBar_GetBorderY(_arg0
);
379 wxPy_END_ALLOW_THREADS
;
380 if (PyErr_Occurred()) return NULL
;
381 } _resultobj
= Py_BuildValue("i",_result
);
385 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
386 static PyObject
*_wrap_wxStatusBar_SetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
387 PyObject
* _resultobj
;
389 int _arg1
= (int ) 1;
390 PyObject
* _argo0
= 0;
391 char *_kwnames
[] = { "self","number", NULL
};
394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_SetFieldsCount",_kwnames
,&_argo0
,&_arg1
))
397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
404 wxPy_BEGIN_ALLOW_THREADS
;
405 wxStatusBar_SetFieldsCount(_arg0
,_arg1
);
407 wxPy_END_ALLOW_THREADS
;
408 if (PyErr_Occurred()) return NULL
;
409 } Py_INCREF(Py_None
);
410 _resultobj
= Py_None
;
414 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
415 static PyObject
*_wrap_wxStatusBar_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
416 PyObject
* _resultobj
;
419 int _arg2
= (int ) 0;
420 PyObject
* _argo0
= 0;
421 PyObject
* _obj1
= 0;
422 char *_kwnames
[] = { "self","text","i", NULL
};
425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
435 #if PYTHON_API_VERSION >= 1009
436 char* tmpPtr
; int tmpSize
;
437 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
438 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
441 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
443 _arg1
= new wxString(tmpPtr
, tmpSize
);
445 if (!PyString_Check(_obj1
)) {
446 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
449 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
453 wxPy_BEGIN_ALLOW_THREADS
;
454 wxStatusBar_SetStatusText(_arg0
,*_arg1
,_arg2
);
456 wxPy_END_ALLOW_THREADS
;
457 if (PyErr_Occurred()) return NULL
;
458 } Py_INCREF(Py_None
);
459 _resultobj
= Py_None
;
467 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
468 static PyObject
*_wrap_wxStatusBar_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
469 PyObject
* _resultobj
;
473 PyObject
* _argo0
= 0;
474 PyObject
* _obj2
= 0;
475 char *_kwnames
[] = { "self","choices", NULL
};
478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxStatusBar_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
489 _arg2
= int_LIST_helper(_obj2
);
496 _arg1
= PyList_Size(_obj2
);
503 wxPy_BEGIN_ALLOW_THREADS
;
504 wxStatusBar_SetStatusWidths(_arg0
,_arg1
,_arg2
);
506 wxPy_END_ALLOW_THREADS
;
507 if (PyErr_Occurred()) return NULL
;
508 } Py_INCREF(Py_None
);
509 _resultobj
= Py_None
;
516 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
517 static PyObject
*_wrap_wxStatusBar_SetMinHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
518 PyObject
* _resultobj
;
521 PyObject
* _argo0
= 0;
522 char *_kwnames
[] = { "self","height", NULL
};
525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxStatusBar_SetMinHeight",_kwnames
,&_argo0
,&_arg1
))
528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
535 wxPy_BEGIN_ALLOW_THREADS
;
536 wxStatusBar_SetMinHeight(_arg0
,_arg1
);
538 wxPy_END_ALLOW_THREADS
;
539 if (PyErr_Occurred()) return NULL
;
540 } Py_INCREF(Py_None
);
541 _resultobj
= Py_None
;
545 static void *SwigwxToolBarToolBaseTowxObject(void *ptr
) {
546 wxToolBarToolBase
*src
;
548 src
= (wxToolBarToolBase
*) ptr
;
549 dest
= (wxObject
*) src
;
550 return (void *) dest
;
553 static void wxToolBarToolBase_Destroy(wxToolBarToolBase
*self
) { delete self
; }
554 static PyObject
*_wrap_wxToolBarToolBase_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
555 PyObject
* _resultobj
;
556 wxToolBarToolBase
* _arg0
;
557 PyObject
* _argo0
= 0;
558 char *_kwnames
[] = { "self", NULL
};
561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Destroy",_kwnames
,&_argo0
))
564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
571 wxPy_BEGIN_ALLOW_THREADS
;
572 wxToolBarToolBase_Destroy(_arg0
);
574 wxPy_END_ALLOW_THREADS
;
575 if (PyErr_Occurred()) return NULL
;
576 } Py_INCREF(Py_None
);
577 _resultobj
= Py_None
;
581 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
582 static PyObject
*_wrap_wxToolBarToolBase_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
583 PyObject
* _resultobj
;
585 wxToolBarToolBase
* _arg0
;
586 PyObject
* _argo0
= 0;
587 char *_kwnames
[] = { "self", NULL
};
590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetId",_kwnames
,&_argo0
))
593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
600 wxPy_BEGIN_ALLOW_THREADS
;
601 _result
= (int )wxToolBarToolBase_GetId(_arg0
);
603 wxPy_END_ALLOW_THREADS
;
604 if (PyErr_Occurred()) return NULL
;
605 } _resultobj
= Py_BuildValue("i",_result
);
609 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
610 static PyObject
*_wrap_wxToolBarToolBase_GetControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
611 PyObject
* _resultobj
;
613 wxToolBarToolBase
* _arg0
;
614 PyObject
* _argo0
= 0;
615 char *_kwnames
[] = { "self", NULL
};
618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetControl",_kwnames
,&_argo0
))
621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
628 wxPy_BEGIN_ALLOW_THREADS
;
629 _result
= (wxControl
*)wxToolBarToolBase_GetControl(_arg0
);
631 wxPy_END_ALLOW_THREADS
;
632 if (PyErr_Occurred()) return NULL
;
633 }{ _resultobj
= wxPyMake_wxObject(_result
); }
637 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
638 static PyObject
*_wrap_wxToolBarToolBase_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
639 PyObject
* _resultobj
;
640 wxToolBarBase
* _result
;
641 wxToolBarToolBase
* _arg0
;
642 PyObject
* _argo0
= 0;
643 char *_kwnames
[] = { "self", NULL
};
646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetToolBar",_kwnames
,&_argo0
))
649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
656 wxPy_BEGIN_ALLOW_THREADS
;
657 _result
= (wxToolBarBase
*)wxToolBarToolBase_GetToolBar(_arg0
);
659 wxPy_END_ALLOW_THREADS
;
660 if (PyErr_Occurred()) return NULL
;
661 }{ _resultobj
= wxPyMake_wxObject(_result
); }
665 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
666 static PyObject
*_wrap_wxToolBarToolBase_IsButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
667 PyObject
* _resultobj
;
669 wxToolBarToolBase
* _arg0
;
670 PyObject
* _argo0
= 0;
671 char *_kwnames
[] = { "self", NULL
};
674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsButton",_kwnames
,&_argo0
))
677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
684 wxPy_BEGIN_ALLOW_THREADS
;
685 _result
= (int )wxToolBarToolBase_IsButton(_arg0
);
687 wxPy_END_ALLOW_THREADS
;
688 if (PyErr_Occurred()) return NULL
;
689 } _resultobj
= Py_BuildValue("i",_result
);
693 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
694 static PyObject
*_wrap_wxToolBarToolBase_IsControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
695 PyObject
* _resultobj
;
697 wxToolBarToolBase
* _arg0
;
698 PyObject
* _argo0
= 0;
699 char *_kwnames
[] = { "self", NULL
};
702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsControl",_kwnames
,&_argo0
))
705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
712 wxPy_BEGIN_ALLOW_THREADS
;
713 _result
= (int )wxToolBarToolBase_IsControl(_arg0
);
715 wxPy_END_ALLOW_THREADS
;
716 if (PyErr_Occurred()) return NULL
;
717 } _resultobj
= Py_BuildValue("i",_result
);
721 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
722 static PyObject
*_wrap_wxToolBarToolBase_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
723 PyObject
* _resultobj
;
725 wxToolBarToolBase
* _arg0
;
726 PyObject
* _argo0
= 0;
727 char *_kwnames
[] = { "self", NULL
};
730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsSeparator",_kwnames
,&_argo0
))
733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
740 wxPy_BEGIN_ALLOW_THREADS
;
741 _result
= (int )wxToolBarToolBase_IsSeparator(_arg0
);
743 wxPy_END_ALLOW_THREADS
;
744 if (PyErr_Occurred()) return NULL
;
745 } _resultobj
= Py_BuildValue("i",_result
);
749 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
750 static PyObject
*_wrap_wxToolBarToolBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
751 PyObject
* _resultobj
;
753 wxToolBarToolBase
* _arg0
;
754 PyObject
* _argo0
= 0;
755 char *_kwnames
[] = { "self", NULL
};
758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetStyle",_kwnames
,&_argo0
))
761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
768 wxPy_BEGIN_ALLOW_THREADS
;
769 _result
= (int )wxToolBarToolBase_GetStyle(_arg0
);
771 wxPy_END_ALLOW_THREADS
;
772 if (PyErr_Occurred()) return NULL
;
773 } _resultobj
= Py_BuildValue("i",_result
);
777 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
778 static PyObject
*_wrap_wxToolBarToolBase_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
779 PyObject
* _resultobj
;
781 wxToolBarToolBase
* _arg0
;
782 PyObject
* _argo0
= 0;
783 char *_kwnames
[] = { "self", NULL
};
786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsEnabled",_kwnames
,&_argo0
))
789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
796 wxPy_BEGIN_ALLOW_THREADS
;
797 _result
= (bool )wxToolBarToolBase_IsEnabled(_arg0
);
799 wxPy_END_ALLOW_THREADS
;
800 if (PyErr_Occurred()) return NULL
;
801 } _resultobj
= Py_BuildValue("i",_result
);
805 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
806 static PyObject
*_wrap_wxToolBarToolBase_IsToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
807 PyObject
* _resultobj
;
809 wxToolBarToolBase
* _arg0
;
810 PyObject
* _argo0
= 0;
811 char *_kwnames
[] = { "self", NULL
};
814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsToggled",_kwnames
,&_argo0
))
817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
824 wxPy_BEGIN_ALLOW_THREADS
;
825 _result
= (bool )wxToolBarToolBase_IsToggled(_arg0
);
827 wxPy_END_ALLOW_THREADS
;
828 if (PyErr_Occurred()) return NULL
;
829 } _resultobj
= Py_BuildValue("i",_result
);
833 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
834 static PyObject
*_wrap_wxToolBarToolBase_CanBeToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
835 PyObject
* _resultobj
;
837 wxToolBarToolBase
* _arg0
;
838 PyObject
* _argo0
= 0;
839 char *_kwnames
[] = { "self", NULL
};
842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_CanBeToggled",_kwnames
,&_argo0
))
845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
852 wxPy_BEGIN_ALLOW_THREADS
;
853 _result
= (bool )wxToolBarToolBase_CanBeToggled(_arg0
);
855 wxPy_END_ALLOW_THREADS
;
856 if (PyErr_Occurred()) return NULL
;
857 } _resultobj
= Py_BuildValue("i",_result
);
861 #define wxToolBarToolBase_GetBitmap1(_swigobj) (_swigobj->GetBitmap1())
862 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
863 PyObject
* _resultobj
;
865 wxToolBarToolBase
* _arg0
;
866 PyObject
* _argo0
= 0;
867 char *_kwnames
[] = { "self", NULL
};
871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap1",_kwnames
,&_argo0
))
874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap1. Expected _wxToolBarToolBase_p.");
881 wxPy_BEGIN_ALLOW_THREADS
;
882 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap1(_arg0
);
883 _result
= (wxBitmap
*) &_result_ref
;
885 wxPy_END_ALLOW_THREADS
;
886 if (PyErr_Occurred()) return NULL
;
888 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
889 _resultobj
= Py_BuildValue("s",_ptemp
);
892 _resultobj
= Py_None
;
897 #define wxToolBarToolBase_GetBitmap2(_swigobj) (_swigobj->GetBitmap2())
898 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
899 PyObject
* _resultobj
;
901 wxToolBarToolBase
* _arg0
;
902 PyObject
* _argo0
= 0;
903 char *_kwnames
[] = { "self", NULL
};
907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap2",_kwnames
,&_argo0
))
910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap2. Expected _wxToolBarToolBase_p.");
917 wxPy_BEGIN_ALLOW_THREADS
;
918 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap2(_arg0
);
919 _result
= (wxBitmap
*) &_result_ref
;
921 wxPy_END_ALLOW_THREADS
;
922 if (PyErr_Occurred()) return NULL
;
924 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
925 _resultobj
= Py_BuildValue("s",_ptemp
);
928 _resultobj
= Py_None
;
933 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
934 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
935 PyObject
* _resultobj
;
937 wxToolBarToolBase
* _arg0
;
938 PyObject
* _argo0
= 0;
939 char *_kwnames
[] = { "self", NULL
};
943 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap",_kwnames
,&_argo0
))
946 if (_argo0
== Py_None
) { _arg0
= NULL
; }
947 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
948 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
953 wxPy_BEGIN_ALLOW_THREADS
;
954 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap(_arg0
);
955 _result
= (wxBitmap
*) &_result_ref
;
957 wxPy_END_ALLOW_THREADS
;
958 if (PyErr_Occurred()) return NULL
;
960 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
961 _resultobj
= Py_BuildValue("s",_ptemp
);
964 _resultobj
= Py_None
;
969 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
970 static PyObject
*_wrap_wxToolBarToolBase_GetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
971 PyObject
* _resultobj
;
973 wxToolBarToolBase
* _arg0
;
974 PyObject
* _argo0
= 0;
975 char *_kwnames
[] = { "self", NULL
};
978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetShortHelp",_kwnames
,&_argo0
))
981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
988 wxPy_BEGIN_ALLOW_THREADS
;
989 _result
= new wxString (wxToolBarToolBase_GetShortHelp(_arg0
));
991 wxPy_END_ALLOW_THREADS
;
992 if (PyErr_Occurred()) return NULL
;
994 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1002 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
1003 static PyObject
*_wrap_wxToolBarToolBase_GetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1004 PyObject
* _resultobj
;
1006 wxToolBarToolBase
* _arg0
;
1007 PyObject
* _argo0
= 0;
1008 char *_kwnames
[] = { "self", NULL
};
1011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLongHelp",_kwnames
,&_argo0
))
1014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1021 wxPy_BEGIN_ALLOW_THREADS
;
1022 _result
= new wxString (wxToolBarToolBase_GetLongHelp(_arg0
));
1024 wxPy_END_ALLOW_THREADS
;
1025 if (PyErr_Occurred()) return NULL
;
1027 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1035 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1036 static PyObject
*_wrap_wxToolBarToolBase_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1037 PyObject
* _resultobj
;
1039 wxToolBarToolBase
* _arg0
;
1041 PyObject
* _argo0
= 0;
1043 char *_kwnames
[] = { "self","enable", NULL
};
1046 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Enable",_kwnames
,&_argo0
,&tempbool1
))
1049 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1050 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1051 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1055 _arg1
= (bool ) tempbool1
;
1057 wxPy_BEGIN_ALLOW_THREADS
;
1058 _result
= (bool )wxToolBarToolBase_Enable(_arg0
,_arg1
);
1060 wxPy_END_ALLOW_THREADS
;
1061 if (PyErr_Occurred()) return NULL
;
1062 } _resultobj
= Py_BuildValue("i",_result
);
1066 #define wxToolBarToolBase_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
1067 static PyObject
*_wrap_wxToolBarToolBase_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1068 PyObject
* _resultobj
;
1070 wxToolBarToolBase
* _arg0
;
1072 PyObject
* _argo0
= 0;
1074 char *_kwnames
[] = { "self","toggle", NULL
};
1077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Toggle",_kwnames
,&_argo0
,&tempbool1
))
1080 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1081 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1082 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1086 _arg1
= (bool ) tempbool1
;
1088 wxPy_BEGIN_ALLOW_THREADS
;
1089 _result
= (bool )wxToolBarToolBase_Toggle(_arg0
,_arg1
);
1091 wxPy_END_ALLOW_THREADS
;
1092 if (PyErr_Occurred()) return NULL
;
1093 } _resultobj
= Py_BuildValue("i",_result
);
1097 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1098 static PyObject
*_wrap_wxToolBarToolBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1099 PyObject
* _resultobj
;
1101 wxToolBarToolBase
* _arg0
;
1103 PyObject
* _argo0
= 0;
1105 char *_kwnames
[] = { "self","toggle", NULL
};
1108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_SetToggle",_kwnames
,&_argo0
,&tempbool1
))
1111 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1112 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1113 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1117 _arg1
= (bool ) tempbool1
;
1119 wxPy_BEGIN_ALLOW_THREADS
;
1120 _result
= (bool )wxToolBarToolBase_SetToggle(_arg0
,_arg1
);
1122 wxPy_END_ALLOW_THREADS
;
1123 if (PyErr_Occurred()) return NULL
;
1124 } _resultobj
= Py_BuildValue("i",_result
);
1128 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1129 static PyObject
*_wrap_wxToolBarToolBase_SetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1130 PyObject
* _resultobj
;
1132 wxToolBarToolBase
* _arg0
;
1134 PyObject
* _argo0
= 0;
1135 PyObject
* _obj1
= 0;
1136 char *_kwnames
[] = { "self","help", NULL
};
1139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetShortHelp",_kwnames
,&_argo0
,&_obj1
))
1142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1149 #if PYTHON_API_VERSION >= 1009
1150 char* tmpPtr
; int tmpSize
;
1151 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1152 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1155 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1157 _arg1
= new wxString(tmpPtr
, tmpSize
);
1159 if (!PyString_Check(_obj1
)) {
1160 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1163 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1167 wxPy_BEGIN_ALLOW_THREADS
;
1168 _result
= (bool )wxToolBarToolBase_SetShortHelp(_arg0
,*_arg1
);
1170 wxPy_END_ALLOW_THREADS
;
1171 if (PyErr_Occurred()) return NULL
;
1172 } _resultobj
= Py_BuildValue("i",_result
);
1180 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1181 static PyObject
*_wrap_wxToolBarToolBase_SetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1182 PyObject
* _resultobj
;
1184 wxToolBarToolBase
* _arg0
;
1186 PyObject
* _argo0
= 0;
1187 PyObject
* _obj1
= 0;
1188 char *_kwnames
[] = { "self","help", NULL
};
1191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLongHelp",_kwnames
,&_argo0
,&_obj1
))
1194 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1195 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1196 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1201 #if PYTHON_API_VERSION >= 1009
1202 char* tmpPtr
; int tmpSize
;
1203 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1204 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1207 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1209 _arg1
= new wxString(tmpPtr
, tmpSize
);
1211 if (!PyString_Check(_obj1
)) {
1212 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1215 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1219 wxPy_BEGIN_ALLOW_THREADS
;
1220 _result
= (bool )wxToolBarToolBase_SetLongHelp(_arg0
,*_arg1
);
1222 wxPy_END_ALLOW_THREADS
;
1223 if (PyErr_Occurred()) return NULL
;
1224 } _resultobj
= Py_BuildValue("i",_result
);
1232 #define wxToolBarToolBase_SetBitmap1(_swigobj,_swigarg0) (_swigobj->SetBitmap1(_swigarg0))
1233 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1234 PyObject
* _resultobj
;
1235 wxToolBarToolBase
* _arg0
;
1237 PyObject
* _argo0
= 0;
1238 PyObject
* _argo1
= 0;
1239 char *_kwnames
[] = { "self","bmp", NULL
};
1242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap1",_kwnames
,&_argo0
,&_argo1
))
1245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap1. Expected _wxToolBarToolBase_p.");
1252 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1253 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1254 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap1. Expected _wxBitmap_p.");
1259 wxPy_BEGIN_ALLOW_THREADS
;
1260 wxToolBarToolBase_SetBitmap1(_arg0
,*_arg1
);
1262 wxPy_END_ALLOW_THREADS
;
1263 if (PyErr_Occurred()) return NULL
;
1264 } Py_INCREF(Py_None
);
1265 _resultobj
= Py_None
;
1269 #define wxToolBarToolBase_SetBitmap2(_swigobj,_swigarg0) (_swigobj->SetBitmap2(_swigarg0))
1270 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1271 PyObject
* _resultobj
;
1272 wxToolBarToolBase
* _arg0
;
1274 PyObject
* _argo0
= 0;
1275 PyObject
* _argo1
= 0;
1276 char *_kwnames
[] = { "self","bmp", NULL
};
1279 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap2",_kwnames
,&_argo0
,&_argo1
))
1282 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1283 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1284 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap2. Expected _wxToolBarToolBase_p.");
1289 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1290 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1291 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap2. Expected _wxBitmap_p.");
1296 wxPy_BEGIN_ALLOW_THREADS
;
1297 wxToolBarToolBase_SetBitmap2(_arg0
,*_arg1
);
1299 wxPy_END_ALLOW_THREADS
;
1300 if (PyErr_Occurred()) return NULL
;
1301 } Py_INCREF(Py_None
);
1302 _resultobj
= Py_None
;
1306 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1307 static PyObject
*_wrap_wxToolBarToolBase_Detach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1308 PyObject
* _resultobj
;
1309 wxToolBarToolBase
* _arg0
;
1310 PyObject
* _argo0
= 0;
1311 char *_kwnames
[] = { "self", NULL
};
1314 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Detach",_kwnames
,&_argo0
))
1317 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1318 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1319 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1324 wxPy_BEGIN_ALLOW_THREADS
;
1325 wxToolBarToolBase_Detach(_arg0
);
1327 wxPy_END_ALLOW_THREADS
;
1328 if (PyErr_Occurred()) return NULL
;
1329 } Py_INCREF(Py_None
);
1330 _resultobj
= Py_None
;
1334 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1335 static PyObject
*_wrap_wxToolBarToolBase_Attach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1336 PyObject
* _resultobj
;
1337 wxToolBarToolBase
* _arg0
;
1338 wxToolBarBase
* _arg1
;
1339 PyObject
* _argo0
= 0;
1340 PyObject
* _argo1
= 0;
1341 char *_kwnames
[] = { "self","tbar", NULL
};
1344 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_Attach",_kwnames
,&_argo0
,&_argo1
))
1347 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1348 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1349 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1354 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1355 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBarBase_p")) {
1356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1361 wxPy_BEGIN_ALLOW_THREADS
;
1362 wxToolBarToolBase_Attach(_arg0
,_arg1
);
1364 wxPy_END_ALLOW_THREADS
;
1365 if (PyErr_Occurred()) return NULL
;
1366 } Py_INCREF(Py_None
);
1367 _resultobj
= Py_None
;
1371 static PyObject
* wxToolBarToolBase_GetClientData(wxToolBarToolBase
*self
) {
1372 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetClientData();
1374 Py_INCREF(udata
->m_obj
);
1375 return udata
->m_obj
;
1381 static PyObject
*_wrap_wxToolBarToolBase_GetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1382 PyObject
* _resultobj
;
1384 wxToolBarToolBase
* _arg0
;
1385 PyObject
* _argo0
= 0;
1386 char *_kwnames
[] = { "self", NULL
};
1389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetClientData",_kwnames
,&_argo0
))
1392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1399 wxPy_BEGIN_ALLOW_THREADS
;
1400 _result
= (PyObject
*)wxToolBarToolBase_GetClientData(_arg0
);
1402 wxPy_END_ALLOW_THREADS
;
1403 if (PyErr_Occurred()) return NULL
;
1405 _resultobj
= _result
;
1410 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase
*self
,PyObject
* clientData
) {
1411 self
->SetClientData(new wxPyUserData(clientData
));
1413 static PyObject
*_wrap_wxToolBarToolBase_SetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1414 PyObject
* _resultobj
;
1415 wxToolBarToolBase
* _arg0
;
1417 PyObject
* _argo0
= 0;
1418 PyObject
* _obj1
= 0;
1419 char *_kwnames
[] = { "self","clientData", NULL
};
1422 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetClientData",_kwnames
,&_argo0
,&_obj1
))
1425 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1426 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1427 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1435 wxPy_BEGIN_ALLOW_THREADS
;
1436 wxToolBarToolBase_SetClientData(_arg0
,_arg1
);
1438 wxPy_END_ALLOW_THREADS
;
1439 if (PyErr_Occurred()) return NULL
;
1440 } Py_INCREF(Py_None
);
1441 _resultobj
= Py_None
;
1445 static void *SwigwxToolBarBaseTowxControl(void *ptr
) {
1448 src
= (wxToolBarBase
*) ptr
;
1449 dest
= (wxControl
*) src
;
1450 return (void *) dest
;
1453 static void *SwigwxToolBarBaseTowxWindow(void *ptr
) {
1456 src
= (wxToolBarBase
*) ptr
;
1457 dest
= (wxWindow
*) src
;
1458 return (void *) dest
;
1461 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr
) {
1464 src
= (wxToolBarBase
*) ptr
;
1465 dest
= (wxEvtHandler
*) src
;
1466 return (void *) dest
;
1469 static void *SwigwxToolBarBaseTowxObject(void *ptr
) {
1472 src
= (wxToolBarBase
*) ptr
;
1473 dest
= (wxObject
*) src
;
1474 return (void *) dest
;
1477 static wxToolBarToolBase
* wxToolBarBase_AddTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxBitmap
& pushedBitmap
,int isToggle
,PyObject
* clientData
,const wxString
& shortHelpString
,const wxString
& longHelpString
) {
1478 wxPyUserData
* udata
= NULL
;
1480 udata
= new wxPyUserData(clientData
);
1481 return self
->AddTool(id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1482 udata
, shortHelpString
, longHelpString
);
1484 static PyObject
*_wrap_wxToolBarBase_AddTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1485 PyObject
* _resultobj
;
1486 wxToolBarToolBase
* _result
;
1487 wxToolBarBase
* _arg0
;
1490 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
1491 int _arg4
= (int ) FALSE
;
1492 PyObject
* _arg5
= (PyObject
*) NULL
;
1493 wxString
* _arg6
= (wxString
*) &wxPyEmptyStr
;
1494 wxString
* _arg7
= (wxString
*) &wxPyEmptyStr
;
1495 PyObject
* _argo0
= 0;
1496 PyObject
* _argo2
= 0;
1497 PyObject
* _argo3
= 0;
1498 PyObject
* _obj5
= 0;
1499 PyObject
* _obj6
= 0;
1500 PyObject
* _obj7
= 0;
1501 char *_kwnames
[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1504 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_arg4
,&_obj5
,&_obj6
,&_obj7
))
1507 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1508 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
1514 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1515 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1516 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1521 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1522 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1533 #if PYTHON_API_VERSION >= 1009
1534 char* tmpPtr
; int tmpSize
;
1535 if (!PyString_Check(_obj6
) && !PyUnicode_Check(_obj6
)) {
1536 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1539 if (PyString_AsStringAndSize(_obj6
, &tmpPtr
, &tmpSize
) == -1)
1541 _arg6
= new wxString(tmpPtr
, tmpSize
);
1543 if (!PyString_Check(_obj6
)) {
1544 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1547 _arg6
= new wxString(PyString_AS_STRING(_obj6
), PyString_GET_SIZE(_obj6
));
1552 #if PYTHON_API_VERSION >= 1009
1553 char* tmpPtr
; int tmpSize
;
1554 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1555 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1558 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1560 _arg7
= new wxString(tmpPtr
, tmpSize
);
1562 if (!PyString_Check(_obj7
)) {
1563 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1566 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1570 wxPy_BEGIN_ALLOW_THREADS
;
1571 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddTool(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,*_arg6
,*_arg7
);
1573 wxPy_END_ALLOW_THREADS
;
1574 if (PyErr_Occurred()) return NULL
;
1575 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1587 static wxToolBarToolBase
* wxToolBarBase_AddSimpleTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1588 return self
->AddTool(id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1589 shortHelpString
, longHelpString
);
1591 static PyObject
*_wrap_wxToolBarBase_AddSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1592 PyObject
* _resultobj
;
1593 wxToolBarToolBase
* _result
;
1594 wxToolBarBase
* _arg0
;
1597 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
1598 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
1599 int _arg5
= (int ) FALSE
;
1600 PyObject
* _argo0
= 0;
1601 PyObject
* _argo2
= 0;
1602 PyObject
* _obj3
= 0;
1603 PyObject
* _obj4
= 0;
1604 char *_kwnames
[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1607 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
,&_obj4
,&_arg5
))
1610 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1611 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1612 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
1617 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1618 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1619 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1625 #if PYTHON_API_VERSION >= 1009
1626 char* tmpPtr
; int tmpSize
;
1627 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
1628 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1631 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
1633 _arg3
= new wxString(tmpPtr
, tmpSize
);
1635 if (!PyString_Check(_obj3
)) {
1636 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1639 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
1644 #if PYTHON_API_VERSION >= 1009
1645 char* tmpPtr
; int tmpSize
;
1646 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1647 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1650 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1652 _arg4
= new wxString(tmpPtr
, tmpSize
);
1654 if (!PyString_Check(_obj4
)) {
1655 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1658 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1662 wxPy_BEGIN_ALLOW_THREADS
;
1663 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSimpleTool(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
);
1665 wxPy_END_ALLOW_THREADS
;
1666 if (PyErr_Occurred()) return NULL
;
1667 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1679 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
) {
1680 wxPyUserData
* udata
= NULL
;
1682 udata
= new wxPyUserData(clientData
);
1683 return self
->InsertTool(pos
, id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1684 udata
, shortHelpString
, longHelpString
);
1686 static PyObject
*_wrap_wxToolBarBase_InsertTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1687 PyObject
* _resultobj
;
1688 wxToolBarToolBase
* _result
;
1689 wxToolBarBase
* _arg0
;
1693 wxBitmap
* _arg4
= (wxBitmap
*) &wxNullBitmap
;
1694 int _arg5
= (int ) FALSE
;
1695 PyObject
* _arg6
= (PyObject
*) NULL
;
1696 wxString
* _arg7
= (wxString
*) &wxPyEmptyStr
;
1697 wxString
* _arg8
= (wxString
*) &wxPyEmptyStr
;
1698 PyObject
* _argo0
= 0;
1699 PyObject
* _argo3
= 0;
1700 PyObject
* _argo4
= 0;
1701 PyObject
* _obj6
= 0;
1702 PyObject
* _obj7
= 0;
1703 PyObject
* _obj8
= 0;
1704 char *_kwnames
[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_argo4
,&_arg5
,&_obj6
,&_obj7
,&_obj8
))
1710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1717 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1718 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1724 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1725 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1736 #if PYTHON_API_VERSION >= 1009
1737 char* tmpPtr
; int tmpSize
;
1738 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1739 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1742 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1744 _arg7
= new wxString(tmpPtr
, tmpSize
);
1746 if (!PyString_Check(_obj7
)) {
1747 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1750 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1755 #if PYTHON_API_VERSION >= 1009
1756 char* tmpPtr
; int tmpSize
;
1757 if (!PyString_Check(_obj8
) && !PyUnicode_Check(_obj8
)) {
1758 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1761 if (PyString_AsStringAndSize(_obj8
, &tmpPtr
, &tmpSize
) == -1)
1763 _arg8
= new wxString(tmpPtr
, tmpSize
);
1765 if (!PyString_Check(_obj8
)) {
1766 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1769 _arg8
= new wxString(PyString_AS_STRING(_obj8
), PyString_GET_SIZE(_obj8
));
1773 wxPy_BEGIN_ALLOW_THREADS
;
1774 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,*_arg7
,*_arg8
);
1776 wxPy_END_ALLOW_THREADS
;
1777 if (PyErr_Occurred()) return NULL
;
1778 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1790 static wxToolBarToolBase
* wxToolBarBase_InsertSimpleTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1791 return self
->InsertTool(pos
, id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1792 shortHelpString
, longHelpString
);
1794 static PyObject
*_wrap_wxToolBarBase_InsertSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1795 PyObject
* _resultobj
;
1796 wxToolBarToolBase
* _result
;
1797 wxToolBarBase
* _arg0
;
1801 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
1802 wxString
* _arg5
= (wxString
*) &wxPyEmptyStr
;
1803 int _arg6
= (int ) FALSE
;
1804 PyObject
* _argo0
= 0;
1805 PyObject
* _argo3
= 0;
1806 PyObject
* _obj4
= 0;
1807 PyObject
* _obj5
= 0;
1808 char *_kwnames
[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_obj4
,&_obj5
,&_arg6
))
1814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
1821 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1822 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1823 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1829 #if PYTHON_API_VERSION >= 1009
1830 char* tmpPtr
; int tmpSize
;
1831 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1832 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1835 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1837 _arg4
= new wxString(tmpPtr
, tmpSize
);
1839 if (!PyString_Check(_obj4
)) {
1840 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1843 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1848 #if PYTHON_API_VERSION >= 1009
1849 char* tmpPtr
; int tmpSize
;
1850 if (!PyString_Check(_obj5
) && !PyUnicode_Check(_obj5
)) {
1851 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1854 if (PyString_AsStringAndSize(_obj5
, &tmpPtr
, &tmpSize
) == -1)
1856 _arg5
= new wxString(tmpPtr
, tmpSize
);
1858 if (!PyString_Check(_obj5
)) {
1859 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1862 _arg5
= new wxString(PyString_AS_STRING(_obj5
), PyString_GET_SIZE(_obj5
));
1866 wxPy_BEGIN_ALLOW_THREADS
;
1867 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSimpleTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
);
1869 wxPy_END_ALLOW_THREADS
;
1870 if (PyErr_Occurred()) return NULL
;
1871 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1883 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1884 static PyObject
*_wrap_wxToolBarBase_AddControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1885 PyObject
* _resultobj
;
1886 wxToolBarToolBase
* _result
;
1887 wxToolBarBase
* _arg0
;
1889 PyObject
* _argo0
= 0;
1890 PyObject
* _argo1
= 0;
1891 char *_kwnames
[] = { "self","control", NULL
};
1894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_AddControl",_kwnames
,&_argo0
,&_argo1
))
1897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1904 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1905 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxControl_p")) {
1906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1911 wxPy_BEGIN_ALLOW_THREADS
;
1912 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddControl(_arg0
,_arg1
);
1914 wxPy_END_ALLOW_THREADS
;
1915 if (PyErr_Occurred()) return NULL
;
1916 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1920 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1921 static PyObject
*_wrap_wxToolBarBase_InsertControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1922 PyObject
* _resultobj
;
1923 wxToolBarToolBase
* _result
;
1924 wxToolBarBase
* _arg0
;
1927 PyObject
* _argo0
= 0;
1928 PyObject
* _argo2
= 0;
1929 char *_kwnames
[] = { "self","pos","control", NULL
};
1932 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_InsertControl",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1935 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1936 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1937 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1942 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1943 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxControl_p")) {
1944 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1949 wxPy_BEGIN_ALLOW_THREADS
;
1950 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertControl(_arg0
,_arg1
,_arg2
);
1952 wxPy_END_ALLOW_THREADS
;
1953 if (PyErr_Occurred()) return NULL
;
1954 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1958 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1959 static PyObject
*_wrap_wxToolBarBase_AddSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1960 PyObject
* _resultobj
;
1961 wxToolBarToolBase
* _result
;
1962 wxToolBarBase
* _arg0
;
1963 PyObject
* _argo0
= 0;
1964 char *_kwnames
[] = { "self", NULL
};
1967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_AddSeparator",_kwnames
,&_argo0
))
1970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
1977 wxPy_BEGIN_ALLOW_THREADS
;
1978 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSeparator(_arg0
);
1980 wxPy_END_ALLOW_THREADS
;
1981 if (PyErr_Occurred()) return NULL
;
1982 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1986 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
1987 static PyObject
*_wrap_wxToolBarBase_InsertSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1988 PyObject
* _resultobj
;
1989 wxToolBarToolBase
* _result
;
1990 wxToolBarBase
* _arg0
;
1992 PyObject
* _argo0
= 0;
1993 char *_kwnames
[] = { "self","pos", NULL
};
1996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_InsertSeparator",_kwnames
,&_argo0
,&_arg1
))
1999 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2000 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2001 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
2006 wxPy_BEGIN_ALLOW_THREADS
;
2007 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSeparator(_arg0
,_arg1
);
2009 wxPy_END_ALLOW_THREADS
;
2010 if (PyErr_Occurred()) return NULL
;
2011 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2015 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
2016 static PyObject
*_wrap_wxToolBarBase_RemoveTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2017 PyObject
* _resultobj
;
2018 wxToolBarToolBase
* _result
;
2019 wxToolBarBase
* _arg0
;
2021 PyObject
* _argo0
= 0;
2022 char *_kwnames
[] = { "self","id", NULL
};
2025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_RemoveTool",_kwnames
,&_argo0
,&_arg1
))
2028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
2035 wxPy_BEGIN_ALLOW_THREADS
;
2036 _result
= (wxToolBarToolBase
*)wxToolBarBase_RemoveTool(_arg0
,_arg1
);
2038 wxPy_END_ALLOW_THREADS
;
2039 if (PyErr_Occurred()) return NULL
;
2040 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2044 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2045 static PyObject
*_wrap_wxToolBarBase_DeleteToolByPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2046 PyObject
* _resultobj
;
2048 wxToolBarBase
* _arg0
;
2050 PyObject
* _argo0
= 0;
2051 char *_kwnames
[] = { "self","pos", NULL
};
2054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames
,&_argo0
,&_arg1
))
2057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2064 wxPy_BEGIN_ALLOW_THREADS
;
2065 _result
= (bool )wxToolBarBase_DeleteToolByPos(_arg0
,_arg1
);
2067 wxPy_END_ALLOW_THREADS
;
2068 if (PyErr_Occurred()) return NULL
;
2069 } _resultobj
= Py_BuildValue("i",_result
);
2073 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2074 static PyObject
*_wrap_wxToolBarBase_DeleteTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2075 PyObject
* _resultobj
;
2077 wxToolBarBase
* _arg0
;
2079 PyObject
* _argo0
= 0;
2080 char *_kwnames
[] = { "self","id", NULL
};
2083 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteTool",_kwnames
,&_argo0
,&_arg1
))
2086 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2087 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2088 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2093 wxPy_BEGIN_ALLOW_THREADS
;
2094 _result
= (bool )wxToolBarBase_DeleteTool(_arg0
,_arg1
);
2096 wxPy_END_ALLOW_THREADS
;
2097 if (PyErr_Occurred()) return NULL
;
2098 } _resultobj
= Py_BuildValue("i",_result
);
2102 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2103 static PyObject
*_wrap_wxToolBarBase_ClearTools(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2104 PyObject
* _resultobj
;
2105 wxToolBarBase
* _arg0
;
2106 PyObject
* _argo0
= 0;
2107 char *_kwnames
[] = { "self", NULL
};
2110 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_ClearTools",_kwnames
,&_argo0
))
2113 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2114 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2115 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2120 wxPy_BEGIN_ALLOW_THREADS
;
2121 wxToolBarBase_ClearTools(_arg0
);
2123 wxPy_END_ALLOW_THREADS
;
2124 if (PyErr_Occurred()) return NULL
;
2125 } Py_INCREF(Py_None
);
2126 _resultobj
= Py_None
;
2130 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2131 static PyObject
*_wrap_wxToolBarBase_Realize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2132 PyObject
* _resultobj
;
2134 wxToolBarBase
* _arg0
;
2135 PyObject
* _argo0
= 0;
2136 char *_kwnames
[] = { "self", NULL
};
2139 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_Realize",_kwnames
,&_argo0
))
2142 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2143 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2144 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2149 wxPy_BEGIN_ALLOW_THREADS
;
2150 _result
= (bool )wxToolBarBase_Realize(_arg0
);
2152 wxPy_END_ALLOW_THREADS
;
2153 if (PyErr_Occurred()) return NULL
;
2154 } _resultobj
= Py_BuildValue("i",_result
);
2158 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2159 static PyObject
*_wrap_wxToolBarBase_EnableTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2160 PyObject
* _resultobj
;
2161 wxToolBarBase
* _arg0
;
2164 PyObject
* _argo0
= 0;
2166 char *_kwnames
[] = { "self","id","enable", NULL
};
2169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_EnableTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2172 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2173 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2178 _arg2
= (bool ) tempbool2
;
2180 wxPy_BEGIN_ALLOW_THREADS
;
2181 wxToolBarBase_EnableTool(_arg0
,_arg1
,_arg2
);
2183 wxPy_END_ALLOW_THREADS
;
2184 if (PyErr_Occurred()) return NULL
;
2185 } Py_INCREF(Py_None
);
2186 _resultobj
= Py_None
;
2190 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2191 static PyObject
*_wrap_wxToolBarBase_ToggleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2192 PyObject
* _resultobj
;
2193 wxToolBarBase
* _arg0
;
2196 PyObject
* _argo0
= 0;
2198 char *_kwnames
[] = { "self","id","toggle", NULL
};
2201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_ToggleTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2210 _arg2
= (bool ) tempbool2
;
2212 wxPy_BEGIN_ALLOW_THREADS
;
2213 wxToolBarBase_ToggleTool(_arg0
,_arg1
,_arg2
);
2215 wxPy_END_ALLOW_THREADS
;
2216 if (PyErr_Occurred()) return NULL
;
2217 } Py_INCREF(Py_None
);
2218 _resultobj
= Py_None
;
2222 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2223 static PyObject
*_wrap_wxToolBarBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2224 PyObject
* _resultobj
;
2225 wxToolBarBase
* _arg0
;
2228 PyObject
* _argo0
= 0;
2230 char *_kwnames
[] = { "self","id","toggle", NULL
};
2233 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetToggle",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2236 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2237 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2238 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2242 _arg2
= (bool ) tempbool2
;
2244 wxPy_BEGIN_ALLOW_THREADS
;
2245 wxToolBarBase_SetToggle(_arg0
,_arg1
,_arg2
);
2247 wxPy_END_ALLOW_THREADS
;
2248 if (PyErr_Occurred()) return NULL
;
2249 } Py_INCREF(Py_None
);
2250 _resultobj
= Py_None
;
2254 static PyObject
* wxToolBarBase_GetToolClientData(wxToolBarBase
*self
,int index
) {
2255 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetToolClientData(index
);
2257 Py_INCREF(udata
->m_obj
);
2258 return udata
->m_obj
;
2264 static PyObject
*_wrap_wxToolBarBase_GetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2265 PyObject
* _resultobj
;
2267 wxToolBarBase
* _arg0
;
2269 PyObject
* _argo0
= 0;
2270 char *_kwnames
[] = { "self","index", NULL
};
2273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolClientData",_kwnames
,&_argo0
,&_arg1
))
2276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2283 wxPy_BEGIN_ALLOW_THREADS
;
2284 _result
= (PyObject
*)wxToolBarBase_GetToolClientData(_arg0
,_arg1
);
2286 wxPy_END_ALLOW_THREADS
;
2287 if (PyErr_Occurred()) return NULL
;
2289 _resultobj
= _result
;
2294 static void wxToolBarBase_SetToolClientData(wxToolBarBase
*self
,int index
,PyObject
* clientData
) {
2295 self
->SetToolClientData(index
, new wxPyUserData(clientData
));
2297 static PyObject
*_wrap_wxToolBarBase_SetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2298 PyObject
* _resultobj
;
2299 wxToolBarBase
* _arg0
;
2302 PyObject
* _argo0
= 0;
2303 PyObject
* _obj2
= 0;
2304 char *_kwnames
[] = { "self","index","clientData", NULL
};
2307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolClientData",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2320 wxPy_BEGIN_ALLOW_THREADS
;
2321 wxToolBarBase_SetToolClientData(_arg0
,_arg1
,_arg2
);
2323 wxPy_END_ALLOW_THREADS
;
2324 if (PyErr_Occurred()) return NULL
;
2325 } Py_INCREF(Py_None
);
2326 _resultobj
= Py_None
;
2330 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2331 static PyObject
*_wrap_wxToolBarBase_GetToolState(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2332 PyObject
* _resultobj
;
2334 wxToolBarBase
* _arg0
;
2336 PyObject
* _argo0
= 0;
2337 char *_kwnames
[] = { "self","id", NULL
};
2340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolState",_kwnames
,&_argo0
,&_arg1
))
2343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2350 wxPy_BEGIN_ALLOW_THREADS
;
2351 _result
= (bool )wxToolBarBase_GetToolState(_arg0
,_arg1
);
2353 wxPy_END_ALLOW_THREADS
;
2354 if (PyErr_Occurred()) return NULL
;
2355 } _resultobj
= Py_BuildValue("i",_result
);
2359 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2360 static PyObject
*_wrap_wxToolBarBase_GetToolEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2361 PyObject
* _resultobj
;
2363 wxToolBarBase
* _arg0
;
2365 PyObject
* _argo0
= 0;
2366 char *_kwnames
[] = { "self","id", NULL
};
2369 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolEnabled",_kwnames
,&_argo0
,&_arg1
))
2372 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2373 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2374 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2379 wxPy_BEGIN_ALLOW_THREADS
;
2380 _result
= (bool )wxToolBarBase_GetToolEnabled(_arg0
,_arg1
);
2382 wxPy_END_ALLOW_THREADS
;
2383 if (PyErr_Occurred()) return NULL
;
2384 } _resultobj
= Py_BuildValue("i",_result
);
2388 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2389 static PyObject
*_wrap_wxToolBarBase_SetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2390 PyObject
* _resultobj
;
2391 wxToolBarBase
* _arg0
;
2394 PyObject
* _argo0
= 0;
2395 PyObject
* _obj2
= 0;
2396 char *_kwnames
[] = { "self","id","helpString", NULL
};
2399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2409 #if PYTHON_API_VERSION >= 1009
2410 char* tmpPtr
; int tmpSize
;
2411 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2412 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2415 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2417 _arg2
= new wxString(tmpPtr
, tmpSize
);
2419 if (!PyString_Check(_obj2
)) {
2420 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2423 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2427 wxPy_BEGIN_ALLOW_THREADS
;
2428 wxToolBarBase_SetToolShortHelp(_arg0
,_arg1
,*_arg2
);
2430 wxPy_END_ALLOW_THREADS
;
2431 if (PyErr_Occurred()) return NULL
;
2432 } Py_INCREF(Py_None
);
2433 _resultobj
= Py_None
;
2441 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2442 static PyObject
*_wrap_wxToolBarBase_GetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2443 PyObject
* _resultobj
;
2445 wxToolBarBase
* _arg0
;
2447 PyObject
* _argo0
= 0;
2448 char *_kwnames
[] = { "self","id", NULL
};
2451 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames
,&_argo0
,&_arg1
))
2454 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2455 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2456 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2461 wxPy_BEGIN_ALLOW_THREADS
;
2462 _result
= new wxString (wxToolBarBase_GetToolShortHelp(_arg0
,_arg1
));
2464 wxPy_END_ALLOW_THREADS
;
2465 if (PyErr_Occurred()) return NULL
;
2467 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2475 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2476 static PyObject
*_wrap_wxToolBarBase_SetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2477 PyObject
* _resultobj
;
2478 wxToolBarBase
* _arg0
;
2481 PyObject
* _argo0
= 0;
2482 PyObject
* _obj2
= 0;
2483 char *_kwnames
[] = { "self","id","helpString", NULL
};
2486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2496 #if PYTHON_API_VERSION >= 1009
2497 char* tmpPtr
; int tmpSize
;
2498 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2499 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2502 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2504 _arg2
= new wxString(tmpPtr
, tmpSize
);
2506 if (!PyString_Check(_obj2
)) {
2507 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2510 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2514 wxPy_BEGIN_ALLOW_THREADS
;
2515 wxToolBarBase_SetToolLongHelp(_arg0
,_arg1
,*_arg2
);
2517 wxPy_END_ALLOW_THREADS
;
2518 if (PyErr_Occurred()) return NULL
;
2519 } Py_INCREF(Py_None
);
2520 _resultobj
= Py_None
;
2528 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2529 static PyObject
*_wrap_wxToolBarBase_GetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2530 PyObject
* _resultobj
;
2532 wxToolBarBase
* _arg0
;
2534 PyObject
* _argo0
= 0;
2535 char *_kwnames
[] = { "self","id", NULL
};
2538 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames
,&_argo0
,&_arg1
))
2541 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2542 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2548 wxPy_BEGIN_ALLOW_THREADS
;
2549 _result
= new wxString (wxToolBarBase_GetToolLongHelp(_arg0
,_arg1
));
2551 wxPy_END_ALLOW_THREADS
;
2552 if (PyErr_Occurred()) return NULL
;
2554 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2562 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2563 static PyObject
*_wrap_wxToolBarBase_SetMarginsXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2564 PyObject
* _resultobj
;
2565 wxToolBarBase
* _arg0
;
2568 PyObject
* _argo0
= 0;
2569 char *_kwnames
[] = { "self","x","y", NULL
};
2572 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMarginsXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2575 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2576 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2577 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2582 wxPy_BEGIN_ALLOW_THREADS
;
2583 wxToolBarBase_SetMarginsXY(_arg0
,_arg1
,_arg2
);
2585 wxPy_END_ALLOW_THREADS
;
2586 if (PyErr_Occurred()) return NULL
;
2587 } Py_INCREF(Py_None
);
2588 _resultobj
= Py_None
;
2592 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2593 static PyObject
*_wrap_wxToolBarBase_SetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2594 PyObject
* _resultobj
;
2595 wxToolBarBase
* _arg0
;
2597 PyObject
* _argo0
= 0;
2599 PyObject
* _obj1
= 0;
2600 char *_kwnames
[] = { "self","size", NULL
};
2603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetMargins",_kwnames
,&_argo0
,&_obj1
))
2606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2614 if (! wxSize_helper(_obj1
, &_arg1
))
2618 wxPy_BEGIN_ALLOW_THREADS
;
2619 wxToolBarBase_SetMargins(_arg0
,*_arg1
);
2621 wxPy_END_ALLOW_THREADS
;
2622 if (PyErr_Occurred()) return NULL
;
2623 } Py_INCREF(Py_None
);
2624 _resultobj
= Py_None
;
2628 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2629 static PyObject
*_wrap_wxToolBarBase_SetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2630 PyObject
* _resultobj
;
2631 wxToolBarBase
* _arg0
;
2633 PyObject
* _argo0
= 0;
2634 char *_kwnames
[] = { "self","packing", NULL
};
2637 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolPacking",_kwnames
,&_argo0
,&_arg1
))
2640 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2641 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2642 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2647 wxPy_BEGIN_ALLOW_THREADS
;
2648 wxToolBarBase_SetToolPacking(_arg0
,_arg1
);
2650 wxPy_END_ALLOW_THREADS
;
2651 if (PyErr_Occurred()) return NULL
;
2652 } Py_INCREF(Py_None
);
2653 _resultobj
= Py_None
;
2657 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2658 static PyObject
*_wrap_wxToolBarBase_SetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2659 PyObject
* _resultobj
;
2660 wxToolBarBase
* _arg0
;
2662 PyObject
* _argo0
= 0;
2663 char *_kwnames
[] = { "self","separation", NULL
};
2666 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolSeparation",_kwnames
,&_argo0
,&_arg1
))
2669 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2670 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2676 wxPy_BEGIN_ALLOW_THREADS
;
2677 wxToolBarBase_SetToolSeparation(_arg0
,_arg1
);
2679 wxPy_END_ALLOW_THREADS
;
2680 if (PyErr_Occurred()) return NULL
;
2681 } Py_INCREF(Py_None
);
2682 _resultobj
= Py_None
;
2686 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2687 static PyObject
*_wrap_wxToolBarBase_GetToolMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2688 PyObject
* _resultobj
;
2690 wxToolBarBase
* _arg0
;
2691 PyObject
* _argo0
= 0;
2692 char *_kwnames
[] = { "self", NULL
};
2696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolMargins",_kwnames
,&_argo0
))
2699 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2700 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2706 wxPy_BEGIN_ALLOW_THREADS
;
2707 _result
= new wxSize (wxToolBarBase_GetToolMargins(_arg0
));
2709 wxPy_END_ALLOW_THREADS
;
2710 if (PyErr_Occurred()) return NULL
;
2711 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2712 _resultobj
= Py_BuildValue("s",_ptemp
);
2716 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2717 static PyObject
*_wrap_wxToolBarBase_GetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2718 PyObject
* _resultobj
;
2720 wxToolBarBase
* _arg0
;
2721 PyObject
* _argo0
= 0;
2722 char *_kwnames
[] = { "self", NULL
};
2726 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMargins",_kwnames
,&_argo0
))
2729 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2730 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2731 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2736 wxPy_BEGIN_ALLOW_THREADS
;
2737 _result
= new wxSize (wxToolBarBase_GetMargins(_arg0
));
2739 wxPy_END_ALLOW_THREADS
;
2740 if (PyErr_Occurred()) return NULL
;
2741 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2742 _resultobj
= Py_BuildValue("s",_ptemp
);
2746 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2747 static PyObject
*_wrap_wxToolBarBase_GetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2748 PyObject
* _resultobj
;
2750 wxToolBarBase
* _arg0
;
2751 PyObject
* _argo0
= 0;
2752 char *_kwnames
[] = { "self", NULL
};
2755 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolPacking",_kwnames
,&_argo0
))
2758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2765 wxPy_BEGIN_ALLOW_THREADS
;
2766 _result
= (int )wxToolBarBase_GetToolPacking(_arg0
);
2768 wxPy_END_ALLOW_THREADS
;
2769 if (PyErr_Occurred()) return NULL
;
2770 } _resultobj
= Py_BuildValue("i",_result
);
2774 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2775 static PyObject
*_wrap_wxToolBarBase_GetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2776 PyObject
* _resultobj
;
2778 wxToolBarBase
* _arg0
;
2779 PyObject
* _argo0
= 0;
2780 char *_kwnames
[] = { "self", NULL
};
2783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSeparation",_kwnames
,&_argo0
))
2786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2793 wxPy_BEGIN_ALLOW_THREADS
;
2794 _result
= (int )wxToolBarBase_GetToolSeparation(_arg0
);
2796 wxPy_END_ALLOW_THREADS
;
2797 if (PyErr_Occurred()) return NULL
;
2798 } _resultobj
= Py_BuildValue("i",_result
);
2802 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2803 static PyObject
*_wrap_wxToolBarBase_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2804 PyObject
* _resultobj
;
2805 wxToolBarBase
* _arg0
;
2807 PyObject
* _argo0
= 0;
2808 char *_kwnames
[] = { "self","nRows", NULL
};
2811 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetRows",_kwnames
,&_argo0
,&_arg1
))
2814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2821 wxPy_BEGIN_ALLOW_THREADS
;
2822 wxToolBarBase_SetRows(_arg0
,_arg1
);
2824 wxPy_END_ALLOW_THREADS
;
2825 if (PyErr_Occurred()) return NULL
;
2826 } Py_INCREF(Py_None
);
2827 _resultobj
= Py_None
;
2831 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2832 static PyObject
*_wrap_wxToolBarBase_SetMaxRowsCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2833 PyObject
* _resultobj
;
2834 wxToolBarBase
* _arg0
;
2837 PyObject
* _argo0
= 0;
2838 char *_kwnames
[] = { "self","rows","cols", NULL
};
2841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2844 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2845 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2846 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2851 wxPy_BEGIN_ALLOW_THREADS
;
2852 wxToolBarBase_SetMaxRowsCols(_arg0
,_arg1
,_arg2
);
2854 wxPy_END_ALLOW_THREADS
;
2855 if (PyErr_Occurred()) return NULL
;
2856 } Py_INCREF(Py_None
);
2857 _resultobj
= Py_None
;
2861 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2862 static PyObject
*_wrap_wxToolBarBase_GetMaxRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2863 PyObject
* _resultobj
;
2865 wxToolBarBase
* _arg0
;
2866 PyObject
* _argo0
= 0;
2867 char *_kwnames
[] = { "self", NULL
};
2870 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxRows",_kwnames
,&_argo0
))
2873 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2874 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2875 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2880 wxPy_BEGIN_ALLOW_THREADS
;
2881 _result
= (int )wxToolBarBase_GetMaxRows(_arg0
);
2883 wxPy_END_ALLOW_THREADS
;
2884 if (PyErr_Occurred()) return NULL
;
2885 } _resultobj
= Py_BuildValue("i",_result
);
2889 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2890 static PyObject
*_wrap_wxToolBarBase_GetMaxCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2891 PyObject
* _resultobj
;
2893 wxToolBarBase
* _arg0
;
2894 PyObject
* _argo0
= 0;
2895 char *_kwnames
[] = { "self", NULL
};
2898 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxCols",_kwnames
,&_argo0
))
2901 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2902 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2903 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2908 wxPy_BEGIN_ALLOW_THREADS
;
2909 _result
= (int )wxToolBarBase_GetMaxCols(_arg0
);
2911 wxPy_END_ALLOW_THREADS
;
2912 if (PyErr_Occurred()) return NULL
;
2913 } _resultobj
= Py_BuildValue("i",_result
);
2917 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2918 static PyObject
*_wrap_wxToolBarBase_SetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2919 PyObject
* _resultobj
;
2920 wxToolBarBase
* _arg0
;
2922 PyObject
* _argo0
= 0;
2924 PyObject
* _obj1
= 0;
2925 char *_kwnames
[] = { "self","size", NULL
};
2928 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames
,&_argo0
,&_obj1
))
2931 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2932 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2933 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
2939 if (! wxSize_helper(_obj1
, &_arg1
))
2943 wxPy_BEGIN_ALLOW_THREADS
;
2944 wxToolBarBase_SetToolBitmapSize(_arg0
,*_arg1
);
2946 wxPy_END_ALLOW_THREADS
;
2947 if (PyErr_Occurred()) return NULL
;
2948 } Py_INCREF(Py_None
);
2949 _resultobj
= Py_None
;
2953 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2954 static PyObject
*_wrap_wxToolBarBase_GetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2955 PyObject
* _resultobj
;
2957 wxToolBarBase
* _arg0
;
2958 PyObject
* _argo0
= 0;
2959 char *_kwnames
[] = { "self", NULL
};
2963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolBitmapSize",_kwnames
,&_argo0
))
2966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
2973 wxPy_BEGIN_ALLOW_THREADS
;
2974 _result
= new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0
));
2976 wxPy_END_ALLOW_THREADS
;
2977 if (PyErr_Occurred()) return NULL
;
2978 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2979 _resultobj
= Py_BuildValue("s",_ptemp
);
2983 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
2984 static PyObject
*_wrap_wxToolBarBase_GetToolSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2985 PyObject
* _resultobj
;
2987 wxToolBarBase
* _arg0
;
2988 PyObject
* _argo0
= 0;
2989 char *_kwnames
[] = { "self", NULL
};
2993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSize",_kwnames
,&_argo0
))
2996 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2997 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
3003 wxPy_BEGIN_ALLOW_THREADS
;
3004 _result
= new wxSize (wxToolBarBase_GetToolSize(_arg0
));
3006 wxPy_END_ALLOW_THREADS
;
3007 if (PyErr_Occurred()) return NULL
;
3008 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
3009 _resultobj
= Py_BuildValue("s",_ptemp
);
3013 static void *SwigwxToolBarTowxToolBarBase(void *ptr
) {
3015 wxToolBarBase
*dest
;
3016 src
= (wxToolBar
*) ptr
;
3017 dest
= (wxToolBarBase
*) src
;
3018 return (void *) dest
;
3021 static void *SwigwxToolBarTowxControl(void *ptr
) {
3024 src
= (wxToolBar
*) ptr
;
3025 dest
= (wxControl
*) src
;
3026 return (void *) dest
;
3029 static void *SwigwxToolBarTowxWindow(void *ptr
) {
3032 src
= (wxToolBar
*) ptr
;
3033 dest
= (wxWindow
*) src
;
3034 return (void *) dest
;
3037 static void *SwigwxToolBarTowxEvtHandler(void *ptr
) {
3040 src
= (wxToolBar
*) ptr
;
3041 dest
= (wxEvtHandler
*) src
;
3042 return (void *) dest
;
3045 static void *SwigwxToolBarTowxObject(void *ptr
) {
3048 src
= (wxToolBar
*) ptr
;
3049 dest
= (wxObject
*) src
;
3050 return (void *) dest
;
3053 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3054 static PyObject
*_wrap_new_wxToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3055 PyObject
* _resultobj
;
3056 wxToolBar
* _result
;
3059 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3060 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3061 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3062 char * _arg5
= (char *) wxToolBarNameStr
;
3063 PyObject
* _argo0
= 0;
3065 PyObject
* _obj2
= 0;
3067 PyObject
* _obj3
= 0;
3068 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3084 if (! wxPoint_helper(_obj2
, &_arg2
))
3090 if (! wxSize_helper(_obj3
, &_arg3
))
3094 wxPy_BEGIN_ALLOW_THREADS
;
3095 _result
= (wxToolBar
*)new_wxToolBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3097 wxPy_END_ALLOW_THREADS
;
3098 if (PyErr_Occurred()) return NULL
;
3100 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3101 _resultobj
= Py_BuildValue("s",_ptemp
);
3104 _resultobj
= Py_None
;
3109 #define new_wxPreToolBar() (new wxToolBar())
3110 static PyObject
*_wrap_new_wxPreToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3111 PyObject
* _resultobj
;
3112 wxToolBar
* _result
;
3113 char *_kwnames
[] = { NULL
};
3117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBar",_kwnames
))
3120 wxPy_BEGIN_ALLOW_THREADS
;
3121 _result
= (wxToolBar
*)new_wxPreToolBar();
3123 wxPy_END_ALLOW_THREADS
;
3124 if (PyErr_Occurred()) return NULL
;
3126 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3127 _resultobj
= Py_BuildValue("s",_ptemp
);
3130 _resultobj
= Py_None
;
3135 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3136 static PyObject
*_wrap_wxToolBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3137 PyObject
* _resultobj
;
3142 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3143 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3144 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3145 char * _arg6
= (char *) wxToolBarNameStr
;
3146 PyObject
* _argo0
= 0;
3147 PyObject
* _argo1
= 0;
3149 PyObject
* _obj3
= 0;
3151 PyObject
* _obj4
= 0;
3152 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3155 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3158 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3159 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3160 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3165 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3166 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3174 if (! wxPoint_helper(_obj3
, &_arg3
))
3180 if (! wxSize_helper(_obj4
, &_arg4
))
3184 wxPy_BEGIN_ALLOW_THREADS
;
3185 _result
= (bool )wxToolBar_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3187 wxPy_END_ALLOW_THREADS
;
3188 if (PyErr_Occurred()) return NULL
;
3189 } _resultobj
= Py_BuildValue("i",_result
);
3193 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3194 static PyObject
*_wrap_wxToolBar_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3195 PyObject
* _resultobj
;
3196 wxToolBarToolBase
* _result
;
3200 PyObject
* _argo0
= 0;
3201 char *_kwnames
[] = { "self","x","y", NULL
};
3204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBar_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3214 wxPy_BEGIN_ALLOW_THREADS
;
3215 _result
= (wxToolBarToolBase
*)wxToolBar_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3217 wxPy_END_ALLOW_THREADS
;
3218 if (PyErr_Occurred()) return NULL
;
3219 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3223 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr
) {
3224 wxToolBarSimple
*src
;
3225 wxToolBarBase
*dest
;
3226 src
= (wxToolBarSimple
*) ptr
;
3227 dest
= (wxToolBarBase
*) src
;
3228 return (void *) dest
;
3231 static void *SwigwxToolBarSimpleTowxControl(void *ptr
) {
3232 wxToolBarSimple
*src
;
3234 src
= (wxToolBarSimple
*) ptr
;
3235 dest
= (wxControl
*) src
;
3236 return (void *) dest
;
3239 static void *SwigwxToolBarSimpleTowxWindow(void *ptr
) {
3240 wxToolBarSimple
*src
;
3242 src
= (wxToolBarSimple
*) ptr
;
3243 dest
= (wxWindow
*) src
;
3244 return (void *) dest
;
3247 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr
) {
3248 wxToolBarSimple
*src
;
3250 src
= (wxToolBarSimple
*) ptr
;
3251 dest
= (wxEvtHandler
*) src
;
3252 return (void *) dest
;
3255 static void *SwigwxToolBarSimpleTowxObject(void *ptr
) {
3256 wxToolBarSimple
*src
;
3258 src
= (wxToolBarSimple
*) ptr
;
3259 dest
= (wxObject
*) src
;
3260 return (void *) dest
;
3263 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3264 static PyObject
*_wrap_new_wxToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3265 PyObject
* _resultobj
;
3266 wxToolBarSimple
* _result
;
3269 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3270 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3271 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3272 char * _arg5
= (char *) wxToolBarNameStr
;
3273 PyObject
* _argo0
= 0;
3275 PyObject
* _obj2
= 0;
3277 PyObject
* _obj3
= 0;
3278 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBarSimple",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3294 if (! wxPoint_helper(_obj2
, &_arg2
))
3300 if (! wxSize_helper(_obj3
, &_arg3
))
3304 wxPy_BEGIN_ALLOW_THREADS
;
3305 _result
= (wxToolBarSimple
*)new_wxToolBarSimple(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3307 wxPy_END_ALLOW_THREADS
;
3308 if (PyErr_Occurred()) return NULL
;
3310 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3311 _resultobj
= Py_BuildValue("s",_ptemp
);
3314 _resultobj
= Py_None
;
3319 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3320 static PyObject
*_wrap_new_wxPreToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3321 PyObject
* _resultobj
;
3322 wxToolBarSimple
* _result
;
3323 char *_kwnames
[] = { NULL
};
3327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBarSimple",_kwnames
))
3330 wxPy_BEGIN_ALLOW_THREADS
;
3331 _result
= (wxToolBarSimple
*)new_wxPreToolBarSimple();
3333 wxPy_END_ALLOW_THREADS
;
3334 if (PyErr_Occurred()) return NULL
;
3336 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3337 _resultobj
= Py_BuildValue("s",_ptemp
);
3340 _resultobj
= Py_None
;
3345 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3346 static PyObject
*_wrap_wxToolBarSimple_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3347 PyObject
* _resultobj
;
3349 wxToolBarSimple
* _arg0
;
3352 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3353 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3354 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3355 char * _arg6
= (char *) wxToolBarNameStr
;
3356 PyObject
* _argo0
= 0;
3357 PyObject
* _argo1
= 0;
3359 PyObject
* _obj3
= 0;
3361 PyObject
* _obj4
= 0;
3362 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3365 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBarSimple_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3368 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3369 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3375 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3376 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3384 if (! wxPoint_helper(_obj3
, &_arg3
))
3390 if (! wxSize_helper(_obj4
, &_arg4
))
3394 wxPy_BEGIN_ALLOW_THREADS
;
3395 _result
= (bool )wxToolBarSimple_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3397 wxPy_END_ALLOW_THREADS
;
3398 if (PyErr_Occurred()) return NULL
;
3399 } _resultobj
= Py_BuildValue("i",_result
);
3403 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3404 static PyObject
*_wrap_wxToolBarSimple_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3405 PyObject
* _resultobj
;
3406 wxToolBarToolBase
* _result
;
3407 wxToolBarSimple
* _arg0
;
3410 PyObject
* _argo0
= 0;
3411 char *_kwnames
[] = { "self","x","y", NULL
};
3414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3424 wxPy_BEGIN_ALLOW_THREADS
;
3425 _result
= (wxToolBarToolBase
*)wxToolBarSimple_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3427 wxPy_END_ALLOW_THREADS
;
3428 if (PyErr_Occurred()) return NULL
;
3429 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3433 static PyMethodDef stattoolcMethods
[] = {
3434 { "wxToolBarSimple_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarSimple_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3435 { "wxToolBarSimple_Create", (PyCFunction
) _wrap_wxToolBarSimple_Create
, METH_VARARGS
| METH_KEYWORDS
},
3436 { "new_wxPreToolBarSimple", (PyCFunction
) _wrap_new_wxPreToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3437 { "new_wxToolBarSimple", (PyCFunction
) _wrap_new_wxToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3438 { "wxToolBar_FindToolForPosition", (PyCFunction
) _wrap_wxToolBar_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3439 { "wxToolBar_Create", (PyCFunction
) _wrap_wxToolBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3440 { "new_wxPreToolBar", (PyCFunction
) _wrap_new_wxPreToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3441 { "new_wxToolBar", (PyCFunction
) _wrap_new_wxToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3442 { "wxToolBarBase_GetToolSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolSize
, METH_VARARGS
| METH_KEYWORDS
},
3443 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3444 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_SetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3445 { "wxToolBarBase_GetMaxCols", (PyCFunction
) _wrap_wxToolBarBase_GetMaxCols
, METH_VARARGS
| METH_KEYWORDS
},
3446 { "wxToolBarBase_GetMaxRows", (PyCFunction
) _wrap_wxToolBarBase_GetMaxRows
, METH_VARARGS
| METH_KEYWORDS
},
3447 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction
) _wrap_wxToolBarBase_SetMaxRowsCols
, METH_VARARGS
| METH_KEYWORDS
},
3448 { "wxToolBarBase_SetRows", (PyCFunction
) _wrap_wxToolBarBase_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3449 { "wxToolBarBase_GetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_GetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3450 { "wxToolBarBase_GetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_GetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3451 { "wxToolBarBase_GetMargins", (PyCFunction
) _wrap_wxToolBarBase_GetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3452 { "wxToolBarBase_GetToolMargins", (PyCFunction
) _wrap_wxToolBarBase_GetToolMargins
, METH_VARARGS
| METH_KEYWORDS
},
3453 { "wxToolBarBase_SetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_SetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3454 { "wxToolBarBase_SetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_SetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3455 { "wxToolBarBase_SetMargins", (PyCFunction
) _wrap_wxToolBarBase_SetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3456 { "wxToolBarBase_SetMarginsXY", (PyCFunction
) _wrap_wxToolBarBase_SetMarginsXY
, METH_VARARGS
| METH_KEYWORDS
},
3457 { "wxToolBarBase_GetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3458 { "wxToolBarBase_SetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3459 { "wxToolBarBase_GetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3460 { "wxToolBarBase_SetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3461 { "wxToolBarBase_GetToolEnabled", (PyCFunction
) _wrap_wxToolBarBase_GetToolEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3462 { "wxToolBarBase_GetToolState", (PyCFunction
) _wrap_wxToolBarBase_GetToolState
, METH_VARARGS
| METH_KEYWORDS
},
3463 { "wxToolBarBase_SetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_SetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3464 { "wxToolBarBase_GetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_GetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3465 { "wxToolBarBase_SetToggle", (PyCFunction
) _wrap_wxToolBarBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3466 { "wxToolBarBase_ToggleTool", (PyCFunction
) _wrap_wxToolBarBase_ToggleTool
, METH_VARARGS
| METH_KEYWORDS
},
3467 { "wxToolBarBase_EnableTool", (PyCFunction
) _wrap_wxToolBarBase_EnableTool
, METH_VARARGS
| METH_KEYWORDS
},
3468 { "wxToolBarBase_Realize", (PyCFunction
) _wrap_wxToolBarBase_Realize
, METH_VARARGS
| METH_KEYWORDS
},
3469 { "wxToolBarBase_ClearTools", (PyCFunction
) _wrap_wxToolBarBase_ClearTools
, METH_VARARGS
| METH_KEYWORDS
},
3470 { "wxToolBarBase_DeleteTool", (PyCFunction
) _wrap_wxToolBarBase_DeleteTool
, METH_VARARGS
| METH_KEYWORDS
},
3471 { "wxToolBarBase_DeleteToolByPos", (PyCFunction
) _wrap_wxToolBarBase_DeleteToolByPos
, METH_VARARGS
| METH_KEYWORDS
},
3472 { "wxToolBarBase_RemoveTool", (PyCFunction
) _wrap_wxToolBarBase_RemoveTool
, METH_VARARGS
| METH_KEYWORDS
},
3473 { "wxToolBarBase_InsertSeparator", (PyCFunction
) _wrap_wxToolBarBase_InsertSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "wxToolBarBase_AddSeparator", (PyCFunction
) _wrap_wxToolBarBase_AddSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "wxToolBarBase_InsertControl", (PyCFunction
) _wrap_wxToolBarBase_InsertControl
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "wxToolBarBase_AddControl", (PyCFunction
) _wrap_wxToolBarBase_AddControl
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "wxToolBarBase_InsertSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_InsertSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxToolBarBase_InsertTool", (PyCFunction
) _wrap_wxToolBarBase_InsertTool
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "wxToolBarBase_AddSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_AddSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "wxToolBarBase_AddTool", (PyCFunction
) _wrap_wxToolBarBase_AddTool
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "wxToolBarToolBase_SetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_SetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "wxToolBarToolBase_GetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_GetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "wxToolBarToolBase_Attach", (PyCFunction
) _wrap_wxToolBarToolBase_Attach
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "wxToolBarToolBase_Detach", (PyCFunction
) _wrap_wxToolBarToolBase_Detach
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxToolBarToolBase_SetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxToolBarToolBase_SetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "wxToolBarToolBase_SetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxToolBarToolBase_SetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "wxToolBarToolBase_SetToggle", (PyCFunction
) _wrap_wxToolBarToolBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxToolBarToolBase_Toggle", (PyCFunction
) _wrap_wxToolBarToolBase_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxToolBarToolBase_Enable", (PyCFunction
) _wrap_wxToolBarToolBase_Enable
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxToolBarToolBase_GetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxToolBarToolBase_GetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxToolBarToolBase_GetBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "wxToolBarToolBase_GetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxToolBarToolBase_GetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "wxToolBarToolBase_CanBeToggled", (PyCFunction
) _wrap_wxToolBarToolBase_CanBeToggled
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxToolBarToolBase_IsToggled", (PyCFunction
) _wrap_wxToolBarToolBase_IsToggled
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "wxToolBarToolBase_IsEnabled", (PyCFunction
) _wrap_wxToolBarToolBase_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "wxToolBarToolBase_GetStyle", (PyCFunction
) _wrap_wxToolBarToolBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "wxToolBarToolBase_IsSeparator", (PyCFunction
) _wrap_wxToolBarToolBase_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "wxToolBarToolBase_IsControl", (PyCFunction
) _wrap_wxToolBarToolBase_IsControl
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxToolBarToolBase_IsButton", (PyCFunction
) _wrap_wxToolBarToolBase_IsButton
, METH_VARARGS
| METH_KEYWORDS
},
3504 { "wxToolBarToolBase_GetToolBar", (PyCFunction
) _wrap_wxToolBarToolBase_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3505 { "wxToolBarToolBase_GetControl", (PyCFunction
) _wrap_wxToolBarToolBase_GetControl
, METH_VARARGS
| METH_KEYWORDS
},
3506 { "wxToolBarToolBase_GetId", (PyCFunction
) _wrap_wxToolBarToolBase_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3507 { "wxToolBarToolBase_Destroy", (PyCFunction
) _wrap_wxToolBarToolBase_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3508 { "wxStatusBar_SetMinHeight", (PyCFunction
) _wrap_wxStatusBar_SetMinHeight
, METH_VARARGS
| METH_KEYWORDS
},
3509 { "wxStatusBar_SetStatusWidths", (PyCFunction
) _wrap_wxStatusBar_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
3510 { "wxStatusBar_SetStatusText", (PyCFunction
) _wrap_wxStatusBar_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3511 { "wxStatusBar_SetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_SetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3512 { "wxStatusBar_GetBorderY", (PyCFunction
) _wrap_wxStatusBar_GetBorderY
, METH_VARARGS
| METH_KEYWORDS
},
3513 { "wxStatusBar_GetBorderX", (PyCFunction
) _wrap_wxStatusBar_GetBorderX
, METH_VARARGS
| METH_KEYWORDS
},
3514 { "wxStatusBar_GetStatusText", (PyCFunction
) _wrap_wxStatusBar_GetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3515 { "wxStatusBar_GetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_GetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3516 { "wxStatusBar_GetFieldRect", (PyCFunction
) _wrap_wxStatusBar_GetFieldRect
, METH_VARARGS
| METH_KEYWORDS
},
3517 { "wxStatusBar_Create", (PyCFunction
) _wrap_wxStatusBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3518 { "new_wxPreStatusBar", (PyCFunction
) _wrap_new_wxPreStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3519 { "new_wxStatusBar", (PyCFunction
) _wrap_new_wxStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3526 * This table is used by the pointer type-checker
3528 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3529 { "_signed_long","_long",0},
3530 { "_wxPrintQuality","_wxCoord",0},
3531 { "_wxPrintQuality","_int",0},
3532 { "_wxPrintQuality","_signed_int",0},
3533 { "_wxPrintQuality","_unsigned_int",0},
3534 { "_wxPrintQuality","_wxWindowID",0},
3535 { "_wxPrintQuality","_uint",0},
3536 { "_wxPrintQuality","_EBool",0},
3537 { "_wxPrintQuality","_size_t",0},
3538 { "_wxPrintQuality","_time_t",0},
3539 { "_byte","_unsigned_char",0},
3540 { "_long","_unsigned_long",0},
3541 { "_long","_signed_long",0},
3542 { "_size_t","_wxCoord",0},
3543 { "_size_t","_wxPrintQuality",0},
3544 { "_size_t","_time_t",0},
3545 { "_size_t","_unsigned_int",0},
3546 { "_size_t","_int",0},
3547 { "_size_t","_wxWindowID",0},
3548 { "_size_t","_uint",0},
3549 { "_uint","_wxCoord",0},
3550 { "_uint","_wxPrintQuality",0},
3551 { "_uint","_time_t",0},
3552 { "_uint","_size_t",0},
3553 { "_uint","_unsigned_int",0},
3554 { "_uint","_int",0},
3555 { "_uint","_wxWindowID",0},
3556 { "_wxChar","_char",0},
3557 { "_char","_wxChar",0},
3558 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3559 { "_EBool","_wxCoord",0},
3560 { "_EBool","_wxPrintQuality",0},
3561 { "_EBool","_signed_int",0},
3562 { "_EBool","_int",0},
3563 { "_EBool","_wxWindowID",0},
3564 { "_unsigned_long","_long",0},
3565 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3566 { "_signed_int","_wxCoord",0},
3567 { "_signed_int","_wxPrintQuality",0},
3568 { "_signed_int","_EBool",0},
3569 { "_signed_int","_wxWindowID",0},
3570 { "_signed_int","_int",0},
3571 { "_WXTYPE","_short",0},
3572 { "_WXTYPE","_signed_short",0},
3573 { "_WXTYPE","_unsigned_short",0},
3574 { "_unsigned_short","_WXTYPE",0},
3575 { "_unsigned_short","_short",0},
3576 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3577 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3578 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3579 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3580 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3581 { "_signed_short","_WXTYPE",0},
3582 { "_signed_short","_short",0},
3583 { "_unsigned_char","_byte",0},
3584 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3585 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3586 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3587 { "_unsigned_int","_wxCoord",0},
3588 { "_unsigned_int","_wxPrintQuality",0},
3589 { "_unsigned_int","_time_t",0},
3590 { "_unsigned_int","_size_t",0},
3591 { "_unsigned_int","_uint",0},
3592 { "_unsigned_int","_wxWindowID",0},
3593 { "_unsigned_int","_int",0},
3594 { "_short","_WXTYPE",0},
3595 { "_short","_unsigned_short",0},
3596 { "_short","_signed_short",0},
3597 { "_wxWindowID","_wxCoord",0},
3598 { "_wxWindowID","_wxPrintQuality",0},
3599 { "_wxWindowID","_time_t",0},
3600 { "_wxWindowID","_size_t",0},
3601 { "_wxWindowID","_EBool",0},
3602 { "_wxWindowID","_uint",0},
3603 { "_wxWindowID","_int",0},
3604 { "_wxWindowID","_signed_int",0},
3605 { "_wxWindowID","_unsigned_int",0},
3606 { "_int","_wxCoord",0},
3607 { "_int","_wxPrintQuality",0},
3608 { "_int","_time_t",0},
3609 { "_int","_size_t",0},
3610 { "_int","_EBool",0},
3611 { "_int","_uint",0},
3612 { "_int","_wxWindowID",0},
3613 { "_int","_unsigned_int",0},
3614 { "_int","_signed_int",0},
3615 { "_time_t","_wxCoord",0},
3616 { "_time_t","_wxPrintQuality",0},
3617 { "_time_t","_unsigned_int",0},
3618 { "_time_t","_int",0},
3619 { "_time_t","_wxWindowID",0},
3620 { "_time_t","_uint",0},
3621 { "_time_t","_size_t",0},
3622 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3623 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3624 { "_wxCoord","_int",0},
3625 { "_wxCoord","_signed_int",0},
3626 { "_wxCoord","_unsigned_int",0},
3627 { "_wxCoord","_wxWindowID",0},
3628 { "_wxCoord","_uint",0},
3629 { "_wxCoord","_EBool",0},
3630 { "_wxCoord","_size_t",0},
3631 { "_wxCoord","_time_t",0},
3632 { "_wxCoord","_wxPrintQuality",0},
3633 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3634 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3635 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3636 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3637 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3638 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3639 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3640 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3643 static PyObject
*SWIG_globals
;
3647 SWIGEXPORT(void) initstattoolc() {
3649 SWIG_globals
= SWIG_newvarlink();
3650 m
= Py_InitModule("stattoolc", stattoolcMethods
);
3651 d
= PyModule_GetDict(m
);
3652 PyDict_SetItemString(d
,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON
));
3653 PyDict_SetItemString(d
,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR
));
3654 PyDict_SetItemString(d
,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL
));
3657 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3658 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);