2 * FILE : src/mac/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 // Put some wx default wxChar* values into wxStrings.
90 DECLARE_DEF_STRING(StatusLineNameStr
);
91 DECLARE_DEF_STRING(ToolBarNameStr
);
92 static const wxString
wxPyEmptyString(wxT(""));
96 static void *SwigwxStatusBarTowxWindow(void *ptr
) {
99 src
= (wxStatusBar
*) ptr
;
100 dest
= (wxWindow
*) src
;
101 return (void *) dest
;
104 static void *SwigwxStatusBarTowxEvtHandler(void *ptr
) {
107 src
= (wxStatusBar
*) ptr
;
108 dest
= (wxEvtHandler
*) src
;
109 return (void *) dest
;
112 static void *SwigwxStatusBarTowxObject(void *ptr
) {
115 src
= (wxStatusBar
*) ptr
;
116 dest
= (wxObject
*) src
;
117 return (void *) dest
;
120 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
121 static PyObject
*_wrap_new_wxStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
122 PyObject
* _resultobj
;
123 wxStatusBar
* _result
;
125 wxWindowID _arg1
= (wxWindowID
) -1;
126 long _arg2
= (long ) wxST_SIZEGRIP
;
127 wxString
* _arg3
= (wxString
*) &wxPyStatusLineNameStr
;
128 PyObject
* _argo0
= 0;
129 PyObject
* _obj3
= 0;
130 char *_kwnames
[] = { "parent","id","style","name", NULL
};
134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ilO:new_wxStatusBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_obj3
))
137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
145 _arg3
= wxString_in_helper(_obj3
);
150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
151 _result
= (wxStatusBar
*)new_wxStatusBar(_arg0
,_arg1
,_arg2
,*_arg3
);
153 wxPyEndAllowThreads(__tstate
);
154 if (PyErr_Occurred()) return NULL
;
156 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
157 _resultobj
= Py_BuildValue("s",_ptemp
);
160 _resultobj
= Py_None
;
169 #define new_wxPreStatusBar() (new wxStatusBar())
170 static PyObject
*_wrap_new_wxPreStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
171 PyObject
* _resultobj
;
172 wxStatusBar
* _result
;
173 char *_kwnames
[] = { NULL
};
177 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreStatusBar",_kwnames
))
180 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
181 _result
= (wxStatusBar
*)new_wxPreStatusBar();
183 wxPyEndAllowThreads(__tstate
);
184 if (PyErr_Occurred()) return NULL
;
186 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
187 _resultobj
= Py_BuildValue("s",_ptemp
);
190 _resultobj
= Py_None
;
195 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
196 static PyObject
*_wrap_wxStatusBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
197 PyObject
* _resultobj
;
202 long _arg3
= (long ) wxST_SIZEGRIP
;
203 wxString
* _arg4
= (wxString
*) &wxPyStatusLineNameStr
;
204 PyObject
* _argo0
= 0;
205 PyObject
* _argo1
= 0;
206 PyObject
* _obj4
= 0;
207 char *_kwnames
[] = { "self","parent","id","style","name", NULL
};
210 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|lO:wxStatusBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_obj4
))
213 if (_argo0
== Py_None
) { _arg0
= NULL
; }
214 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
215 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
220 if (_argo1
== Py_None
) { _arg1
= NULL
; }
221 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
222 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
228 _arg4
= wxString_in_helper(_obj4
);
233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
234 _result
= (bool )wxStatusBar_Create(_arg0
,_arg1
,_arg2
,_arg3
,*_arg4
);
236 wxPyEndAllowThreads(__tstate
);
237 if (PyErr_Occurred()) return NULL
;
238 } _resultobj
= Py_BuildValue("i",_result
);
246 static wxRect
* wxStatusBar_GetFieldRect(wxStatusBar
*self
,long item
) {
247 wxRect
* rect
= new wxRect
;
248 self
->GetFieldRect(item
, *rect
);
251 static PyObject
*_wrap_wxStatusBar_GetFieldRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
252 PyObject
* _resultobj
;
256 PyObject
* _argo0
= 0;
257 char *_kwnames
[] = { "self","item", NULL
};
261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxStatusBar_GetFieldRect",_kwnames
,&_argo0
,&_arg1
))
264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
271 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
272 _result
= (wxRect
*)wxStatusBar_GetFieldRect(_arg0
,_arg1
);
274 wxPyEndAllowThreads(__tstate
);
275 if (PyErr_Occurred()) return NULL
;
277 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRect_p");
278 _resultobj
= Py_BuildValue("s",_ptemp
);
281 _resultobj
= Py_None
;
286 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
287 static PyObject
*_wrap_wxStatusBar_GetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
288 PyObject
* _resultobj
;
291 PyObject
* _argo0
= 0;
292 char *_kwnames
[] = { "self", NULL
};
295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetFieldsCount",_kwnames
,&_argo0
))
298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
306 _result
= (int )wxStatusBar_GetFieldsCount(_arg0
);
308 wxPyEndAllowThreads(__tstate
);
309 if (PyErr_Occurred()) return NULL
;
310 } _resultobj
= Py_BuildValue("i",_result
);
314 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
315 static PyObject
*_wrap_wxStatusBar_GetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
316 PyObject
* _resultobj
;
319 int _arg1
= (int ) 0;
320 PyObject
* _argo0
= 0;
321 char *_kwnames
[] = { "self","ir", NULL
};
324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_GetStatusText",_kwnames
,&_argo0
,&_arg1
))
327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
335 _result
= new wxString (wxStatusBar_GetStatusText(_arg0
,_arg1
));
337 wxPyEndAllowThreads(__tstate
);
338 if (PyErr_Occurred()) return NULL
;
341 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
343 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
352 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
353 static PyObject
*_wrap_wxStatusBar_GetBorderX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
354 PyObject
* _resultobj
;
357 PyObject
* _argo0
= 0;
358 char *_kwnames
[] = { "self", NULL
};
361 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderX",_kwnames
,&_argo0
))
364 if (_argo0
== Py_None
) { _arg0
= NULL
; }
365 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
366 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
371 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
372 _result
= (int )wxStatusBar_GetBorderX(_arg0
);
374 wxPyEndAllowThreads(__tstate
);
375 if (PyErr_Occurred()) return NULL
;
376 } _resultobj
= Py_BuildValue("i",_result
);
380 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
381 static PyObject
*_wrap_wxStatusBar_GetBorderY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
382 PyObject
* _resultobj
;
385 PyObject
* _argo0
= 0;
386 char *_kwnames
[] = { "self", NULL
};
389 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderY",_kwnames
,&_argo0
))
392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
399 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
400 _result
= (int )wxStatusBar_GetBorderY(_arg0
);
402 wxPyEndAllowThreads(__tstate
);
403 if (PyErr_Occurred()) return NULL
;
404 } _resultobj
= Py_BuildValue("i",_result
);
408 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
409 static PyObject
*_wrap_wxStatusBar_SetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
410 PyObject
* _resultobj
;
412 int _arg1
= (int ) 1;
413 PyObject
* _argo0
= 0;
414 char *_kwnames
[] = { "self","number", NULL
};
417 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_SetFieldsCount",_kwnames
,&_argo0
,&_arg1
))
420 if (_argo0
== Py_None
) { _arg0
= NULL
; }
421 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
422 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
427 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
428 wxStatusBar_SetFieldsCount(_arg0
,_arg1
);
430 wxPyEndAllowThreads(__tstate
);
431 if (PyErr_Occurred()) return NULL
;
432 } Py_INCREF(Py_None
);
433 _resultobj
= Py_None
;
437 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
438 static PyObject
*_wrap_wxStatusBar_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
439 PyObject
* _resultobj
;
442 int _arg2
= (int ) 0;
443 PyObject
* _argo0
= 0;
444 PyObject
* _obj1
= 0;
445 char *_kwnames
[] = { "self","text","i", NULL
};
448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
458 _arg1
= wxString_in_helper(_obj1
);
463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
464 wxStatusBar_SetStatusText(_arg0
,*_arg1
,_arg2
);
466 wxPyEndAllowThreads(__tstate
);
467 if (PyErr_Occurred()) return NULL
;
468 } Py_INCREF(Py_None
);
469 _resultobj
= Py_None
;
477 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
478 static PyObject
*_wrap_wxStatusBar_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
479 PyObject
* _resultobj
;
483 PyObject
* _argo0
= 0;
484 PyObject
* _obj2
= 0;
485 char *_kwnames
[] = { "self","choices", NULL
};
488 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxStatusBar_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
491 if (_argo0
== Py_None
) { _arg0
= NULL
; }
492 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
493 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
499 _arg2
= int_LIST_helper(_obj2
);
506 _arg1
= PyList_Size(_obj2
);
513 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
514 wxStatusBar_SetStatusWidths(_arg0
,_arg1
,_arg2
);
516 wxPyEndAllowThreads(__tstate
);
517 if (PyErr_Occurred()) return NULL
;
518 } Py_INCREF(Py_None
);
519 _resultobj
= Py_None
;
526 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
527 static PyObject
*_wrap_wxStatusBar_SetMinHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
528 PyObject
* _resultobj
;
531 PyObject
* _argo0
= 0;
532 char *_kwnames
[] = { "self","height", NULL
};
535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxStatusBar_SetMinHeight",_kwnames
,&_argo0
,&_arg1
))
538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
545 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
546 wxStatusBar_SetMinHeight(_arg0
,_arg1
);
548 wxPyEndAllowThreads(__tstate
);
549 if (PyErr_Occurred()) return NULL
;
550 } Py_INCREF(Py_None
);
551 _resultobj
= Py_None
;
555 static void *SwigwxToolBarToolBaseTowxObject(void *ptr
) {
556 wxToolBarToolBase
*src
;
558 src
= (wxToolBarToolBase
*) ptr
;
559 dest
= (wxObject
*) src
;
560 return (void *) dest
;
563 static void wxToolBarToolBase_Destroy(wxToolBarToolBase
*self
) { delete self
; }
564 static PyObject
*_wrap_wxToolBarToolBase_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
565 PyObject
* _resultobj
;
566 wxToolBarToolBase
* _arg0
;
567 PyObject
* _argo0
= 0;
568 char *_kwnames
[] = { "self", NULL
};
571 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Destroy",_kwnames
,&_argo0
))
574 if (_argo0
== Py_None
) { _arg0
= NULL
; }
575 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
576 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
581 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
582 wxToolBarToolBase_Destroy(_arg0
);
584 wxPyEndAllowThreads(__tstate
);
585 if (PyErr_Occurred()) return NULL
;
586 } Py_INCREF(Py_None
);
587 _resultobj
= Py_None
;
591 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
592 static PyObject
*_wrap_wxToolBarToolBase_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
593 PyObject
* _resultobj
;
595 wxToolBarToolBase
* _arg0
;
596 PyObject
* _argo0
= 0;
597 char *_kwnames
[] = { "self", NULL
};
600 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetId",_kwnames
,&_argo0
))
603 if (_argo0
== Py_None
) { _arg0
= NULL
; }
604 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
605 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
610 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
611 _result
= (int )wxToolBarToolBase_GetId(_arg0
);
613 wxPyEndAllowThreads(__tstate
);
614 if (PyErr_Occurred()) return NULL
;
615 } _resultobj
= Py_BuildValue("i",_result
);
619 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
620 static PyObject
*_wrap_wxToolBarToolBase_GetControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
621 PyObject
* _resultobj
;
623 wxToolBarToolBase
* _arg0
;
624 PyObject
* _argo0
= 0;
625 char *_kwnames
[] = { "self", NULL
};
628 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetControl",_kwnames
,&_argo0
))
631 if (_argo0
== Py_None
) { _arg0
= NULL
; }
632 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
633 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
638 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
639 _result
= (wxControl
*)wxToolBarToolBase_GetControl(_arg0
);
641 wxPyEndAllowThreads(__tstate
);
642 if (PyErr_Occurred()) return NULL
;
643 }{ _resultobj
= wxPyMake_wxObject(_result
); }
647 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
648 static PyObject
*_wrap_wxToolBarToolBase_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
649 PyObject
* _resultobj
;
650 wxToolBarBase
* _result
;
651 wxToolBarToolBase
* _arg0
;
652 PyObject
* _argo0
= 0;
653 char *_kwnames
[] = { "self", NULL
};
656 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetToolBar",_kwnames
,&_argo0
))
659 if (_argo0
== Py_None
) { _arg0
= NULL
; }
660 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
661 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
666 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
667 _result
= (wxToolBarBase
*)wxToolBarToolBase_GetToolBar(_arg0
);
669 wxPyEndAllowThreads(__tstate
);
670 if (PyErr_Occurred()) return NULL
;
671 }{ _resultobj
= wxPyMake_wxObject(_result
); }
675 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
676 static PyObject
*_wrap_wxToolBarToolBase_IsButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
677 PyObject
* _resultobj
;
679 wxToolBarToolBase
* _arg0
;
680 PyObject
* _argo0
= 0;
681 char *_kwnames
[] = { "self", NULL
};
684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsButton",_kwnames
,&_argo0
))
687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
694 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
695 _result
= (int )wxToolBarToolBase_IsButton(_arg0
);
697 wxPyEndAllowThreads(__tstate
);
698 if (PyErr_Occurred()) return NULL
;
699 } _resultobj
= Py_BuildValue("i",_result
);
703 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
704 static PyObject
*_wrap_wxToolBarToolBase_IsControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
705 PyObject
* _resultobj
;
707 wxToolBarToolBase
* _arg0
;
708 PyObject
* _argo0
= 0;
709 char *_kwnames
[] = { "self", NULL
};
712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsControl",_kwnames
,&_argo0
))
715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
723 _result
= (int )wxToolBarToolBase_IsControl(_arg0
);
725 wxPyEndAllowThreads(__tstate
);
726 if (PyErr_Occurred()) return NULL
;
727 } _resultobj
= Py_BuildValue("i",_result
);
731 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
732 static PyObject
*_wrap_wxToolBarToolBase_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
733 PyObject
* _resultobj
;
735 wxToolBarToolBase
* _arg0
;
736 PyObject
* _argo0
= 0;
737 char *_kwnames
[] = { "self", NULL
};
740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsSeparator",_kwnames
,&_argo0
))
743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
750 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
751 _result
= (int )wxToolBarToolBase_IsSeparator(_arg0
);
753 wxPyEndAllowThreads(__tstate
);
754 if (PyErr_Occurred()) return NULL
;
755 } _resultobj
= Py_BuildValue("i",_result
);
759 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
760 static PyObject
*_wrap_wxToolBarToolBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
761 PyObject
* _resultobj
;
763 wxToolBarToolBase
* _arg0
;
764 PyObject
* _argo0
= 0;
765 char *_kwnames
[] = { "self", NULL
};
768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetStyle",_kwnames
,&_argo0
))
771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
778 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
779 _result
= (int )wxToolBarToolBase_GetStyle(_arg0
);
781 wxPyEndAllowThreads(__tstate
);
782 if (PyErr_Occurred()) return NULL
;
783 } _resultobj
= Py_BuildValue("i",_result
);
787 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
788 static PyObject
*_wrap_wxToolBarToolBase_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
789 PyObject
* _resultobj
;
791 wxToolBarToolBase
* _arg0
;
792 PyObject
* _argo0
= 0;
793 char *_kwnames
[] = { "self", NULL
};
796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsEnabled",_kwnames
,&_argo0
))
799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
806 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
807 _result
= (bool )wxToolBarToolBase_IsEnabled(_arg0
);
809 wxPyEndAllowThreads(__tstate
);
810 if (PyErr_Occurred()) return NULL
;
811 } _resultobj
= Py_BuildValue("i",_result
);
815 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
816 static PyObject
*_wrap_wxToolBarToolBase_IsToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
817 PyObject
* _resultobj
;
819 wxToolBarToolBase
* _arg0
;
820 PyObject
* _argo0
= 0;
821 char *_kwnames
[] = { "self", NULL
};
824 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsToggled",_kwnames
,&_argo0
))
827 if (_argo0
== Py_None
) { _arg0
= NULL
; }
828 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
829 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
834 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
835 _result
= (bool )wxToolBarToolBase_IsToggled(_arg0
);
837 wxPyEndAllowThreads(__tstate
);
838 if (PyErr_Occurred()) return NULL
;
839 } _resultobj
= Py_BuildValue("i",_result
);
843 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
844 static PyObject
*_wrap_wxToolBarToolBase_CanBeToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
845 PyObject
* _resultobj
;
847 wxToolBarToolBase
* _arg0
;
848 PyObject
* _argo0
= 0;
849 char *_kwnames
[] = { "self", NULL
};
852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_CanBeToggled",_kwnames
,&_argo0
))
855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
863 _result
= (bool )wxToolBarToolBase_CanBeToggled(_arg0
);
865 wxPyEndAllowThreads(__tstate
);
866 if (PyErr_Occurred()) return NULL
;
867 } _resultobj
= Py_BuildValue("i",_result
);
871 #define wxToolBarToolBase_GetNormalBitmap(_swigobj) (_swigobj->GetNormalBitmap())
872 static PyObject
*_wrap_wxToolBarToolBase_GetNormalBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
873 PyObject
* _resultobj
;
875 wxToolBarToolBase
* _arg0
;
876 PyObject
* _argo0
= 0;
877 char *_kwnames
[] = { "self", NULL
};
881 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetNormalBitmap",_kwnames
,&_argo0
))
884 if (_argo0
== Py_None
) { _arg0
= NULL
; }
885 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
886 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetNormalBitmap. Expected _wxToolBarToolBase_p.");
891 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
892 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetNormalBitmap(_arg0
);
893 _result
= (wxBitmap
*) &_result_ref
;
895 wxPyEndAllowThreads(__tstate
);
896 if (PyErr_Occurred()) return NULL
;
898 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
899 _resultobj
= Py_BuildValue("s",_ptemp
);
902 _resultobj
= Py_None
;
907 #define wxToolBarToolBase_GetDisabledBitmap(_swigobj) (_swigobj->GetDisabledBitmap())
908 static PyObject
*_wrap_wxToolBarToolBase_GetDisabledBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
909 PyObject
* _resultobj
;
911 wxToolBarToolBase
* _arg0
;
912 PyObject
* _argo0
= 0;
913 char *_kwnames
[] = { "self", NULL
};
917 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetDisabledBitmap",_kwnames
,&_argo0
))
920 if (_argo0
== Py_None
) { _arg0
= NULL
; }
921 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
922 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetDisabledBitmap. Expected _wxToolBarToolBase_p.");
927 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
928 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetDisabledBitmap(_arg0
);
929 _result
= (wxBitmap
*) &_result_ref
;
931 wxPyEndAllowThreads(__tstate
);
932 if (PyErr_Occurred()) return NULL
;
934 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
935 _resultobj
= Py_BuildValue("s",_ptemp
);
938 _resultobj
= Py_None
;
943 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
944 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
945 PyObject
* _resultobj
;
947 wxToolBarToolBase
* _arg0
;
948 PyObject
* _argo0
= 0;
949 char *_kwnames
[] = { "self", NULL
};
953 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap",_kwnames
,&_argo0
))
956 if (_argo0
== Py_None
) { _arg0
= NULL
; }
957 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
958 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
963 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
964 _result
= new wxBitmap (wxToolBarToolBase_GetBitmap(_arg0
));
966 wxPyEndAllowThreads(__tstate
);
967 if (PyErr_Occurred()) return NULL
;
968 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
969 _resultobj
= Py_BuildValue("s",_ptemp
);
973 #define wxToolBarToolBase_GetLabel(_swigobj) (_swigobj->GetLabel())
974 static PyObject
*_wrap_wxToolBarToolBase_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
975 PyObject
* _resultobj
;
977 wxToolBarToolBase
* _arg0
;
978 PyObject
* _argo0
= 0;
979 char *_kwnames
[] = { "self", NULL
};
982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLabel",_kwnames
,&_argo0
))
985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLabel. Expected _wxToolBarToolBase_p.");
992 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
993 _result
= new wxString (wxToolBarToolBase_GetLabel(_arg0
));
995 wxPyEndAllowThreads(__tstate
);
996 if (PyErr_Occurred()) return NULL
;
999 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1001 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1010 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
1011 static PyObject
*_wrap_wxToolBarToolBase_GetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1012 PyObject
* _resultobj
;
1014 wxToolBarToolBase
* _arg0
;
1015 PyObject
* _argo0
= 0;
1016 char *_kwnames
[] = { "self", NULL
};
1019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetShortHelp",_kwnames
,&_argo0
))
1022 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1023 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1024 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
1029 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1030 _result
= new wxString (wxToolBarToolBase_GetShortHelp(_arg0
));
1032 wxPyEndAllowThreads(__tstate
);
1033 if (PyErr_Occurred()) return NULL
;
1036 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1038 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1047 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
1048 static PyObject
*_wrap_wxToolBarToolBase_GetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1049 PyObject
* _resultobj
;
1051 wxToolBarToolBase
* _arg0
;
1052 PyObject
* _argo0
= 0;
1053 char *_kwnames
[] = { "self", NULL
};
1056 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLongHelp",_kwnames
,&_argo0
))
1059 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1060 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1066 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1067 _result
= new wxString (wxToolBarToolBase_GetLongHelp(_arg0
));
1069 wxPyEndAllowThreads(__tstate
);
1070 if (PyErr_Occurred()) return NULL
;
1073 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
1075 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1084 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1085 static PyObject
*_wrap_wxToolBarToolBase_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1086 PyObject
* _resultobj
;
1088 wxToolBarToolBase
* _arg0
;
1090 PyObject
* _argo0
= 0;
1092 char *_kwnames
[] = { "self","enable", NULL
};
1095 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Enable",_kwnames
,&_argo0
,&tempbool1
))
1098 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1099 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1104 _arg1
= (bool ) tempbool1
;
1106 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1107 _result
= (bool )wxToolBarToolBase_Enable(_arg0
,_arg1
);
1109 wxPyEndAllowThreads(__tstate
);
1110 if (PyErr_Occurred()) return NULL
;
1111 } _resultobj
= Py_BuildValue("i",_result
);
1115 #define wxToolBarToolBase_Toggle(_swigobj) (_swigobj->Toggle())
1116 static PyObject
*_wrap_wxToolBarToolBase_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1117 PyObject
* _resultobj
;
1118 wxToolBarToolBase
* _arg0
;
1119 PyObject
* _argo0
= 0;
1120 char *_kwnames
[] = { "self", NULL
};
1123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Toggle",_kwnames
,&_argo0
))
1126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1134 wxToolBarToolBase_Toggle(_arg0
);
1136 wxPyEndAllowThreads(__tstate
);
1137 if (PyErr_Occurred()) return NULL
;
1138 } Py_INCREF(Py_None
);
1139 _resultobj
= Py_None
;
1143 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1144 static PyObject
*_wrap_wxToolBarToolBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1145 PyObject
* _resultobj
;
1147 wxToolBarToolBase
* _arg0
;
1149 PyObject
* _argo0
= 0;
1151 char *_kwnames
[] = { "self","toggle", NULL
};
1154 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_SetToggle",_kwnames
,&_argo0
,&tempbool1
))
1157 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1158 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1159 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1163 _arg1
= (bool ) tempbool1
;
1165 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1166 _result
= (bool )wxToolBarToolBase_SetToggle(_arg0
,_arg1
);
1168 wxPyEndAllowThreads(__tstate
);
1169 if (PyErr_Occurred()) return NULL
;
1170 } _resultobj
= Py_BuildValue("i",_result
);
1174 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1175 static PyObject
*_wrap_wxToolBarToolBase_SetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1176 PyObject
* _resultobj
;
1178 wxToolBarToolBase
* _arg0
;
1180 PyObject
* _argo0
= 0;
1181 PyObject
* _obj1
= 0;
1182 char *_kwnames
[] = { "self","help", NULL
};
1185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetShortHelp",_kwnames
,&_argo0
,&_obj1
))
1188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1195 _arg1
= wxString_in_helper(_obj1
);
1200 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1201 _result
= (bool )wxToolBarToolBase_SetShortHelp(_arg0
,*_arg1
);
1203 wxPyEndAllowThreads(__tstate
);
1204 if (PyErr_Occurred()) return NULL
;
1205 } _resultobj
= Py_BuildValue("i",_result
);
1213 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1214 static PyObject
*_wrap_wxToolBarToolBase_SetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1215 PyObject
* _resultobj
;
1217 wxToolBarToolBase
* _arg0
;
1219 PyObject
* _argo0
= 0;
1220 PyObject
* _obj1
= 0;
1221 char *_kwnames
[] = { "self","help", NULL
};
1224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLongHelp",_kwnames
,&_argo0
,&_obj1
))
1227 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1228 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1229 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1234 _arg1
= wxString_in_helper(_obj1
);
1239 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1240 _result
= (bool )wxToolBarToolBase_SetLongHelp(_arg0
,*_arg1
);
1242 wxPyEndAllowThreads(__tstate
);
1243 if (PyErr_Occurred()) return NULL
;
1244 } _resultobj
= Py_BuildValue("i",_result
);
1252 #define wxToolBarToolBase_SetNormalBitmap(_swigobj,_swigarg0) (_swigobj->SetNormalBitmap(_swigarg0))
1253 static PyObject
*_wrap_wxToolBarToolBase_SetNormalBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1254 PyObject
* _resultobj
;
1255 wxToolBarToolBase
* _arg0
;
1257 PyObject
* _argo0
= 0;
1258 PyObject
* _argo1
= 0;
1259 char *_kwnames
[] = { "self","bmp", NULL
};
1262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetNormalBitmap",_kwnames
,&_argo0
,&_argo1
))
1265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetNormalBitmap. Expected _wxToolBarToolBase_p.");
1272 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1273 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1274 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetNormalBitmap. Expected _wxBitmap_p.");
1279 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1280 wxToolBarToolBase_SetNormalBitmap(_arg0
,*_arg1
);
1282 wxPyEndAllowThreads(__tstate
);
1283 if (PyErr_Occurred()) return NULL
;
1284 } Py_INCREF(Py_None
);
1285 _resultobj
= Py_None
;
1289 #define wxToolBarToolBase_SetDisabledBitmap(_swigobj,_swigarg0) (_swigobj->SetDisabledBitmap(_swigarg0))
1290 static PyObject
*_wrap_wxToolBarToolBase_SetDisabledBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1291 PyObject
* _resultobj
;
1292 wxToolBarToolBase
* _arg0
;
1294 PyObject
* _argo0
= 0;
1295 PyObject
* _argo1
= 0;
1296 char *_kwnames
[] = { "self","bmp", NULL
};
1299 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetDisabledBitmap",_kwnames
,&_argo0
,&_argo1
))
1302 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1303 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1304 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetDisabledBitmap. Expected _wxToolBarToolBase_p.");
1309 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1310 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1311 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetDisabledBitmap. Expected _wxBitmap_p.");
1316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1317 wxToolBarToolBase_SetDisabledBitmap(_arg0
,*_arg1
);
1319 wxPyEndAllowThreads(__tstate
);
1320 if (PyErr_Occurred()) return NULL
;
1321 } Py_INCREF(Py_None
);
1322 _resultobj
= Py_None
;
1326 #define wxToolBarToolBase_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1327 static PyObject
*_wrap_wxToolBarToolBase_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1328 PyObject
* _resultobj
;
1329 wxToolBarToolBase
* _arg0
;
1331 PyObject
* _argo0
= 0;
1332 PyObject
* _obj1
= 0;
1333 char *_kwnames
[] = { "self","label", NULL
};
1336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLabel",_kwnames
,&_argo0
,&_obj1
))
1339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLabel. Expected _wxToolBarToolBase_p.");
1346 _arg1
= wxString_in_helper(_obj1
);
1351 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1352 wxToolBarToolBase_SetLabel(_arg0
,*_arg1
);
1354 wxPyEndAllowThreads(__tstate
);
1355 if (PyErr_Occurred()) return NULL
;
1356 } Py_INCREF(Py_None
);
1357 _resultobj
= Py_None
;
1365 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1366 static PyObject
*_wrap_wxToolBarToolBase_Detach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1367 PyObject
* _resultobj
;
1368 wxToolBarToolBase
* _arg0
;
1369 PyObject
* _argo0
= 0;
1370 char *_kwnames
[] = { "self", NULL
};
1373 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Detach",_kwnames
,&_argo0
))
1376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1383 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1384 wxToolBarToolBase_Detach(_arg0
);
1386 wxPyEndAllowThreads(__tstate
);
1387 if (PyErr_Occurred()) return NULL
;
1388 } Py_INCREF(Py_None
);
1389 _resultobj
= Py_None
;
1393 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1394 static PyObject
*_wrap_wxToolBarToolBase_Attach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1395 PyObject
* _resultobj
;
1396 wxToolBarToolBase
* _arg0
;
1397 wxToolBarBase
* _arg1
;
1398 PyObject
* _argo0
= 0;
1399 PyObject
* _argo1
= 0;
1400 char *_kwnames
[] = { "self","tbar", NULL
};
1403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_Attach",_kwnames
,&_argo0
,&_argo1
))
1406 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1407 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1408 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1413 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1414 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBarBase_p")) {
1415 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1420 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1421 wxToolBarToolBase_Attach(_arg0
,_arg1
);
1423 wxPyEndAllowThreads(__tstate
);
1424 if (PyErr_Occurred()) return NULL
;
1425 } Py_INCREF(Py_None
);
1426 _resultobj
= Py_None
;
1430 static PyObject
* wxToolBarToolBase_GetClientData(wxToolBarToolBase
*self
) {
1431 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetClientData();
1433 Py_INCREF(udata
->m_obj
);
1434 return udata
->m_obj
;
1440 static PyObject
*_wrap_wxToolBarToolBase_GetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1441 PyObject
* _resultobj
;
1443 wxToolBarToolBase
* _arg0
;
1444 PyObject
* _argo0
= 0;
1445 char *_kwnames
[] = { "self", NULL
};
1448 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetClientData",_kwnames
,&_argo0
))
1451 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1452 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1453 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1458 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1459 _result
= (PyObject
*)wxToolBarToolBase_GetClientData(_arg0
);
1461 wxPyEndAllowThreads(__tstate
);
1462 if (PyErr_Occurred()) return NULL
;
1464 _resultobj
= _result
;
1469 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase
*self
,PyObject
* clientData
) {
1470 self
->SetClientData(new wxPyUserData(clientData
));
1472 static PyObject
*_wrap_wxToolBarToolBase_SetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1473 PyObject
* _resultobj
;
1474 wxToolBarToolBase
* _arg0
;
1476 PyObject
* _argo0
= 0;
1477 PyObject
* _obj1
= 0;
1478 char *_kwnames
[] = { "self","clientData", NULL
};
1481 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetClientData",_kwnames
,&_argo0
,&_obj1
))
1484 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1485 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1486 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1494 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1495 wxToolBarToolBase_SetClientData(_arg0
,_arg1
);
1497 wxPyEndAllowThreads(__tstate
);
1498 if (PyErr_Occurred()) return NULL
;
1499 } Py_INCREF(Py_None
);
1500 _resultobj
= Py_None
;
1504 static void *SwigwxToolBarBaseTowxControl(void *ptr
) {
1507 src
= (wxToolBarBase
*) ptr
;
1508 dest
= (wxControl
*) src
;
1509 return (void *) dest
;
1512 static void *SwigwxToolBarBaseTowxWindow(void *ptr
) {
1515 src
= (wxToolBarBase
*) ptr
;
1516 dest
= (wxWindow
*) src
;
1517 return (void *) dest
;
1520 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr
) {
1523 src
= (wxToolBarBase
*) ptr
;
1524 dest
= (wxEvtHandler
*) src
;
1525 return (void *) dest
;
1528 static void *SwigwxToolBarBaseTowxObject(void *ptr
) {
1531 src
= (wxToolBarBase
*) ptr
;
1532 dest
= (wxObject
*) src
;
1533 return (void *) dest
;
1536 static wxToolBarToolBase
* wxToolBarBase_AddTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxBitmap
& pushedBitmap
,int isToggle
,PyObject
* clientData
,const wxString
& shortHelpString
,const wxString
& longHelpString
) {
1537 wxPyUserData
* udata
= NULL
;
1539 udata
= new wxPyUserData(clientData
);
1540 return self
->AddTool(id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1541 udata
, shortHelpString
, longHelpString
);
1543 static PyObject
*_wrap_wxToolBarBase_AddTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1544 PyObject
* _resultobj
;
1545 wxToolBarToolBase
* _result
;
1546 wxToolBarBase
* _arg0
;
1549 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
1550 int _arg4
= (int ) FALSE
;
1551 PyObject
* _arg5
= (PyObject
*) NULL
;
1552 wxString
* _arg6
= (wxString
*) &wxPyEmptyString
;
1553 wxString
* _arg7
= (wxString
*) &wxPyEmptyString
;
1554 PyObject
* _argo0
= 0;
1555 PyObject
* _argo2
= 0;
1556 PyObject
* _argo3
= 0;
1557 PyObject
* _obj5
= 0;
1558 PyObject
* _obj6
= 0;
1559 PyObject
* _obj7
= 0;
1560 char *_kwnames
[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_arg4
,&_obj5
,&_obj6
,&_obj7
))
1566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
1573 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1574 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1575 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1580 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1581 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1592 _arg6
= wxString_in_helper(_obj6
);
1598 _arg7
= wxString_in_helper(_obj7
);
1603 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1604 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddTool(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,*_arg6
,*_arg7
);
1606 wxPyEndAllowThreads(__tstate
);
1607 if (PyErr_Occurred()) return NULL
;
1608 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1620 static wxToolBarToolBase
* wxToolBarBase_AddSimpleTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1621 return self
->AddTool(id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1622 shortHelpString
, longHelpString
);
1624 static PyObject
*_wrap_wxToolBarBase_AddSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1625 PyObject
* _resultobj
;
1626 wxToolBarToolBase
* _result
;
1627 wxToolBarBase
* _arg0
;
1630 wxString
* _arg3
= (wxString
*) &wxPyEmptyString
;
1631 wxString
* _arg4
= (wxString
*) &wxPyEmptyString
;
1632 int _arg5
= (int ) FALSE
;
1633 PyObject
* _argo0
= 0;
1634 PyObject
* _argo2
= 0;
1635 PyObject
* _obj3
= 0;
1636 PyObject
* _obj4
= 0;
1637 char *_kwnames
[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1640 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
,&_obj4
,&_arg5
))
1643 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1644 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1645 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
1650 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1651 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1652 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1658 _arg3
= wxString_in_helper(_obj3
);
1664 _arg4
= wxString_in_helper(_obj4
);
1669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1670 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSimpleTool(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
);
1672 wxPyEndAllowThreads(__tstate
);
1673 if (PyErr_Occurred()) return NULL
;
1674 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1686 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
) {
1687 wxPyUserData
* udata
= NULL
;
1689 udata
= new wxPyUserData(clientData
);
1690 return self
->InsertTool(pos
, id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1691 udata
, shortHelpString
, longHelpString
);
1693 static PyObject
*_wrap_wxToolBarBase_InsertTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1694 PyObject
* _resultobj
;
1695 wxToolBarToolBase
* _result
;
1696 wxToolBarBase
* _arg0
;
1700 wxBitmap
* _arg4
= (wxBitmap
*) &wxNullBitmap
;
1701 int _arg5
= (int ) FALSE
;
1702 PyObject
* _arg6
= (PyObject
*) NULL
;
1703 wxString
* _arg7
= (wxString
*) &wxPyEmptyString
;
1704 wxString
* _arg8
= (wxString
*) &wxPyEmptyString
;
1705 PyObject
* _argo0
= 0;
1706 PyObject
* _argo3
= 0;
1707 PyObject
* _argo4
= 0;
1708 PyObject
* _obj6
= 0;
1709 PyObject
* _obj7
= 0;
1710 PyObject
* _obj8
= 0;
1711 char *_kwnames
[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1714 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_argo4
,&_arg5
,&_obj6
,&_obj7
,&_obj8
))
1717 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1718 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1719 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1724 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1725 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1726 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1731 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1732 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1743 _arg7
= wxString_in_helper(_obj7
);
1749 _arg8
= wxString_in_helper(_obj8
);
1754 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1755 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,*_arg7
,*_arg8
);
1757 wxPyEndAllowThreads(__tstate
);
1758 if (PyErr_Occurred()) return NULL
;
1759 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1771 static wxToolBarToolBase
* wxToolBarBase_InsertSimpleTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1772 return self
->InsertTool(pos
, id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1773 shortHelpString
, longHelpString
);
1775 static PyObject
*_wrap_wxToolBarBase_InsertSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1776 PyObject
* _resultobj
;
1777 wxToolBarToolBase
* _result
;
1778 wxToolBarBase
* _arg0
;
1782 wxString
* _arg4
= (wxString
*) &wxPyEmptyString
;
1783 wxString
* _arg5
= (wxString
*) &wxPyEmptyString
;
1784 int _arg6
= (int ) FALSE
;
1785 PyObject
* _argo0
= 0;
1786 PyObject
* _argo3
= 0;
1787 PyObject
* _obj4
= 0;
1788 PyObject
* _obj5
= 0;
1789 char *_kwnames
[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1792 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_obj4
,&_obj5
,&_arg6
))
1795 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1796 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1797 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
1802 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1803 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1804 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1810 _arg4
= wxString_in_helper(_obj4
);
1816 _arg5
= wxString_in_helper(_obj5
);
1821 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1822 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSimpleTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
);
1824 wxPyEndAllowThreads(__tstate
);
1825 if (PyErr_Occurred()) return NULL
;
1826 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1838 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1839 static PyObject
*_wrap_wxToolBarBase_AddControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1840 PyObject
* _resultobj
;
1841 wxToolBarToolBase
* _result
;
1842 wxToolBarBase
* _arg0
;
1844 PyObject
* _argo0
= 0;
1845 PyObject
* _argo1
= 0;
1846 char *_kwnames
[] = { "self","control", NULL
};
1849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_AddControl",_kwnames
,&_argo0
,&_argo1
))
1852 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1853 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1854 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1859 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1860 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxControl_p")) {
1861 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1866 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1867 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddControl(_arg0
,_arg1
);
1869 wxPyEndAllowThreads(__tstate
);
1870 if (PyErr_Occurred()) return NULL
;
1871 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1875 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1876 static PyObject
*_wrap_wxToolBarBase_InsertControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1877 PyObject
* _resultobj
;
1878 wxToolBarToolBase
* _result
;
1879 wxToolBarBase
* _arg0
;
1882 PyObject
* _argo0
= 0;
1883 PyObject
* _argo2
= 0;
1884 char *_kwnames
[] = { "self","pos","control", NULL
};
1887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_InsertControl",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1890 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1891 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1892 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1897 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1898 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxControl_p")) {
1899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1904 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1905 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertControl(_arg0
,_arg1
,_arg2
);
1907 wxPyEndAllowThreads(__tstate
);
1908 if (PyErr_Occurred()) return NULL
;
1909 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1913 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1914 static PyObject
*_wrap_wxToolBarBase_AddSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1915 PyObject
* _resultobj
;
1916 wxToolBarToolBase
* _result
;
1917 wxToolBarBase
* _arg0
;
1918 PyObject
* _argo0
= 0;
1919 char *_kwnames
[] = { "self", NULL
};
1922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_AddSeparator",_kwnames
,&_argo0
))
1925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
1932 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1933 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSeparator(_arg0
);
1935 wxPyEndAllowThreads(__tstate
);
1936 if (PyErr_Occurred()) return NULL
;
1937 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1941 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
1942 static PyObject
*_wrap_wxToolBarBase_InsertSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1943 PyObject
* _resultobj
;
1944 wxToolBarToolBase
* _result
;
1945 wxToolBarBase
* _arg0
;
1947 PyObject
* _argo0
= 0;
1948 char *_kwnames
[] = { "self","pos", NULL
};
1951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_InsertSeparator",_kwnames
,&_argo0
,&_arg1
))
1954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
1961 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1962 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSeparator(_arg0
,_arg1
);
1964 wxPyEndAllowThreads(__tstate
);
1965 if (PyErr_Occurred()) return NULL
;
1966 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1970 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
1971 static PyObject
*_wrap_wxToolBarBase_RemoveTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1972 PyObject
* _resultobj
;
1973 wxToolBarToolBase
* _result
;
1974 wxToolBarBase
* _arg0
;
1976 PyObject
* _argo0
= 0;
1977 char *_kwnames
[] = { "self","id", NULL
};
1980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_RemoveTool",_kwnames
,&_argo0
,&_arg1
))
1983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
1990 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1991 _result
= (wxToolBarToolBase
*)wxToolBarBase_RemoveTool(_arg0
,_arg1
);
1993 wxPyEndAllowThreads(__tstate
);
1994 if (PyErr_Occurred()) return NULL
;
1995 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1999 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2000 static PyObject
*_wrap_wxToolBarBase_DeleteToolByPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2001 PyObject
* _resultobj
;
2003 wxToolBarBase
* _arg0
;
2005 PyObject
* _argo0
= 0;
2006 char *_kwnames
[] = { "self","pos", NULL
};
2009 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames
,&_argo0
,&_arg1
))
2012 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2013 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2014 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2019 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2020 _result
= (bool )wxToolBarBase_DeleteToolByPos(_arg0
,_arg1
);
2022 wxPyEndAllowThreads(__tstate
);
2023 if (PyErr_Occurred()) return NULL
;
2024 } _resultobj
= Py_BuildValue("i",_result
);
2028 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2029 static PyObject
*_wrap_wxToolBarBase_DeleteTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2030 PyObject
* _resultobj
;
2032 wxToolBarBase
* _arg0
;
2034 PyObject
* _argo0
= 0;
2035 char *_kwnames
[] = { "self","id", NULL
};
2038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteTool",_kwnames
,&_argo0
,&_arg1
))
2041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2048 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2049 _result
= (bool )wxToolBarBase_DeleteTool(_arg0
,_arg1
);
2051 wxPyEndAllowThreads(__tstate
);
2052 if (PyErr_Occurred()) return NULL
;
2053 } _resultobj
= Py_BuildValue("i",_result
);
2057 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2058 static PyObject
*_wrap_wxToolBarBase_ClearTools(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2059 PyObject
* _resultobj
;
2060 wxToolBarBase
* _arg0
;
2061 PyObject
* _argo0
= 0;
2062 char *_kwnames
[] = { "self", NULL
};
2065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_ClearTools",_kwnames
,&_argo0
))
2068 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2069 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2070 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2075 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2076 wxToolBarBase_ClearTools(_arg0
);
2078 wxPyEndAllowThreads(__tstate
);
2079 if (PyErr_Occurred()) return NULL
;
2080 } Py_INCREF(Py_None
);
2081 _resultobj
= Py_None
;
2085 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2086 static PyObject
*_wrap_wxToolBarBase_Realize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2087 PyObject
* _resultobj
;
2089 wxToolBarBase
* _arg0
;
2090 PyObject
* _argo0
= 0;
2091 char *_kwnames
[] = { "self", NULL
};
2094 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_Realize",_kwnames
,&_argo0
))
2097 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2098 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2099 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2104 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2105 _result
= (bool )wxToolBarBase_Realize(_arg0
);
2107 wxPyEndAllowThreads(__tstate
);
2108 if (PyErr_Occurred()) return NULL
;
2109 } _resultobj
= Py_BuildValue("i",_result
);
2113 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2114 static PyObject
*_wrap_wxToolBarBase_EnableTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2115 PyObject
* _resultobj
;
2116 wxToolBarBase
* _arg0
;
2119 PyObject
* _argo0
= 0;
2121 char *_kwnames
[] = { "self","id","enable", NULL
};
2124 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_EnableTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2127 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2128 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2129 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2133 _arg2
= (bool ) tempbool2
;
2135 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2136 wxToolBarBase_EnableTool(_arg0
,_arg1
,_arg2
);
2138 wxPyEndAllowThreads(__tstate
);
2139 if (PyErr_Occurred()) return NULL
;
2140 } Py_INCREF(Py_None
);
2141 _resultobj
= Py_None
;
2145 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2146 static PyObject
*_wrap_wxToolBarBase_ToggleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2147 PyObject
* _resultobj
;
2148 wxToolBarBase
* _arg0
;
2151 PyObject
* _argo0
= 0;
2153 char *_kwnames
[] = { "self","id","toggle", NULL
};
2156 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_ToggleTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2159 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2160 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2161 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2165 _arg2
= (bool ) tempbool2
;
2167 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2168 wxToolBarBase_ToggleTool(_arg0
,_arg1
,_arg2
);
2170 wxPyEndAllowThreads(__tstate
);
2171 if (PyErr_Occurred()) return NULL
;
2172 } Py_INCREF(Py_None
);
2173 _resultobj
= Py_None
;
2177 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2178 static PyObject
*_wrap_wxToolBarBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2179 PyObject
* _resultobj
;
2180 wxToolBarBase
* _arg0
;
2183 PyObject
* _argo0
= 0;
2185 char *_kwnames
[] = { "self","id","toggle", NULL
};
2188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetToggle",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2191 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2192 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2197 _arg2
= (bool ) tempbool2
;
2199 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2200 wxToolBarBase_SetToggle(_arg0
,_arg1
,_arg2
);
2202 wxPyEndAllowThreads(__tstate
);
2203 if (PyErr_Occurred()) return NULL
;
2204 } Py_INCREF(Py_None
);
2205 _resultobj
= Py_None
;
2209 static PyObject
* wxToolBarBase_GetToolClientData(wxToolBarBase
*self
,int id
) {
2210 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetToolClientData(id
);
2212 Py_INCREF(udata
->m_obj
);
2213 return udata
->m_obj
;
2219 static PyObject
*_wrap_wxToolBarBase_GetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2220 PyObject
* _resultobj
;
2222 wxToolBarBase
* _arg0
;
2224 PyObject
* _argo0
= 0;
2225 char *_kwnames
[] = { "self","id", NULL
};
2228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolClientData",_kwnames
,&_argo0
,&_arg1
))
2231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2238 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2239 _result
= (PyObject
*)wxToolBarBase_GetToolClientData(_arg0
,_arg1
);
2241 wxPyEndAllowThreads(__tstate
);
2242 if (PyErr_Occurred()) return NULL
;
2244 _resultobj
= _result
;
2249 static void wxToolBarBase_SetToolClientData(wxToolBarBase
*self
,int id
,PyObject
* clientData
) {
2250 self
->SetToolClientData(id
, new wxPyUserData(clientData
));
2252 static PyObject
*_wrap_wxToolBarBase_SetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2253 PyObject
* _resultobj
;
2254 wxToolBarBase
* _arg0
;
2257 PyObject
* _argo0
= 0;
2258 PyObject
* _obj2
= 0;
2259 char *_kwnames
[] = { "self","id","clientData", NULL
};
2262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolClientData",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2275 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2276 wxToolBarBase_SetToolClientData(_arg0
,_arg1
,_arg2
);
2278 wxPyEndAllowThreads(__tstate
);
2279 if (PyErr_Occurred()) return NULL
;
2280 } Py_INCREF(Py_None
);
2281 _resultobj
= Py_None
;
2285 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2286 static PyObject
*_wrap_wxToolBarBase_GetToolState(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2287 PyObject
* _resultobj
;
2289 wxToolBarBase
* _arg0
;
2291 PyObject
* _argo0
= 0;
2292 char *_kwnames
[] = { "self","id", NULL
};
2295 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolState",_kwnames
,&_argo0
,&_arg1
))
2298 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2299 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2305 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2306 _result
= (bool )wxToolBarBase_GetToolState(_arg0
,_arg1
);
2308 wxPyEndAllowThreads(__tstate
);
2309 if (PyErr_Occurred()) return NULL
;
2310 } _resultobj
= Py_BuildValue("i",_result
);
2314 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2315 static PyObject
*_wrap_wxToolBarBase_GetToolEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2316 PyObject
* _resultobj
;
2318 wxToolBarBase
* _arg0
;
2320 PyObject
* _argo0
= 0;
2321 char *_kwnames
[] = { "self","id", NULL
};
2324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolEnabled",_kwnames
,&_argo0
,&_arg1
))
2327 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2328 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2329 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2334 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2335 _result
= (bool )wxToolBarBase_GetToolEnabled(_arg0
,_arg1
);
2337 wxPyEndAllowThreads(__tstate
);
2338 if (PyErr_Occurred()) return NULL
;
2339 } _resultobj
= Py_BuildValue("i",_result
);
2343 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2344 static PyObject
*_wrap_wxToolBarBase_SetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2345 PyObject
* _resultobj
;
2346 wxToolBarBase
* _arg0
;
2349 PyObject
* _argo0
= 0;
2350 PyObject
* _obj2
= 0;
2351 char *_kwnames
[] = { "self","id","helpString", NULL
};
2354 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2357 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2358 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2364 _arg2
= wxString_in_helper(_obj2
);
2369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2370 wxToolBarBase_SetToolShortHelp(_arg0
,_arg1
,*_arg2
);
2372 wxPyEndAllowThreads(__tstate
);
2373 if (PyErr_Occurred()) return NULL
;
2374 } Py_INCREF(Py_None
);
2375 _resultobj
= Py_None
;
2383 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2384 static PyObject
*_wrap_wxToolBarBase_GetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2385 PyObject
* _resultobj
;
2387 wxToolBarBase
* _arg0
;
2389 PyObject
* _argo0
= 0;
2390 char *_kwnames
[] = { "self","id", NULL
};
2393 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames
,&_argo0
,&_arg1
))
2396 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2397 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2398 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2403 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2404 _result
= new wxString (wxToolBarBase_GetToolShortHelp(_arg0
,_arg1
));
2406 wxPyEndAllowThreads(__tstate
);
2407 if (PyErr_Occurred()) return NULL
;
2410 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
2412 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2421 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2422 static PyObject
*_wrap_wxToolBarBase_SetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2423 PyObject
* _resultobj
;
2424 wxToolBarBase
* _arg0
;
2427 PyObject
* _argo0
= 0;
2428 PyObject
* _obj2
= 0;
2429 char *_kwnames
[] = { "self","id","helpString", NULL
};
2432 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2435 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2436 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2437 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2442 _arg2
= wxString_in_helper(_obj2
);
2447 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2448 wxToolBarBase_SetToolLongHelp(_arg0
,_arg1
,*_arg2
);
2450 wxPyEndAllowThreads(__tstate
);
2451 if (PyErr_Occurred()) return NULL
;
2452 } Py_INCREF(Py_None
);
2453 _resultobj
= Py_None
;
2461 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2462 static PyObject
*_wrap_wxToolBarBase_GetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2463 PyObject
* _resultobj
;
2465 wxToolBarBase
* _arg0
;
2467 PyObject
* _argo0
= 0;
2468 char *_kwnames
[] = { "self","id", NULL
};
2471 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames
,&_argo0
,&_arg1
))
2474 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2475 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2476 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2481 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2482 _result
= new wxString (wxToolBarBase_GetToolLongHelp(_arg0
,_arg1
));
2484 wxPyEndAllowThreads(__tstate
);
2485 if (PyErr_Occurred()) return NULL
;
2488 _resultobj
= PyUnicode_FromUnicode(_result
->c_str(), _result
->Len());
2490 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2499 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2500 static PyObject
*_wrap_wxToolBarBase_SetMarginsXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2501 PyObject
* _resultobj
;
2502 wxToolBarBase
* _arg0
;
2505 PyObject
* _argo0
= 0;
2506 char *_kwnames
[] = { "self","x","y", NULL
};
2509 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMarginsXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2512 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2513 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2514 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2519 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2520 wxToolBarBase_SetMarginsXY(_arg0
,_arg1
,_arg2
);
2522 wxPyEndAllowThreads(__tstate
);
2523 if (PyErr_Occurred()) return NULL
;
2524 } Py_INCREF(Py_None
);
2525 _resultobj
= Py_None
;
2529 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2530 static PyObject
*_wrap_wxToolBarBase_SetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2531 PyObject
* _resultobj
;
2532 wxToolBarBase
* _arg0
;
2534 PyObject
* _argo0
= 0;
2536 PyObject
* _obj1
= 0;
2537 char *_kwnames
[] = { "self","size", NULL
};
2540 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetMargins",_kwnames
,&_argo0
,&_obj1
))
2543 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2544 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2545 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2551 if (! wxSize_helper(_obj1
, &_arg1
))
2555 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2556 wxToolBarBase_SetMargins(_arg0
,*_arg1
);
2558 wxPyEndAllowThreads(__tstate
);
2559 if (PyErr_Occurred()) return NULL
;
2560 } Py_INCREF(Py_None
);
2561 _resultobj
= Py_None
;
2565 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2566 static PyObject
*_wrap_wxToolBarBase_SetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2567 PyObject
* _resultobj
;
2568 wxToolBarBase
* _arg0
;
2570 PyObject
* _argo0
= 0;
2571 char *_kwnames
[] = { "self","packing", NULL
};
2574 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolPacking",_kwnames
,&_argo0
,&_arg1
))
2577 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2578 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2579 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2584 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2585 wxToolBarBase_SetToolPacking(_arg0
,_arg1
);
2587 wxPyEndAllowThreads(__tstate
);
2588 if (PyErr_Occurred()) return NULL
;
2589 } Py_INCREF(Py_None
);
2590 _resultobj
= Py_None
;
2594 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2595 static PyObject
*_wrap_wxToolBarBase_SetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2596 PyObject
* _resultobj
;
2597 wxToolBarBase
* _arg0
;
2599 PyObject
* _argo0
= 0;
2600 char *_kwnames
[] = { "self","separation", NULL
};
2603 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolSeparation",_kwnames
,&_argo0
,&_arg1
))
2606 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2607 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2608 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2613 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2614 wxToolBarBase_SetToolSeparation(_arg0
,_arg1
);
2616 wxPyEndAllowThreads(__tstate
);
2617 if (PyErr_Occurred()) return NULL
;
2618 } Py_INCREF(Py_None
);
2619 _resultobj
= Py_None
;
2623 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2624 static PyObject
*_wrap_wxToolBarBase_GetToolMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2625 PyObject
* _resultobj
;
2627 wxToolBarBase
* _arg0
;
2628 PyObject
* _argo0
= 0;
2629 char *_kwnames
[] = { "self", NULL
};
2633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolMargins",_kwnames
,&_argo0
))
2636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2643 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2644 _result
= new wxSize (wxToolBarBase_GetToolMargins(_arg0
));
2646 wxPyEndAllowThreads(__tstate
);
2647 if (PyErr_Occurred()) return NULL
;
2648 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2649 _resultobj
= Py_BuildValue("s",_ptemp
);
2653 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2654 static PyObject
*_wrap_wxToolBarBase_GetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2655 PyObject
* _resultobj
;
2657 wxToolBarBase
* _arg0
;
2658 PyObject
* _argo0
= 0;
2659 char *_kwnames
[] = { "self", NULL
};
2663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMargins",_kwnames
,&_argo0
))
2666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2673 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2674 _result
= new wxSize (wxToolBarBase_GetMargins(_arg0
));
2676 wxPyEndAllowThreads(__tstate
);
2677 if (PyErr_Occurred()) return NULL
;
2678 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2679 _resultobj
= Py_BuildValue("s",_ptemp
);
2683 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2684 static PyObject
*_wrap_wxToolBarBase_GetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2685 PyObject
* _resultobj
;
2687 wxToolBarBase
* _arg0
;
2688 PyObject
* _argo0
= 0;
2689 char *_kwnames
[] = { "self", NULL
};
2692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolPacking",_kwnames
,&_argo0
))
2695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2702 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2703 _result
= (int )wxToolBarBase_GetToolPacking(_arg0
);
2705 wxPyEndAllowThreads(__tstate
);
2706 if (PyErr_Occurred()) return NULL
;
2707 } _resultobj
= Py_BuildValue("i",_result
);
2711 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2712 static PyObject
*_wrap_wxToolBarBase_GetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2713 PyObject
* _resultobj
;
2715 wxToolBarBase
* _arg0
;
2716 PyObject
* _argo0
= 0;
2717 char *_kwnames
[] = { "self", NULL
};
2720 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSeparation",_kwnames
,&_argo0
))
2723 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2724 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2725 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2730 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2731 _result
= (int )wxToolBarBase_GetToolSeparation(_arg0
);
2733 wxPyEndAllowThreads(__tstate
);
2734 if (PyErr_Occurred()) return NULL
;
2735 } _resultobj
= Py_BuildValue("i",_result
);
2739 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2740 static PyObject
*_wrap_wxToolBarBase_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2741 PyObject
* _resultobj
;
2742 wxToolBarBase
* _arg0
;
2744 PyObject
* _argo0
= 0;
2745 char *_kwnames
[] = { "self","nRows", NULL
};
2748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetRows",_kwnames
,&_argo0
,&_arg1
))
2751 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2752 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2753 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2759 wxToolBarBase_SetRows(_arg0
,_arg1
);
2761 wxPyEndAllowThreads(__tstate
);
2762 if (PyErr_Occurred()) return NULL
;
2763 } Py_INCREF(Py_None
);
2764 _resultobj
= Py_None
;
2768 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2769 static PyObject
*_wrap_wxToolBarBase_SetMaxRowsCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2770 PyObject
* _resultobj
;
2771 wxToolBarBase
* _arg0
;
2774 PyObject
* _argo0
= 0;
2775 char *_kwnames
[] = { "self","rows","cols", NULL
};
2778 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2781 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2782 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2783 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2788 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2789 wxToolBarBase_SetMaxRowsCols(_arg0
,_arg1
,_arg2
);
2791 wxPyEndAllowThreads(__tstate
);
2792 if (PyErr_Occurred()) return NULL
;
2793 } Py_INCREF(Py_None
);
2794 _resultobj
= Py_None
;
2798 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2799 static PyObject
*_wrap_wxToolBarBase_GetMaxRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2800 PyObject
* _resultobj
;
2802 wxToolBarBase
* _arg0
;
2803 PyObject
* _argo0
= 0;
2804 char *_kwnames
[] = { "self", NULL
};
2807 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxRows",_kwnames
,&_argo0
))
2810 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2811 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2812 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2817 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2818 _result
= (int )wxToolBarBase_GetMaxRows(_arg0
);
2820 wxPyEndAllowThreads(__tstate
);
2821 if (PyErr_Occurred()) return NULL
;
2822 } _resultobj
= Py_BuildValue("i",_result
);
2826 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2827 static PyObject
*_wrap_wxToolBarBase_GetMaxCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2828 PyObject
* _resultobj
;
2830 wxToolBarBase
* _arg0
;
2831 PyObject
* _argo0
= 0;
2832 char *_kwnames
[] = { "self", NULL
};
2835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxCols",_kwnames
,&_argo0
))
2838 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2839 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2845 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2846 _result
= (int )wxToolBarBase_GetMaxCols(_arg0
);
2848 wxPyEndAllowThreads(__tstate
);
2849 if (PyErr_Occurred()) return NULL
;
2850 } _resultobj
= Py_BuildValue("i",_result
);
2854 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2855 static PyObject
*_wrap_wxToolBarBase_SetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2856 PyObject
* _resultobj
;
2857 wxToolBarBase
* _arg0
;
2859 PyObject
* _argo0
= 0;
2861 PyObject
* _obj1
= 0;
2862 char *_kwnames
[] = { "self","size", NULL
};
2865 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames
,&_argo0
,&_obj1
))
2868 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2869 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2870 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
2876 if (! wxSize_helper(_obj1
, &_arg1
))
2880 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2881 wxToolBarBase_SetToolBitmapSize(_arg0
,*_arg1
);
2883 wxPyEndAllowThreads(__tstate
);
2884 if (PyErr_Occurred()) return NULL
;
2885 } Py_INCREF(Py_None
);
2886 _resultobj
= Py_None
;
2890 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2891 static PyObject
*_wrap_wxToolBarBase_GetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2892 PyObject
* _resultobj
;
2894 wxToolBarBase
* _arg0
;
2895 PyObject
* _argo0
= 0;
2896 char *_kwnames
[] = { "self", NULL
};
2900 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolBitmapSize",_kwnames
,&_argo0
))
2903 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2904 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2905 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
2910 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2911 _result
= new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0
));
2913 wxPyEndAllowThreads(__tstate
);
2914 if (PyErr_Occurred()) return NULL
;
2915 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2916 _resultobj
= Py_BuildValue("s",_ptemp
);
2920 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
2921 static PyObject
*_wrap_wxToolBarBase_GetToolSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2922 PyObject
* _resultobj
;
2924 wxToolBarBase
* _arg0
;
2925 PyObject
* _argo0
= 0;
2926 char *_kwnames
[] = { "self", NULL
};
2930 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSize",_kwnames
,&_argo0
))
2933 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2934 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2935 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
2940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2941 _result
= new wxSize (wxToolBarBase_GetToolSize(_arg0
));
2943 wxPyEndAllowThreads(__tstate
);
2944 if (PyErr_Occurred()) return NULL
;
2945 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2946 _resultobj
= Py_BuildValue("s",_ptemp
);
2950 #define wxToolBarBase_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
2951 static PyObject
*_wrap_wxToolBarBase_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2952 PyObject
* _resultobj
;
2953 wxToolBarToolBase
* _result
;
2954 wxToolBarBase
* _arg0
;
2957 PyObject
* _argo0
= 0;
2958 char *_kwnames
[] = { "self","x","y", NULL
};
2961 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2964 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2965 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2966 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_FindToolForPosition. Expected _wxToolBarBase_p.");
2971 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2972 _result
= (wxToolBarToolBase
*)wxToolBarBase_FindToolForPosition(_arg0
,_arg1
,_arg2
);
2974 wxPyEndAllowThreads(__tstate
);
2975 if (PyErr_Occurred()) return NULL
;
2976 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2980 #define wxToolBarBase_IsVertical(_swigobj) (_swigobj->IsVertical())
2981 static PyObject
*_wrap_wxToolBarBase_IsVertical(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2982 PyObject
* _resultobj
;
2984 wxToolBarBase
* _arg0
;
2985 PyObject
* _argo0
= 0;
2986 char *_kwnames
[] = { "self", NULL
};
2989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_IsVertical",_kwnames
,&_argo0
))
2992 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2993 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2994 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_IsVertical. Expected _wxToolBarBase_p.");
2999 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3000 _result
= (bool )wxToolBarBase_IsVertical(_arg0
);
3002 wxPyEndAllowThreads(__tstate
);
3003 if (PyErr_Occurred()) return NULL
;
3004 } _resultobj
= Py_BuildValue("i",_result
);
3008 static void *SwigwxToolBarTowxToolBarBase(void *ptr
) {
3010 wxToolBarBase
*dest
;
3011 src
= (wxToolBar
*) ptr
;
3012 dest
= (wxToolBarBase
*) src
;
3013 return (void *) dest
;
3016 static void *SwigwxToolBarTowxControl(void *ptr
) {
3019 src
= (wxToolBar
*) ptr
;
3020 dest
= (wxControl
*) src
;
3021 return (void *) dest
;
3024 static void *SwigwxToolBarTowxWindow(void *ptr
) {
3027 src
= (wxToolBar
*) ptr
;
3028 dest
= (wxWindow
*) src
;
3029 return (void *) dest
;
3032 static void *SwigwxToolBarTowxEvtHandler(void *ptr
) {
3035 src
= (wxToolBar
*) ptr
;
3036 dest
= (wxEvtHandler
*) src
;
3037 return (void *) dest
;
3040 static void *SwigwxToolBarTowxObject(void *ptr
) {
3043 src
= (wxToolBar
*) ptr
;
3044 dest
= (wxObject
*) src
;
3045 return (void *) dest
;
3048 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3049 static PyObject
*_wrap_new_wxToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3050 PyObject
* _resultobj
;
3051 wxToolBar
* _result
;
3054 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3055 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3056 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3057 wxString
* _arg5
= (wxString
*) &wxPyToolBarNameStr
;
3058 PyObject
* _argo0
= 0;
3060 PyObject
* _obj2
= 0;
3062 PyObject
* _obj3
= 0;
3063 PyObject
* _obj5
= 0;
3064 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3068 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOlO:new_wxToolBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_obj5
))
3071 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3072 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3073 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3080 if (! wxPoint_helper(_obj2
, &_arg2
))
3086 if (! wxSize_helper(_obj3
, &_arg3
))
3091 _arg5
= wxString_in_helper(_obj5
);
3096 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3097 _result
= (wxToolBar
*)new_wxToolBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,*_arg5
);
3099 wxPyEndAllowThreads(__tstate
);
3100 if (PyErr_Occurred()) return NULL
;
3102 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3103 _resultobj
= Py_BuildValue("s",_ptemp
);
3106 _resultobj
= Py_None
;
3115 #define new_wxPreToolBar() (new wxToolBar())
3116 static PyObject
*_wrap_new_wxPreToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3117 PyObject
* _resultobj
;
3118 wxToolBar
* _result
;
3119 char *_kwnames
[] = { NULL
};
3123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBar",_kwnames
))
3126 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3127 _result
= (wxToolBar
*)new_wxPreToolBar();
3129 wxPyEndAllowThreads(__tstate
);
3130 if (PyErr_Occurred()) return NULL
;
3132 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3133 _resultobj
= Py_BuildValue("s",_ptemp
);
3136 _resultobj
= Py_None
;
3141 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3142 static PyObject
*_wrap_wxToolBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3143 PyObject
* _resultobj
;
3148 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3149 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3150 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3151 wxString
* _arg6
= (wxString
*) &wxPyToolBarNameStr
;
3152 PyObject
* _argo0
= 0;
3153 PyObject
* _argo1
= 0;
3155 PyObject
* _obj3
= 0;
3157 PyObject
* _obj4
= 0;
3158 PyObject
* _obj6
= 0;
3159 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOlO:wxToolBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_obj6
))
3165 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3166 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3167 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3172 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3173 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3174 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3181 if (! wxPoint_helper(_obj3
, &_arg3
))
3187 if (! wxSize_helper(_obj4
, &_arg4
))
3192 _arg6
= wxString_in_helper(_obj6
);
3197 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3198 _result
= (bool )wxToolBar_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,*_arg6
);
3200 wxPyEndAllowThreads(__tstate
);
3201 if (PyErr_Occurred()) return NULL
;
3202 } _resultobj
= Py_BuildValue("i",_result
);
3210 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3211 static PyObject
*_wrap_wxToolBar_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3212 PyObject
* _resultobj
;
3213 wxToolBarToolBase
* _result
;
3217 PyObject
* _argo0
= 0;
3218 char *_kwnames
[] = { "self","x","y", NULL
};
3221 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBar_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3231 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3232 _result
= (wxToolBarToolBase
*)wxToolBar_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3234 wxPyEndAllowThreads(__tstate
);
3235 if (PyErr_Occurred()) return NULL
;
3236 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3240 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr
) {
3241 wxToolBarSimple
*src
;
3242 wxToolBarBase
*dest
;
3243 src
= (wxToolBarSimple
*) ptr
;
3244 dest
= (wxToolBarBase
*) src
;
3245 return (void *) dest
;
3248 static void *SwigwxToolBarSimpleTowxControl(void *ptr
) {
3249 wxToolBarSimple
*src
;
3251 src
= (wxToolBarSimple
*) ptr
;
3252 dest
= (wxControl
*) src
;
3253 return (void *) dest
;
3256 static void *SwigwxToolBarSimpleTowxWindow(void *ptr
) {
3257 wxToolBarSimple
*src
;
3259 src
= (wxToolBarSimple
*) ptr
;
3260 dest
= (wxWindow
*) src
;
3261 return (void *) dest
;
3264 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr
) {
3265 wxToolBarSimple
*src
;
3267 src
= (wxToolBarSimple
*) ptr
;
3268 dest
= (wxEvtHandler
*) src
;
3269 return (void *) dest
;
3272 static void *SwigwxToolBarSimpleTowxObject(void *ptr
) {
3273 wxToolBarSimple
*src
;
3275 src
= (wxToolBarSimple
*) ptr
;
3276 dest
= (wxObject
*) src
;
3277 return (void *) dest
;
3280 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3281 static PyObject
*_wrap_new_wxToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3282 PyObject
* _resultobj
;
3283 wxToolBarSimple
* _result
;
3286 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3287 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3288 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3289 wxString
* _arg5
= (wxString
*) &wxPyToolBarNameStr
;
3290 PyObject
* _argo0
= 0;
3292 PyObject
* _obj2
= 0;
3294 PyObject
* _obj3
= 0;
3295 PyObject
* _obj5
= 0;
3296 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3300 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOlO:new_wxToolBarSimple",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_obj5
))
3303 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3304 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3305 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3312 if (! wxPoint_helper(_obj2
, &_arg2
))
3318 if (! wxSize_helper(_obj3
, &_arg3
))
3323 _arg5
= wxString_in_helper(_obj5
);
3328 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3329 _result
= (wxToolBarSimple
*)new_wxToolBarSimple(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,*_arg5
);
3331 wxPyEndAllowThreads(__tstate
);
3332 if (PyErr_Occurred()) return NULL
;
3334 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3335 _resultobj
= Py_BuildValue("s",_ptemp
);
3338 _resultobj
= Py_None
;
3347 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3348 static PyObject
*_wrap_new_wxPreToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3349 PyObject
* _resultobj
;
3350 wxToolBarSimple
* _result
;
3351 char *_kwnames
[] = { NULL
};
3355 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBarSimple",_kwnames
))
3358 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3359 _result
= (wxToolBarSimple
*)new_wxPreToolBarSimple();
3361 wxPyEndAllowThreads(__tstate
);
3362 if (PyErr_Occurred()) return NULL
;
3364 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3365 _resultobj
= Py_BuildValue("s",_ptemp
);
3368 _resultobj
= Py_None
;
3373 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3374 static PyObject
*_wrap_wxToolBarSimple_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3375 PyObject
* _resultobj
;
3377 wxToolBarSimple
* _arg0
;
3380 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3381 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3382 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3383 wxString
* _arg6
= (wxString
*) &wxPyToolBarNameStr
;
3384 PyObject
* _argo0
= 0;
3385 PyObject
* _argo1
= 0;
3387 PyObject
* _obj3
= 0;
3389 PyObject
* _obj4
= 0;
3390 PyObject
* _obj6
= 0;
3391 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOlO:wxToolBarSimple_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_obj6
))
3397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3404 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3405 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3406 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3413 if (! wxPoint_helper(_obj3
, &_arg3
))
3419 if (! wxSize_helper(_obj4
, &_arg4
))
3424 _arg6
= wxString_in_helper(_obj6
);
3429 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3430 _result
= (bool )wxToolBarSimple_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,*_arg6
);
3432 wxPyEndAllowThreads(__tstate
);
3433 if (PyErr_Occurred()) return NULL
;
3434 } _resultobj
= Py_BuildValue("i",_result
);
3442 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3443 static PyObject
*_wrap_wxToolBarSimple_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3444 PyObject
* _resultobj
;
3445 wxToolBarToolBase
* _result
;
3446 wxToolBarSimple
* _arg0
;
3449 PyObject
* _argo0
= 0;
3450 char *_kwnames
[] = { "self","x","y", NULL
};
3453 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3456 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3457 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3458 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3463 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3464 _result
= (wxToolBarToolBase
*)wxToolBarSimple_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3466 wxPyEndAllowThreads(__tstate
);
3467 if (PyErr_Occurred()) return NULL
;
3468 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3472 static PyMethodDef stattoolcMethods
[] = {
3473 { "wxToolBarSimple_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarSimple_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "wxToolBarSimple_Create", (PyCFunction
) _wrap_wxToolBarSimple_Create
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "new_wxPreToolBarSimple", (PyCFunction
) _wrap_new_wxPreToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "new_wxToolBarSimple", (PyCFunction
) _wrap_new_wxToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "wxToolBar_FindToolForPosition", (PyCFunction
) _wrap_wxToolBar_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxToolBar_Create", (PyCFunction
) _wrap_wxToolBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "new_wxPreToolBar", (PyCFunction
) _wrap_new_wxPreToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "new_wxToolBar", (PyCFunction
) _wrap_new_wxToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "wxToolBarBase_IsVertical", (PyCFunction
) _wrap_wxToolBarBase_IsVertical
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "wxToolBarBase_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarBase_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "wxToolBarBase_GetToolSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolSize
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_SetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxToolBarBase_GetMaxCols", (PyCFunction
) _wrap_wxToolBarBase_GetMaxCols
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "wxToolBarBase_GetMaxRows", (PyCFunction
) _wrap_wxToolBarBase_GetMaxRows
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction
) _wrap_wxToolBarBase_SetMaxRowsCols
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "wxToolBarBase_SetRows", (PyCFunction
) _wrap_wxToolBarBase_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxToolBarBase_GetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_GetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxToolBarBase_GetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_GetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxToolBarBase_GetMargins", (PyCFunction
) _wrap_wxToolBarBase_GetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxToolBarBase_GetToolMargins", (PyCFunction
) _wrap_wxToolBarBase_GetToolMargins
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxToolBarBase_SetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_SetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "wxToolBarBase_SetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_SetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxToolBarBase_SetMargins", (PyCFunction
) _wrap_wxToolBarBase_SetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "wxToolBarBase_SetMarginsXY", (PyCFunction
) _wrap_wxToolBarBase_SetMarginsXY
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxToolBarBase_GetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "wxToolBarBase_SetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "wxToolBarBase_GetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "wxToolBarBase_SetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3502 { "wxToolBarBase_GetToolEnabled", (PyCFunction
) _wrap_wxToolBarBase_GetToolEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3503 { "wxToolBarBase_GetToolState", (PyCFunction
) _wrap_wxToolBarBase_GetToolState
, METH_VARARGS
| METH_KEYWORDS
},
3504 { "wxToolBarBase_SetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_SetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3505 { "wxToolBarBase_GetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_GetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3506 { "wxToolBarBase_SetToggle", (PyCFunction
) _wrap_wxToolBarBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3507 { "wxToolBarBase_ToggleTool", (PyCFunction
) _wrap_wxToolBarBase_ToggleTool
, METH_VARARGS
| METH_KEYWORDS
},
3508 { "wxToolBarBase_EnableTool", (PyCFunction
) _wrap_wxToolBarBase_EnableTool
, METH_VARARGS
| METH_KEYWORDS
},
3509 { "wxToolBarBase_Realize", (PyCFunction
) _wrap_wxToolBarBase_Realize
, METH_VARARGS
| METH_KEYWORDS
},
3510 { "wxToolBarBase_ClearTools", (PyCFunction
) _wrap_wxToolBarBase_ClearTools
, METH_VARARGS
| METH_KEYWORDS
},
3511 { "wxToolBarBase_DeleteTool", (PyCFunction
) _wrap_wxToolBarBase_DeleteTool
, METH_VARARGS
| METH_KEYWORDS
},
3512 { "wxToolBarBase_DeleteToolByPos", (PyCFunction
) _wrap_wxToolBarBase_DeleteToolByPos
, METH_VARARGS
| METH_KEYWORDS
},
3513 { "wxToolBarBase_RemoveTool", (PyCFunction
) _wrap_wxToolBarBase_RemoveTool
, METH_VARARGS
| METH_KEYWORDS
},
3514 { "wxToolBarBase_InsertSeparator", (PyCFunction
) _wrap_wxToolBarBase_InsertSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3515 { "wxToolBarBase_AddSeparator", (PyCFunction
) _wrap_wxToolBarBase_AddSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3516 { "wxToolBarBase_InsertControl", (PyCFunction
) _wrap_wxToolBarBase_InsertControl
, METH_VARARGS
| METH_KEYWORDS
},
3517 { "wxToolBarBase_AddControl", (PyCFunction
) _wrap_wxToolBarBase_AddControl
, METH_VARARGS
| METH_KEYWORDS
},
3518 { "wxToolBarBase_InsertSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_InsertSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3519 { "wxToolBarBase_InsertTool", (PyCFunction
) _wrap_wxToolBarBase_InsertTool
, METH_VARARGS
| METH_KEYWORDS
},
3520 { "wxToolBarBase_AddSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_AddSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3521 { "wxToolBarBase_AddTool", (PyCFunction
) _wrap_wxToolBarBase_AddTool
, METH_VARARGS
| METH_KEYWORDS
},
3522 { "wxToolBarToolBase_SetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_SetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3523 { "wxToolBarToolBase_GetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_GetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3524 { "wxToolBarToolBase_Attach", (PyCFunction
) _wrap_wxToolBarToolBase_Attach
, METH_VARARGS
| METH_KEYWORDS
},
3525 { "wxToolBarToolBase_Detach", (PyCFunction
) _wrap_wxToolBarToolBase_Detach
, METH_VARARGS
| METH_KEYWORDS
},
3526 { "wxToolBarToolBase_SetLabel", (PyCFunction
) _wrap_wxToolBarToolBase_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
3527 { "wxToolBarToolBase_SetDisabledBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_SetDisabledBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3528 { "wxToolBarToolBase_SetNormalBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_SetNormalBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3529 { "wxToolBarToolBase_SetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3530 { "wxToolBarToolBase_SetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3531 { "wxToolBarToolBase_SetToggle", (PyCFunction
) _wrap_wxToolBarToolBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3532 { "wxToolBarToolBase_Toggle", (PyCFunction
) _wrap_wxToolBarToolBase_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
3533 { "wxToolBarToolBase_Enable", (PyCFunction
) _wrap_wxToolBarToolBase_Enable
, METH_VARARGS
| METH_KEYWORDS
},
3534 { "wxToolBarToolBase_GetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3535 { "wxToolBarToolBase_GetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3536 { "wxToolBarToolBase_GetLabel", (PyCFunction
) _wrap_wxToolBarToolBase_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
3537 { "wxToolBarToolBase_GetBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3538 { "wxToolBarToolBase_GetDisabledBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetDisabledBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3539 { "wxToolBarToolBase_GetNormalBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetNormalBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3540 { "wxToolBarToolBase_CanBeToggled", (PyCFunction
) _wrap_wxToolBarToolBase_CanBeToggled
, METH_VARARGS
| METH_KEYWORDS
},
3541 { "wxToolBarToolBase_IsToggled", (PyCFunction
) _wrap_wxToolBarToolBase_IsToggled
, METH_VARARGS
| METH_KEYWORDS
},
3542 { "wxToolBarToolBase_IsEnabled", (PyCFunction
) _wrap_wxToolBarToolBase_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3543 { "wxToolBarToolBase_GetStyle", (PyCFunction
) _wrap_wxToolBarToolBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
3544 { "wxToolBarToolBase_IsSeparator", (PyCFunction
) _wrap_wxToolBarToolBase_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3545 { "wxToolBarToolBase_IsControl", (PyCFunction
) _wrap_wxToolBarToolBase_IsControl
, METH_VARARGS
| METH_KEYWORDS
},
3546 { "wxToolBarToolBase_IsButton", (PyCFunction
) _wrap_wxToolBarToolBase_IsButton
, METH_VARARGS
| METH_KEYWORDS
},
3547 { "wxToolBarToolBase_GetToolBar", (PyCFunction
) _wrap_wxToolBarToolBase_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3548 { "wxToolBarToolBase_GetControl", (PyCFunction
) _wrap_wxToolBarToolBase_GetControl
, METH_VARARGS
| METH_KEYWORDS
},
3549 { "wxToolBarToolBase_GetId", (PyCFunction
) _wrap_wxToolBarToolBase_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3550 { "wxToolBarToolBase_Destroy", (PyCFunction
) _wrap_wxToolBarToolBase_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3551 { "wxStatusBar_SetMinHeight", (PyCFunction
) _wrap_wxStatusBar_SetMinHeight
, METH_VARARGS
| METH_KEYWORDS
},
3552 { "wxStatusBar_SetStatusWidths", (PyCFunction
) _wrap_wxStatusBar_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
3553 { "wxStatusBar_SetStatusText", (PyCFunction
) _wrap_wxStatusBar_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3554 { "wxStatusBar_SetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_SetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3555 { "wxStatusBar_GetBorderY", (PyCFunction
) _wrap_wxStatusBar_GetBorderY
, METH_VARARGS
| METH_KEYWORDS
},
3556 { "wxStatusBar_GetBorderX", (PyCFunction
) _wrap_wxStatusBar_GetBorderX
, METH_VARARGS
| METH_KEYWORDS
},
3557 { "wxStatusBar_GetStatusText", (PyCFunction
) _wrap_wxStatusBar_GetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3558 { "wxStatusBar_GetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_GetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3559 { "wxStatusBar_GetFieldRect", (PyCFunction
) _wrap_wxStatusBar_GetFieldRect
, METH_VARARGS
| METH_KEYWORDS
},
3560 { "wxStatusBar_Create", (PyCFunction
) _wrap_wxStatusBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3561 { "new_wxPreStatusBar", (PyCFunction
) _wrap_new_wxPreStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3562 { "new_wxStatusBar", (PyCFunction
) _wrap_new_wxStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3569 * This table is used by the pointer type-checker
3571 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3572 { "_signed_long","_long",0},
3573 { "_wxPrintQuality","_wxCoord",0},
3574 { "_wxPrintQuality","_int",0},
3575 { "_wxPrintQuality","_signed_int",0},
3576 { "_wxPrintQuality","_unsigned_int",0},
3577 { "_wxPrintQuality","_wxWindowID",0},
3578 { "_wxPrintQuality","_uint",0},
3579 { "_wxPrintQuality","_EBool",0},
3580 { "_wxPrintQuality","_size_t",0},
3581 { "_wxPrintQuality","_time_t",0},
3582 { "_byte","_unsigned_char",0},
3583 { "_long","_unsigned_long",0},
3584 { "_long","_signed_long",0},
3585 { "_size_t","_wxCoord",0},
3586 { "_size_t","_wxPrintQuality",0},
3587 { "_size_t","_time_t",0},
3588 { "_size_t","_unsigned_int",0},
3589 { "_size_t","_int",0},
3590 { "_size_t","_wxWindowID",0},
3591 { "_size_t","_uint",0},
3592 { "_uint","_wxCoord",0},
3593 { "_uint","_wxPrintQuality",0},
3594 { "_uint","_time_t",0},
3595 { "_uint","_size_t",0},
3596 { "_uint","_unsigned_int",0},
3597 { "_uint","_int",0},
3598 { "_uint","_wxWindowID",0},
3599 { "_wxChar","_char",0},
3600 { "_char","_wxChar",0},
3601 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3602 { "_EBool","_wxCoord",0},
3603 { "_EBool","_wxPrintQuality",0},
3604 { "_EBool","_signed_int",0},
3605 { "_EBool","_int",0},
3606 { "_EBool","_wxWindowID",0},
3607 { "_unsigned_long","_long",0},
3608 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3609 { "_signed_int","_wxCoord",0},
3610 { "_signed_int","_wxPrintQuality",0},
3611 { "_signed_int","_EBool",0},
3612 { "_signed_int","_wxWindowID",0},
3613 { "_signed_int","_int",0},
3614 { "_WXTYPE","_short",0},
3615 { "_WXTYPE","_signed_short",0},
3616 { "_WXTYPE","_unsigned_short",0},
3617 { "_unsigned_short","_WXTYPE",0},
3618 { "_unsigned_short","_short",0},
3619 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3620 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3621 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3622 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3623 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3624 { "_signed_short","_WXTYPE",0},
3625 { "_signed_short","_short",0},
3626 { "_unsigned_char","_byte",0},
3627 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3628 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3629 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3630 { "_unsigned_int","_wxCoord",0},
3631 { "_unsigned_int","_wxPrintQuality",0},
3632 { "_unsigned_int","_time_t",0},
3633 { "_unsigned_int","_size_t",0},
3634 { "_unsigned_int","_uint",0},
3635 { "_unsigned_int","_wxWindowID",0},
3636 { "_unsigned_int","_int",0},
3637 { "_short","_WXTYPE",0},
3638 { "_short","_unsigned_short",0},
3639 { "_short","_signed_short",0},
3640 { "_wxWindowID","_wxCoord",0},
3641 { "_wxWindowID","_wxPrintQuality",0},
3642 { "_wxWindowID","_time_t",0},
3643 { "_wxWindowID","_size_t",0},
3644 { "_wxWindowID","_EBool",0},
3645 { "_wxWindowID","_uint",0},
3646 { "_wxWindowID","_int",0},
3647 { "_wxWindowID","_signed_int",0},
3648 { "_wxWindowID","_unsigned_int",0},
3649 { "_int","_wxCoord",0},
3650 { "_int","_wxPrintQuality",0},
3651 { "_int","_time_t",0},
3652 { "_int","_size_t",0},
3653 { "_int","_EBool",0},
3654 { "_int","_uint",0},
3655 { "_int","_wxWindowID",0},
3656 { "_int","_unsigned_int",0},
3657 { "_int","_signed_int",0},
3658 { "_time_t","_wxCoord",0},
3659 { "_time_t","_wxPrintQuality",0},
3660 { "_time_t","_unsigned_int",0},
3661 { "_time_t","_int",0},
3662 { "_time_t","_wxWindowID",0},
3663 { "_time_t","_uint",0},
3664 { "_time_t","_size_t",0},
3665 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3666 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3667 { "_wxCoord","_int",0},
3668 { "_wxCoord","_signed_int",0},
3669 { "_wxCoord","_unsigned_int",0},
3670 { "_wxCoord","_wxWindowID",0},
3671 { "_wxCoord","_uint",0},
3672 { "_wxCoord","_EBool",0},
3673 { "_wxCoord","_size_t",0},
3674 { "_wxCoord","_time_t",0},
3675 { "_wxCoord","_wxPrintQuality",0},
3676 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3677 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3678 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3679 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3680 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3681 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3682 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3683 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3686 static PyObject
*SWIG_globals
;
3690 SWIGEXPORT(void) initstattoolc() {
3692 SWIG_globals
= SWIG_newvarlink();
3693 m
= Py_InitModule("stattoolc", stattoolcMethods
);
3694 d
= PyModule_GetDict(m
);
3695 PyDict_SetItemString(d
,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON
));
3696 PyDict_SetItemString(d
,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR
));
3697 PyDict_SetItemString(d
,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL
));
3700 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3701 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);