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 is required for parameter";
95 static wxString
wxPyEmptyStr("");
99 static void *SwigwxStatusBarTowxWindow(void *ptr
) {
102 src
= (wxStatusBar
*) ptr
;
103 dest
= (wxWindow
*) src
;
104 return (void *) dest
;
107 static void *SwigwxStatusBarTowxEvtHandler(void *ptr
) {
110 src
= (wxStatusBar
*) ptr
;
111 dest
= (wxEvtHandler
*) src
;
112 return (void *) dest
;
115 static void *SwigwxStatusBarTowxObject(void *ptr
) {
118 src
= (wxStatusBar
*) ptr
;
119 dest
= (wxObject
*) src
;
120 return (void *) dest
;
123 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
124 static PyObject
*_wrap_new_wxStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
125 PyObject
* _resultobj
;
126 wxStatusBar
* _result
;
129 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
130 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
131 long _arg4
= (long ) wxST_SIZEGRIP
;
132 char * _arg5
= (char *) "statusBar";
133 PyObject
* _argo0
= 0;
135 PyObject
* _obj2
= 0;
137 PyObject
* _obj3
= 0;
138 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
142 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxStatusBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
145 if (_argo0
== Py_None
) { _arg0
= NULL
; }
146 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
154 if (! wxPoint_helper(_obj2
, &_arg2
))
160 if (! wxSize_helper(_obj3
, &_arg3
))
164 wxPy_BEGIN_ALLOW_THREADS
;
165 _result
= (wxStatusBar
*)new_wxStatusBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
167 wxPy_END_ALLOW_THREADS
;
168 if (PyErr_Occurred()) return NULL
;
170 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
171 _resultobj
= Py_BuildValue("s",_ptemp
);
174 _resultobj
= Py_None
;
179 static wxRect
* wxStatusBar_GetFieldRect(wxStatusBar
*self
,long item
) {
180 wxRect
* rect
= new wxRect
;
181 self
->GetFieldRect(item
, *rect
);
184 static PyObject
*_wrap_wxStatusBar_GetFieldRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
185 PyObject
* _resultobj
;
189 PyObject
* _argo0
= 0;
190 char *_kwnames
[] = { "self","item", NULL
};
194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxStatusBar_GetFieldRect",_kwnames
,&_argo0
,&_arg1
))
197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
204 wxPy_BEGIN_ALLOW_THREADS
;
205 _result
= (wxRect
*)wxStatusBar_GetFieldRect(_arg0
,_arg1
);
207 wxPy_END_ALLOW_THREADS
;
208 if (PyErr_Occurred()) return NULL
;
210 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRect_p");
211 _resultobj
= Py_BuildValue("s",_ptemp
);
214 _resultobj
= Py_None
;
219 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
220 static PyObject
*_wrap_wxStatusBar_GetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
221 PyObject
* _resultobj
;
224 PyObject
* _argo0
= 0;
225 char *_kwnames
[] = { "self", NULL
};
228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetFieldsCount",_kwnames
,&_argo0
))
231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
238 wxPy_BEGIN_ALLOW_THREADS
;
239 _result
= (int )wxStatusBar_GetFieldsCount(_arg0
);
241 wxPy_END_ALLOW_THREADS
;
242 if (PyErr_Occurred()) return NULL
;
243 } _resultobj
= Py_BuildValue("i",_result
);
247 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
248 static PyObject
*_wrap_wxStatusBar_GetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
249 PyObject
* _resultobj
;
252 int _arg1
= (int ) 0;
253 PyObject
* _argo0
= 0;
254 char *_kwnames
[] = { "self","ir", NULL
};
257 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_GetStatusText",_kwnames
,&_argo0
,&_arg1
))
260 if (_argo0
== Py_None
) { _arg0
= NULL
; }
261 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
262 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
267 wxPy_BEGIN_ALLOW_THREADS
;
268 _result
= new wxString (wxStatusBar_GetStatusText(_arg0
,_arg1
));
270 wxPy_END_ALLOW_THREADS
;
271 if (PyErr_Occurred()) return NULL
;
273 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
281 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
282 static PyObject
*_wrap_wxStatusBar_GetBorderX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
283 PyObject
* _resultobj
;
286 PyObject
* _argo0
= 0;
287 char *_kwnames
[] = { "self", NULL
};
290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderX",_kwnames
,&_argo0
))
293 if (_argo0
== Py_None
) { _arg0
= NULL
; }
294 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
295 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
300 wxPy_BEGIN_ALLOW_THREADS
;
301 _result
= (int )wxStatusBar_GetBorderX(_arg0
);
303 wxPy_END_ALLOW_THREADS
;
304 if (PyErr_Occurred()) return NULL
;
305 } _resultobj
= Py_BuildValue("i",_result
);
309 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
310 static PyObject
*_wrap_wxStatusBar_GetBorderY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
311 PyObject
* _resultobj
;
314 PyObject
* _argo0
= 0;
315 char *_kwnames
[] = { "self", NULL
};
318 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderY",_kwnames
,&_argo0
))
321 if (_argo0
== Py_None
) { _arg0
= NULL
; }
322 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
323 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
328 wxPy_BEGIN_ALLOW_THREADS
;
329 _result
= (int )wxStatusBar_GetBorderY(_arg0
);
331 wxPy_END_ALLOW_THREADS
;
332 if (PyErr_Occurred()) return NULL
;
333 } _resultobj
= Py_BuildValue("i",_result
);
337 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
338 static PyObject
*_wrap_wxStatusBar_SetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
339 PyObject
* _resultobj
;
341 int _arg1
= (int ) 1;
342 PyObject
* _argo0
= 0;
343 char *_kwnames
[] = { "self","number", NULL
};
346 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_SetFieldsCount",_kwnames
,&_argo0
,&_arg1
))
349 if (_argo0
== Py_None
) { _arg0
= NULL
; }
350 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
351 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
356 wxPy_BEGIN_ALLOW_THREADS
;
357 wxStatusBar_SetFieldsCount(_arg0
,_arg1
);
359 wxPy_END_ALLOW_THREADS
;
360 if (PyErr_Occurred()) return NULL
;
361 } Py_INCREF(Py_None
);
362 _resultobj
= Py_None
;
366 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
367 static PyObject
*_wrap_wxStatusBar_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
368 PyObject
* _resultobj
;
371 int _arg2
= (int ) 0;
372 PyObject
* _argo0
= 0;
373 PyObject
* _obj1
= 0;
374 char *_kwnames
[] = { "self","text","i", NULL
};
377 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
380 if (_argo0
== Py_None
) { _arg0
= NULL
; }
381 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
382 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
387 #if PYTHON_API_VERSION >= 1009
388 char* tmpPtr
; int tmpSize
;
389 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
390 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
393 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
395 _arg1
= new wxString(tmpPtr
, tmpSize
);
397 if (!PyString_Check(_obj1
)) {
398 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
401 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
405 wxPy_BEGIN_ALLOW_THREADS
;
406 wxStatusBar_SetStatusText(_arg0
,*_arg1
,_arg2
);
408 wxPy_END_ALLOW_THREADS
;
409 if (PyErr_Occurred()) return NULL
;
410 } Py_INCREF(Py_None
);
411 _resultobj
= Py_None
;
419 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
420 static PyObject
*_wrap_wxStatusBar_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
421 PyObject
* _resultobj
;
425 PyObject
* _argo0
= 0;
426 PyObject
* _obj2
= 0;
427 char *_kwnames
[] = { "self","choices", NULL
};
430 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxStatusBar_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
433 if (_argo0
== Py_None
) { _arg0
= NULL
; }
434 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
435 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
441 _arg2
= int_LIST_helper(_obj2
);
448 _arg1
= PyList_Size(_obj2
);
455 wxPy_BEGIN_ALLOW_THREADS
;
456 wxStatusBar_SetStatusWidths(_arg0
,_arg1
,_arg2
);
458 wxPy_END_ALLOW_THREADS
;
459 if (PyErr_Occurred()) return NULL
;
460 } Py_INCREF(Py_None
);
461 _resultobj
= Py_None
;
468 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
469 static PyObject
*_wrap_wxStatusBar_SetMinHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
470 PyObject
* _resultobj
;
473 PyObject
* _argo0
= 0;
474 char *_kwnames
[] = { "self","height", NULL
};
477 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxStatusBar_SetMinHeight",_kwnames
,&_argo0
,&_arg1
))
480 if (_argo0
== Py_None
) { _arg0
= NULL
; }
481 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
482 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
487 wxPy_BEGIN_ALLOW_THREADS
;
488 wxStatusBar_SetMinHeight(_arg0
,_arg1
);
490 wxPy_END_ALLOW_THREADS
;
491 if (PyErr_Occurred()) return NULL
;
492 } Py_INCREF(Py_None
);
493 _resultobj
= Py_None
;
497 static void *SwigwxToolBarToolBaseTowxObject(void *ptr
) {
498 wxToolBarToolBase
*src
;
500 src
= (wxToolBarToolBase
*) ptr
;
501 dest
= (wxObject
*) src
;
502 return (void *) dest
;
505 static void wxToolBarToolBase_Destroy(wxToolBarToolBase
*self
) { delete self
; }
506 static PyObject
*_wrap_wxToolBarToolBase_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
507 PyObject
* _resultobj
;
508 wxToolBarToolBase
* _arg0
;
509 PyObject
* _argo0
= 0;
510 char *_kwnames
[] = { "self", NULL
};
513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Destroy",_kwnames
,&_argo0
))
516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
523 wxPy_BEGIN_ALLOW_THREADS
;
524 wxToolBarToolBase_Destroy(_arg0
);
526 wxPy_END_ALLOW_THREADS
;
527 if (PyErr_Occurred()) return NULL
;
528 } Py_INCREF(Py_None
);
529 _resultobj
= Py_None
;
533 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
534 static PyObject
*_wrap_wxToolBarToolBase_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
535 PyObject
* _resultobj
;
537 wxToolBarToolBase
* _arg0
;
538 PyObject
* _argo0
= 0;
539 char *_kwnames
[] = { "self", NULL
};
542 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetId",_kwnames
,&_argo0
))
545 if (_argo0
== Py_None
) { _arg0
= NULL
; }
546 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
552 wxPy_BEGIN_ALLOW_THREADS
;
553 _result
= (int )wxToolBarToolBase_GetId(_arg0
);
555 wxPy_END_ALLOW_THREADS
;
556 if (PyErr_Occurred()) return NULL
;
557 } _resultobj
= Py_BuildValue("i",_result
);
561 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
562 static PyObject
*_wrap_wxToolBarToolBase_GetControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
563 PyObject
* _resultobj
;
565 wxToolBarToolBase
* _arg0
;
566 PyObject
* _argo0
= 0;
567 char *_kwnames
[] = { "self", NULL
};
570 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetControl",_kwnames
,&_argo0
))
573 if (_argo0
== Py_None
) { _arg0
= NULL
; }
574 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
580 wxPy_BEGIN_ALLOW_THREADS
;
581 _result
= (wxControl
*)wxToolBarToolBase_GetControl(_arg0
);
583 wxPy_END_ALLOW_THREADS
;
584 if (PyErr_Occurred()) return NULL
;
585 }{ _resultobj
= wxPyMake_wxObject(_result
); }
589 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
590 static PyObject
*_wrap_wxToolBarToolBase_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
591 PyObject
* _resultobj
;
592 wxToolBarBase
* _result
;
593 wxToolBarToolBase
* _arg0
;
594 PyObject
* _argo0
= 0;
595 char *_kwnames
[] = { "self", NULL
};
598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetToolBar",_kwnames
,&_argo0
))
601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
608 wxPy_BEGIN_ALLOW_THREADS
;
609 _result
= (wxToolBarBase
*)wxToolBarToolBase_GetToolBar(_arg0
);
611 wxPy_END_ALLOW_THREADS
;
612 if (PyErr_Occurred()) return NULL
;
613 }{ _resultobj
= wxPyMake_wxObject(_result
); }
617 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
618 static PyObject
*_wrap_wxToolBarToolBase_IsButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
619 PyObject
* _resultobj
;
621 wxToolBarToolBase
* _arg0
;
622 PyObject
* _argo0
= 0;
623 char *_kwnames
[] = { "self", NULL
};
626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsButton",_kwnames
,&_argo0
))
629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
636 wxPy_BEGIN_ALLOW_THREADS
;
637 _result
= (int )wxToolBarToolBase_IsButton(_arg0
);
639 wxPy_END_ALLOW_THREADS
;
640 if (PyErr_Occurred()) return NULL
;
641 } _resultobj
= Py_BuildValue("i",_result
);
645 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
646 static PyObject
*_wrap_wxToolBarToolBase_IsControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
647 PyObject
* _resultobj
;
649 wxToolBarToolBase
* _arg0
;
650 PyObject
* _argo0
= 0;
651 char *_kwnames
[] = { "self", NULL
};
654 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsControl",_kwnames
,&_argo0
))
657 if (_argo0
== Py_None
) { _arg0
= NULL
; }
658 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
659 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
664 wxPy_BEGIN_ALLOW_THREADS
;
665 _result
= (int )wxToolBarToolBase_IsControl(_arg0
);
667 wxPy_END_ALLOW_THREADS
;
668 if (PyErr_Occurred()) return NULL
;
669 } _resultobj
= Py_BuildValue("i",_result
);
673 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
674 static PyObject
*_wrap_wxToolBarToolBase_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
675 PyObject
* _resultobj
;
677 wxToolBarToolBase
* _arg0
;
678 PyObject
* _argo0
= 0;
679 char *_kwnames
[] = { "self", NULL
};
682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsSeparator",_kwnames
,&_argo0
))
685 if (_argo0
== Py_None
) { _arg0
= NULL
; }
686 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
687 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
692 wxPy_BEGIN_ALLOW_THREADS
;
693 _result
= (int )wxToolBarToolBase_IsSeparator(_arg0
);
695 wxPy_END_ALLOW_THREADS
;
696 if (PyErr_Occurred()) return NULL
;
697 } _resultobj
= Py_BuildValue("i",_result
);
701 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
702 static PyObject
*_wrap_wxToolBarToolBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
703 PyObject
* _resultobj
;
705 wxToolBarToolBase
* _arg0
;
706 PyObject
* _argo0
= 0;
707 char *_kwnames
[] = { "self", NULL
};
710 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetStyle",_kwnames
,&_argo0
))
713 if (_argo0
== Py_None
) { _arg0
= NULL
; }
714 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
715 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
720 wxPy_BEGIN_ALLOW_THREADS
;
721 _result
= (int )wxToolBarToolBase_GetStyle(_arg0
);
723 wxPy_END_ALLOW_THREADS
;
724 if (PyErr_Occurred()) return NULL
;
725 } _resultobj
= Py_BuildValue("i",_result
);
729 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
730 static PyObject
*_wrap_wxToolBarToolBase_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
731 PyObject
* _resultobj
;
733 wxToolBarToolBase
* _arg0
;
734 PyObject
* _argo0
= 0;
735 char *_kwnames
[] = { "self", NULL
};
738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsEnabled",_kwnames
,&_argo0
))
741 if (_argo0
== Py_None
) { _arg0
= NULL
; }
742 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
743 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
748 wxPy_BEGIN_ALLOW_THREADS
;
749 _result
= (bool )wxToolBarToolBase_IsEnabled(_arg0
);
751 wxPy_END_ALLOW_THREADS
;
752 if (PyErr_Occurred()) return NULL
;
753 } _resultobj
= Py_BuildValue("i",_result
);
757 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
758 static PyObject
*_wrap_wxToolBarToolBase_IsToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
759 PyObject
* _resultobj
;
761 wxToolBarToolBase
* _arg0
;
762 PyObject
* _argo0
= 0;
763 char *_kwnames
[] = { "self", NULL
};
766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsToggled",_kwnames
,&_argo0
))
769 if (_argo0
== Py_None
) { _arg0
= NULL
; }
770 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
771 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
776 wxPy_BEGIN_ALLOW_THREADS
;
777 _result
= (bool )wxToolBarToolBase_IsToggled(_arg0
);
779 wxPy_END_ALLOW_THREADS
;
780 if (PyErr_Occurred()) return NULL
;
781 } _resultobj
= Py_BuildValue("i",_result
);
785 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
786 static PyObject
*_wrap_wxToolBarToolBase_CanBeToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
787 PyObject
* _resultobj
;
789 wxToolBarToolBase
* _arg0
;
790 PyObject
* _argo0
= 0;
791 char *_kwnames
[] = { "self", NULL
};
794 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_CanBeToggled",_kwnames
,&_argo0
))
797 if (_argo0
== Py_None
) { _arg0
= NULL
; }
798 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
799 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
804 wxPy_BEGIN_ALLOW_THREADS
;
805 _result
= (bool )wxToolBarToolBase_CanBeToggled(_arg0
);
807 wxPy_END_ALLOW_THREADS
;
808 if (PyErr_Occurred()) return NULL
;
809 } _resultobj
= Py_BuildValue("i",_result
);
813 #define wxToolBarToolBase_GetBitmap1(_swigobj) (_swigobj->GetBitmap1())
814 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
815 PyObject
* _resultobj
;
817 wxToolBarToolBase
* _arg0
;
818 PyObject
* _argo0
= 0;
819 char *_kwnames
[] = { "self", NULL
};
823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap1",_kwnames
,&_argo0
))
826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap1. Expected _wxToolBarToolBase_p.");
833 wxPy_BEGIN_ALLOW_THREADS
;
834 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap1(_arg0
);
835 _result
= (wxBitmap
*) &_result_ref
;
837 wxPy_END_ALLOW_THREADS
;
838 if (PyErr_Occurred()) return NULL
;
840 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
841 _resultobj
= Py_BuildValue("s",_ptemp
);
844 _resultobj
= Py_None
;
849 #define wxToolBarToolBase_GetBitmap2(_swigobj) (_swigobj->GetBitmap2())
850 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
851 PyObject
* _resultobj
;
853 wxToolBarToolBase
* _arg0
;
854 PyObject
* _argo0
= 0;
855 char *_kwnames
[] = { "self", NULL
};
859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap2",_kwnames
,&_argo0
))
862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap2. Expected _wxToolBarToolBase_p.");
869 wxPy_BEGIN_ALLOW_THREADS
;
870 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap2(_arg0
);
871 _result
= (wxBitmap
*) &_result_ref
;
873 wxPy_END_ALLOW_THREADS
;
874 if (PyErr_Occurred()) return NULL
;
876 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
877 _resultobj
= Py_BuildValue("s",_ptemp
);
880 _resultobj
= Py_None
;
885 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
886 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
887 PyObject
* _resultobj
;
889 wxToolBarToolBase
* _arg0
;
890 PyObject
* _argo0
= 0;
891 char *_kwnames
[] = { "self", NULL
};
895 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap",_kwnames
,&_argo0
))
898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
905 wxPy_BEGIN_ALLOW_THREADS
;
906 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetBitmap(_arg0
);
907 _result
= (wxBitmap
*) &_result_ref
;
909 wxPy_END_ALLOW_THREADS
;
910 if (PyErr_Occurred()) return NULL
;
912 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
913 _resultobj
= Py_BuildValue("s",_ptemp
);
916 _resultobj
= Py_None
;
921 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
922 static PyObject
*_wrap_wxToolBarToolBase_GetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
923 PyObject
* _resultobj
;
925 wxToolBarToolBase
* _arg0
;
926 PyObject
* _argo0
= 0;
927 char *_kwnames
[] = { "self", NULL
};
930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetShortHelp",_kwnames
,&_argo0
))
933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
940 wxPy_BEGIN_ALLOW_THREADS
;
941 _result
= new wxString (wxToolBarToolBase_GetShortHelp(_arg0
));
943 wxPy_END_ALLOW_THREADS
;
944 if (PyErr_Occurred()) return NULL
;
946 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
954 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
955 static PyObject
*_wrap_wxToolBarToolBase_GetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
956 PyObject
* _resultobj
;
958 wxToolBarToolBase
* _arg0
;
959 PyObject
* _argo0
= 0;
960 char *_kwnames
[] = { "self", NULL
};
963 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLongHelp",_kwnames
,&_argo0
))
966 if (_argo0
== Py_None
) { _arg0
= NULL
; }
967 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
968 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
973 wxPy_BEGIN_ALLOW_THREADS
;
974 _result
= new wxString (wxToolBarToolBase_GetLongHelp(_arg0
));
976 wxPy_END_ALLOW_THREADS
;
977 if (PyErr_Occurred()) return NULL
;
979 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
987 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
988 static PyObject
*_wrap_wxToolBarToolBase_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
989 PyObject
* _resultobj
;
991 wxToolBarToolBase
* _arg0
;
993 PyObject
* _argo0
= 0;
995 char *_kwnames
[] = { "self","enable", NULL
};
998 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Enable",_kwnames
,&_argo0
,&tempbool1
))
1001 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1002 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1003 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1007 _arg1
= (bool ) tempbool1
;
1009 wxPy_BEGIN_ALLOW_THREADS
;
1010 _result
= (bool )wxToolBarToolBase_Enable(_arg0
,_arg1
);
1012 wxPy_END_ALLOW_THREADS
;
1013 if (PyErr_Occurred()) return NULL
;
1014 } _resultobj
= Py_BuildValue("i",_result
);
1018 #define wxToolBarToolBase_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
1019 static PyObject
*_wrap_wxToolBarToolBase_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1020 PyObject
* _resultobj
;
1022 wxToolBarToolBase
* _arg0
;
1024 PyObject
* _argo0
= 0;
1026 char *_kwnames
[] = { "self","toggle", NULL
};
1029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Toggle",_kwnames
,&_argo0
,&tempbool1
))
1032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1038 _arg1
= (bool ) tempbool1
;
1040 wxPy_BEGIN_ALLOW_THREADS
;
1041 _result
= (bool )wxToolBarToolBase_Toggle(_arg0
,_arg1
);
1043 wxPy_END_ALLOW_THREADS
;
1044 if (PyErr_Occurred()) return NULL
;
1045 } _resultobj
= Py_BuildValue("i",_result
);
1049 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1050 static PyObject
*_wrap_wxToolBarToolBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1051 PyObject
* _resultobj
;
1053 wxToolBarToolBase
* _arg0
;
1055 PyObject
* _argo0
= 0;
1057 char *_kwnames
[] = { "self","toggle", NULL
};
1060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_SetToggle",_kwnames
,&_argo0
,&tempbool1
))
1063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1069 _arg1
= (bool ) tempbool1
;
1071 wxPy_BEGIN_ALLOW_THREADS
;
1072 _result
= (bool )wxToolBarToolBase_SetToggle(_arg0
,_arg1
);
1074 wxPy_END_ALLOW_THREADS
;
1075 if (PyErr_Occurred()) return NULL
;
1076 } _resultobj
= Py_BuildValue("i",_result
);
1080 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1081 static PyObject
*_wrap_wxToolBarToolBase_SetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1082 PyObject
* _resultobj
;
1084 wxToolBarToolBase
* _arg0
;
1086 PyObject
* _argo0
= 0;
1087 PyObject
* _obj1
= 0;
1088 char *_kwnames
[] = { "self","help", NULL
};
1091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetShortHelp",_kwnames
,&_argo0
,&_obj1
))
1094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1101 #if PYTHON_API_VERSION >= 1009
1102 char* tmpPtr
; int tmpSize
;
1103 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1104 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1107 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1109 _arg1
= new wxString(tmpPtr
, tmpSize
);
1111 if (!PyString_Check(_obj1
)) {
1112 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1115 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1119 wxPy_BEGIN_ALLOW_THREADS
;
1120 _result
= (bool )wxToolBarToolBase_SetShortHelp(_arg0
,*_arg1
);
1122 wxPy_END_ALLOW_THREADS
;
1123 if (PyErr_Occurred()) return NULL
;
1124 } _resultobj
= Py_BuildValue("i",_result
);
1132 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1133 static PyObject
*_wrap_wxToolBarToolBase_SetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1134 PyObject
* _resultobj
;
1136 wxToolBarToolBase
* _arg0
;
1138 PyObject
* _argo0
= 0;
1139 PyObject
* _obj1
= 0;
1140 char *_kwnames
[] = { "self","help", NULL
};
1143 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLongHelp",_kwnames
,&_argo0
,&_obj1
))
1146 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1147 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1148 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1153 #if PYTHON_API_VERSION >= 1009
1154 char* tmpPtr
; int tmpSize
;
1155 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1156 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1159 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1161 _arg1
= new wxString(tmpPtr
, tmpSize
);
1163 if (!PyString_Check(_obj1
)) {
1164 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1167 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1171 wxPy_BEGIN_ALLOW_THREADS
;
1172 _result
= (bool )wxToolBarToolBase_SetLongHelp(_arg0
,*_arg1
);
1174 wxPy_END_ALLOW_THREADS
;
1175 if (PyErr_Occurred()) return NULL
;
1176 } _resultobj
= Py_BuildValue("i",_result
);
1184 #define wxToolBarToolBase_SetBitmap1(_swigobj,_swigarg0) (_swigobj->SetBitmap1(_swigarg0))
1185 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1186 PyObject
* _resultobj
;
1187 wxToolBarToolBase
* _arg0
;
1189 PyObject
* _argo0
= 0;
1190 PyObject
* _argo1
= 0;
1191 char *_kwnames
[] = { "self","bmp", NULL
};
1194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap1",_kwnames
,&_argo0
,&_argo1
))
1197 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1198 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1199 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap1. Expected _wxToolBarToolBase_p.");
1204 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1205 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap1. Expected _wxBitmap_p.");
1211 wxPy_BEGIN_ALLOW_THREADS
;
1212 wxToolBarToolBase_SetBitmap1(_arg0
,*_arg1
);
1214 wxPy_END_ALLOW_THREADS
;
1215 if (PyErr_Occurred()) return NULL
;
1216 } Py_INCREF(Py_None
);
1217 _resultobj
= Py_None
;
1221 #define wxToolBarToolBase_SetBitmap2(_swigobj,_swigarg0) (_swigobj->SetBitmap2(_swigarg0))
1222 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1223 PyObject
* _resultobj
;
1224 wxToolBarToolBase
* _arg0
;
1226 PyObject
* _argo0
= 0;
1227 PyObject
* _argo1
= 0;
1228 char *_kwnames
[] = { "self","bmp", NULL
};
1231 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap2",_kwnames
,&_argo0
,&_argo1
))
1234 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1235 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap2. Expected _wxToolBarToolBase_p.");
1241 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1242 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1243 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap2. Expected _wxBitmap_p.");
1248 wxPy_BEGIN_ALLOW_THREADS
;
1249 wxToolBarToolBase_SetBitmap2(_arg0
,*_arg1
);
1251 wxPy_END_ALLOW_THREADS
;
1252 if (PyErr_Occurred()) return NULL
;
1253 } Py_INCREF(Py_None
);
1254 _resultobj
= Py_None
;
1258 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1259 static PyObject
*_wrap_wxToolBarToolBase_Detach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1260 PyObject
* _resultobj
;
1261 wxToolBarToolBase
* _arg0
;
1262 PyObject
* _argo0
= 0;
1263 char *_kwnames
[] = { "self", NULL
};
1266 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Detach",_kwnames
,&_argo0
))
1269 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1270 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1271 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1276 wxPy_BEGIN_ALLOW_THREADS
;
1277 wxToolBarToolBase_Detach(_arg0
);
1279 wxPy_END_ALLOW_THREADS
;
1280 if (PyErr_Occurred()) return NULL
;
1281 } Py_INCREF(Py_None
);
1282 _resultobj
= Py_None
;
1286 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1287 static PyObject
*_wrap_wxToolBarToolBase_Attach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1288 PyObject
* _resultobj
;
1289 wxToolBarToolBase
* _arg0
;
1290 wxToolBarBase
* _arg1
;
1291 PyObject
* _argo0
= 0;
1292 PyObject
* _argo1
= 0;
1293 char *_kwnames
[] = { "self","tbar", NULL
};
1296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_Attach",_kwnames
,&_argo0
,&_argo1
))
1299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1306 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1307 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBarBase_p")) {
1308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1313 wxPy_BEGIN_ALLOW_THREADS
;
1314 wxToolBarToolBase_Attach(_arg0
,_arg1
);
1316 wxPy_END_ALLOW_THREADS
;
1317 if (PyErr_Occurred()) return NULL
;
1318 } Py_INCREF(Py_None
);
1319 _resultobj
= Py_None
;
1323 static PyObject
* wxToolBarToolBase_GetClientData(wxToolBarToolBase
*self
) {
1324 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetClientData();
1326 Py_INCREF(udata
->m_obj
);
1327 return udata
->m_obj
;
1333 static PyObject
*_wrap_wxToolBarToolBase_GetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1334 PyObject
* _resultobj
;
1336 wxToolBarToolBase
* _arg0
;
1337 PyObject
* _argo0
= 0;
1338 char *_kwnames
[] = { "self", NULL
};
1341 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetClientData",_kwnames
,&_argo0
))
1344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1351 wxPy_BEGIN_ALLOW_THREADS
;
1352 _result
= (PyObject
*)wxToolBarToolBase_GetClientData(_arg0
);
1354 wxPy_END_ALLOW_THREADS
;
1355 if (PyErr_Occurred()) return NULL
;
1357 _resultobj
= _result
;
1362 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase
*self
,PyObject
* clientData
) {
1363 self
->SetClientData(new wxPyUserData(clientData
));
1365 static PyObject
*_wrap_wxToolBarToolBase_SetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1366 PyObject
* _resultobj
;
1367 wxToolBarToolBase
* _arg0
;
1369 PyObject
* _argo0
= 0;
1370 PyObject
* _obj1
= 0;
1371 char *_kwnames
[] = { "self","clientData", NULL
};
1374 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetClientData",_kwnames
,&_argo0
,&_obj1
))
1377 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1378 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1387 wxPy_BEGIN_ALLOW_THREADS
;
1388 wxToolBarToolBase_SetClientData(_arg0
,_arg1
);
1390 wxPy_END_ALLOW_THREADS
;
1391 if (PyErr_Occurred()) return NULL
;
1392 } Py_INCREF(Py_None
);
1393 _resultobj
= Py_None
;
1397 static void *SwigwxToolBarBaseTowxControl(void *ptr
) {
1400 src
= (wxToolBarBase
*) ptr
;
1401 dest
= (wxControl
*) src
;
1402 return (void *) dest
;
1405 static void *SwigwxToolBarBaseTowxWindow(void *ptr
) {
1408 src
= (wxToolBarBase
*) ptr
;
1409 dest
= (wxWindow
*) src
;
1410 return (void *) dest
;
1413 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr
) {
1416 src
= (wxToolBarBase
*) ptr
;
1417 dest
= (wxEvtHandler
*) src
;
1418 return (void *) dest
;
1421 static void *SwigwxToolBarBaseTowxObject(void *ptr
) {
1424 src
= (wxToolBarBase
*) ptr
;
1425 dest
= (wxObject
*) src
;
1426 return (void *) dest
;
1429 static wxToolBarToolBase
* wxToolBarBase_AddTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxBitmap
& pushedBitmap
,int isToggle
,PyObject
* clientData
,const wxString
& shortHelpString
,const wxString
& longHelpString
) {
1430 wxPyUserData
* udata
= NULL
;
1432 udata
= new wxPyUserData(clientData
);
1433 return self
->AddTool(id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1434 udata
, shortHelpString
, longHelpString
);
1436 static PyObject
*_wrap_wxToolBarBase_AddTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1437 PyObject
* _resultobj
;
1438 wxToolBarToolBase
* _result
;
1439 wxToolBarBase
* _arg0
;
1442 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
1443 int _arg4
= (int ) FALSE
;
1444 PyObject
* _arg5
= (PyObject
*) NULL
;
1445 wxString
* _arg6
= (wxString
*) &wxPyEmptyStr
;
1446 wxString
* _arg7
= (wxString
*) &wxPyEmptyStr
;
1447 PyObject
* _argo0
= 0;
1448 PyObject
* _argo2
= 0;
1449 PyObject
* _argo3
= 0;
1450 PyObject
* _obj5
= 0;
1451 PyObject
* _obj6
= 0;
1452 PyObject
* _obj7
= 0;
1453 char *_kwnames
[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_arg4
,&_obj5
,&_obj6
,&_obj7
))
1459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
1466 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1467 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1473 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1474 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1475 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1485 #if PYTHON_API_VERSION >= 1009
1486 char* tmpPtr
; int tmpSize
;
1487 if (!PyString_Check(_obj6
) && !PyUnicode_Check(_obj6
)) {
1488 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1491 if (PyString_AsStringAndSize(_obj6
, &tmpPtr
, &tmpSize
) == -1)
1493 _arg6
= new wxString(tmpPtr
, tmpSize
);
1495 if (!PyString_Check(_obj6
)) {
1496 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1499 _arg6
= new wxString(PyString_AS_STRING(_obj6
), PyString_GET_SIZE(_obj6
));
1504 #if PYTHON_API_VERSION >= 1009
1505 char* tmpPtr
; int tmpSize
;
1506 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1507 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1510 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1512 _arg7
= new wxString(tmpPtr
, tmpSize
);
1514 if (!PyString_Check(_obj7
)) {
1515 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1518 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1522 wxPy_BEGIN_ALLOW_THREADS
;
1523 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddTool(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,*_arg6
,*_arg7
);
1525 wxPy_END_ALLOW_THREADS
;
1526 if (PyErr_Occurred()) return NULL
;
1527 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1539 static wxToolBarToolBase
* wxToolBarBase_AddSimpleTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1540 return self
->AddTool(id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1541 shortHelpString
, longHelpString
);
1543 static PyObject
*_wrap_wxToolBarBase_AddSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1544 PyObject
* _resultobj
;
1545 wxToolBarToolBase
* _result
;
1546 wxToolBarBase
* _arg0
;
1549 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
1550 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
1551 int _arg5
= (int ) FALSE
;
1552 PyObject
* _argo0
= 0;
1553 PyObject
* _argo2
= 0;
1554 PyObject
* _obj3
= 0;
1555 PyObject
* _obj4
= 0;
1556 char *_kwnames
[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
,&_obj4
,&_arg5
))
1562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
1569 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1570 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1577 #if PYTHON_API_VERSION >= 1009
1578 char* tmpPtr
; int tmpSize
;
1579 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
1580 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1583 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
1585 _arg3
= new wxString(tmpPtr
, tmpSize
);
1587 if (!PyString_Check(_obj3
)) {
1588 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1591 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
1596 #if PYTHON_API_VERSION >= 1009
1597 char* tmpPtr
; int tmpSize
;
1598 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1599 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1602 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1604 _arg4
= new wxString(tmpPtr
, tmpSize
);
1606 if (!PyString_Check(_obj4
)) {
1607 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1610 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1614 wxPy_BEGIN_ALLOW_THREADS
;
1615 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSimpleTool(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
);
1617 wxPy_END_ALLOW_THREADS
;
1618 if (PyErr_Occurred()) return NULL
;
1619 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1631 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
) {
1632 wxPyUserData
* udata
= NULL
;
1634 udata
= new wxPyUserData(clientData
);
1635 return self
->InsertTool(pos
, id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1636 udata
, shortHelpString
, longHelpString
);
1638 static PyObject
*_wrap_wxToolBarBase_InsertTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1639 PyObject
* _resultobj
;
1640 wxToolBarToolBase
* _result
;
1641 wxToolBarBase
* _arg0
;
1645 wxBitmap
* _arg4
= (wxBitmap
*) &wxNullBitmap
;
1646 int _arg5
= (int ) FALSE
;
1647 PyObject
* _arg6
= (PyObject
*) NULL
;
1648 wxString
* _arg7
= (wxString
*) &wxPyEmptyStr
;
1649 wxString
* _arg8
= (wxString
*) &wxPyEmptyStr
;
1650 PyObject
* _argo0
= 0;
1651 PyObject
* _argo3
= 0;
1652 PyObject
* _argo4
= 0;
1653 PyObject
* _obj6
= 0;
1654 PyObject
* _obj7
= 0;
1655 PyObject
* _obj8
= 0;
1656 char *_kwnames
[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_argo4
,&_arg5
,&_obj6
,&_obj7
,&_obj8
))
1662 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1663 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1664 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1669 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1670 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1671 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1676 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1677 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1688 #if PYTHON_API_VERSION >= 1009
1689 char* tmpPtr
; int tmpSize
;
1690 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1691 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1694 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1696 _arg7
= new wxString(tmpPtr
, tmpSize
);
1698 if (!PyString_Check(_obj7
)) {
1699 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1702 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1707 #if PYTHON_API_VERSION >= 1009
1708 char* tmpPtr
; int tmpSize
;
1709 if (!PyString_Check(_obj8
) && !PyUnicode_Check(_obj8
)) {
1710 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1713 if (PyString_AsStringAndSize(_obj8
, &tmpPtr
, &tmpSize
) == -1)
1715 _arg8
= new wxString(tmpPtr
, tmpSize
);
1717 if (!PyString_Check(_obj8
)) {
1718 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1721 _arg8
= new wxString(PyString_AS_STRING(_obj8
), PyString_GET_SIZE(_obj8
));
1725 wxPy_BEGIN_ALLOW_THREADS
;
1726 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,*_arg7
,*_arg8
);
1728 wxPy_END_ALLOW_THREADS
;
1729 if (PyErr_Occurred()) return NULL
;
1730 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1742 static wxToolBarToolBase
* wxToolBarBase_InsertSimpleTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1743 return self
->InsertTool(pos
, id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1744 shortHelpString
, longHelpString
);
1746 static PyObject
*_wrap_wxToolBarBase_InsertSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1747 PyObject
* _resultobj
;
1748 wxToolBarToolBase
* _result
;
1749 wxToolBarBase
* _arg0
;
1753 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
1754 wxString
* _arg5
= (wxString
*) &wxPyEmptyStr
;
1755 int _arg6
= (int ) FALSE
;
1756 PyObject
* _argo0
= 0;
1757 PyObject
* _argo3
= 0;
1758 PyObject
* _obj4
= 0;
1759 PyObject
* _obj5
= 0;
1760 char *_kwnames
[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_obj4
,&_obj5
,&_arg6
))
1766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
1773 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1774 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1781 #if PYTHON_API_VERSION >= 1009
1782 char* tmpPtr
; int tmpSize
;
1783 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1784 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1787 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1789 _arg4
= new wxString(tmpPtr
, tmpSize
);
1791 if (!PyString_Check(_obj4
)) {
1792 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1795 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1800 #if PYTHON_API_VERSION >= 1009
1801 char* tmpPtr
; int tmpSize
;
1802 if (!PyString_Check(_obj5
) && !PyUnicode_Check(_obj5
)) {
1803 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1806 if (PyString_AsStringAndSize(_obj5
, &tmpPtr
, &tmpSize
) == -1)
1808 _arg5
= new wxString(tmpPtr
, tmpSize
);
1810 if (!PyString_Check(_obj5
)) {
1811 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1814 _arg5
= new wxString(PyString_AS_STRING(_obj5
), PyString_GET_SIZE(_obj5
));
1818 wxPy_BEGIN_ALLOW_THREADS
;
1819 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSimpleTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
);
1821 wxPy_END_ALLOW_THREADS
;
1822 if (PyErr_Occurred()) return NULL
;
1823 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1835 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1836 static PyObject
*_wrap_wxToolBarBase_AddControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1837 PyObject
* _resultobj
;
1838 wxToolBarToolBase
* _result
;
1839 wxToolBarBase
* _arg0
;
1841 PyObject
* _argo0
= 0;
1842 PyObject
* _argo1
= 0;
1843 char *_kwnames
[] = { "self","control", NULL
};
1846 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_AddControl",_kwnames
,&_argo0
,&_argo1
))
1849 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1850 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1851 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1856 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1857 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxControl_p")) {
1858 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1863 wxPy_BEGIN_ALLOW_THREADS
;
1864 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddControl(_arg0
,_arg1
);
1866 wxPy_END_ALLOW_THREADS
;
1867 if (PyErr_Occurred()) return NULL
;
1868 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1872 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1873 static PyObject
*_wrap_wxToolBarBase_InsertControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1874 PyObject
* _resultobj
;
1875 wxToolBarToolBase
* _result
;
1876 wxToolBarBase
* _arg0
;
1879 PyObject
* _argo0
= 0;
1880 PyObject
* _argo2
= 0;
1881 char *_kwnames
[] = { "self","pos","control", NULL
};
1884 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_InsertControl",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1887 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1888 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1889 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1894 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1895 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxControl_p")) {
1896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1901 wxPy_BEGIN_ALLOW_THREADS
;
1902 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertControl(_arg0
,_arg1
,_arg2
);
1904 wxPy_END_ALLOW_THREADS
;
1905 if (PyErr_Occurred()) return NULL
;
1906 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1910 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1911 static PyObject
*_wrap_wxToolBarBase_AddSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1912 PyObject
* _resultobj
;
1913 wxToolBarToolBase
* _result
;
1914 wxToolBarBase
* _arg0
;
1915 PyObject
* _argo0
= 0;
1916 char *_kwnames
[] = { "self", NULL
};
1919 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_AddSeparator",_kwnames
,&_argo0
))
1922 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1923 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1924 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
1929 wxPy_BEGIN_ALLOW_THREADS
;
1930 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSeparator(_arg0
);
1932 wxPy_END_ALLOW_THREADS
;
1933 if (PyErr_Occurred()) return NULL
;
1934 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1938 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
1939 static PyObject
*_wrap_wxToolBarBase_InsertSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1940 PyObject
* _resultobj
;
1941 wxToolBarToolBase
* _result
;
1942 wxToolBarBase
* _arg0
;
1944 PyObject
* _argo0
= 0;
1945 char *_kwnames
[] = { "self","pos", NULL
};
1948 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_InsertSeparator",_kwnames
,&_argo0
,&_arg1
))
1951 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1952 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1953 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
1958 wxPy_BEGIN_ALLOW_THREADS
;
1959 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSeparator(_arg0
,_arg1
);
1961 wxPy_END_ALLOW_THREADS
;
1962 if (PyErr_Occurred()) return NULL
;
1963 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1967 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
1968 static PyObject
*_wrap_wxToolBarBase_RemoveTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1969 PyObject
* _resultobj
;
1970 wxToolBarToolBase
* _result
;
1971 wxToolBarBase
* _arg0
;
1973 PyObject
* _argo0
= 0;
1974 char *_kwnames
[] = { "self","id", NULL
};
1977 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_RemoveTool",_kwnames
,&_argo0
,&_arg1
))
1980 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1981 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1982 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
1987 wxPy_BEGIN_ALLOW_THREADS
;
1988 _result
= (wxToolBarToolBase
*)wxToolBarBase_RemoveTool(_arg0
,_arg1
);
1990 wxPy_END_ALLOW_THREADS
;
1991 if (PyErr_Occurred()) return NULL
;
1992 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1996 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
1997 static PyObject
*_wrap_wxToolBarBase_DeleteToolByPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1998 PyObject
* _resultobj
;
2000 wxToolBarBase
* _arg0
;
2002 PyObject
* _argo0
= 0;
2003 char *_kwnames
[] = { "self","pos", NULL
};
2006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames
,&_argo0
,&_arg1
))
2009 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2010 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2011 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2016 wxPy_BEGIN_ALLOW_THREADS
;
2017 _result
= (bool )wxToolBarBase_DeleteToolByPos(_arg0
,_arg1
);
2019 wxPy_END_ALLOW_THREADS
;
2020 if (PyErr_Occurred()) return NULL
;
2021 } _resultobj
= Py_BuildValue("i",_result
);
2025 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2026 static PyObject
*_wrap_wxToolBarBase_DeleteTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2027 PyObject
* _resultobj
;
2029 wxToolBarBase
* _arg0
;
2031 PyObject
* _argo0
= 0;
2032 char *_kwnames
[] = { "self","id", NULL
};
2035 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteTool",_kwnames
,&_argo0
,&_arg1
))
2038 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2039 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2040 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2045 wxPy_BEGIN_ALLOW_THREADS
;
2046 _result
= (bool )wxToolBarBase_DeleteTool(_arg0
,_arg1
);
2048 wxPy_END_ALLOW_THREADS
;
2049 if (PyErr_Occurred()) return NULL
;
2050 } _resultobj
= Py_BuildValue("i",_result
);
2054 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2055 static PyObject
*_wrap_wxToolBarBase_ClearTools(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2056 PyObject
* _resultobj
;
2057 wxToolBarBase
* _arg0
;
2058 PyObject
* _argo0
= 0;
2059 char *_kwnames
[] = { "self", NULL
};
2062 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_ClearTools",_kwnames
,&_argo0
))
2065 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2066 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2067 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2072 wxPy_BEGIN_ALLOW_THREADS
;
2073 wxToolBarBase_ClearTools(_arg0
);
2075 wxPy_END_ALLOW_THREADS
;
2076 if (PyErr_Occurred()) return NULL
;
2077 } Py_INCREF(Py_None
);
2078 _resultobj
= Py_None
;
2082 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2083 static PyObject
*_wrap_wxToolBarBase_Realize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2084 PyObject
* _resultobj
;
2086 wxToolBarBase
* _arg0
;
2087 PyObject
* _argo0
= 0;
2088 char *_kwnames
[] = { "self", NULL
};
2091 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_Realize",_kwnames
,&_argo0
))
2094 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2095 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2096 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2101 wxPy_BEGIN_ALLOW_THREADS
;
2102 _result
= (bool )wxToolBarBase_Realize(_arg0
);
2104 wxPy_END_ALLOW_THREADS
;
2105 if (PyErr_Occurred()) return NULL
;
2106 } _resultobj
= Py_BuildValue("i",_result
);
2110 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2111 static PyObject
*_wrap_wxToolBarBase_EnableTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2112 PyObject
* _resultobj
;
2113 wxToolBarBase
* _arg0
;
2116 PyObject
* _argo0
= 0;
2118 char *_kwnames
[] = { "self","id","enable", NULL
};
2121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_EnableTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2130 _arg2
= (bool ) tempbool2
;
2132 wxPy_BEGIN_ALLOW_THREADS
;
2133 wxToolBarBase_EnableTool(_arg0
,_arg1
,_arg2
);
2135 wxPy_END_ALLOW_THREADS
;
2136 if (PyErr_Occurred()) return NULL
;
2137 } Py_INCREF(Py_None
);
2138 _resultobj
= Py_None
;
2142 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2143 static PyObject
*_wrap_wxToolBarBase_ToggleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2144 PyObject
* _resultobj
;
2145 wxToolBarBase
* _arg0
;
2148 PyObject
* _argo0
= 0;
2150 char *_kwnames
[] = { "self","id","toggle", NULL
};
2153 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_ToggleTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2156 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2157 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2158 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2162 _arg2
= (bool ) tempbool2
;
2164 wxPy_BEGIN_ALLOW_THREADS
;
2165 wxToolBarBase_ToggleTool(_arg0
,_arg1
,_arg2
);
2167 wxPy_END_ALLOW_THREADS
;
2168 if (PyErr_Occurred()) return NULL
;
2169 } Py_INCREF(Py_None
);
2170 _resultobj
= Py_None
;
2174 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2175 static PyObject
*_wrap_wxToolBarBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2176 PyObject
* _resultobj
;
2177 wxToolBarBase
* _arg0
;
2180 PyObject
* _argo0
= 0;
2182 char *_kwnames
[] = { "self","id","toggle", NULL
};
2185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetToggle",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2194 _arg2
= (bool ) tempbool2
;
2196 wxPy_BEGIN_ALLOW_THREADS
;
2197 wxToolBarBase_SetToggle(_arg0
,_arg1
,_arg2
);
2199 wxPy_END_ALLOW_THREADS
;
2200 if (PyErr_Occurred()) return NULL
;
2201 } Py_INCREF(Py_None
);
2202 _resultobj
= Py_None
;
2206 static PyObject
* wxToolBarBase_GetToolClientData(wxToolBarBase
*self
,int index
) {
2207 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetToolClientData(index
);
2209 Py_INCREF(udata
->m_obj
);
2210 return udata
->m_obj
;
2216 static PyObject
*_wrap_wxToolBarBase_GetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2217 PyObject
* _resultobj
;
2219 wxToolBarBase
* _arg0
;
2221 PyObject
* _argo0
= 0;
2222 char *_kwnames
[] = { "self","index", NULL
};
2225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolClientData",_kwnames
,&_argo0
,&_arg1
))
2228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2235 wxPy_BEGIN_ALLOW_THREADS
;
2236 _result
= (PyObject
*)wxToolBarBase_GetToolClientData(_arg0
,_arg1
);
2238 wxPy_END_ALLOW_THREADS
;
2239 if (PyErr_Occurred()) return NULL
;
2241 _resultobj
= _result
;
2246 static void wxToolBarBase_SetToolClientData(wxToolBarBase
*self
,int index
,PyObject
* clientData
) {
2247 self
->SetToolClientData(index
, new wxPyUserData(clientData
));
2249 static PyObject
*_wrap_wxToolBarBase_SetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2250 PyObject
* _resultobj
;
2251 wxToolBarBase
* _arg0
;
2254 PyObject
* _argo0
= 0;
2255 PyObject
* _obj2
= 0;
2256 char *_kwnames
[] = { "self","index","clientData", NULL
};
2259 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolClientData",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2262 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2263 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2264 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2272 wxPy_BEGIN_ALLOW_THREADS
;
2273 wxToolBarBase_SetToolClientData(_arg0
,_arg1
,_arg2
);
2275 wxPy_END_ALLOW_THREADS
;
2276 if (PyErr_Occurred()) return NULL
;
2277 } Py_INCREF(Py_None
);
2278 _resultobj
= Py_None
;
2282 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2283 static PyObject
*_wrap_wxToolBarBase_GetToolState(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2284 PyObject
* _resultobj
;
2286 wxToolBarBase
* _arg0
;
2288 PyObject
* _argo0
= 0;
2289 char *_kwnames
[] = { "self","id", NULL
};
2292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolState",_kwnames
,&_argo0
,&_arg1
))
2295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2302 wxPy_BEGIN_ALLOW_THREADS
;
2303 _result
= (bool )wxToolBarBase_GetToolState(_arg0
,_arg1
);
2305 wxPy_END_ALLOW_THREADS
;
2306 if (PyErr_Occurred()) return NULL
;
2307 } _resultobj
= Py_BuildValue("i",_result
);
2311 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2312 static PyObject
*_wrap_wxToolBarBase_GetToolEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2313 PyObject
* _resultobj
;
2315 wxToolBarBase
* _arg0
;
2317 PyObject
* _argo0
= 0;
2318 char *_kwnames
[] = { "self","id", NULL
};
2321 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolEnabled",_kwnames
,&_argo0
,&_arg1
))
2324 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2325 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2326 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2331 wxPy_BEGIN_ALLOW_THREADS
;
2332 _result
= (bool )wxToolBarBase_GetToolEnabled(_arg0
,_arg1
);
2334 wxPy_END_ALLOW_THREADS
;
2335 if (PyErr_Occurred()) return NULL
;
2336 } _resultobj
= Py_BuildValue("i",_result
);
2340 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2341 static PyObject
*_wrap_wxToolBarBase_SetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2342 PyObject
* _resultobj
;
2343 wxToolBarBase
* _arg0
;
2346 PyObject
* _argo0
= 0;
2347 PyObject
* _obj2
= 0;
2348 char *_kwnames
[] = { "self","id","helpString", NULL
};
2351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2361 #if PYTHON_API_VERSION >= 1009
2362 char* tmpPtr
; int tmpSize
;
2363 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2364 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2367 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2369 _arg2
= new wxString(tmpPtr
, tmpSize
);
2371 if (!PyString_Check(_obj2
)) {
2372 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2375 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2379 wxPy_BEGIN_ALLOW_THREADS
;
2380 wxToolBarBase_SetToolShortHelp(_arg0
,_arg1
,*_arg2
);
2382 wxPy_END_ALLOW_THREADS
;
2383 if (PyErr_Occurred()) return NULL
;
2384 } Py_INCREF(Py_None
);
2385 _resultobj
= Py_None
;
2393 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2394 static PyObject
*_wrap_wxToolBarBase_GetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2395 PyObject
* _resultobj
;
2397 wxToolBarBase
* _arg0
;
2399 PyObject
* _argo0
= 0;
2400 char *_kwnames
[] = { "self","id", NULL
};
2403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames
,&_argo0
,&_arg1
))
2406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2413 wxPy_BEGIN_ALLOW_THREADS
;
2414 _result
= new wxString (wxToolBarBase_GetToolShortHelp(_arg0
,_arg1
));
2416 wxPy_END_ALLOW_THREADS
;
2417 if (PyErr_Occurred()) return NULL
;
2419 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2427 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2428 static PyObject
*_wrap_wxToolBarBase_SetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2429 PyObject
* _resultobj
;
2430 wxToolBarBase
* _arg0
;
2433 PyObject
* _argo0
= 0;
2434 PyObject
* _obj2
= 0;
2435 char *_kwnames
[] = { "self","id","helpString", NULL
};
2438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2448 #if PYTHON_API_VERSION >= 1009
2449 char* tmpPtr
; int tmpSize
;
2450 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2451 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2454 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2456 _arg2
= new wxString(tmpPtr
, tmpSize
);
2458 if (!PyString_Check(_obj2
)) {
2459 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2462 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2466 wxPy_BEGIN_ALLOW_THREADS
;
2467 wxToolBarBase_SetToolLongHelp(_arg0
,_arg1
,*_arg2
);
2469 wxPy_END_ALLOW_THREADS
;
2470 if (PyErr_Occurred()) return NULL
;
2471 } Py_INCREF(Py_None
);
2472 _resultobj
= Py_None
;
2480 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2481 static PyObject
*_wrap_wxToolBarBase_GetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2482 PyObject
* _resultobj
;
2484 wxToolBarBase
* _arg0
;
2486 PyObject
* _argo0
= 0;
2487 char *_kwnames
[] = { "self","id", NULL
};
2490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames
,&_argo0
,&_arg1
))
2493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2500 wxPy_BEGIN_ALLOW_THREADS
;
2501 _result
= new wxString (wxToolBarBase_GetToolLongHelp(_arg0
,_arg1
));
2503 wxPy_END_ALLOW_THREADS
;
2504 if (PyErr_Occurred()) return NULL
;
2506 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2514 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2515 static PyObject
*_wrap_wxToolBarBase_SetMarginsXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2516 PyObject
* _resultobj
;
2517 wxToolBarBase
* _arg0
;
2520 PyObject
* _argo0
= 0;
2521 char *_kwnames
[] = { "self","x","y", NULL
};
2524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMarginsXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2527 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2528 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2534 wxPy_BEGIN_ALLOW_THREADS
;
2535 wxToolBarBase_SetMarginsXY(_arg0
,_arg1
,_arg2
);
2537 wxPy_END_ALLOW_THREADS
;
2538 if (PyErr_Occurred()) return NULL
;
2539 } Py_INCREF(Py_None
);
2540 _resultobj
= Py_None
;
2544 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2545 static PyObject
*_wrap_wxToolBarBase_SetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2546 PyObject
* _resultobj
;
2547 wxToolBarBase
* _arg0
;
2549 PyObject
* _argo0
= 0;
2551 PyObject
* _obj1
= 0;
2552 char *_kwnames
[] = { "self","size", NULL
};
2555 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetMargins",_kwnames
,&_argo0
,&_obj1
))
2558 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2559 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2560 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2566 if (! wxSize_helper(_obj1
, &_arg1
))
2570 wxPy_BEGIN_ALLOW_THREADS
;
2571 wxToolBarBase_SetMargins(_arg0
,*_arg1
);
2573 wxPy_END_ALLOW_THREADS
;
2574 if (PyErr_Occurred()) return NULL
;
2575 } Py_INCREF(Py_None
);
2576 _resultobj
= Py_None
;
2580 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2581 static PyObject
*_wrap_wxToolBarBase_SetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2582 PyObject
* _resultobj
;
2583 wxToolBarBase
* _arg0
;
2585 PyObject
* _argo0
= 0;
2586 char *_kwnames
[] = { "self","packing", NULL
};
2589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolPacking",_kwnames
,&_argo0
,&_arg1
))
2592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2599 wxPy_BEGIN_ALLOW_THREADS
;
2600 wxToolBarBase_SetToolPacking(_arg0
,_arg1
);
2602 wxPy_END_ALLOW_THREADS
;
2603 if (PyErr_Occurred()) return NULL
;
2604 } Py_INCREF(Py_None
);
2605 _resultobj
= Py_None
;
2609 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2610 static PyObject
*_wrap_wxToolBarBase_SetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2611 PyObject
* _resultobj
;
2612 wxToolBarBase
* _arg0
;
2614 PyObject
* _argo0
= 0;
2615 char *_kwnames
[] = { "self","separation", NULL
};
2618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolSeparation",_kwnames
,&_argo0
,&_arg1
))
2621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2628 wxPy_BEGIN_ALLOW_THREADS
;
2629 wxToolBarBase_SetToolSeparation(_arg0
,_arg1
);
2631 wxPy_END_ALLOW_THREADS
;
2632 if (PyErr_Occurred()) return NULL
;
2633 } Py_INCREF(Py_None
);
2634 _resultobj
= Py_None
;
2638 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2639 static PyObject
*_wrap_wxToolBarBase_GetToolMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2640 PyObject
* _resultobj
;
2642 wxToolBarBase
* _arg0
;
2643 PyObject
* _argo0
= 0;
2644 char *_kwnames
[] = { "self", NULL
};
2648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolMargins",_kwnames
,&_argo0
))
2651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2658 wxPy_BEGIN_ALLOW_THREADS
;
2659 _result
= new wxSize (wxToolBarBase_GetToolMargins(_arg0
));
2661 wxPy_END_ALLOW_THREADS
;
2662 if (PyErr_Occurred()) return NULL
;
2663 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2664 _resultobj
= Py_BuildValue("s",_ptemp
);
2668 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2669 static PyObject
*_wrap_wxToolBarBase_GetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2670 PyObject
* _resultobj
;
2672 wxToolBarBase
* _arg0
;
2673 PyObject
* _argo0
= 0;
2674 char *_kwnames
[] = { "self", NULL
};
2678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMargins",_kwnames
,&_argo0
))
2681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2688 wxPy_BEGIN_ALLOW_THREADS
;
2689 _result
= new wxSize (wxToolBarBase_GetMargins(_arg0
));
2691 wxPy_END_ALLOW_THREADS
;
2692 if (PyErr_Occurred()) return NULL
;
2693 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2694 _resultobj
= Py_BuildValue("s",_ptemp
);
2698 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2699 static PyObject
*_wrap_wxToolBarBase_GetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2700 PyObject
* _resultobj
;
2702 wxToolBarBase
* _arg0
;
2703 PyObject
* _argo0
= 0;
2704 char *_kwnames
[] = { "self", NULL
};
2707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolPacking",_kwnames
,&_argo0
))
2710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2717 wxPy_BEGIN_ALLOW_THREADS
;
2718 _result
= (int )wxToolBarBase_GetToolPacking(_arg0
);
2720 wxPy_END_ALLOW_THREADS
;
2721 if (PyErr_Occurred()) return NULL
;
2722 } _resultobj
= Py_BuildValue("i",_result
);
2726 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2727 static PyObject
*_wrap_wxToolBarBase_GetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2728 PyObject
* _resultobj
;
2730 wxToolBarBase
* _arg0
;
2731 PyObject
* _argo0
= 0;
2732 char *_kwnames
[] = { "self", NULL
};
2735 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSeparation",_kwnames
,&_argo0
))
2738 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2739 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2740 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2745 wxPy_BEGIN_ALLOW_THREADS
;
2746 _result
= (int )wxToolBarBase_GetToolSeparation(_arg0
);
2748 wxPy_END_ALLOW_THREADS
;
2749 if (PyErr_Occurred()) return NULL
;
2750 } _resultobj
= Py_BuildValue("i",_result
);
2754 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2755 static PyObject
*_wrap_wxToolBarBase_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2756 PyObject
* _resultobj
;
2757 wxToolBarBase
* _arg0
;
2759 PyObject
* _argo0
= 0;
2760 char *_kwnames
[] = { "self","nRows", NULL
};
2763 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetRows",_kwnames
,&_argo0
,&_arg1
))
2766 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2767 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2768 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2773 wxPy_BEGIN_ALLOW_THREADS
;
2774 wxToolBarBase_SetRows(_arg0
,_arg1
);
2776 wxPy_END_ALLOW_THREADS
;
2777 if (PyErr_Occurred()) return NULL
;
2778 } Py_INCREF(Py_None
);
2779 _resultobj
= Py_None
;
2783 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2784 static PyObject
*_wrap_wxToolBarBase_SetMaxRowsCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2785 PyObject
* _resultobj
;
2786 wxToolBarBase
* _arg0
;
2789 PyObject
* _argo0
= 0;
2790 char *_kwnames
[] = { "self","rows","cols", NULL
};
2793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2803 wxPy_BEGIN_ALLOW_THREADS
;
2804 wxToolBarBase_SetMaxRowsCols(_arg0
,_arg1
,_arg2
);
2806 wxPy_END_ALLOW_THREADS
;
2807 if (PyErr_Occurred()) return NULL
;
2808 } Py_INCREF(Py_None
);
2809 _resultobj
= Py_None
;
2813 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2814 static PyObject
*_wrap_wxToolBarBase_GetMaxRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2815 PyObject
* _resultobj
;
2817 wxToolBarBase
* _arg0
;
2818 PyObject
* _argo0
= 0;
2819 char *_kwnames
[] = { "self", NULL
};
2822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxRows",_kwnames
,&_argo0
))
2825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2832 wxPy_BEGIN_ALLOW_THREADS
;
2833 _result
= (int )wxToolBarBase_GetMaxRows(_arg0
);
2835 wxPy_END_ALLOW_THREADS
;
2836 if (PyErr_Occurred()) return NULL
;
2837 } _resultobj
= Py_BuildValue("i",_result
);
2841 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2842 static PyObject
*_wrap_wxToolBarBase_GetMaxCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2843 PyObject
* _resultobj
;
2845 wxToolBarBase
* _arg0
;
2846 PyObject
* _argo0
= 0;
2847 char *_kwnames
[] = { "self", NULL
};
2850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxCols",_kwnames
,&_argo0
))
2853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2860 wxPy_BEGIN_ALLOW_THREADS
;
2861 _result
= (int )wxToolBarBase_GetMaxCols(_arg0
);
2863 wxPy_END_ALLOW_THREADS
;
2864 if (PyErr_Occurred()) return NULL
;
2865 } _resultobj
= Py_BuildValue("i",_result
);
2869 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2870 static PyObject
*_wrap_wxToolBarBase_SetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2871 PyObject
* _resultobj
;
2872 wxToolBarBase
* _arg0
;
2874 PyObject
* _argo0
= 0;
2876 PyObject
* _obj1
= 0;
2877 char *_kwnames
[] = { "self","size", NULL
};
2880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames
,&_argo0
,&_obj1
))
2883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
2891 if (! wxSize_helper(_obj1
, &_arg1
))
2895 wxPy_BEGIN_ALLOW_THREADS
;
2896 wxToolBarBase_SetToolBitmapSize(_arg0
,*_arg1
);
2898 wxPy_END_ALLOW_THREADS
;
2899 if (PyErr_Occurred()) return NULL
;
2900 } Py_INCREF(Py_None
);
2901 _resultobj
= Py_None
;
2905 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2906 static PyObject
*_wrap_wxToolBarBase_GetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2907 PyObject
* _resultobj
;
2909 wxToolBarBase
* _arg0
;
2910 PyObject
* _argo0
= 0;
2911 char *_kwnames
[] = { "self", NULL
};
2915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolBitmapSize",_kwnames
,&_argo0
))
2918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
2925 wxPy_BEGIN_ALLOW_THREADS
;
2926 _result
= new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0
));
2928 wxPy_END_ALLOW_THREADS
;
2929 if (PyErr_Occurred()) return NULL
;
2930 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2931 _resultobj
= Py_BuildValue("s",_ptemp
);
2935 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
2936 static PyObject
*_wrap_wxToolBarBase_GetToolSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2937 PyObject
* _resultobj
;
2939 wxToolBarBase
* _arg0
;
2940 PyObject
* _argo0
= 0;
2941 char *_kwnames
[] = { "self", NULL
};
2945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSize",_kwnames
,&_argo0
))
2948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
2955 wxPy_BEGIN_ALLOW_THREADS
;
2956 _result
= new wxSize (wxToolBarBase_GetToolSize(_arg0
));
2958 wxPy_END_ALLOW_THREADS
;
2959 if (PyErr_Occurred()) return NULL
;
2960 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2961 _resultobj
= Py_BuildValue("s",_ptemp
);
2965 static void *SwigwxToolBarTowxToolBarBase(void *ptr
) {
2967 wxToolBarBase
*dest
;
2968 src
= (wxToolBar
*) ptr
;
2969 dest
= (wxToolBarBase
*) src
;
2970 return (void *) dest
;
2973 static void *SwigwxToolBarTowxControl(void *ptr
) {
2976 src
= (wxToolBar
*) ptr
;
2977 dest
= (wxControl
*) src
;
2978 return (void *) dest
;
2981 static void *SwigwxToolBarTowxWindow(void *ptr
) {
2984 src
= (wxToolBar
*) ptr
;
2985 dest
= (wxWindow
*) src
;
2986 return (void *) dest
;
2989 static void *SwigwxToolBarTowxEvtHandler(void *ptr
) {
2992 src
= (wxToolBar
*) ptr
;
2993 dest
= (wxEvtHandler
*) src
;
2994 return (void *) dest
;
2997 static void *SwigwxToolBarTowxObject(void *ptr
) {
3000 src
= (wxToolBar
*) ptr
;
3001 dest
= (wxObject
*) src
;
3002 return (void *) dest
;
3005 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3006 static PyObject
*_wrap_new_wxToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3007 PyObject
* _resultobj
;
3008 wxToolBar
* _result
;
3011 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3012 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3013 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3014 char * _arg5
= (char *) wxToolBarNameStr
;
3015 PyObject
* _argo0
= 0;
3017 PyObject
* _obj2
= 0;
3019 PyObject
* _obj3
= 0;
3020 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3024 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3027 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3028 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3029 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3036 if (! wxPoint_helper(_obj2
, &_arg2
))
3042 if (! wxSize_helper(_obj3
, &_arg3
))
3046 wxPy_BEGIN_ALLOW_THREADS
;
3047 _result
= (wxToolBar
*)new_wxToolBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3049 wxPy_END_ALLOW_THREADS
;
3050 if (PyErr_Occurred()) return NULL
;
3052 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3053 _resultobj
= Py_BuildValue("s",_ptemp
);
3056 _resultobj
= Py_None
;
3061 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3062 static PyObject
*_wrap_wxToolBar_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3063 PyObject
* _resultobj
;
3064 wxToolBarToolBase
* _result
;
3068 PyObject
* _argo0
= 0;
3069 char *_kwnames
[] = { "self","x","y", NULL
};
3072 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBar_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3075 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3076 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3077 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3082 wxPy_BEGIN_ALLOW_THREADS
;
3083 _result
= (wxToolBarToolBase
*)wxToolBar_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3085 wxPy_END_ALLOW_THREADS
;
3086 if (PyErr_Occurred()) return NULL
;
3087 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3091 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr
) {
3092 wxToolBarSimple
*src
;
3093 wxToolBarBase
*dest
;
3094 src
= (wxToolBarSimple
*) ptr
;
3095 dest
= (wxToolBarBase
*) src
;
3096 return (void *) dest
;
3099 static void *SwigwxToolBarSimpleTowxControl(void *ptr
) {
3100 wxToolBarSimple
*src
;
3102 src
= (wxToolBarSimple
*) ptr
;
3103 dest
= (wxControl
*) src
;
3104 return (void *) dest
;
3107 static void *SwigwxToolBarSimpleTowxWindow(void *ptr
) {
3108 wxToolBarSimple
*src
;
3110 src
= (wxToolBarSimple
*) ptr
;
3111 dest
= (wxWindow
*) src
;
3112 return (void *) dest
;
3115 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr
) {
3116 wxToolBarSimple
*src
;
3118 src
= (wxToolBarSimple
*) ptr
;
3119 dest
= (wxEvtHandler
*) src
;
3120 return (void *) dest
;
3123 static void *SwigwxToolBarSimpleTowxObject(void *ptr
) {
3124 wxToolBarSimple
*src
;
3126 src
= (wxToolBarSimple
*) ptr
;
3127 dest
= (wxObject
*) src
;
3128 return (void *) dest
;
3131 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3132 static PyObject
*_wrap_new_wxToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3133 PyObject
* _resultobj
;
3134 wxToolBarSimple
* _result
;
3137 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3138 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3139 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3140 char * _arg5
= (char *) wxToolBarNameStr
;
3141 PyObject
* _argo0
= 0;
3143 PyObject
* _obj2
= 0;
3145 PyObject
* _obj3
= 0;
3146 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBarSimple",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3162 if (! wxPoint_helper(_obj2
, &_arg2
))
3168 if (! wxSize_helper(_obj3
, &_arg3
))
3172 wxPy_BEGIN_ALLOW_THREADS
;
3173 _result
= (wxToolBarSimple
*)new_wxToolBarSimple(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3175 wxPy_END_ALLOW_THREADS
;
3176 if (PyErr_Occurred()) return NULL
;
3178 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3179 _resultobj
= Py_BuildValue("s",_ptemp
);
3182 _resultobj
= Py_None
;
3187 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3188 static PyObject
*_wrap_wxToolBarSimple_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3189 PyObject
* _resultobj
;
3190 wxToolBarToolBase
* _result
;
3191 wxToolBarSimple
* _arg0
;
3194 PyObject
* _argo0
= 0;
3195 char *_kwnames
[] = { "self","x","y", NULL
};
3198 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3201 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3202 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3203 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3208 wxPy_BEGIN_ALLOW_THREADS
;
3209 _result
= (wxToolBarToolBase
*)wxToolBarSimple_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3211 wxPy_END_ALLOW_THREADS
;
3212 if (PyErr_Occurred()) return NULL
;
3213 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3217 static PyMethodDef stattoolcMethods
[] = {
3218 { "wxToolBarSimple_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarSimple_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3219 { "new_wxToolBarSimple", (PyCFunction
) _wrap_new_wxToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3220 { "wxToolBar_FindToolForPosition", (PyCFunction
) _wrap_wxToolBar_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3221 { "new_wxToolBar", (PyCFunction
) _wrap_new_wxToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3222 { "wxToolBarBase_GetToolSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolSize
, METH_VARARGS
| METH_KEYWORDS
},
3223 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3224 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_SetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3225 { "wxToolBarBase_GetMaxCols", (PyCFunction
) _wrap_wxToolBarBase_GetMaxCols
, METH_VARARGS
| METH_KEYWORDS
},
3226 { "wxToolBarBase_GetMaxRows", (PyCFunction
) _wrap_wxToolBarBase_GetMaxRows
, METH_VARARGS
| METH_KEYWORDS
},
3227 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction
) _wrap_wxToolBarBase_SetMaxRowsCols
, METH_VARARGS
| METH_KEYWORDS
},
3228 { "wxToolBarBase_SetRows", (PyCFunction
) _wrap_wxToolBarBase_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3229 { "wxToolBarBase_GetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_GetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3230 { "wxToolBarBase_GetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_GetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3231 { "wxToolBarBase_GetMargins", (PyCFunction
) _wrap_wxToolBarBase_GetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3232 { "wxToolBarBase_GetToolMargins", (PyCFunction
) _wrap_wxToolBarBase_GetToolMargins
, METH_VARARGS
| METH_KEYWORDS
},
3233 { "wxToolBarBase_SetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_SetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3234 { "wxToolBarBase_SetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_SetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3235 { "wxToolBarBase_SetMargins", (PyCFunction
) _wrap_wxToolBarBase_SetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3236 { "wxToolBarBase_SetMarginsXY", (PyCFunction
) _wrap_wxToolBarBase_SetMarginsXY
, METH_VARARGS
| METH_KEYWORDS
},
3237 { "wxToolBarBase_GetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3238 { "wxToolBarBase_SetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3239 { "wxToolBarBase_GetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3240 { "wxToolBarBase_SetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3241 { "wxToolBarBase_GetToolEnabled", (PyCFunction
) _wrap_wxToolBarBase_GetToolEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3242 { "wxToolBarBase_GetToolState", (PyCFunction
) _wrap_wxToolBarBase_GetToolState
, METH_VARARGS
| METH_KEYWORDS
},
3243 { "wxToolBarBase_SetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_SetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3244 { "wxToolBarBase_GetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_GetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3245 { "wxToolBarBase_SetToggle", (PyCFunction
) _wrap_wxToolBarBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3246 { "wxToolBarBase_ToggleTool", (PyCFunction
) _wrap_wxToolBarBase_ToggleTool
, METH_VARARGS
| METH_KEYWORDS
},
3247 { "wxToolBarBase_EnableTool", (PyCFunction
) _wrap_wxToolBarBase_EnableTool
, METH_VARARGS
| METH_KEYWORDS
},
3248 { "wxToolBarBase_Realize", (PyCFunction
) _wrap_wxToolBarBase_Realize
, METH_VARARGS
| METH_KEYWORDS
},
3249 { "wxToolBarBase_ClearTools", (PyCFunction
) _wrap_wxToolBarBase_ClearTools
, METH_VARARGS
| METH_KEYWORDS
},
3250 { "wxToolBarBase_DeleteTool", (PyCFunction
) _wrap_wxToolBarBase_DeleteTool
, METH_VARARGS
| METH_KEYWORDS
},
3251 { "wxToolBarBase_DeleteToolByPos", (PyCFunction
) _wrap_wxToolBarBase_DeleteToolByPos
, METH_VARARGS
| METH_KEYWORDS
},
3252 { "wxToolBarBase_RemoveTool", (PyCFunction
) _wrap_wxToolBarBase_RemoveTool
, METH_VARARGS
| METH_KEYWORDS
},
3253 { "wxToolBarBase_InsertSeparator", (PyCFunction
) _wrap_wxToolBarBase_InsertSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3254 { "wxToolBarBase_AddSeparator", (PyCFunction
) _wrap_wxToolBarBase_AddSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3255 { "wxToolBarBase_InsertControl", (PyCFunction
) _wrap_wxToolBarBase_InsertControl
, METH_VARARGS
| METH_KEYWORDS
},
3256 { "wxToolBarBase_AddControl", (PyCFunction
) _wrap_wxToolBarBase_AddControl
, METH_VARARGS
| METH_KEYWORDS
},
3257 { "wxToolBarBase_InsertSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_InsertSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3258 { "wxToolBarBase_InsertTool", (PyCFunction
) _wrap_wxToolBarBase_InsertTool
, METH_VARARGS
| METH_KEYWORDS
},
3259 { "wxToolBarBase_AddSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_AddSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3260 { "wxToolBarBase_AddTool", (PyCFunction
) _wrap_wxToolBarBase_AddTool
, METH_VARARGS
| METH_KEYWORDS
},
3261 { "wxToolBarToolBase_SetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_SetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3262 { "wxToolBarToolBase_GetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_GetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3263 { "wxToolBarToolBase_Attach", (PyCFunction
) _wrap_wxToolBarToolBase_Attach
, METH_VARARGS
| METH_KEYWORDS
},
3264 { "wxToolBarToolBase_Detach", (PyCFunction
) _wrap_wxToolBarToolBase_Detach
, METH_VARARGS
| METH_KEYWORDS
},
3265 { "wxToolBarToolBase_SetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3266 { "wxToolBarToolBase_SetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3267 { "wxToolBarToolBase_SetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3268 { "wxToolBarToolBase_SetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3269 { "wxToolBarToolBase_SetToggle", (PyCFunction
) _wrap_wxToolBarToolBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3270 { "wxToolBarToolBase_Toggle", (PyCFunction
) _wrap_wxToolBarToolBase_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
3271 { "wxToolBarToolBase_Enable", (PyCFunction
) _wrap_wxToolBarToolBase_Enable
, METH_VARARGS
| METH_KEYWORDS
},
3272 { "wxToolBarToolBase_GetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3273 { "wxToolBarToolBase_GetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3274 { "wxToolBarToolBase_GetBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3275 { "wxToolBarToolBase_GetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3276 { "wxToolBarToolBase_GetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3277 { "wxToolBarToolBase_CanBeToggled", (PyCFunction
) _wrap_wxToolBarToolBase_CanBeToggled
, METH_VARARGS
| METH_KEYWORDS
},
3278 { "wxToolBarToolBase_IsToggled", (PyCFunction
) _wrap_wxToolBarToolBase_IsToggled
, METH_VARARGS
| METH_KEYWORDS
},
3279 { "wxToolBarToolBase_IsEnabled", (PyCFunction
) _wrap_wxToolBarToolBase_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3280 { "wxToolBarToolBase_GetStyle", (PyCFunction
) _wrap_wxToolBarToolBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
3281 { "wxToolBarToolBase_IsSeparator", (PyCFunction
) _wrap_wxToolBarToolBase_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3282 { "wxToolBarToolBase_IsControl", (PyCFunction
) _wrap_wxToolBarToolBase_IsControl
, METH_VARARGS
| METH_KEYWORDS
},
3283 { "wxToolBarToolBase_IsButton", (PyCFunction
) _wrap_wxToolBarToolBase_IsButton
, METH_VARARGS
| METH_KEYWORDS
},
3284 { "wxToolBarToolBase_GetToolBar", (PyCFunction
) _wrap_wxToolBarToolBase_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3285 { "wxToolBarToolBase_GetControl", (PyCFunction
) _wrap_wxToolBarToolBase_GetControl
, METH_VARARGS
| METH_KEYWORDS
},
3286 { "wxToolBarToolBase_GetId", (PyCFunction
) _wrap_wxToolBarToolBase_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3287 { "wxToolBarToolBase_Destroy", (PyCFunction
) _wrap_wxToolBarToolBase_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3288 { "wxStatusBar_SetMinHeight", (PyCFunction
) _wrap_wxStatusBar_SetMinHeight
, METH_VARARGS
| METH_KEYWORDS
},
3289 { "wxStatusBar_SetStatusWidths", (PyCFunction
) _wrap_wxStatusBar_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
3290 { "wxStatusBar_SetStatusText", (PyCFunction
) _wrap_wxStatusBar_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3291 { "wxStatusBar_SetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_SetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3292 { "wxStatusBar_GetBorderY", (PyCFunction
) _wrap_wxStatusBar_GetBorderY
, METH_VARARGS
| METH_KEYWORDS
},
3293 { "wxStatusBar_GetBorderX", (PyCFunction
) _wrap_wxStatusBar_GetBorderX
, METH_VARARGS
| METH_KEYWORDS
},
3294 { "wxStatusBar_GetStatusText", (PyCFunction
) _wrap_wxStatusBar_GetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3295 { "wxStatusBar_GetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_GetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3296 { "wxStatusBar_GetFieldRect", (PyCFunction
) _wrap_wxStatusBar_GetFieldRect
, METH_VARARGS
| METH_KEYWORDS
},
3297 { "new_wxStatusBar", (PyCFunction
) _wrap_new_wxStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3304 * This table is used by the pointer type-checker
3306 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3307 { "_signed_long","_long",0},
3308 { "_wxPrintQuality","_wxCoord",0},
3309 { "_wxPrintQuality","_int",0},
3310 { "_wxPrintQuality","_signed_int",0},
3311 { "_wxPrintQuality","_unsigned_int",0},
3312 { "_wxPrintQuality","_wxWindowID",0},
3313 { "_wxPrintQuality","_uint",0},
3314 { "_wxPrintQuality","_EBool",0},
3315 { "_wxPrintQuality","_size_t",0},
3316 { "_wxPrintQuality","_time_t",0},
3317 { "_class_wxEvtHandler","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3318 { "_class_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3319 { "_class_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3320 { "_class_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3321 { "_class_wxEvtHandler","_class_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3322 { "_class_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3323 { "_class_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3324 { "_class_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3325 { "_class_wxToolBarBase","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3326 { "_class_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3327 { "_class_wxToolBarBase","_class_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3328 { "_class_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3329 { "_byte","_unsigned_char",0},
3330 { "_long","_unsigned_long",0},
3331 { "_long","_signed_long",0},
3332 { "_class_wxObject","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3333 { "_class_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3334 { "_class_wxObject","_class_wxToolBar",SwigwxToolBarTowxObject
},
3335 { "_class_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3336 { "_class_wxObject","_class_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3337 { "_class_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3338 { "_class_wxObject","_class_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3339 { "_class_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3340 { "_class_wxObject","_class_wxStatusBar",SwigwxStatusBarTowxObject
},
3341 { "_class_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3342 { "_size_t","_wxCoord",0},
3343 { "_size_t","_wxPrintQuality",0},
3344 { "_size_t","_time_t",0},
3345 { "_size_t","_unsigned_int",0},
3346 { "_size_t","_int",0},
3347 { "_size_t","_wxWindowID",0},
3348 { "_size_t","_uint",0},
3349 { "_uint","_wxCoord",0},
3350 { "_uint","_wxPrintQuality",0},
3351 { "_uint","_time_t",0},
3352 { "_uint","_size_t",0},
3353 { "_uint","_unsigned_int",0},
3354 { "_uint","_int",0},
3355 { "_uint","_wxWindowID",0},
3356 { "_wxChar","_char",0},
3357 { "_char","_wxChar",0},
3358 { "_EBool","_wxCoord",0},
3359 { "_EBool","_wxPrintQuality",0},
3360 { "_EBool","_signed_int",0},
3361 { "_EBool","_int",0},
3362 { "_EBool","_wxWindowID",0},
3363 { "_unsigned_long","_long",0},
3364 { "_signed_int","_wxCoord",0},
3365 { "_signed_int","_wxPrintQuality",0},
3366 { "_signed_int","_EBool",0},
3367 { "_signed_int","_wxWindowID",0},
3368 { "_signed_int","_int",0},
3369 { "_WXTYPE","_short",0},
3370 { "_WXTYPE","_signed_short",0},
3371 { "_WXTYPE","_unsigned_short",0},
3372 { "_unsigned_short","_WXTYPE",0},
3373 { "_unsigned_short","_short",0},
3374 { "_class_wxWindow","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3375 { "_class_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3376 { "_class_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow
},
3377 { "_class_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3378 { "_class_wxWindow","_class_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3379 { "_class_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3380 { "_class_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow
},
3381 { "_class_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3382 { "_wxObject","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3383 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3384 { "_wxObject","_class_wxToolBar",SwigwxToolBarTowxObject
},
3385 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3386 { "_wxObject","_class_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3387 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3388 { "_wxObject","_class_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3389 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3390 { "_wxObject","_class_wxStatusBar",SwigwxStatusBarTowxObject
},
3391 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3392 { "_signed_short","_WXTYPE",0},
3393 { "_signed_short","_short",0},
3394 { "_unsigned_char","_byte",0},
3395 { "_wxControl","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3396 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3397 { "_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl
},
3398 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3399 { "_wxControl","_class_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3400 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3401 { "_unsigned_int","_wxCoord",0},
3402 { "_unsigned_int","_wxPrintQuality",0},
3403 { "_unsigned_int","_time_t",0},
3404 { "_unsigned_int","_size_t",0},
3405 { "_unsigned_int","_uint",0},
3406 { "_unsigned_int","_wxWindowID",0},
3407 { "_unsigned_int","_int",0},
3408 { "_short","_WXTYPE",0},
3409 { "_short","_unsigned_short",0},
3410 { "_short","_signed_short",0},
3411 { "_wxWindowID","_wxCoord",0},
3412 { "_wxWindowID","_wxPrintQuality",0},
3413 { "_wxWindowID","_time_t",0},
3414 { "_wxWindowID","_size_t",0},
3415 { "_wxWindowID","_EBool",0},
3416 { "_wxWindowID","_uint",0},
3417 { "_wxWindowID","_int",0},
3418 { "_wxWindowID","_signed_int",0},
3419 { "_wxWindowID","_unsigned_int",0},
3420 { "_int","_wxCoord",0},
3421 { "_int","_wxPrintQuality",0},
3422 { "_int","_time_t",0},
3423 { "_int","_size_t",0},
3424 { "_int","_EBool",0},
3425 { "_int","_uint",0},
3426 { "_int","_wxWindowID",0},
3427 { "_int","_unsigned_int",0},
3428 { "_int","_signed_int",0},
3429 { "_time_t","_wxCoord",0},
3430 { "_time_t","_wxPrintQuality",0},
3431 { "_time_t","_unsigned_int",0},
3432 { "_time_t","_int",0},
3433 { "_time_t","_wxWindowID",0},
3434 { "_time_t","_uint",0},
3435 { "_time_t","_size_t",0},
3436 { "_wxToolBarBase","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3437 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3438 { "_wxToolBarBase","_class_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3439 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3440 { "_class_wxControl","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3441 { "_class_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3442 { "_class_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl
},
3443 { "_class_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3444 { "_class_wxControl","_class_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3445 { "_class_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3446 { "_wxCoord","_int",0},
3447 { "_wxCoord","_signed_int",0},
3448 { "_wxCoord","_unsigned_int",0},
3449 { "_wxCoord","_wxWindowID",0},
3450 { "_wxCoord","_uint",0},
3451 { "_wxCoord","_EBool",0},
3452 { "_wxCoord","_size_t",0},
3453 { "_wxCoord","_time_t",0},
3454 { "_wxCoord","_wxPrintQuality",0},
3455 { "_wxEvtHandler","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3456 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3457 { "_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3458 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3459 { "_wxEvtHandler","_class_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3460 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3461 { "_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3462 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3463 { "_wxWindow","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3464 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3465 { "_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow
},
3466 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3467 { "_wxWindow","_class_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3468 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3469 { "_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow
},
3470 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3473 static PyObject
*SWIG_globals
;
3477 SWIGEXPORT(void) initstattoolc() {
3479 SWIG_globals
= SWIG_newvarlink();
3480 m
= Py_InitModule("stattoolc", stattoolcMethods
);
3481 d
= PyModule_GetDict(m
);
3482 PyDict_SetItemString(d
,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON
));
3483 PyDict_SetItemString(d
,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR
));
3484 PyDict_SetItemString(d
,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL
));
3487 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3488 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);