2 * FILE : src/msw/stattool.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initstattoolc
56 #define SWIG_name "stattoolc"
59 #include <wx/toolbar.h>
60 #include <wx/tbarsmpl.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "String type required";
95 static wxString
wxPyEmptyStr("");
99 static void *SwigwxStatusBarTowxWindow(void *ptr
) {
102 src
= (wxStatusBar
*) ptr
;
103 dest
= (wxWindow
*) src
;
104 return (void *) dest
;
107 static void *SwigwxStatusBarTowxEvtHandler(void *ptr
) {
110 src
= (wxStatusBar
*) ptr
;
111 dest
= (wxEvtHandler
*) src
;
112 return (void *) dest
;
115 static void *SwigwxStatusBarTowxObject(void *ptr
) {
118 src
= (wxStatusBar
*) ptr
;
119 dest
= (wxObject
*) src
;
120 return (void *) dest
;
123 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
124 static PyObject
*_wrap_new_wxStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
125 PyObject
* _resultobj
;
126 wxStatusBar
* _result
;
128 wxWindowID _arg1
= (wxWindowID
) -1;
129 long _arg2
= (long ) wxST_SIZEGRIP
;
130 char * _arg3
= (char *) "statusBar";
131 PyObject
* _argo0
= 0;
132 char *_kwnames
[] = { "parent","id","style","name", NULL
};
136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ils:new_wxStatusBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
146 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
147 _result
= (wxStatusBar
*)new_wxStatusBar(_arg0
,_arg1
,_arg2
,_arg3
);
149 wxPyEndAllowThreads(__tstate
);
150 if (PyErr_Occurred()) return NULL
;
152 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
153 _resultobj
= Py_BuildValue("s",_ptemp
);
156 _resultobj
= Py_None
;
161 #define new_wxPreStatusBar() (new wxStatusBar())
162 static PyObject
*_wrap_new_wxPreStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
163 PyObject
* _resultobj
;
164 wxStatusBar
* _result
;
165 char *_kwnames
[] = { NULL
};
169 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreStatusBar",_kwnames
))
172 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
173 _result
= (wxStatusBar
*)new_wxPreStatusBar();
175 wxPyEndAllowThreads(__tstate
);
176 if (PyErr_Occurred()) return NULL
;
178 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
179 _resultobj
= Py_BuildValue("s",_ptemp
);
182 _resultobj
= Py_None
;
187 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
188 static PyObject
*_wrap_wxStatusBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
189 PyObject
* _resultobj
;
194 long _arg3
= (long ) wxST_SIZEGRIP
;
195 char * _arg4
= (char *) "statusBar";
196 PyObject
* _argo0
= 0;
197 PyObject
* _argo1
= 0;
198 char *_kwnames
[] = { "self","parent","id","style","name", NULL
};
201 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|ls:wxStatusBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
204 if (_argo0
== Py_None
) { _arg0
= NULL
; }
205 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
206 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
211 if (_argo1
== Py_None
) { _arg1
= NULL
; }
212 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
213 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
218 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
219 _result
= (bool )wxStatusBar_Create(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
221 wxPyEndAllowThreads(__tstate
);
222 if (PyErr_Occurred()) return NULL
;
223 } _resultobj
= Py_BuildValue("i",_result
);
227 static wxRect
* wxStatusBar_GetFieldRect(wxStatusBar
*self
,long item
) {
228 wxRect
* rect
= new wxRect
;
229 self
->GetFieldRect(item
, *rect
);
232 static PyObject
*_wrap_wxStatusBar_GetFieldRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
233 PyObject
* _resultobj
;
237 PyObject
* _argo0
= 0;
238 char *_kwnames
[] = { "self","item", NULL
};
242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxStatusBar_GetFieldRect",_kwnames
,&_argo0
,&_arg1
))
245 if (_argo0
== Py_None
) { _arg0
= NULL
; }
246 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
253 _result
= (wxRect
*)wxStatusBar_GetFieldRect(_arg0
,_arg1
);
255 wxPyEndAllowThreads(__tstate
);
256 if (PyErr_Occurred()) return NULL
;
258 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRect_p");
259 _resultobj
= Py_BuildValue("s",_ptemp
);
262 _resultobj
= Py_None
;
267 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
268 static PyObject
*_wrap_wxStatusBar_GetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
269 PyObject
* _resultobj
;
272 PyObject
* _argo0
= 0;
273 char *_kwnames
[] = { "self", NULL
};
276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetFieldsCount",_kwnames
,&_argo0
))
279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
287 _result
= (int )wxStatusBar_GetFieldsCount(_arg0
);
289 wxPyEndAllowThreads(__tstate
);
290 if (PyErr_Occurred()) return NULL
;
291 } _resultobj
= Py_BuildValue("i",_result
);
295 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
296 static PyObject
*_wrap_wxStatusBar_GetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
297 PyObject
* _resultobj
;
300 int _arg1
= (int ) 0;
301 PyObject
* _argo0
= 0;
302 char *_kwnames
[] = { "self","ir", NULL
};
305 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_GetStatusText",_kwnames
,&_argo0
,&_arg1
))
308 if (_argo0
== Py_None
) { _arg0
= NULL
; }
309 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
310 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
315 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
316 _result
= new wxString (wxStatusBar_GetStatusText(_arg0
,_arg1
));
318 wxPyEndAllowThreads(__tstate
);
319 if (PyErr_Occurred()) return NULL
;
321 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
329 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
330 static PyObject
*_wrap_wxStatusBar_GetBorderX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
331 PyObject
* _resultobj
;
334 PyObject
* _argo0
= 0;
335 char *_kwnames
[] = { "self", NULL
};
338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderX",_kwnames
,&_argo0
))
341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
348 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
349 _result
= (int )wxStatusBar_GetBorderX(_arg0
);
351 wxPyEndAllowThreads(__tstate
);
352 if (PyErr_Occurred()) return NULL
;
353 } _resultobj
= Py_BuildValue("i",_result
);
357 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
358 static PyObject
*_wrap_wxStatusBar_GetBorderY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
359 PyObject
* _resultobj
;
362 PyObject
* _argo0
= 0;
363 char *_kwnames
[] = { "self", NULL
};
366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderY",_kwnames
,&_argo0
))
369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
377 _result
= (int )wxStatusBar_GetBorderY(_arg0
);
379 wxPyEndAllowThreads(__tstate
);
380 if (PyErr_Occurred()) return NULL
;
381 } _resultobj
= Py_BuildValue("i",_result
);
385 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
386 static PyObject
*_wrap_wxStatusBar_SetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
387 PyObject
* _resultobj
;
389 int _arg1
= (int ) 1;
390 PyObject
* _argo0
= 0;
391 char *_kwnames
[] = { "self","number", NULL
};
394 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_SetFieldsCount",_kwnames
,&_argo0
,&_arg1
))
397 if (_argo0
== Py_None
) { _arg0
= NULL
; }
398 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
399 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
405 wxStatusBar_SetFieldsCount(_arg0
,_arg1
);
407 wxPyEndAllowThreads(__tstate
);
408 if (PyErr_Occurred()) return NULL
;
409 } Py_INCREF(Py_None
);
410 _resultobj
= Py_None
;
414 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
415 static PyObject
*_wrap_wxStatusBar_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
416 PyObject
* _resultobj
;
419 int _arg2
= (int ) 0;
420 PyObject
* _argo0
= 0;
421 PyObject
* _obj1
= 0;
422 char *_kwnames
[] = { "self","text","i", NULL
};
425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
435 #if PYTHON_API_VERSION >= 1009
436 char* tmpPtr
; int tmpSize
;
437 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
438 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
441 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
443 _arg1
= new wxString(tmpPtr
, tmpSize
);
445 if (!PyString_Check(_obj1
)) {
446 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
449 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
453 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
454 wxStatusBar_SetStatusText(_arg0
,*_arg1
,_arg2
);
456 wxPyEndAllowThreads(__tstate
);
457 if (PyErr_Occurred()) return NULL
;
458 } Py_INCREF(Py_None
);
459 _resultobj
= Py_None
;
467 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
468 static PyObject
*_wrap_wxStatusBar_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
469 PyObject
* _resultobj
;
473 PyObject
* _argo0
= 0;
474 PyObject
* _obj2
= 0;
475 char *_kwnames
[] = { "self","choices", NULL
};
478 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxStatusBar_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
481 if (_argo0
== Py_None
) { _arg0
= NULL
; }
482 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
483 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
489 _arg2
= int_LIST_helper(_obj2
);
496 _arg1
= PyList_Size(_obj2
);
503 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
504 wxStatusBar_SetStatusWidths(_arg0
,_arg1
,_arg2
);
506 wxPyEndAllowThreads(__tstate
);
507 if (PyErr_Occurred()) return NULL
;
508 } Py_INCREF(Py_None
);
509 _resultobj
= Py_None
;
516 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
517 static PyObject
*_wrap_wxStatusBar_SetMinHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
518 PyObject
* _resultobj
;
521 PyObject
* _argo0
= 0;
522 char *_kwnames
[] = { "self","height", NULL
};
525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxStatusBar_SetMinHeight",_kwnames
,&_argo0
,&_arg1
))
528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
536 wxStatusBar_SetMinHeight(_arg0
,_arg1
);
538 wxPyEndAllowThreads(__tstate
);
539 if (PyErr_Occurred()) return NULL
;
540 } Py_INCREF(Py_None
);
541 _resultobj
= Py_None
;
545 static void *SwigwxToolBarToolBaseTowxObject(void *ptr
) {
546 wxToolBarToolBase
*src
;
548 src
= (wxToolBarToolBase
*) ptr
;
549 dest
= (wxObject
*) src
;
550 return (void *) dest
;
553 static void wxToolBarToolBase_Destroy(wxToolBarToolBase
*self
) { delete self
; }
554 static PyObject
*_wrap_wxToolBarToolBase_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
555 PyObject
* _resultobj
;
556 wxToolBarToolBase
* _arg0
;
557 PyObject
* _argo0
= 0;
558 char *_kwnames
[] = { "self", NULL
};
561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Destroy",_kwnames
,&_argo0
))
564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
571 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
572 wxToolBarToolBase_Destroy(_arg0
);
574 wxPyEndAllowThreads(__tstate
);
575 if (PyErr_Occurred()) return NULL
;
576 } Py_INCREF(Py_None
);
577 _resultobj
= Py_None
;
581 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
582 static PyObject
*_wrap_wxToolBarToolBase_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
583 PyObject
* _resultobj
;
585 wxToolBarToolBase
* _arg0
;
586 PyObject
* _argo0
= 0;
587 char *_kwnames
[] = { "self", NULL
};
590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetId",_kwnames
,&_argo0
))
593 if (_argo0
== Py_None
) { _arg0
= NULL
; }
594 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
595 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
601 _result
= (int )wxToolBarToolBase_GetId(_arg0
);
603 wxPyEndAllowThreads(__tstate
);
604 if (PyErr_Occurred()) return NULL
;
605 } _resultobj
= Py_BuildValue("i",_result
);
609 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
610 static PyObject
*_wrap_wxToolBarToolBase_GetControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
611 PyObject
* _resultobj
;
613 wxToolBarToolBase
* _arg0
;
614 PyObject
* _argo0
= 0;
615 char *_kwnames
[] = { "self", NULL
};
618 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetControl",_kwnames
,&_argo0
))
621 if (_argo0
== Py_None
) { _arg0
= NULL
; }
622 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
623 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
628 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
629 _result
= (wxControl
*)wxToolBarToolBase_GetControl(_arg0
);
631 wxPyEndAllowThreads(__tstate
);
632 if (PyErr_Occurred()) return NULL
;
633 }{ _resultobj
= wxPyMake_wxObject(_result
); }
637 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
638 static PyObject
*_wrap_wxToolBarToolBase_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
639 PyObject
* _resultobj
;
640 wxToolBarBase
* _result
;
641 wxToolBarToolBase
* _arg0
;
642 PyObject
* _argo0
= 0;
643 char *_kwnames
[] = { "self", NULL
};
646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetToolBar",_kwnames
,&_argo0
))
649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
657 _result
= (wxToolBarBase
*)wxToolBarToolBase_GetToolBar(_arg0
);
659 wxPyEndAllowThreads(__tstate
);
660 if (PyErr_Occurred()) return NULL
;
661 }{ _resultobj
= wxPyMake_wxObject(_result
); }
665 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
666 static PyObject
*_wrap_wxToolBarToolBase_IsButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
667 PyObject
* _resultobj
;
669 wxToolBarToolBase
* _arg0
;
670 PyObject
* _argo0
= 0;
671 char *_kwnames
[] = { "self", NULL
};
674 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsButton",_kwnames
,&_argo0
))
677 if (_argo0
== Py_None
) { _arg0
= NULL
; }
678 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
679 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
684 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
685 _result
= (int )wxToolBarToolBase_IsButton(_arg0
);
687 wxPyEndAllowThreads(__tstate
);
688 if (PyErr_Occurred()) return NULL
;
689 } _resultobj
= Py_BuildValue("i",_result
);
693 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
694 static PyObject
*_wrap_wxToolBarToolBase_IsControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
695 PyObject
* _resultobj
;
697 wxToolBarToolBase
* _arg0
;
698 PyObject
* _argo0
= 0;
699 char *_kwnames
[] = { "self", NULL
};
702 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsControl",_kwnames
,&_argo0
))
705 if (_argo0
== Py_None
) { _arg0
= NULL
; }
706 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
707 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
712 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
713 _result
= (int )wxToolBarToolBase_IsControl(_arg0
);
715 wxPyEndAllowThreads(__tstate
);
716 if (PyErr_Occurred()) return NULL
;
717 } _resultobj
= Py_BuildValue("i",_result
);
721 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
722 static PyObject
*_wrap_wxToolBarToolBase_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
723 PyObject
* _resultobj
;
725 wxToolBarToolBase
* _arg0
;
726 PyObject
* _argo0
= 0;
727 char *_kwnames
[] = { "self", NULL
};
730 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsSeparator",_kwnames
,&_argo0
))
733 if (_argo0
== Py_None
) { _arg0
= NULL
; }
734 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
735 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
740 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
741 _result
= (int )wxToolBarToolBase_IsSeparator(_arg0
);
743 wxPyEndAllowThreads(__tstate
);
744 if (PyErr_Occurred()) return NULL
;
745 } _resultobj
= Py_BuildValue("i",_result
);
749 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
750 static PyObject
*_wrap_wxToolBarToolBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
751 PyObject
* _resultobj
;
753 wxToolBarToolBase
* _arg0
;
754 PyObject
* _argo0
= 0;
755 char *_kwnames
[] = { "self", NULL
};
758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetStyle",_kwnames
,&_argo0
))
761 if (_argo0
== Py_None
) { _arg0
= NULL
; }
762 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
768 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
769 _result
= (int )wxToolBarToolBase_GetStyle(_arg0
);
771 wxPyEndAllowThreads(__tstate
);
772 if (PyErr_Occurred()) return NULL
;
773 } _resultobj
= Py_BuildValue("i",_result
);
777 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
778 static PyObject
*_wrap_wxToolBarToolBase_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
779 PyObject
* _resultobj
;
781 wxToolBarToolBase
* _arg0
;
782 PyObject
* _argo0
= 0;
783 char *_kwnames
[] = { "self", NULL
};
786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsEnabled",_kwnames
,&_argo0
))
789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
796 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
797 _result
= (bool )wxToolBarToolBase_IsEnabled(_arg0
);
799 wxPyEndAllowThreads(__tstate
);
800 if (PyErr_Occurred()) return NULL
;
801 } _resultobj
= Py_BuildValue("i",_result
);
805 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
806 static PyObject
*_wrap_wxToolBarToolBase_IsToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
807 PyObject
* _resultobj
;
809 wxToolBarToolBase
* _arg0
;
810 PyObject
* _argo0
= 0;
811 char *_kwnames
[] = { "self", NULL
};
814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsToggled",_kwnames
,&_argo0
))
817 if (_argo0
== Py_None
) { _arg0
= NULL
; }
818 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
819 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
824 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
825 _result
= (bool )wxToolBarToolBase_IsToggled(_arg0
);
827 wxPyEndAllowThreads(__tstate
);
828 if (PyErr_Occurred()) return NULL
;
829 } _resultobj
= Py_BuildValue("i",_result
);
833 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
834 static PyObject
*_wrap_wxToolBarToolBase_CanBeToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
835 PyObject
* _resultobj
;
837 wxToolBarToolBase
* _arg0
;
838 PyObject
* _argo0
= 0;
839 char *_kwnames
[] = { "self", NULL
};
842 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_CanBeToggled",_kwnames
,&_argo0
))
845 if (_argo0
== Py_None
) { _arg0
= NULL
; }
846 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
847 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
852 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
853 _result
= (bool )wxToolBarToolBase_CanBeToggled(_arg0
);
855 wxPyEndAllowThreads(__tstate
);
856 if (PyErr_Occurred()) return NULL
;
857 } _resultobj
= Py_BuildValue("i",_result
);
861 #define wxToolBarToolBase_GetBitmap1(_swigobj) (_swigobj->GetBitmap1())
862 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
863 PyObject
* _resultobj
;
865 wxToolBarToolBase
* _arg0
;
866 PyObject
* _argo0
= 0;
867 char *_kwnames
[] = { "self", NULL
};
871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap1",_kwnames
,&_argo0
))
874 if (_argo0
== Py_None
) { _arg0
= NULL
; }
875 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
876 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap1. Expected _wxToolBarToolBase_p.");
881 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
882 _result
= new wxBitmap (wxToolBarToolBase_GetBitmap1(_arg0
));
884 wxPyEndAllowThreads(__tstate
);
885 if (PyErr_Occurred()) return NULL
;
886 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
887 _resultobj
= Py_BuildValue("s",_ptemp
);
891 #define wxToolBarToolBase_GetBitmap2(_swigobj) (_swigobj->GetBitmap2())
892 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
893 PyObject
* _resultobj
;
895 wxToolBarToolBase
* _arg0
;
896 PyObject
* _argo0
= 0;
897 char *_kwnames
[] = { "self", NULL
};
901 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap2",_kwnames
,&_argo0
))
904 if (_argo0
== Py_None
) { _arg0
= NULL
; }
905 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap2. Expected _wxToolBarToolBase_p.");
911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
912 _result
= new wxBitmap (wxToolBarToolBase_GetBitmap2(_arg0
));
914 wxPyEndAllowThreads(__tstate
);
915 if (PyErr_Occurred()) return NULL
;
916 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
917 _resultobj
= Py_BuildValue("s",_ptemp
);
921 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
922 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
923 PyObject
* _resultobj
;
925 wxToolBarToolBase
* _arg0
;
926 PyObject
* _argo0
= 0;
927 char *_kwnames
[] = { "self", NULL
};
931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap",_kwnames
,&_argo0
))
934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
941 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
942 _result
= new wxBitmap (wxToolBarToolBase_GetBitmap(_arg0
));
944 wxPyEndAllowThreads(__tstate
);
945 if (PyErr_Occurred()) return NULL
;
946 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
947 _resultobj
= Py_BuildValue("s",_ptemp
);
951 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
952 static PyObject
*_wrap_wxToolBarToolBase_GetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
953 PyObject
* _resultobj
;
955 wxToolBarToolBase
* _arg0
;
956 PyObject
* _argo0
= 0;
957 char *_kwnames
[] = { "self", NULL
};
960 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetShortHelp",_kwnames
,&_argo0
))
963 if (_argo0
== Py_None
) { _arg0
= NULL
; }
964 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
965 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
970 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
971 _result
= new wxString (wxToolBarToolBase_GetShortHelp(_arg0
));
973 wxPyEndAllowThreads(__tstate
);
974 if (PyErr_Occurred()) return NULL
;
976 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
984 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
985 static PyObject
*_wrap_wxToolBarToolBase_GetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
986 PyObject
* _resultobj
;
988 wxToolBarToolBase
* _arg0
;
989 PyObject
* _argo0
= 0;
990 char *_kwnames
[] = { "self", NULL
};
993 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLongHelp",_kwnames
,&_argo0
))
996 if (_argo0
== Py_None
) { _arg0
= NULL
; }
997 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
998 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1003 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1004 _result
= new wxString (wxToolBarToolBase_GetLongHelp(_arg0
));
1006 wxPyEndAllowThreads(__tstate
);
1007 if (PyErr_Occurred()) return NULL
;
1009 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1017 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1018 static PyObject
*_wrap_wxToolBarToolBase_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1019 PyObject
* _resultobj
;
1021 wxToolBarToolBase
* _arg0
;
1023 PyObject
* _argo0
= 0;
1025 char *_kwnames
[] = { "self","enable", NULL
};
1028 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Enable",_kwnames
,&_argo0
,&tempbool1
))
1031 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1032 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1033 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1037 _arg1
= (bool ) tempbool1
;
1039 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1040 _result
= (bool )wxToolBarToolBase_Enable(_arg0
,_arg1
);
1042 wxPyEndAllowThreads(__tstate
);
1043 if (PyErr_Occurred()) return NULL
;
1044 } _resultobj
= Py_BuildValue("i",_result
);
1048 #define wxToolBarToolBase_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
1049 static PyObject
*_wrap_wxToolBarToolBase_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1050 PyObject
* _resultobj
;
1052 wxToolBarToolBase
* _arg0
;
1054 PyObject
* _argo0
= 0;
1056 char *_kwnames
[] = { "self","toggle", NULL
};
1059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Toggle",_kwnames
,&_argo0
,&tempbool1
))
1062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1068 _arg1
= (bool ) tempbool1
;
1070 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1071 _result
= (bool )wxToolBarToolBase_Toggle(_arg0
,_arg1
);
1073 wxPyEndAllowThreads(__tstate
);
1074 if (PyErr_Occurred()) return NULL
;
1075 } _resultobj
= Py_BuildValue("i",_result
);
1079 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1080 static PyObject
*_wrap_wxToolBarToolBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1081 PyObject
* _resultobj
;
1083 wxToolBarToolBase
* _arg0
;
1085 PyObject
* _argo0
= 0;
1087 char *_kwnames
[] = { "self","toggle", NULL
};
1090 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_SetToggle",_kwnames
,&_argo0
,&tempbool1
))
1093 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1094 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1095 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1099 _arg1
= (bool ) tempbool1
;
1101 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1102 _result
= (bool )wxToolBarToolBase_SetToggle(_arg0
,_arg1
);
1104 wxPyEndAllowThreads(__tstate
);
1105 if (PyErr_Occurred()) return NULL
;
1106 } _resultobj
= Py_BuildValue("i",_result
);
1110 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1111 static PyObject
*_wrap_wxToolBarToolBase_SetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1112 PyObject
* _resultobj
;
1114 wxToolBarToolBase
* _arg0
;
1116 PyObject
* _argo0
= 0;
1117 PyObject
* _obj1
= 0;
1118 char *_kwnames
[] = { "self","help", NULL
};
1121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetShortHelp",_kwnames
,&_argo0
,&_obj1
))
1124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1131 #if PYTHON_API_VERSION >= 1009
1132 char* tmpPtr
; int tmpSize
;
1133 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1134 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1137 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1139 _arg1
= new wxString(tmpPtr
, tmpSize
);
1141 if (!PyString_Check(_obj1
)) {
1142 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1145 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1150 _result
= (bool )wxToolBarToolBase_SetShortHelp(_arg0
,*_arg1
);
1152 wxPyEndAllowThreads(__tstate
);
1153 if (PyErr_Occurred()) return NULL
;
1154 } _resultobj
= Py_BuildValue("i",_result
);
1162 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1163 static PyObject
*_wrap_wxToolBarToolBase_SetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1164 PyObject
* _resultobj
;
1166 wxToolBarToolBase
* _arg0
;
1168 PyObject
* _argo0
= 0;
1169 PyObject
* _obj1
= 0;
1170 char *_kwnames
[] = { "self","help", NULL
};
1173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLongHelp",_kwnames
,&_argo0
,&_obj1
))
1176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1183 #if PYTHON_API_VERSION >= 1009
1184 char* tmpPtr
; int tmpSize
;
1185 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1186 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1189 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1191 _arg1
= new wxString(tmpPtr
, tmpSize
);
1193 if (!PyString_Check(_obj1
)) {
1194 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1197 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1201 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1202 _result
= (bool )wxToolBarToolBase_SetLongHelp(_arg0
,*_arg1
);
1204 wxPyEndAllowThreads(__tstate
);
1205 if (PyErr_Occurred()) return NULL
;
1206 } _resultobj
= Py_BuildValue("i",_result
);
1214 #define wxToolBarToolBase_SetBitmap1(_swigobj,_swigarg0) (_swigobj->SetBitmap1(_swigarg0))
1215 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap1(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1216 PyObject
* _resultobj
;
1217 wxToolBarToolBase
* _arg0
;
1219 PyObject
* _argo0
= 0;
1220 PyObject
* _argo1
= 0;
1221 char *_kwnames
[] = { "self","bmp", NULL
};
1224 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap1",_kwnames
,&_argo0
,&_argo1
))
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_SetBitmap1. Expected _wxToolBarToolBase_p.");
1234 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1235 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1236 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap1. Expected _wxBitmap_p.");
1241 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1242 wxToolBarToolBase_SetBitmap1(_arg0
,*_arg1
);
1244 wxPyEndAllowThreads(__tstate
);
1245 if (PyErr_Occurred()) return NULL
;
1246 } Py_INCREF(Py_None
);
1247 _resultobj
= Py_None
;
1251 #define wxToolBarToolBase_SetBitmap2(_swigobj,_swigarg0) (_swigobj->SetBitmap2(_swigarg0))
1252 static PyObject
*_wrap_wxToolBarToolBase_SetBitmap2(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1253 PyObject
* _resultobj
;
1254 wxToolBarToolBase
* _arg0
;
1256 PyObject
* _argo0
= 0;
1257 PyObject
* _argo1
= 0;
1258 char *_kwnames
[] = { "self","bmp", NULL
};
1261 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetBitmap2",_kwnames
,&_argo0
,&_argo1
))
1264 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1265 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1266 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetBitmap2. Expected _wxToolBarToolBase_p.");
1271 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1272 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1273 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetBitmap2. Expected _wxBitmap_p.");
1278 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1279 wxToolBarToolBase_SetBitmap2(_arg0
,*_arg1
);
1281 wxPyEndAllowThreads(__tstate
);
1282 if (PyErr_Occurred()) return NULL
;
1283 } Py_INCREF(Py_None
);
1284 _resultobj
= Py_None
;
1288 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1289 static PyObject
*_wrap_wxToolBarToolBase_Detach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1290 PyObject
* _resultobj
;
1291 wxToolBarToolBase
* _arg0
;
1292 PyObject
* _argo0
= 0;
1293 char *_kwnames
[] = { "self", NULL
};
1296 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Detach",_kwnames
,&_argo0
))
1299 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1300 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1301 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1306 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1307 wxToolBarToolBase_Detach(_arg0
);
1309 wxPyEndAllowThreads(__tstate
);
1310 if (PyErr_Occurred()) return NULL
;
1311 } Py_INCREF(Py_None
);
1312 _resultobj
= Py_None
;
1316 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1317 static PyObject
*_wrap_wxToolBarToolBase_Attach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1318 PyObject
* _resultobj
;
1319 wxToolBarToolBase
* _arg0
;
1320 wxToolBarBase
* _arg1
;
1321 PyObject
* _argo0
= 0;
1322 PyObject
* _argo1
= 0;
1323 char *_kwnames
[] = { "self","tbar", NULL
};
1326 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_Attach",_kwnames
,&_argo0
,&_argo1
))
1329 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1330 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1331 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1336 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1337 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBarBase_p")) {
1338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1343 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1344 wxToolBarToolBase_Attach(_arg0
,_arg1
);
1346 wxPyEndAllowThreads(__tstate
);
1347 if (PyErr_Occurred()) return NULL
;
1348 } Py_INCREF(Py_None
);
1349 _resultobj
= Py_None
;
1353 static PyObject
* wxToolBarToolBase_GetClientData(wxToolBarToolBase
*self
) {
1354 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetClientData();
1356 Py_INCREF(udata
->m_obj
);
1357 return udata
->m_obj
;
1363 static PyObject
*_wrap_wxToolBarToolBase_GetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1364 PyObject
* _resultobj
;
1366 wxToolBarToolBase
* _arg0
;
1367 PyObject
* _argo0
= 0;
1368 char *_kwnames
[] = { "self", NULL
};
1371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetClientData",_kwnames
,&_argo0
))
1374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1381 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1382 _result
= (PyObject
*)wxToolBarToolBase_GetClientData(_arg0
);
1384 wxPyEndAllowThreads(__tstate
);
1385 if (PyErr_Occurred()) return NULL
;
1387 _resultobj
= _result
;
1392 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase
*self
,PyObject
* clientData
) {
1393 self
->SetClientData(new wxPyUserData(clientData
));
1395 static PyObject
*_wrap_wxToolBarToolBase_SetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1396 PyObject
* _resultobj
;
1397 wxToolBarToolBase
* _arg0
;
1399 PyObject
* _argo0
= 0;
1400 PyObject
* _obj1
= 0;
1401 char *_kwnames
[] = { "self","clientData", NULL
};
1404 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetClientData",_kwnames
,&_argo0
,&_obj1
))
1407 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1408 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1409 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1417 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1418 wxToolBarToolBase_SetClientData(_arg0
,_arg1
);
1420 wxPyEndAllowThreads(__tstate
);
1421 if (PyErr_Occurred()) return NULL
;
1422 } Py_INCREF(Py_None
);
1423 _resultobj
= Py_None
;
1427 static void *SwigwxToolBarBaseTowxControl(void *ptr
) {
1430 src
= (wxToolBarBase
*) ptr
;
1431 dest
= (wxControl
*) src
;
1432 return (void *) dest
;
1435 static void *SwigwxToolBarBaseTowxWindow(void *ptr
) {
1438 src
= (wxToolBarBase
*) ptr
;
1439 dest
= (wxWindow
*) src
;
1440 return (void *) dest
;
1443 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr
) {
1446 src
= (wxToolBarBase
*) ptr
;
1447 dest
= (wxEvtHandler
*) src
;
1448 return (void *) dest
;
1451 static void *SwigwxToolBarBaseTowxObject(void *ptr
) {
1454 src
= (wxToolBarBase
*) ptr
;
1455 dest
= (wxObject
*) src
;
1456 return (void *) dest
;
1459 static wxToolBarToolBase
* wxToolBarBase_AddTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxBitmap
& pushedBitmap
,int isToggle
,PyObject
* clientData
,const wxString
& shortHelpString
,const wxString
& longHelpString
) {
1460 wxPyUserData
* udata
= NULL
;
1462 udata
= new wxPyUserData(clientData
);
1463 return self
->AddTool(id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1464 udata
, shortHelpString
, longHelpString
);
1466 static PyObject
*_wrap_wxToolBarBase_AddTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1467 PyObject
* _resultobj
;
1468 wxToolBarToolBase
* _result
;
1469 wxToolBarBase
* _arg0
;
1472 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
1473 int _arg4
= (int ) FALSE
;
1474 PyObject
* _arg5
= (PyObject
*) NULL
;
1475 wxString
* _arg6
= (wxString
*) &wxPyEmptyStr
;
1476 wxString
* _arg7
= (wxString
*) &wxPyEmptyStr
;
1477 PyObject
* _argo0
= 0;
1478 PyObject
* _argo2
= 0;
1479 PyObject
* _argo3
= 0;
1480 PyObject
* _obj5
= 0;
1481 PyObject
* _obj6
= 0;
1482 PyObject
* _obj7
= 0;
1483 char *_kwnames
[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1486 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_arg4
,&_obj5
,&_obj6
,&_obj7
))
1489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
1496 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1497 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1498 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1503 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1504 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1505 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1515 #if PYTHON_API_VERSION >= 1009
1516 char* tmpPtr
; int tmpSize
;
1517 if (!PyString_Check(_obj6
) && !PyUnicode_Check(_obj6
)) {
1518 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1521 if (PyString_AsStringAndSize(_obj6
, &tmpPtr
, &tmpSize
) == -1)
1523 _arg6
= new wxString(tmpPtr
, tmpSize
);
1525 if (!PyString_Check(_obj6
)) {
1526 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1529 _arg6
= new wxString(PyString_AS_STRING(_obj6
), PyString_GET_SIZE(_obj6
));
1534 #if PYTHON_API_VERSION >= 1009
1535 char* tmpPtr
; int tmpSize
;
1536 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1537 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1540 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1542 _arg7
= new wxString(tmpPtr
, tmpSize
);
1544 if (!PyString_Check(_obj7
)) {
1545 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1548 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1552 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1553 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddTool(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,*_arg6
,*_arg7
);
1555 wxPyEndAllowThreads(__tstate
);
1556 if (PyErr_Occurred()) return NULL
;
1557 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1569 static wxToolBarToolBase
* wxToolBarBase_AddSimpleTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1570 return self
->AddTool(id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1571 shortHelpString
, longHelpString
);
1573 static PyObject
*_wrap_wxToolBarBase_AddSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1574 PyObject
* _resultobj
;
1575 wxToolBarToolBase
* _result
;
1576 wxToolBarBase
* _arg0
;
1579 wxString
* _arg3
= (wxString
*) &wxPyEmptyStr
;
1580 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
1581 int _arg5
= (int ) FALSE
;
1582 PyObject
* _argo0
= 0;
1583 PyObject
* _argo2
= 0;
1584 PyObject
* _obj3
= 0;
1585 PyObject
* _obj4
= 0;
1586 char *_kwnames
[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
,&_obj4
,&_arg5
))
1592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
1599 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1600 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1601 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1607 #if PYTHON_API_VERSION >= 1009
1608 char* tmpPtr
; int tmpSize
;
1609 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
1610 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1613 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
1615 _arg3
= new wxString(tmpPtr
, tmpSize
);
1617 if (!PyString_Check(_obj3
)) {
1618 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1621 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
1626 #if PYTHON_API_VERSION >= 1009
1627 char* tmpPtr
; int tmpSize
;
1628 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1629 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1632 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1634 _arg4
= new wxString(tmpPtr
, tmpSize
);
1636 if (!PyString_Check(_obj4
)) {
1637 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1640 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1645 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSimpleTool(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
);
1647 wxPyEndAllowThreads(__tstate
);
1648 if (PyErr_Occurred()) return NULL
;
1649 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1661 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
) {
1662 wxPyUserData
* udata
= NULL
;
1664 udata
= new wxPyUserData(clientData
);
1665 return self
->InsertTool(pos
, id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1666 udata
, shortHelpString
, longHelpString
);
1668 static PyObject
*_wrap_wxToolBarBase_InsertTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1669 PyObject
* _resultobj
;
1670 wxToolBarToolBase
* _result
;
1671 wxToolBarBase
* _arg0
;
1675 wxBitmap
* _arg4
= (wxBitmap
*) &wxNullBitmap
;
1676 int _arg5
= (int ) FALSE
;
1677 PyObject
* _arg6
= (PyObject
*) NULL
;
1678 wxString
* _arg7
= (wxString
*) &wxPyEmptyStr
;
1679 wxString
* _arg8
= (wxString
*) &wxPyEmptyStr
;
1680 PyObject
* _argo0
= 0;
1681 PyObject
* _argo3
= 0;
1682 PyObject
* _argo4
= 0;
1683 PyObject
* _obj6
= 0;
1684 PyObject
* _obj7
= 0;
1685 PyObject
* _obj8
= 0;
1686 char *_kwnames
[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1689 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_argo4
,&_arg5
,&_obj6
,&_obj7
,&_obj8
))
1692 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1693 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1694 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1699 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1700 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1701 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1706 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1707 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1718 #if PYTHON_API_VERSION >= 1009
1719 char* tmpPtr
; int tmpSize
;
1720 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1721 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1724 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1726 _arg7
= new wxString(tmpPtr
, tmpSize
);
1728 if (!PyString_Check(_obj7
)) {
1729 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1732 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1737 #if PYTHON_API_VERSION >= 1009
1738 char* tmpPtr
; int tmpSize
;
1739 if (!PyString_Check(_obj8
) && !PyUnicode_Check(_obj8
)) {
1740 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1743 if (PyString_AsStringAndSize(_obj8
, &tmpPtr
, &tmpSize
) == -1)
1745 _arg8
= new wxString(tmpPtr
, tmpSize
);
1747 if (!PyString_Check(_obj8
)) {
1748 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1751 _arg8
= new wxString(PyString_AS_STRING(_obj8
), PyString_GET_SIZE(_obj8
));
1755 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1756 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,*_arg7
,*_arg8
);
1758 wxPyEndAllowThreads(__tstate
);
1759 if (PyErr_Occurred()) return NULL
;
1760 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1772 static wxToolBarToolBase
* wxToolBarBase_InsertSimpleTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1773 return self
->InsertTool(pos
, id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1774 shortHelpString
, longHelpString
);
1776 static PyObject
*_wrap_wxToolBarBase_InsertSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1777 PyObject
* _resultobj
;
1778 wxToolBarToolBase
* _result
;
1779 wxToolBarBase
* _arg0
;
1783 wxString
* _arg4
= (wxString
*) &wxPyEmptyStr
;
1784 wxString
* _arg5
= (wxString
*) &wxPyEmptyStr
;
1785 int _arg6
= (int ) FALSE
;
1786 PyObject
* _argo0
= 0;
1787 PyObject
* _argo3
= 0;
1788 PyObject
* _obj4
= 0;
1789 PyObject
* _obj5
= 0;
1790 char *_kwnames
[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_obj4
,&_obj5
,&_arg6
))
1796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
1803 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1804 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1811 #if PYTHON_API_VERSION >= 1009
1812 char* tmpPtr
; int tmpSize
;
1813 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1814 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1817 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1819 _arg4
= new wxString(tmpPtr
, tmpSize
);
1821 if (!PyString_Check(_obj4
)) {
1822 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1825 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1830 #if PYTHON_API_VERSION >= 1009
1831 char* tmpPtr
; int tmpSize
;
1832 if (!PyString_Check(_obj5
) && !PyUnicode_Check(_obj5
)) {
1833 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1836 if (PyString_AsStringAndSize(_obj5
, &tmpPtr
, &tmpSize
) == -1)
1838 _arg5
= new wxString(tmpPtr
, tmpSize
);
1840 if (!PyString_Check(_obj5
)) {
1841 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1844 _arg5
= new wxString(PyString_AS_STRING(_obj5
), PyString_GET_SIZE(_obj5
));
1848 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1849 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSimpleTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
);
1851 wxPyEndAllowThreads(__tstate
);
1852 if (PyErr_Occurred()) return NULL
;
1853 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1865 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1866 static PyObject
*_wrap_wxToolBarBase_AddControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1867 PyObject
* _resultobj
;
1868 wxToolBarToolBase
* _result
;
1869 wxToolBarBase
* _arg0
;
1871 PyObject
* _argo0
= 0;
1872 PyObject
* _argo1
= 0;
1873 char *_kwnames
[] = { "self","control", NULL
};
1876 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_AddControl",_kwnames
,&_argo0
,&_argo1
))
1879 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1880 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1881 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1886 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1887 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxControl_p")) {
1888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1893 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1894 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddControl(_arg0
,_arg1
);
1896 wxPyEndAllowThreads(__tstate
);
1897 if (PyErr_Occurred()) return NULL
;
1898 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1902 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1903 static PyObject
*_wrap_wxToolBarBase_InsertControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1904 PyObject
* _resultobj
;
1905 wxToolBarToolBase
* _result
;
1906 wxToolBarBase
* _arg0
;
1909 PyObject
* _argo0
= 0;
1910 PyObject
* _argo2
= 0;
1911 char *_kwnames
[] = { "self","pos","control", NULL
};
1914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_InsertControl",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
1917 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1918 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1919 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1924 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1925 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxControl_p")) {
1926 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1932 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertControl(_arg0
,_arg1
,_arg2
);
1934 wxPyEndAllowThreads(__tstate
);
1935 if (PyErr_Occurred()) return NULL
;
1936 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1940 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1941 static PyObject
*_wrap_wxToolBarBase_AddSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1942 PyObject
* _resultobj
;
1943 wxToolBarToolBase
* _result
;
1944 wxToolBarBase
* _arg0
;
1945 PyObject
* _argo0
= 0;
1946 char *_kwnames
[] = { "self", NULL
};
1949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_AddSeparator",_kwnames
,&_argo0
))
1952 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1953 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1954 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
1959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1960 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSeparator(_arg0
);
1962 wxPyEndAllowThreads(__tstate
);
1963 if (PyErr_Occurred()) return NULL
;
1964 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1968 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
1969 static PyObject
*_wrap_wxToolBarBase_InsertSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1970 PyObject
* _resultobj
;
1971 wxToolBarToolBase
* _result
;
1972 wxToolBarBase
* _arg0
;
1974 PyObject
* _argo0
= 0;
1975 char *_kwnames
[] = { "self","pos", NULL
};
1978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_InsertSeparator",_kwnames
,&_argo0
,&_arg1
))
1981 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1982 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1983 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
1988 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1989 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSeparator(_arg0
,_arg1
);
1991 wxPyEndAllowThreads(__tstate
);
1992 if (PyErr_Occurred()) return NULL
;
1993 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1997 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
1998 static PyObject
*_wrap_wxToolBarBase_RemoveTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1999 PyObject
* _resultobj
;
2000 wxToolBarToolBase
* _result
;
2001 wxToolBarBase
* _arg0
;
2003 PyObject
* _argo0
= 0;
2004 char *_kwnames
[] = { "self","id", NULL
};
2007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_RemoveTool",_kwnames
,&_argo0
,&_arg1
))
2010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
2017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2018 _result
= (wxToolBarToolBase
*)wxToolBarBase_RemoveTool(_arg0
,_arg1
);
2020 wxPyEndAllowThreads(__tstate
);
2021 if (PyErr_Occurred()) return NULL
;
2022 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2026 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2027 static PyObject
*_wrap_wxToolBarBase_DeleteToolByPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2028 PyObject
* _resultobj
;
2030 wxToolBarBase
* _arg0
;
2032 PyObject
* _argo0
= 0;
2033 char *_kwnames
[] = { "self","pos", NULL
};
2036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames
,&_argo0
,&_arg1
))
2039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2046 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2047 _result
= (bool )wxToolBarBase_DeleteToolByPos(_arg0
,_arg1
);
2049 wxPyEndAllowThreads(__tstate
);
2050 if (PyErr_Occurred()) return NULL
;
2051 } _resultobj
= Py_BuildValue("i",_result
);
2055 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2056 static PyObject
*_wrap_wxToolBarBase_DeleteTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2057 PyObject
* _resultobj
;
2059 wxToolBarBase
* _arg0
;
2061 PyObject
* _argo0
= 0;
2062 char *_kwnames
[] = { "self","id", NULL
};
2065 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteTool",_kwnames
,&_argo0
,&_arg1
))
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_DeleteTool. Expected _wxToolBarBase_p.");
2075 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2076 _result
= (bool )wxToolBarBase_DeleteTool(_arg0
,_arg1
);
2078 wxPyEndAllowThreads(__tstate
);
2079 if (PyErr_Occurred()) return NULL
;
2080 } _resultobj
= Py_BuildValue("i",_result
);
2084 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2085 static PyObject
*_wrap_wxToolBarBase_ClearTools(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2086 PyObject
* _resultobj
;
2087 wxToolBarBase
* _arg0
;
2088 PyObject
* _argo0
= 0;
2089 char *_kwnames
[] = { "self", NULL
};
2092 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_ClearTools",_kwnames
,&_argo0
))
2095 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2096 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2097 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2102 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2103 wxToolBarBase_ClearTools(_arg0
);
2105 wxPyEndAllowThreads(__tstate
);
2106 if (PyErr_Occurred()) return NULL
;
2107 } Py_INCREF(Py_None
);
2108 _resultobj
= Py_None
;
2112 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2113 static PyObject
*_wrap_wxToolBarBase_Realize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2114 PyObject
* _resultobj
;
2116 wxToolBarBase
* _arg0
;
2117 PyObject
* _argo0
= 0;
2118 char *_kwnames
[] = { "self", NULL
};
2121 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_Realize",_kwnames
,&_argo0
))
2124 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2125 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2126 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2131 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2132 _result
= (bool )wxToolBarBase_Realize(_arg0
);
2134 wxPyEndAllowThreads(__tstate
);
2135 if (PyErr_Occurred()) return NULL
;
2136 } _resultobj
= Py_BuildValue("i",_result
);
2140 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2141 static PyObject
*_wrap_wxToolBarBase_EnableTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2142 PyObject
* _resultobj
;
2143 wxToolBarBase
* _arg0
;
2146 PyObject
* _argo0
= 0;
2148 char *_kwnames
[] = { "self","id","enable", NULL
};
2151 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_EnableTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2154 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2155 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2156 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2160 _arg2
= (bool ) tempbool2
;
2162 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2163 wxToolBarBase_EnableTool(_arg0
,_arg1
,_arg2
);
2165 wxPyEndAllowThreads(__tstate
);
2166 if (PyErr_Occurred()) return NULL
;
2167 } Py_INCREF(Py_None
);
2168 _resultobj
= Py_None
;
2172 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2173 static PyObject
*_wrap_wxToolBarBase_ToggleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2174 PyObject
* _resultobj
;
2175 wxToolBarBase
* _arg0
;
2178 PyObject
* _argo0
= 0;
2180 char *_kwnames
[] = { "self","id","toggle", NULL
};
2183 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_ToggleTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2186 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2187 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2188 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2192 _arg2
= (bool ) tempbool2
;
2194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2195 wxToolBarBase_ToggleTool(_arg0
,_arg1
,_arg2
);
2197 wxPyEndAllowThreads(__tstate
);
2198 if (PyErr_Occurred()) return NULL
;
2199 } Py_INCREF(Py_None
);
2200 _resultobj
= Py_None
;
2204 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2205 static PyObject
*_wrap_wxToolBarBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2206 PyObject
* _resultobj
;
2207 wxToolBarBase
* _arg0
;
2210 PyObject
* _argo0
= 0;
2212 char *_kwnames
[] = { "self","id","toggle", NULL
};
2215 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetToggle",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2218 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2219 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2220 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2224 _arg2
= (bool ) tempbool2
;
2226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2227 wxToolBarBase_SetToggle(_arg0
,_arg1
,_arg2
);
2229 wxPyEndAllowThreads(__tstate
);
2230 if (PyErr_Occurred()) return NULL
;
2231 } Py_INCREF(Py_None
);
2232 _resultobj
= Py_None
;
2236 static PyObject
* wxToolBarBase_GetToolClientData(wxToolBarBase
*self
,int index
) {
2237 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetToolClientData(index
);
2239 Py_INCREF(udata
->m_obj
);
2240 return udata
->m_obj
;
2246 static PyObject
*_wrap_wxToolBarBase_GetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2247 PyObject
* _resultobj
;
2249 wxToolBarBase
* _arg0
;
2251 PyObject
* _argo0
= 0;
2252 char *_kwnames
[] = { "self","index", NULL
};
2255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolClientData",_kwnames
,&_argo0
,&_arg1
))
2258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2265 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2266 _result
= (PyObject
*)wxToolBarBase_GetToolClientData(_arg0
,_arg1
);
2268 wxPyEndAllowThreads(__tstate
);
2269 if (PyErr_Occurred()) return NULL
;
2271 _resultobj
= _result
;
2276 static void wxToolBarBase_SetToolClientData(wxToolBarBase
*self
,int index
,PyObject
* clientData
) {
2277 self
->SetToolClientData(index
, new wxPyUserData(clientData
));
2279 static PyObject
*_wrap_wxToolBarBase_SetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2280 PyObject
* _resultobj
;
2281 wxToolBarBase
* _arg0
;
2284 PyObject
* _argo0
= 0;
2285 PyObject
* _obj2
= 0;
2286 char *_kwnames
[] = { "self","index","clientData", NULL
};
2289 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolClientData",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2292 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2293 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2302 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2303 wxToolBarBase_SetToolClientData(_arg0
,_arg1
,_arg2
);
2305 wxPyEndAllowThreads(__tstate
);
2306 if (PyErr_Occurred()) return NULL
;
2307 } Py_INCREF(Py_None
);
2308 _resultobj
= Py_None
;
2312 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2313 static PyObject
*_wrap_wxToolBarBase_GetToolState(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2314 PyObject
* _resultobj
;
2316 wxToolBarBase
* _arg0
;
2318 PyObject
* _argo0
= 0;
2319 char *_kwnames
[] = { "self","id", NULL
};
2322 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolState",_kwnames
,&_argo0
,&_arg1
))
2325 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2326 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2327 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2332 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2333 _result
= (bool )wxToolBarBase_GetToolState(_arg0
,_arg1
);
2335 wxPyEndAllowThreads(__tstate
);
2336 if (PyErr_Occurred()) return NULL
;
2337 } _resultobj
= Py_BuildValue("i",_result
);
2341 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2342 static PyObject
*_wrap_wxToolBarBase_GetToolEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2343 PyObject
* _resultobj
;
2345 wxToolBarBase
* _arg0
;
2347 PyObject
* _argo0
= 0;
2348 char *_kwnames
[] = { "self","id", NULL
};
2351 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolEnabled",_kwnames
,&_argo0
,&_arg1
))
2354 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2355 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2356 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2361 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2362 _result
= (bool )wxToolBarBase_GetToolEnabled(_arg0
,_arg1
);
2364 wxPyEndAllowThreads(__tstate
);
2365 if (PyErr_Occurred()) return NULL
;
2366 } _resultobj
= Py_BuildValue("i",_result
);
2370 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2371 static PyObject
*_wrap_wxToolBarBase_SetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2372 PyObject
* _resultobj
;
2373 wxToolBarBase
* _arg0
;
2376 PyObject
* _argo0
= 0;
2377 PyObject
* _obj2
= 0;
2378 char *_kwnames
[] = { "self","id","helpString", NULL
};
2381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2384 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2385 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2391 #if PYTHON_API_VERSION >= 1009
2392 char* tmpPtr
; int tmpSize
;
2393 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2394 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2397 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2399 _arg2
= new wxString(tmpPtr
, tmpSize
);
2401 if (!PyString_Check(_obj2
)) {
2402 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2405 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2409 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2410 wxToolBarBase_SetToolShortHelp(_arg0
,_arg1
,*_arg2
);
2412 wxPyEndAllowThreads(__tstate
);
2413 if (PyErr_Occurred()) return NULL
;
2414 } Py_INCREF(Py_None
);
2415 _resultobj
= Py_None
;
2423 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2424 static PyObject
*_wrap_wxToolBarBase_GetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2425 PyObject
* _resultobj
;
2427 wxToolBarBase
* _arg0
;
2429 PyObject
* _argo0
= 0;
2430 char *_kwnames
[] = { "self","id", NULL
};
2433 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames
,&_argo0
,&_arg1
))
2436 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2437 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2438 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2443 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2444 _result
= new wxString (wxToolBarBase_GetToolShortHelp(_arg0
,_arg1
));
2446 wxPyEndAllowThreads(__tstate
);
2447 if (PyErr_Occurred()) return NULL
;
2449 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2457 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2458 static PyObject
*_wrap_wxToolBarBase_SetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2459 PyObject
* _resultobj
;
2460 wxToolBarBase
* _arg0
;
2463 PyObject
* _argo0
= 0;
2464 PyObject
* _obj2
= 0;
2465 char *_kwnames
[] = { "self","id","helpString", NULL
};
2468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2478 #if PYTHON_API_VERSION >= 1009
2479 char* tmpPtr
; int tmpSize
;
2480 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2481 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2484 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2486 _arg2
= new wxString(tmpPtr
, tmpSize
);
2488 if (!PyString_Check(_obj2
)) {
2489 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2492 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2496 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2497 wxToolBarBase_SetToolLongHelp(_arg0
,_arg1
,*_arg2
);
2499 wxPyEndAllowThreads(__tstate
);
2500 if (PyErr_Occurred()) return NULL
;
2501 } Py_INCREF(Py_None
);
2502 _resultobj
= Py_None
;
2510 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2511 static PyObject
*_wrap_wxToolBarBase_GetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2512 PyObject
* _resultobj
;
2514 wxToolBarBase
* _arg0
;
2516 PyObject
* _argo0
= 0;
2517 char *_kwnames
[] = { "self","id", NULL
};
2520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames
,&_argo0
,&_arg1
))
2523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2530 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2531 _result
= new wxString (wxToolBarBase_GetToolLongHelp(_arg0
,_arg1
));
2533 wxPyEndAllowThreads(__tstate
);
2534 if (PyErr_Occurred()) return NULL
;
2536 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2544 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2545 static PyObject
*_wrap_wxToolBarBase_SetMarginsXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2546 PyObject
* _resultobj
;
2547 wxToolBarBase
* _arg0
;
2550 PyObject
* _argo0
= 0;
2551 char *_kwnames
[] = { "self","x","y", NULL
};
2554 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMarginsXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2557 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2558 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2559 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2564 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2565 wxToolBarBase_SetMarginsXY(_arg0
,_arg1
,_arg2
);
2567 wxPyEndAllowThreads(__tstate
);
2568 if (PyErr_Occurred()) return NULL
;
2569 } Py_INCREF(Py_None
);
2570 _resultobj
= Py_None
;
2574 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2575 static PyObject
*_wrap_wxToolBarBase_SetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2576 PyObject
* _resultobj
;
2577 wxToolBarBase
* _arg0
;
2579 PyObject
* _argo0
= 0;
2581 PyObject
* _obj1
= 0;
2582 char *_kwnames
[] = { "self","size", NULL
};
2585 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetMargins",_kwnames
,&_argo0
,&_obj1
))
2588 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2589 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2596 if (! wxSize_helper(_obj1
, &_arg1
))
2600 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2601 wxToolBarBase_SetMargins(_arg0
,*_arg1
);
2603 wxPyEndAllowThreads(__tstate
);
2604 if (PyErr_Occurred()) return NULL
;
2605 } Py_INCREF(Py_None
);
2606 _resultobj
= Py_None
;
2610 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2611 static PyObject
*_wrap_wxToolBarBase_SetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2612 PyObject
* _resultobj
;
2613 wxToolBarBase
* _arg0
;
2615 PyObject
* _argo0
= 0;
2616 char *_kwnames
[] = { "self","packing", NULL
};
2619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolPacking",_kwnames
,&_argo0
,&_arg1
))
2622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2629 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2630 wxToolBarBase_SetToolPacking(_arg0
,_arg1
);
2632 wxPyEndAllowThreads(__tstate
);
2633 if (PyErr_Occurred()) return NULL
;
2634 } Py_INCREF(Py_None
);
2635 _resultobj
= Py_None
;
2639 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2640 static PyObject
*_wrap_wxToolBarBase_SetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2641 PyObject
* _resultobj
;
2642 wxToolBarBase
* _arg0
;
2644 PyObject
* _argo0
= 0;
2645 char *_kwnames
[] = { "self","separation", NULL
};
2648 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolSeparation",_kwnames
,&_argo0
,&_arg1
))
2651 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2652 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2653 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2658 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2659 wxToolBarBase_SetToolSeparation(_arg0
,_arg1
);
2661 wxPyEndAllowThreads(__tstate
);
2662 if (PyErr_Occurred()) return NULL
;
2663 } Py_INCREF(Py_None
);
2664 _resultobj
= Py_None
;
2668 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2669 static PyObject
*_wrap_wxToolBarBase_GetToolMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2670 PyObject
* _resultobj
;
2672 wxToolBarBase
* _arg0
;
2673 PyObject
* _argo0
= 0;
2674 char *_kwnames
[] = { "self", NULL
};
2678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolMargins",_kwnames
,&_argo0
))
2681 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2682 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2683 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2688 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2689 _result
= new wxSize (wxToolBarBase_GetToolMargins(_arg0
));
2691 wxPyEndAllowThreads(__tstate
);
2692 if (PyErr_Occurred()) return NULL
;
2693 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2694 _resultobj
= Py_BuildValue("s",_ptemp
);
2698 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2699 static PyObject
*_wrap_wxToolBarBase_GetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2700 PyObject
* _resultobj
;
2702 wxToolBarBase
* _arg0
;
2703 PyObject
* _argo0
= 0;
2704 char *_kwnames
[] = { "self", NULL
};
2708 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMargins",_kwnames
,&_argo0
))
2711 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2712 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2713 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2718 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2719 _result
= new wxSize (wxToolBarBase_GetMargins(_arg0
));
2721 wxPyEndAllowThreads(__tstate
);
2722 if (PyErr_Occurred()) return NULL
;
2723 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2724 _resultobj
= Py_BuildValue("s",_ptemp
);
2728 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2729 static PyObject
*_wrap_wxToolBarBase_GetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2730 PyObject
* _resultobj
;
2732 wxToolBarBase
* _arg0
;
2733 PyObject
* _argo0
= 0;
2734 char *_kwnames
[] = { "self", NULL
};
2737 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolPacking",_kwnames
,&_argo0
))
2740 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2741 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2742 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2747 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2748 _result
= (int )wxToolBarBase_GetToolPacking(_arg0
);
2750 wxPyEndAllowThreads(__tstate
);
2751 if (PyErr_Occurred()) return NULL
;
2752 } _resultobj
= Py_BuildValue("i",_result
);
2756 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2757 static PyObject
*_wrap_wxToolBarBase_GetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2758 PyObject
* _resultobj
;
2760 wxToolBarBase
* _arg0
;
2761 PyObject
* _argo0
= 0;
2762 char *_kwnames
[] = { "self", NULL
};
2765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSeparation",_kwnames
,&_argo0
))
2768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2775 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2776 _result
= (int )wxToolBarBase_GetToolSeparation(_arg0
);
2778 wxPyEndAllowThreads(__tstate
);
2779 if (PyErr_Occurred()) return NULL
;
2780 } _resultobj
= Py_BuildValue("i",_result
);
2784 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2785 static PyObject
*_wrap_wxToolBarBase_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2786 PyObject
* _resultobj
;
2787 wxToolBarBase
* _arg0
;
2789 PyObject
* _argo0
= 0;
2790 char *_kwnames
[] = { "self","nRows", NULL
};
2793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetRows",_kwnames
,&_argo0
,&_arg1
))
2796 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2797 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2798 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2804 wxToolBarBase_SetRows(_arg0
,_arg1
);
2806 wxPyEndAllowThreads(__tstate
);
2807 if (PyErr_Occurred()) return NULL
;
2808 } Py_INCREF(Py_None
);
2809 _resultobj
= Py_None
;
2813 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2814 static PyObject
*_wrap_wxToolBarBase_SetMaxRowsCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2815 PyObject
* _resultobj
;
2816 wxToolBarBase
* _arg0
;
2819 PyObject
* _argo0
= 0;
2820 char *_kwnames
[] = { "self","rows","cols", NULL
};
2823 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2826 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2827 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2828 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2833 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2834 wxToolBarBase_SetMaxRowsCols(_arg0
,_arg1
,_arg2
);
2836 wxPyEndAllowThreads(__tstate
);
2837 if (PyErr_Occurred()) return NULL
;
2838 } Py_INCREF(Py_None
);
2839 _resultobj
= Py_None
;
2843 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2844 static PyObject
*_wrap_wxToolBarBase_GetMaxRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2845 PyObject
* _resultobj
;
2847 wxToolBarBase
* _arg0
;
2848 PyObject
* _argo0
= 0;
2849 char *_kwnames
[] = { "self", NULL
};
2852 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxRows",_kwnames
,&_argo0
))
2855 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2856 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2857 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2862 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2863 _result
= (int )wxToolBarBase_GetMaxRows(_arg0
);
2865 wxPyEndAllowThreads(__tstate
);
2866 if (PyErr_Occurred()) return NULL
;
2867 } _resultobj
= Py_BuildValue("i",_result
);
2871 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2872 static PyObject
*_wrap_wxToolBarBase_GetMaxCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2873 PyObject
* _resultobj
;
2875 wxToolBarBase
* _arg0
;
2876 PyObject
* _argo0
= 0;
2877 char *_kwnames
[] = { "self", NULL
};
2880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxCols",_kwnames
,&_argo0
))
2883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2891 _result
= (int )wxToolBarBase_GetMaxCols(_arg0
);
2893 wxPyEndAllowThreads(__tstate
);
2894 if (PyErr_Occurred()) return NULL
;
2895 } _resultobj
= Py_BuildValue("i",_result
);
2899 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2900 static PyObject
*_wrap_wxToolBarBase_SetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2901 PyObject
* _resultobj
;
2902 wxToolBarBase
* _arg0
;
2904 PyObject
* _argo0
= 0;
2906 PyObject
* _obj1
= 0;
2907 char *_kwnames
[] = { "self","size", NULL
};
2910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames
,&_argo0
,&_obj1
))
2913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
2921 if (! wxSize_helper(_obj1
, &_arg1
))
2925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2926 wxToolBarBase_SetToolBitmapSize(_arg0
,*_arg1
);
2928 wxPyEndAllowThreads(__tstate
);
2929 if (PyErr_Occurred()) return NULL
;
2930 } Py_INCREF(Py_None
);
2931 _resultobj
= Py_None
;
2935 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2936 static PyObject
*_wrap_wxToolBarBase_GetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2937 PyObject
* _resultobj
;
2939 wxToolBarBase
* _arg0
;
2940 PyObject
* _argo0
= 0;
2941 char *_kwnames
[] = { "self", NULL
};
2945 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolBitmapSize",_kwnames
,&_argo0
))
2948 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2949 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2950 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
2955 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2956 _result
= new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0
));
2958 wxPyEndAllowThreads(__tstate
);
2959 if (PyErr_Occurred()) return NULL
;
2960 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2961 _resultobj
= Py_BuildValue("s",_ptemp
);
2965 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
2966 static PyObject
*_wrap_wxToolBarBase_GetToolSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2967 PyObject
* _resultobj
;
2969 wxToolBarBase
* _arg0
;
2970 PyObject
* _argo0
= 0;
2971 char *_kwnames
[] = { "self", NULL
};
2975 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSize",_kwnames
,&_argo0
))
2978 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2979 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
2985 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2986 _result
= new wxSize (wxToolBarBase_GetToolSize(_arg0
));
2988 wxPyEndAllowThreads(__tstate
);
2989 if (PyErr_Occurred()) return NULL
;
2990 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2991 _resultobj
= Py_BuildValue("s",_ptemp
);
2995 static void *SwigwxToolBarTowxToolBarBase(void *ptr
) {
2997 wxToolBarBase
*dest
;
2998 src
= (wxToolBar
*) ptr
;
2999 dest
= (wxToolBarBase
*) src
;
3000 return (void *) dest
;
3003 static void *SwigwxToolBarTowxControl(void *ptr
) {
3006 src
= (wxToolBar
*) ptr
;
3007 dest
= (wxControl
*) src
;
3008 return (void *) dest
;
3011 static void *SwigwxToolBarTowxWindow(void *ptr
) {
3014 src
= (wxToolBar
*) ptr
;
3015 dest
= (wxWindow
*) src
;
3016 return (void *) dest
;
3019 static void *SwigwxToolBarTowxEvtHandler(void *ptr
) {
3022 src
= (wxToolBar
*) ptr
;
3023 dest
= (wxEvtHandler
*) src
;
3024 return (void *) dest
;
3027 static void *SwigwxToolBarTowxObject(void *ptr
) {
3030 src
= (wxToolBar
*) ptr
;
3031 dest
= (wxObject
*) src
;
3032 return (void *) dest
;
3035 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3036 static PyObject
*_wrap_new_wxToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3037 PyObject
* _resultobj
;
3038 wxToolBar
* _result
;
3041 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3042 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3043 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3044 char * _arg5
= (char *) wxToolBarNameStr
;
3045 PyObject
* _argo0
= 0;
3047 PyObject
* _obj2
= 0;
3049 PyObject
* _obj3
= 0;
3050 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3066 if (! wxPoint_helper(_obj2
, &_arg2
))
3072 if (! wxSize_helper(_obj3
, &_arg3
))
3076 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3077 _result
= (wxToolBar
*)new_wxToolBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3079 wxPyEndAllowThreads(__tstate
);
3080 if (PyErr_Occurred()) return NULL
;
3082 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3083 _resultobj
= Py_BuildValue("s",_ptemp
);
3086 _resultobj
= Py_None
;
3091 #define new_wxPreToolBar() (new wxToolBar())
3092 static PyObject
*_wrap_new_wxPreToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3093 PyObject
* _resultobj
;
3094 wxToolBar
* _result
;
3095 char *_kwnames
[] = { NULL
};
3099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBar",_kwnames
))
3102 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3103 _result
= (wxToolBar
*)new_wxPreToolBar();
3105 wxPyEndAllowThreads(__tstate
);
3106 if (PyErr_Occurred()) return NULL
;
3108 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3109 _resultobj
= Py_BuildValue("s",_ptemp
);
3112 _resultobj
= Py_None
;
3117 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3118 static PyObject
*_wrap_wxToolBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3119 PyObject
* _resultobj
;
3124 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3125 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3126 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3127 char * _arg6
= (char *) wxToolBarNameStr
;
3128 PyObject
* _argo0
= 0;
3129 PyObject
* _argo1
= 0;
3131 PyObject
* _obj3
= 0;
3133 PyObject
* _obj4
= 0;
3134 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3147 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3148 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3149 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3156 if (! wxPoint_helper(_obj3
, &_arg3
))
3162 if (! wxSize_helper(_obj4
, &_arg4
))
3166 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3167 _result
= (bool )wxToolBar_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3169 wxPyEndAllowThreads(__tstate
);
3170 if (PyErr_Occurred()) return NULL
;
3171 } _resultobj
= Py_BuildValue("i",_result
);
3175 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3176 static PyObject
*_wrap_wxToolBar_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3177 PyObject
* _resultobj
;
3178 wxToolBarToolBase
* _result
;
3182 PyObject
* _argo0
= 0;
3183 char *_kwnames
[] = { "self","x","y", NULL
};
3186 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBar_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3189 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3190 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3191 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3196 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3197 _result
= (wxToolBarToolBase
*)wxToolBar_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3199 wxPyEndAllowThreads(__tstate
);
3200 if (PyErr_Occurred()) return NULL
;
3201 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3205 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr
) {
3206 wxToolBarSimple
*src
;
3207 wxToolBarBase
*dest
;
3208 src
= (wxToolBarSimple
*) ptr
;
3209 dest
= (wxToolBarBase
*) src
;
3210 return (void *) dest
;
3213 static void *SwigwxToolBarSimpleTowxControl(void *ptr
) {
3214 wxToolBarSimple
*src
;
3216 src
= (wxToolBarSimple
*) ptr
;
3217 dest
= (wxControl
*) src
;
3218 return (void *) dest
;
3221 static void *SwigwxToolBarSimpleTowxWindow(void *ptr
) {
3222 wxToolBarSimple
*src
;
3224 src
= (wxToolBarSimple
*) ptr
;
3225 dest
= (wxWindow
*) src
;
3226 return (void *) dest
;
3229 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr
) {
3230 wxToolBarSimple
*src
;
3232 src
= (wxToolBarSimple
*) ptr
;
3233 dest
= (wxEvtHandler
*) src
;
3234 return (void *) dest
;
3237 static void *SwigwxToolBarSimpleTowxObject(void *ptr
) {
3238 wxToolBarSimple
*src
;
3240 src
= (wxToolBarSimple
*) ptr
;
3241 dest
= (wxObject
*) src
;
3242 return (void *) dest
;
3245 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3246 static PyObject
*_wrap_new_wxToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3247 PyObject
* _resultobj
;
3248 wxToolBarSimple
* _result
;
3251 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3252 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3253 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3254 char * _arg5
= (char *) wxToolBarNameStr
;
3255 PyObject
* _argo0
= 0;
3257 PyObject
* _obj2
= 0;
3259 PyObject
* _obj3
= 0;
3260 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBarSimple",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3276 if (! wxPoint_helper(_obj2
, &_arg2
))
3282 if (! wxSize_helper(_obj3
, &_arg3
))
3286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3287 _result
= (wxToolBarSimple
*)new_wxToolBarSimple(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3289 wxPyEndAllowThreads(__tstate
);
3290 if (PyErr_Occurred()) return NULL
;
3292 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3293 _resultobj
= Py_BuildValue("s",_ptemp
);
3296 _resultobj
= Py_None
;
3301 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3302 static PyObject
*_wrap_new_wxPreToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3303 PyObject
* _resultobj
;
3304 wxToolBarSimple
* _result
;
3305 char *_kwnames
[] = { NULL
};
3309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBarSimple",_kwnames
))
3312 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3313 _result
= (wxToolBarSimple
*)new_wxPreToolBarSimple();
3315 wxPyEndAllowThreads(__tstate
);
3316 if (PyErr_Occurred()) return NULL
;
3318 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3319 _resultobj
= Py_BuildValue("s",_ptemp
);
3322 _resultobj
= Py_None
;
3327 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3328 static PyObject
*_wrap_wxToolBarSimple_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3329 PyObject
* _resultobj
;
3331 wxToolBarSimple
* _arg0
;
3334 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3335 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3336 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3337 char * _arg6
= (char *) wxToolBarNameStr
;
3338 PyObject
* _argo0
= 0;
3339 PyObject
* _argo1
= 0;
3341 PyObject
* _obj3
= 0;
3343 PyObject
* _obj4
= 0;
3344 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBarSimple_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3357 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3358 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3359 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3366 if (! wxPoint_helper(_obj3
, &_arg3
))
3372 if (! wxSize_helper(_obj4
, &_arg4
))
3376 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3377 _result
= (bool )wxToolBarSimple_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3379 wxPyEndAllowThreads(__tstate
);
3380 if (PyErr_Occurred()) return NULL
;
3381 } _resultobj
= Py_BuildValue("i",_result
);
3385 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3386 static PyObject
*_wrap_wxToolBarSimple_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3387 PyObject
* _resultobj
;
3388 wxToolBarToolBase
* _result
;
3389 wxToolBarSimple
* _arg0
;
3392 PyObject
* _argo0
= 0;
3393 char *_kwnames
[] = { "self","x","y", NULL
};
3396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3399 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3400 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3401 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3406 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3407 _result
= (wxToolBarToolBase
*)wxToolBarSimple_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3409 wxPyEndAllowThreads(__tstate
);
3410 if (PyErr_Occurred()) return NULL
;
3411 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3415 static PyMethodDef stattoolcMethods
[] = {
3416 { "wxToolBarSimple_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarSimple_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3417 { "wxToolBarSimple_Create", (PyCFunction
) _wrap_wxToolBarSimple_Create
, METH_VARARGS
| METH_KEYWORDS
},
3418 { "new_wxPreToolBarSimple", (PyCFunction
) _wrap_new_wxPreToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3419 { "new_wxToolBarSimple", (PyCFunction
) _wrap_new_wxToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3420 { "wxToolBar_FindToolForPosition", (PyCFunction
) _wrap_wxToolBar_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3421 { "wxToolBar_Create", (PyCFunction
) _wrap_wxToolBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3422 { "new_wxPreToolBar", (PyCFunction
) _wrap_new_wxPreToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3423 { "new_wxToolBar", (PyCFunction
) _wrap_new_wxToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3424 { "wxToolBarBase_GetToolSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolSize
, METH_VARARGS
| METH_KEYWORDS
},
3425 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3426 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_SetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3427 { "wxToolBarBase_GetMaxCols", (PyCFunction
) _wrap_wxToolBarBase_GetMaxCols
, METH_VARARGS
| METH_KEYWORDS
},
3428 { "wxToolBarBase_GetMaxRows", (PyCFunction
) _wrap_wxToolBarBase_GetMaxRows
, METH_VARARGS
| METH_KEYWORDS
},
3429 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction
) _wrap_wxToolBarBase_SetMaxRowsCols
, METH_VARARGS
| METH_KEYWORDS
},
3430 { "wxToolBarBase_SetRows", (PyCFunction
) _wrap_wxToolBarBase_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3431 { "wxToolBarBase_GetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_GetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3432 { "wxToolBarBase_GetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_GetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3433 { "wxToolBarBase_GetMargins", (PyCFunction
) _wrap_wxToolBarBase_GetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3434 { "wxToolBarBase_GetToolMargins", (PyCFunction
) _wrap_wxToolBarBase_GetToolMargins
, METH_VARARGS
| METH_KEYWORDS
},
3435 { "wxToolBarBase_SetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_SetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3436 { "wxToolBarBase_SetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_SetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3437 { "wxToolBarBase_SetMargins", (PyCFunction
) _wrap_wxToolBarBase_SetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3438 { "wxToolBarBase_SetMarginsXY", (PyCFunction
) _wrap_wxToolBarBase_SetMarginsXY
, METH_VARARGS
| METH_KEYWORDS
},
3439 { "wxToolBarBase_GetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3440 { "wxToolBarBase_SetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3441 { "wxToolBarBase_GetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3442 { "wxToolBarBase_SetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3443 { "wxToolBarBase_GetToolEnabled", (PyCFunction
) _wrap_wxToolBarBase_GetToolEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3444 { "wxToolBarBase_GetToolState", (PyCFunction
) _wrap_wxToolBarBase_GetToolState
, METH_VARARGS
| METH_KEYWORDS
},
3445 { "wxToolBarBase_SetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_SetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3446 { "wxToolBarBase_GetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_GetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3447 { "wxToolBarBase_SetToggle", (PyCFunction
) _wrap_wxToolBarBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3448 { "wxToolBarBase_ToggleTool", (PyCFunction
) _wrap_wxToolBarBase_ToggleTool
, METH_VARARGS
| METH_KEYWORDS
},
3449 { "wxToolBarBase_EnableTool", (PyCFunction
) _wrap_wxToolBarBase_EnableTool
, METH_VARARGS
| METH_KEYWORDS
},
3450 { "wxToolBarBase_Realize", (PyCFunction
) _wrap_wxToolBarBase_Realize
, METH_VARARGS
| METH_KEYWORDS
},
3451 { "wxToolBarBase_ClearTools", (PyCFunction
) _wrap_wxToolBarBase_ClearTools
, METH_VARARGS
| METH_KEYWORDS
},
3452 { "wxToolBarBase_DeleteTool", (PyCFunction
) _wrap_wxToolBarBase_DeleteTool
, METH_VARARGS
| METH_KEYWORDS
},
3453 { "wxToolBarBase_DeleteToolByPos", (PyCFunction
) _wrap_wxToolBarBase_DeleteToolByPos
, METH_VARARGS
| METH_KEYWORDS
},
3454 { "wxToolBarBase_RemoveTool", (PyCFunction
) _wrap_wxToolBarBase_RemoveTool
, METH_VARARGS
| METH_KEYWORDS
},
3455 { "wxToolBarBase_InsertSeparator", (PyCFunction
) _wrap_wxToolBarBase_InsertSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3456 { "wxToolBarBase_AddSeparator", (PyCFunction
) _wrap_wxToolBarBase_AddSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3457 { "wxToolBarBase_InsertControl", (PyCFunction
) _wrap_wxToolBarBase_InsertControl
, METH_VARARGS
| METH_KEYWORDS
},
3458 { "wxToolBarBase_AddControl", (PyCFunction
) _wrap_wxToolBarBase_AddControl
, METH_VARARGS
| METH_KEYWORDS
},
3459 { "wxToolBarBase_InsertSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_InsertSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3460 { "wxToolBarBase_InsertTool", (PyCFunction
) _wrap_wxToolBarBase_InsertTool
, METH_VARARGS
| METH_KEYWORDS
},
3461 { "wxToolBarBase_AddSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_AddSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3462 { "wxToolBarBase_AddTool", (PyCFunction
) _wrap_wxToolBarBase_AddTool
, METH_VARARGS
| METH_KEYWORDS
},
3463 { "wxToolBarToolBase_SetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_SetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3464 { "wxToolBarToolBase_GetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_GetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3465 { "wxToolBarToolBase_Attach", (PyCFunction
) _wrap_wxToolBarToolBase_Attach
, METH_VARARGS
| METH_KEYWORDS
},
3466 { "wxToolBarToolBase_Detach", (PyCFunction
) _wrap_wxToolBarToolBase_Detach
, METH_VARARGS
| METH_KEYWORDS
},
3467 { "wxToolBarToolBase_SetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3468 { "wxToolBarToolBase_SetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_SetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3469 { "wxToolBarToolBase_SetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3470 { "wxToolBarToolBase_SetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3471 { "wxToolBarToolBase_SetToggle", (PyCFunction
) _wrap_wxToolBarToolBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3472 { "wxToolBarToolBase_Toggle", (PyCFunction
) _wrap_wxToolBarToolBase_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
3473 { "wxToolBarToolBase_Enable", (PyCFunction
) _wrap_wxToolBarToolBase_Enable
, METH_VARARGS
| METH_KEYWORDS
},
3474 { "wxToolBarToolBase_GetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3475 { "wxToolBarToolBase_GetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3476 { "wxToolBarToolBase_GetBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3477 { "wxToolBarToolBase_GetBitmap2", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap2
, METH_VARARGS
| METH_KEYWORDS
},
3478 { "wxToolBarToolBase_GetBitmap1", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap1
, METH_VARARGS
| METH_KEYWORDS
},
3479 { "wxToolBarToolBase_CanBeToggled", (PyCFunction
) _wrap_wxToolBarToolBase_CanBeToggled
, METH_VARARGS
| METH_KEYWORDS
},
3480 { "wxToolBarToolBase_IsToggled", (PyCFunction
) _wrap_wxToolBarToolBase_IsToggled
, METH_VARARGS
| METH_KEYWORDS
},
3481 { "wxToolBarToolBase_IsEnabled", (PyCFunction
) _wrap_wxToolBarToolBase_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3482 { "wxToolBarToolBase_GetStyle", (PyCFunction
) _wrap_wxToolBarToolBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
3483 { "wxToolBarToolBase_IsSeparator", (PyCFunction
) _wrap_wxToolBarToolBase_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3484 { "wxToolBarToolBase_IsControl", (PyCFunction
) _wrap_wxToolBarToolBase_IsControl
, METH_VARARGS
| METH_KEYWORDS
},
3485 { "wxToolBarToolBase_IsButton", (PyCFunction
) _wrap_wxToolBarToolBase_IsButton
, METH_VARARGS
| METH_KEYWORDS
},
3486 { "wxToolBarToolBase_GetToolBar", (PyCFunction
) _wrap_wxToolBarToolBase_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3487 { "wxToolBarToolBase_GetControl", (PyCFunction
) _wrap_wxToolBarToolBase_GetControl
, METH_VARARGS
| METH_KEYWORDS
},
3488 { "wxToolBarToolBase_GetId", (PyCFunction
) _wrap_wxToolBarToolBase_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3489 { "wxToolBarToolBase_Destroy", (PyCFunction
) _wrap_wxToolBarToolBase_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3490 { "wxStatusBar_SetMinHeight", (PyCFunction
) _wrap_wxStatusBar_SetMinHeight
, METH_VARARGS
| METH_KEYWORDS
},
3491 { "wxStatusBar_SetStatusWidths", (PyCFunction
) _wrap_wxStatusBar_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
3492 { "wxStatusBar_SetStatusText", (PyCFunction
) _wrap_wxStatusBar_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3493 { "wxStatusBar_SetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_SetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3494 { "wxStatusBar_GetBorderY", (PyCFunction
) _wrap_wxStatusBar_GetBorderY
, METH_VARARGS
| METH_KEYWORDS
},
3495 { "wxStatusBar_GetBorderX", (PyCFunction
) _wrap_wxStatusBar_GetBorderX
, METH_VARARGS
| METH_KEYWORDS
},
3496 { "wxStatusBar_GetStatusText", (PyCFunction
) _wrap_wxStatusBar_GetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3497 { "wxStatusBar_GetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_GetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3498 { "wxStatusBar_GetFieldRect", (PyCFunction
) _wrap_wxStatusBar_GetFieldRect
, METH_VARARGS
| METH_KEYWORDS
},
3499 { "wxStatusBar_Create", (PyCFunction
) _wrap_wxStatusBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3500 { "new_wxPreStatusBar", (PyCFunction
) _wrap_new_wxPreStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3501 { "new_wxStatusBar", (PyCFunction
) _wrap_new_wxStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3508 * This table is used by the pointer type-checker
3510 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3511 { "_signed_long","_long",0},
3512 { "_wxPrintQuality","_wxCoord",0},
3513 { "_wxPrintQuality","_int",0},
3514 { "_wxPrintQuality","_signed_int",0},
3515 { "_wxPrintQuality","_unsigned_int",0},
3516 { "_wxPrintQuality","_wxWindowID",0},
3517 { "_wxPrintQuality","_uint",0},
3518 { "_wxPrintQuality","_EBool",0},
3519 { "_wxPrintQuality","_size_t",0},
3520 { "_wxPrintQuality","_time_t",0},
3521 { "_byte","_unsigned_char",0},
3522 { "_long","_unsigned_long",0},
3523 { "_long","_signed_long",0},
3524 { "_size_t","_wxCoord",0},
3525 { "_size_t","_wxPrintQuality",0},
3526 { "_size_t","_time_t",0},
3527 { "_size_t","_unsigned_int",0},
3528 { "_size_t","_int",0},
3529 { "_size_t","_wxWindowID",0},
3530 { "_size_t","_uint",0},
3531 { "_uint","_wxCoord",0},
3532 { "_uint","_wxPrintQuality",0},
3533 { "_uint","_time_t",0},
3534 { "_uint","_size_t",0},
3535 { "_uint","_unsigned_int",0},
3536 { "_uint","_int",0},
3537 { "_uint","_wxWindowID",0},
3538 { "_wxChar","_char",0},
3539 { "_char","_wxChar",0},
3540 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3541 { "_EBool","_wxCoord",0},
3542 { "_EBool","_wxPrintQuality",0},
3543 { "_EBool","_signed_int",0},
3544 { "_EBool","_int",0},
3545 { "_EBool","_wxWindowID",0},
3546 { "_unsigned_long","_long",0},
3547 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3548 { "_signed_int","_wxCoord",0},
3549 { "_signed_int","_wxPrintQuality",0},
3550 { "_signed_int","_EBool",0},
3551 { "_signed_int","_wxWindowID",0},
3552 { "_signed_int","_int",0},
3553 { "_WXTYPE","_short",0},
3554 { "_WXTYPE","_signed_short",0},
3555 { "_WXTYPE","_unsigned_short",0},
3556 { "_unsigned_short","_WXTYPE",0},
3557 { "_unsigned_short","_short",0},
3558 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3559 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3560 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3561 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3562 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3563 { "_signed_short","_WXTYPE",0},
3564 { "_signed_short","_short",0},
3565 { "_unsigned_char","_byte",0},
3566 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3567 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3568 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3569 { "_unsigned_int","_wxCoord",0},
3570 { "_unsigned_int","_wxPrintQuality",0},
3571 { "_unsigned_int","_time_t",0},
3572 { "_unsigned_int","_size_t",0},
3573 { "_unsigned_int","_uint",0},
3574 { "_unsigned_int","_wxWindowID",0},
3575 { "_unsigned_int","_int",0},
3576 { "_short","_WXTYPE",0},
3577 { "_short","_unsigned_short",0},
3578 { "_short","_signed_short",0},
3579 { "_wxWindowID","_wxCoord",0},
3580 { "_wxWindowID","_wxPrintQuality",0},
3581 { "_wxWindowID","_time_t",0},
3582 { "_wxWindowID","_size_t",0},
3583 { "_wxWindowID","_EBool",0},
3584 { "_wxWindowID","_uint",0},
3585 { "_wxWindowID","_int",0},
3586 { "_wxWindowID","_signed_int",0},
3587 { "_wxWindowID","_unsigned_int",0},
3588 { "_int","_wxCoord",0},
3589 { "_int","_wxPrintQuality",0},
3590 { "_int","_time_t",0},
3591 { "_int","_size_t",0},
3592 { "_int","_EBool",0},
3593 { "_int","_uint",0},
3594 { "_int","_wxWindowID",0},
3595 { "_int","_unsigned_int",0},
3596 { "_int","_signed_int",0},
3597 { "_time_t","_wxCoord",0},
3598 { "_time_t","_wxPrintQuality",0},
3599 { "_time_t","_unsigned_int",0},
3600 { "_time_t","_int",0},
3601 { "_time_t","_wxWindowID",0},
3602 { "_time_t","_uint",0},
3603 { "_time_t","_size_t",0},
3604 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3605 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3606 { "_wxCoord","_int",0},
3607 { "_wxCoord","_signed_int",0},
3608 { "_wxCoord","_unsigned_int",0},
3609 { "_wxCoord","_wxWindowID",0},
3610 { "_wxCoord","_uint",0},
3611 { "_wxCoord","_EBool",0},
3612 { "_wxCoord","_size_t",0},
3613 { "_wxCoord","_time_t",0},
3614 { "_wxCoord","_wxPrintQuality",0},
3615 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3616 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3617 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3618 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3619 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3620 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3621 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3622 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3625 static PyObject
*SWIG_globals
;
3629 SWIGEXPORT(void) initstattoolc() {
3631 SWIG_globals
= SWIG_newvarlink();
3632 m
= Py_InitModule("stattoolc", stattoolcMethods
);
3633 d
= PyModule_GetDict(m
);
3634 PyDict_SetItemString(d
,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON
));
3635 PyDict_SetItemString(d
,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR
));
3636 PyDict_SetItemString(d
,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL
));
3639 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3640 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);