2 * FILE : src/gtk/stattool.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initstattoolc
56 #define SWIG_name "stattoolc"
59 #include <wx/toolbar.h>
60 #include <wx/tbarsmpl.h>
63 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
69 } else if (target
== Py_None
) {
73 if (!PyTuple_Check(target
)) {
75 target
= PyTuple_New(1);
76 PyTuple_SetItem(target
, 0, o2
);
79 PyTuple_SetItem(o3
, 0, o
);
82 target
= PySequence_Concat(o2
, o3
);
89 #if PYTHON_API_VERSION >= 1009
90 static char* wxStringErrorMsg
= "String or Unicode type required";
92 static char* wxStringErrorMsg
= "String type required";
97 static void *SwigwxStatusBarTowxWindow(void *ptr
) {
100 src
= (wxStatusBar
*) ptr
;
101 dest
= (wxWindow
*) src
;
102 return (void *) dest
;
105 static void *SwigwxStatusBarTowxEvtHandler(void *ptr
) {
108 src
= (wxStatusBar
*) ptr
;
109 dest
= (wxEvtHandler
*) src
;
110 return (void *) dest
;
113 static void *SwigwxStatusBarTowxObject(void *ptr
) {
116 src
= (wxStatusBar
*) ptr
;
117 dest
= (wxObject
*) src
;
118 return (void *) dest
;
121 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
122 static PyObject
*_wrap_new_wxStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
123 PyObject
* _resultobj
;
124 wxStatusBar
* _result
;
126 wxWindowID _arg1
= (wxWindowID
) -1;
127 long _arg2
= (long ) wxST_SIZEGRIP
;
128 char * _arg3
= (char *) "statusBar";
129 PyObject
* _argo0
= 0;
130 char *_kwnames
[] = { "parent","id","style","name", NULL
};
134 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|ils:new_wxStatusBar",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
137 if (_argo0
== Py_None
) { _arg0
= NULL
; }
138 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
139 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
144 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
145 _result
= (wxStatusBar
*)new_wxStatusBar(_arg0
,_arg1
,_arg2
,_arg3
);
147 wxPyEndAllowThreads(__tstate
);
148 if (PyErr_Occurred()) return NULL
;
150 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
151 _resultobj
= Py_BuildValue("s",_ptemp
);
154 _resultobj
= Py_None
;
159 #define new_wxPreStatusBar() (new wxStatusBar())
160 static PyObject
*_wrap_new_wxPreStatusBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
161 PyObject
* _resultobj
;
162 wxStatusBar
* _result
;
163 char *_kwnames
[] = { NULL
};
167 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreStatusBar",_kwnames
))
170 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
171 _result
= (wxStatusBar
*)new_wxPreStatusBar();
173 wxPyEndAllowThreads(__tstate
);
174 if (PyErr_Occurred()) return NULL
;
176 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxStatusBar_p");
177 _resultobj
= Py_BuildValue("s",_ptemp
);
180 _resultobj
= Py_None
;
185 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
186 static PyObject
*_wrap_wxStatusBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
187 PyObject
* _resultobj
;
192 long _arg3
= (long ) wxST_SIZEGRIP
;
193 char * _arg4
= (char *) "statusBar";
194 PyObject
* _argo0
= 0;
195 PyObject
* _argo1
= 0;
196 char *_kwnames
[] = { "self","parent","id","style","name", NULL
};
199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|ls:wxStatusBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
,&_arg4
))
202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
209 if (_argo1
== Py_None
) { _arg1
= NULL
; }
210 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
216 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
217 _result
= (bool )wxStatusBar_Create(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
219 wxPyEndAllowThreads(__tstate
);
220 if (PyErr_Occurred()) return NULL
;
221 } _resultobj
= Py_BuildValue("i",_result
);
225 static wxRect
* wxStatusBar_GetFieldRect(wxStatusBar
*self
,long item
) {
226 wxRect
* rect
= new wxRect
;
227 self
->GetFieldRect(item
, *rect
);
230 static PyObject
*_wrap_wxStatusBar_GetFieldRect(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
231 PyObject
* _resultobj
;
235 PyObject
* _argo0
= 0;
236 char *_kwnames
[] = { "self","item", NULL
};
240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxStatusBar_GetFieldRect",_kwnames
,&_argo0
,&_arg1
))
243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
250 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
251 _result
= (wxRect
*)wxStatusBar_GetFieldRect(_arg0
,_arg1
);
253 wxPyEndAllowThreads(__tstate
);
254 if (PyErr_Occurred()) return NULL
;
256 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxRect_p");
257 _resultobj
= Py_BuildValue("s",_ptemp
);
260 _resultobj
= Py_None
;
265 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
266 static PyObject
*_wrap_wxStatusBar_GetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
267 PyObject
* _resultobj
;
270 PyObject
* _argo0
= 0;
271 char *_kwnames
[] = { "self", NULL
};
274 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetFieldsCount",_kwnames
,&_argo0
))
277 if (_argo0
== Py_None
) { _arg0
= NULL
; }
278 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
279 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
284 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
285 _result
= (int )wxStatusBar_GetFieldsCount(_arg0
);
287 wxPyEndAllowThreads(__tstate
);
288 if (PyErr_Occurred()) return NULL
;
289 } _resultobj
= Py_BuildValue("i",_result
);
293 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
294 static PyObject
*_wrap_wxStatusBar_GetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
295 PyObject
* _resultobj
;
298 int _arg1
= (int ) 0;
299 PyObject
* _argo0
= 0;
300 char *_kwnames
[] = { "self","ir", NULL
};
303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_GetStatusText",_kwnames
,&_argo0
,&_arg1
))
306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
314 _result
= new wxString (wxStatusBar_GetStatusText(_arg0
,_arg1
));
316 wxPyEndAllowThreads(__tstate
);
317 if (PyErr_Occurred()) return NULL
;
319 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
327 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
328 static PyObject
*_wrap_wxStatusBar_GetBorderX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
329 PyObject
* _resultobj
;
332 PyObject
* _argo0
= 0;
333 char *_kwnames
[] = { "self", NULL
};
336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderX",_kwnames
,&_argo0
))
339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
347 _result
= (int )wxStatusBar_GetBorderX(_arg0
);
349 wxPyEndAllowThreads(__tstate
);
350 if (PyErr_Occurred()) return NULL
;
351 } _resultobj
= Py_BuildValue("i",_result
);
355 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
356 static PyObject
*_wrap_wxStatusBar_GetBorderY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
357 PyObject
* _resultobj
;
360 PyObject
* _argo0
= 0;
361 char *_kwnames
[] = { "self", NULL
};
364 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxStatusBar_GetBorderY",_kwnames
,&_argo0
))
367 if (_argo0
== Py_None
) { _arg0
= NULL
; }
368 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
369 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
374 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
375 _result
= (int )wxStatusBar_GetBorderY(_arg0
);
377 wxPyEndAllowThreads(__tstate
);
378 if (PyErr_Occurred()) return NULL
;
379 } _resultobj
= Py_BuildValue("i",_result
);
383 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
384 static PyObject
*_wrap_wxStatusBar_SetFieldsCount(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
385 PyObject
* _resultobj
;
387 int _arg1
= (int ) 1;
388 PyObject
* _argo0
= 0;
389 char *_kwnames
[] = { "self","number", NULL
};
392 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxStatusBar_SetFieldsCount",_kwnames
,&_argo0
,&_arg1
))
395 if (_argo0
== Py_None
) { _arg0
= NULL
; }
396 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
397 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
402 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
403 wxStatusBar_SetFieldsCount(_arg0
,_arg1
);
405 wxPyEndAllowThreads(__tstate
);
406 if (PyErr_Occurred()) return NULL
;
407 } Py_INCREF(Py_None
);
408 _resultobj
= Py_None
;
412 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
413 static PyObject
*_wrap_wxStatusBar_SetStatusText(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
414 PyObject
* _resultobj
;
417 int _arg2
= (int ) 0;
418 PyObject
* _argo0
= 0;
419 PyObject
* _obj1
= 0;
420 char *_kwnames
[] = { "self","text","i", NULL
};
423 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|i:wxStatusBar_SetStatusText",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
426 if (_argo0
== Py_None
) { _arg0
= NULL
; }
427 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
428 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
433 #if PYTHON_API_VERSION >= 1009
434 char* tmpPtr
; int tmpSize
;
435 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
436 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
439 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
441 _arg1
= new wxString(tmpPtr
, tmpSize
);
443 if (!PyString_Check(_obj1
)) {
444 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
447 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
451 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
452 wxStatusBar_SetStatusText(_arg0
,*_arg1
,_arg2
);
454 wxPyEndAllowThreads(__tstate
);
455 if (PyErr_Occurred()) return NULL
;
456 } Py_INCREF(Py_None
);
457 _resultobj
= Py_None
;
465 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
466 static PyObject
*_wrap_wxStatusBar_SetStatusWidths(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
467 PyObject
* _resultobj
;
471 PyObject
* _argo0
= 0;
472 PyObject
* _obj2
= 0;
473 char *_kwnames
[] = { "self","choices", NULL
};
476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxStatusBar_SetStatusWidths",_kwnames
,&_argo0
,&_obj2
))
479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
487 _arg2
= int_LIST_helper(_obj2
);
494 _arg1
= PyList_Size(_obj2
);
501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
502 wxStatusBar_SetStatusWidths(_arg0
,_arg1
,_arg2
);
504 wxPyEndAllowThreads(__tstate
);
505 if (PyErr_Occurred()) return NULL
;
506 } Py_INCREF(Py_None
);
507 _resultobj
= Py_None
;
514 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
515 static PyObject
*_wrap_wxStatusBar_SetMinHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
516 PyObject
* _resultobj
;
519 PyObject
* _argo0
= 0;
520 char *_kwnames
[] = { "self","height", NULL
};
523 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxStatusBar_SetMinHeight",_kwnames
,&_argo0
,&_arg1
))
526 if (_argo0
== Py_None
) { _arg0
= NULL
; }
527 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxStatusBar_p")) {
528 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
533 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
534 wxStatusBar_SetMinHeight(_arg0
,_arg1
);
536 wxPyEndAllowThreads(__tstate
);
537 if (PyErr_Occurred()) return NULL
;
538 } Py_INCREF(Py_None
);
539 _resultobj
= Py_None
;
543 static void *SwigwxToolBarToolBaseTowxObject(void *ptr
) {
544 wxToolBarToolBase
*src
;
546 src
= (wxToolBarToolBase
*) ptr
;
547 dest
= (wxObject
*) src
;
548 return (void *) dest
;
551 static void wxToolBarToolBase_Destroy(wxToolBarToolBase
*self
) { delete self
; }
552 static PyObject
*_wrap_wxToolBarToolBase_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
553 PyObject
* _resultobj
;
554 wxToolBarToolBase
* _arg0
;
555 PyObject
* _argo0
= 0;
556 char *_kwnames
[] = { "self", NULL
};
559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Destroy",_kwnames
,&_argo0
))
562 if (_argo0
== Py_None
) { _arg0
= NULL
; }
563 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
564 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
569 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
570 wxToolBarToolBase_Destroy(_arg0
);
572 wxPyEndAllowThreads(__tstate
);
573 if (PyErr_Occurred()) return NULL
;
574 } Py_INCREF(Py_None
);
575 _resultobj
= Py_None
;
579 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
580 static PyObject
*_wrap_wxToolBarToolBase_GetId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
581 PyObject
* _resultobj
;
583 wxToolBarToolBase
* _arg0
;
584 PyObject
* _argo0
= 0;
585 char *_kwnames
[] = { "self", NULL
};
588 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetId",_kwnames
,&_argo0
))
591 if (_argo0
== Py_None
) { _arg0
= NULL
; }
592 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
593 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
599 _result
= (int )wxToolBarToolBase_GetId(_arg0
);
601 wxPyEndAllowThreads(__tstate
);
602 if (PyErr_Occurred()) return NULL
;
603 } _resultobj
= Py_BuildValue("i",_result
);
607 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
608 static PyObject
*_wrap_wxToolBarToolBase_GetControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
609 PyObject
* _resultobj
;
611 wxToolBarToolBase
* _arg0
;
612 PyObject
* _argo0
= 0;
613 char *_kwnames
[] = { "self", NULL
};
616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetControl",_kwnames
,&_argo0
))
619 if (_argo0
== Py_None
) { _arg0
= NULL
; }
620 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
621 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
626 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
627 _result
= (wxControl
*)wxToolBarToolBase_GetControl(_arg0
);
629 wxPyEndAllowThreads(__tstate
);
630 if (PyErr_Occurred()) return NULL
;
631 }{ _resultobj
= wxPyMake_wxObject(_result
); }
635 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
636 static PyObject
*_wrap_wxToolBarToolBase_GetToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
637 PyObject
* _resultobj
;
638 wxToolBarBase
* _result
;
639 wxToolBarToolBase
* _arg0
;
640 PyObject
* _argo0
= 0;
641 char *_kwnames
[] = { "self", NULL
};
644 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetToolBar",_kwnames
,&_argo0
))
647 if (_argo0
== Py_None
) { _arg0
= NULL
; }
648 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
649 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
654 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
655 _result
= (wxToolBarBase
*)wxToolBarToolBase_GetToolBar(_arg0
);
657 wxPyEndAllowThreads(__tstate
);
658 if (PyErr_Occurred()) return NULL
;
659 }{ _resultobj
= wxPyMake_wxObject(_result
); }
663 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
664 static PyObject
*_wrap_wxToolBarToolBase_IsButton(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
665 PyObject
* _resultobj
;
667 wxToolBarToolBase
* _arg0
;
668 PyObject
* _argo0
= 0;
669 char *_kwnames
[] = { "self", NULL
};
672 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsButton",_kwnames
,&_argo0
))
675 if (_argo0
== Py_None
) { _arg0
= NULL
; }
676 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
677 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
682 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
683 _result
= (int )wxToolBarToolBase_IsButton(_arg0
);
685 wxPyEndAllowThreads(__tstate
);
686 if (PyErr_Occurred()) return NULL
;
687 } _resultobj
= Py_BuildValue("i",_result
);
691 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
692 static PyObject
*_wrap_wxToolBarToolBase_IsControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
693 PyObject
* _resultobj
;
695 wxToolBarToolBase
* _arg0
;
696 PyObject
* _argo0
= 0;
697 char *_kwnames
[] = { "self", NULL
};
700 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsControl",_kwnames
,&_argo0
))
703 if (_argo0
== Py_None
) { _arg0
= NULL
; }
704 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
710 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
711 _result
= (int )wxToolBarToolBase_IsControl(_arg0
);
713 wxPyEndAllowThreads(__tstate
);
714 if (PyErr_Occurred()) return NULL
;
715 } _resultobj
= Py_BuildValue("i",_result
);
719 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
720 static PyObject
*_wrap_wxToolBarToolBase_IsSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
721 PyObject
* _resultobj
;
723 wxToolBarToolBase
* _arg0
;
724 PyObject
* _argo0
= 0;
725 char *_kwnames
[] = { "self", NULL
};
728 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsSeparator",_kwnames
,&_argo0
))
731 if (_argo0
== Py_None
) { _arg0
= NULL
; }
732 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
733 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
738 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
739 _result
= (int )wxToolBarToolBase_IsSeparator(_arg0
);
741 wxPyEndAllowThreads(__tstate
);
742 if (PyErr_Occurred()) return NULL
;
743 } _resultobj
= Py_BuildValue("i",_result
);
747 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
748 static PyObject
*_wrap_wxToolBarToolBase_GetStyle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
749 PyObject
* _resultobj
;
751 wxToolBarToolBase
* _arg0
;
752 PyObject
* _argo0
= 0;
753 char *_kwnames
[] = { "self", NULL
};
756 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetStyle",_kwnames
,&_argo0
))
759 if (_argo0
== Py_None
) { _arg0
= NULL
; }
760 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
761 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
766 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
767 _result
= (int )wxToolBarToolBase_GetStyle(_arg0
);
769 wxPyEndAllowThreads(__tstate
);
770 if (PyErr_Occurred()) return NULL
;
771 } _resultobj
= Py_BuildValue("i",_result
);
775 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
776 static PyObject
*_wrap_wxToolBarToolBase_IsEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
777 PyObject
* _resultobj
;
779 wxToolBarToolBase
* _arg0
;
780 PyObject
* _argo0
= 0;
781 char *_kwnames
[] = { "self", NULL
};
784 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsEnabled",_kwnames
,&_argo0
))
787 if (_argo0
== Py_None
) { _arg0
= NULL
; }
788 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
789 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
794 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
795 _result
= (bool )wxToolBarToolBase_IsEnabled(_arg0
);
797 wxPyEndAllowThreads(__tstate
);
798 if (PyErr_Occurred()) return NULL
;
799 } _resultobj
= Py_BuildValue("i",_result
);
803 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
804 static PyObject
*_wrap_wxToolBarToolBase_IsToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
805 PyObject
* _resultobj
;
807 wxToolBarToolBase
* _arg0
;
808 PyObject
* _argo0
= 0;
809 char *_kwnames
[] = { "self", NULL
};
812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_IsToggled",_kwnames
,&_argo0
))
815 if (_argo0
== Py_None
) { _arg0
= NULL
; }
816 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
817 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
822 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
823 _result
= (bool )wxToolBarToolBase_IsToggled(_arg0
);
825 wxPyEndAllowThreads(__tstate
);
826 if (PyErr_Occurred()) return NULL
;
827 } _resultobj
= Py_BuildValue("i",_result
);
831 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
832 static PyObject
*_wrap_wxToolBarToolBase_CanBeToggled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
833 PyObject
* _resultobj
;
835 wxToolBarToolBase
* _arg0
;
836 PyObject
* _argo0
= 0;
837 char *_kwnames
[] = { "self", NULL
};
840 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_CanBeToggled",_kwnames
,&_argo0
))
843 if (_argo0
== Py_None
) { _arg0
= NULL
; }
844 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
845 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
850 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
851 _result
= (bool )wxToolBarToolBase_CanBeToggled(_arg0
);
853 wxPyEndAllowThreads(__tstate
);
854 if (PyErr_Occurred()) return NULL
;
855 } _resultobj
= Py_BuildValue("i",_result
);
859 #define wxToolBarToolBase_GetNormalBitmap(_swigobj) (_swigobj->GetNormalBitmap())
860 static PyObject
*_wrap_wxToolBarToolBase_GetNormalBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
861 PyObject
* _resultobj
;
863 wxToolBarToolBase
* _arg0
;
864 PyObject
* _argo0
= 0;
865 char *_kwnames
[] = { "self", NULL
};
869 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetNormalBitmap",_kwnames
,&_argo0
))
872 if (_argo0
== Py_None
) { _arg0
= NULL
; }
873 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
874 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetNormalBitmap. Expected _wxToolBarToolBase_p.");
879 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
880 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetNormalBitmap(_arg0
);
881 _result
= (wxBitmap
*) &_result_ref
;
883 wxPyEndAllowThreads(__tstate
);
884 if (PyErr_Occurred()) return NULL
;
886 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
887 _resultobj
= Py_BuildValue("s",_ptemp
);
890 _resultobj
= Py_None
;
895 #define wxToolBarToolBase_GetDisabledBitmap(_swigobj) (_swigobj->GetDisabledBitmap())
896 static PyObject
*_wrap_wxToolBarToolBase_GetDisabledBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
897 PyObject
* _resultobj
;
899 wxToolBarToolBase
* _arg0
;
900 PyObject
* _argo0
= 0;
901 char *_kwnames
[] = { "self", NULL
};
905 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetDisabledBitmap",_kwnames
,&_argo0
))
908 if (_argo0
== Py_None
) { _arg0
= NULL
; }
909 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
910 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetDisabledBitmap. Expected _wxToolBarToolBase_p.");
915 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
916 const wxBitmap
& _result_ref
= wxToolBarToolBase_GetDisabledBitmap(_arg0
);
917 _result
= (wxBitmap
*) &_result_ref
;
919 wxPyEndAllowThreads(__tstate
);
920 if (PyErr_Occurred()) return NULL
;
922 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBitmap_p");
923 _resultobj
= Py_BuildValue("s",_ptemp
);
926 _resultobj
= Py_None
;
931 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
932 static PyObject
*_wrap_wxToolBarToolBase_GetBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
933 PyObject
* _resultobj
;
935 wxToolBarToolBase
* _arg0
;
936 PyObject
* _argo0
= 0;
937 char *_kwnames
[] = { "self", NULL
};
941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetBitmap",_kwnames
,&_argo0
))
944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
951 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
952 _result
= new wxBitmap (wxToolBarToolBase_GetBitmap(_arg0
));
954 wxPyEndAllowThreads(__tstate
);
955 if (PyErr_Occurred()) return NULL
;
956 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
957 _resultobj
= Py_BuildValue("s",_ptemp
);
961 #define wxToolBarToolBase_GetLabel(_swigobj) (_swigobj->GetLabel())
962 static PyObject
*_wrap_wxToolBarToolBase_GetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
963 PyObject
* _resultobj
;
965 wxToolBarToolBase
* _arg0
;
966 PyObject
* _argo0
= 0;
967 char *_kwnames
[] = { "self", NULL
};
970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLabel",_kwnames
,&_argo0
))
973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLabel. Expected _wxToolBarToolBase_p.");
980 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
981 _result
= new wxString (wxToolBarToolBase_GetLabel(_arg0
));
983 wxPyEndAllowThreads(__tstate
);
984 if (PyErr_Occurred()) return NULL
;
986 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
994 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
995 static PyObject
*_wrap_wxToolBarToolBase_GetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
996 PyObject
* _resultobj
;
998 wxToolBarToolBase
* _arg0
;
999 PyObject
* _argo0
= 0;
1000 char *_kwnames
[] = { "self", NULL
};
1003 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetShortHelp",_kwnames
,&_argo0
))
1006 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1007 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1008 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
1013 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1014 _result
= new wxString (wxToolBarToolBase_GetShortHelp(_arg0
));
1016 wxPyEndAllowThreads(__tstate
);
1017 if (PyErr_Occurred()) return NULL
;
1019 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1027 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
1028 static PyObject
*_wrap_wxToolBarToolBase_GetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1029 PyObject
* _resultobj
;
1031 wxToolBarToolBase
* _arg0
;
1032 PyObject
* _argo0
= 0;
1033 char *_kwnames
[] = { "self", NULL
};
1036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetLongHelp",_kwnames
,&_argo0
))
1039 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1040 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1041 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1046 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1047 _result
= new wxString (wxToolBarToolBase_GetLongHelp(_arg0
));
1049 wxPyEndAllowThreads(__tstate
);
1050 if (PyErr_Occurred()) return NULL
;
1052 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
1060 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1061 static PyObject
*_wrap_wxToolBarToolBase_Enable(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1062 PyObject
* _resultobj
;
1064 wxToolBarToolBase
* _arg0
;
1066 PyObject
* _argo0
= 0;
1068 char *_kwnames
[] = { "self","enable", NULL
};
1071 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_Enable",_kwnames
,&_argo0
,&tempbool1
))
1074 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1075 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1076 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1080 _arg1
= (bool ) tempbool1
;
1082 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1083 _result
= (bool )wxToolBarToolBase_Enable(_arg0
,_arg1
);
1085 wxPyEndAllowThreads(__tstate
);
1086 if (PyErr_Occurred()) return NULL
;
1087 } _resultobj
= Py_BuildValue("i",_result
);
1091 #define wxToolBarToolBase_Toggle(_swigobj) (_swigobj->Toggle())
1092 static PyObject
*_wrap_wxToolBarToolBase_Toggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1093 PyObject
* _resultobj
;
1094 wxToolBarToolBase
* _arg0
;
1095 PyObject
* _argo0
= 0;
1096 char *_kwnames
[] = { "self", NULL
};
1099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Toggle",_kwnames
,&_argo0
))
1102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1110 wxToolBarToolBase_Toggle(_arg0
);
1112 wxPyEndAllowThreads(__tstate
);
1113 if (PyErr_Occurred()) return NULL
;
1114 } Py_INCREF(Py_None
);
1115 _resultobj
= Py_None
;
1119 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1120 static PyObject
*_wrap_wxToolBarToolBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1121 PyObject
* _resultobj
;
1123 wxToolBarToolBase
* _arg0
;
1125 PyObject
* _argo0
= 0;
1127 char *_kwnames
[] = { "self","toggle", NULL
};
1130 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarToolBase_SetToggle",_kwnames
,&_argo0
,&tempbool1
))
1133 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1134 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1135 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1139 _arg1
= (bool ) tempbool1
;
1141 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1142 _result
= (bool )wxToolBarToolBase_SetToggle(_arg0
,_arg1
);
1144 wxPyEndAllowThreads(__tstate
);
1145 if (PyErr_Occurred()) return NULL
;
1146 } _resultobj
= Py_BuildValue("i",_result
);
1150 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1151 static PyObject
*_wrap_wxToolBarToolBase_SetShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1152 PyObject
* _resultobj
;
1154 wxToolBarToolBase
* _arg0
;
1156 PyObject
* _argo0
= 0;
1157 PyObject
* _obj1
= 0;
1158 char *_kwnames
[] = { "self","help", NULL
};
1161 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetShortHelp",_kwnames
,&_argo0
,&_obj1
))
1164 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1165 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1166 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1171 #if PYTHON_API_VERSION >= 1009
1172 char* tmpPtr
; int tmpSize
;
1173 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1174 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1177 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1179 _arg1
= new wxString(tmpPtr
, tmpSize
);
1181 if (!PyString_Check(_obj1
)) {
1182 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1185 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1189 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1190 _result
= (bool )wxToolBarToolBase_SetShortHelp(_arg0
,*_arg1
);
1192 wxPyEndAllowThreads(__tstate
);
1193 if (PyErr_Occurred()) return NULL
;
1194 } _resultobj
= Py_BuildValue("i",_result
);
1202 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1203 static PyObject
*_wrap_wxToolBarToolBase_SetLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1204 PyObject
* _resultobj
;
1206 wxToolBarToolBase
* _arg0
;
1208 PyObject
* _argo0
= 0;
1209 PyObject
* _obj1
= 0;
1210 char *_kwnames
[] = { "self","help", NULL
};
1213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLongHelp",_kwnames
,&_argo0
,&_obj1
))
1216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1223 #if PYTHON_API_VERSION >= 1009
1224 char* tmpPtr
; int tmpSize
;
1225 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1226 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1229 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1231 _arg1
= new wxString(tmpPtr
, tmpSize
);
1233 if (!PyString_Check(_obj1
)) {
1234 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1237 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1241 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1242 _result
= (bool )wxToolBarToolBase_SetLongHelp(_arg0
,*_arg1
);
1244 wxPyEndAllowThreads(__tstate
);
1245 if (PyErr_Occurred()) return NULL
;
1246 } _resultobj
= Py_BuildValue("i",_result
);
1254 #define wxToolBarToolBase_SetNormalBitmap(_swigobj,_swigarg0) (_swigobj->SetNormalBitmap(_swigarg0))
1255 static PyObject
*_wrap_wxToolBarToolBase_SetNormalBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1256 PyObject
* _resultobj
;
1257 wxToolBarToolBase
* _arg0
;
1259 PyObject
* _argo0
= 0;
1260 PyObject
* _argo1
= 0;
1261 char *_kwnames
[] = { "self","bmp", NULL
};
1264 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetNormalBitmap",_kwnames
,&_argo0
,&_argo1
))
1267 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1268 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1269 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetNormalBitmap. Expected _wxToolBarToolBase_p.");
1274 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1275 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1276 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetNormalBitmap. Expected _wxBitmap_p.");
1281 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1282 wxToolBarToolBase_SetNormalBitmap(_arg0
,*_arg1
);
1284 wxPyEndAllowThreads(__tstate
);
1285 if (PyErr_Occurred()) return NULL
;
1286 } Py_INCREF(Py_None
);
1287 _resultobj
= Py_None
;
1291 #define wxToolBarToolBase_SetDisabledBitmap(_swigobj,_swigarg0) (_swigobj->SetDisabledBitmap(_swigarg0))
1292 static PyObject
*_wrap_wxToolBarToolBase_SetDisabledBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1293 PyObject
* _resultobj
;
1294 wxToolBarToolBase
* _arg0
;
1296 PyObject
* _argo0
= 0;
1297 PyObject
* _argo1
= 0;
1298 char *_kwnames
[] = { "self","bmp", NULL
};
1301 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetDisabledBitmap",_kwnames
,&_argo0
,&_argo1
))
1304 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1305 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1306 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetDisabledBitmap. Expected _wxToolBarToolBase_p.");
1311 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1312 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxBitmap_p")) {
1313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_SetDisabledBitmap. Expected _wxBitmap_p.");
1318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1319 wxToolBarToolBase_SetDisabledBitmap(_arg0
,*_arg1
);
1321 wxPyEndAllowThreads(__tstate
);
1322 if (PyErr_Occurred()) return NULL
;
1323 } Py_INCREF(Py_None
);
1324 _resultobj
= Py_None
;
1328 #define wxToolBarToolBase_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1329 static PyObject
*_wrap_wxToolBarToolBase_SetLabel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1330 PyObject
* _resultobj
;
1331 wxToolBarToolBase
* _arg0
;
1333 PyObject
* _argo0
= 0;
1334 PyObject
* _obj1
= 0;
1335 char *_kwnames
[] = { "self","label", NULL
};
1338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetLabel",_kwnames
,&_argo0
,&_obj1
))
1341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetLabel. Expected _wxToolBarToolBase_p.");
1348 #if PYTHON_API_VERSION >= 1009
1349 char* tmpPtr
; int tmpSize
;
1350 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1351 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1354 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1356 _arg1
= new wxString(tmpPtr
, tmpSize
);
1358 if (!PyString_Check(_obj1
)) {
1359 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1362 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1366 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1367 wxToolBarToolBase_SetLabel(_arg0
,*_arg1
);
1369 wxPyEndAllowThreads(__tstate
);
1370 if (PyErr_Occurred()) return NULL
;
1371 } Py_INCREF(Py_None
);
1372 _resultobj
= Py_None
;
1380 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1381 static PyObject
*_wrap_wxToolBarToolBase_Detach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1382 PyObject
* _resultobj
;
1383 wxToolBarToolBase
* _arg0
;
1384 PyObject
* _argo0
= 0;
1385 char *_kwnames
[] = { "self", NULL
};
1388 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_Detach",_kwnames
,&_argo0
))
1391 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1392 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1393 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1398 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1399 wxToolBarToolBase_Detach(_arg0
);
1401 wxPyEndAllowThreads(__tstate
);
1402 if (PyErr_Occurred()) return NULL
;
1403 } Py_INCREF(Py_None
);
1404 _resultobj
= Py_None
;
1408 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1409 static PyObject
*_wrap_wxToolBarToolBase_Attach(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1410 PyObject
* _resultobj
;
1411 wxToolBarToolBase
* _arg0
;
1412 wxToolBarBase
* _arg1
;
1413 PyObject
* _argo0
= 0;
1414 PyObject
* _argo1
= 0;
1415 char *_kwnames
[] = { "self","tbar", NULL
};
1418 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_Attach",_kwnames
,&_argo0
,&_argo1
))
1421 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1422 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1428 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1429 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxToolBarBase_p")) {
1430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1435 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1436 wxToolBarToolBase_Attach(_arg0
,_arg1
);
1438 wxPyEndAllowThreads(__tstate
);
1439 if (PyErr_Occurred()) return NULL
;
1440 } Py_INCREF(Py_None
);
1441 _resultobj
= Py_None
;
1445 static PyObject
* wxToolBarToolBase_GetClientData(wxToolBarToolBase
*self
) {
1446 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetClientData();
1448 Py_INCREF(udata
->m_obj
);
1449 return udata
->m_obj
;
1455 static PyObject
*_wrap_wxToolBarToolBase_GetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1456 PyObject
* _resultobj
;
1458 wxToolBarToolBase
* _arg0
;
1459 PyObject
* _argo0
= 0;
1460 char *_kwnames
[] = { "self", NULL
};
1463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarToolBase_GetClientData",_kwnames
,&_argo0
))
1466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1473 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1474 _result
= (PyObject
*)wxToolBarToolBase_GetClientData(_arg0
);
1476 wxPyEndAllowThreads(__tstate
);
1477 if (PyErr_Occurred()) return NULL
;
1479 _resultobj
= _result
;
1484 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase
*self
,PyObject
* clientData
) {
1485 self
->SetClientData(new wxPyUserData(clientData
));
1487 static PyObject
*_wrap_wxToolBarToolBase_SetClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1488 PyObject
* _resultobj
;
1489 wxToolBarToolBase
* _arg0
;
1491 PyObject
* _argo0
= 0;
1492 PyObject
* _obj1
= 0;
1493 char *_kwnames
[] = { "self","clientData", NULL
};
1496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarToolBase_SetClientData",_kwnames
,&_argo0
,&_obj1
))
1499 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1500 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarToolBase_p")) {
1501 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1509 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1510 wxToolBarToolBase_SetClientData(_arg0
,_arg1
);
1512 wxPyEndAllowThreads(__tstate
);
1513 if (PyErr_Occurred()) return NULL
;
1514 } Py_INCREF(Py_None
);
1515 _resultobj
= Py_None
;
1519 static void *SwigwxToolBarBaseTowxControl(void *ptr
) {
1522 src
= (wxToolBarBase
*) ptr
;
1523 dest
= (wxControl
*) src
;
1524 return (void *) dest
;
1527 static void *SwigwxToolBarBaseTowxWindow(void *ptr
) {
1530 src
= (wxToolBarBase
*) ptr
;
1531 dest
= (wxWindow
*) src
;
1532 return (void *) dest
;
1535 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr
) {
1538 src
= (wxToolBarBase
*) ptr
;
1539 dest
= (wxEvtHandler
*) src
;
1540 return (void *) dest
;
1543 static void *SwigwxToolBarBaseTowxObject(void *ptr
) {
1546 src
= (wxToolBarBase
*) ptr
;
1547 dest
= (wxObject
*) src
;
1548 return (void *) dest
;
1551 static wxToolBarToolBase
* wxToolBarBase_AddTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxBitmap
& pushedBitmap
,int isToggle
,PyObject
* clientData
,const wxString
& shortHelpString
,const wxString
& longHelpString
) {
1552 wxPyUserData
* udata
= NULL
;
1554 udata
= new wxPyUserData(clientData
);
1555 return self
->AddTool(id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1556 udata
, shortHelpString
, longHelpString
);
1558 static PyObject
*_wrap_wxToolBarBase_AddTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1559 PyObject
* _resultobj
;
1560 wxToolBarToolBase
* _result
;
1561 wxToolBarBase
* _arg0
;
1564 wxBitmap
* _arg3
= (wxBitmap
*) &wxNullBitmap
;
1565 int _arg4
= (int ) FALSE
;
1566 PyObject
* _arg5
= (PyObject
*) NULL
;
1567 wxString
* _arg6
= (wxString
*) &wxEmptyString
;
1568 wxString
* _arg7
= (wxString
*) &wxEmptyString
;
1569 PyObject
* _argo0
= 0;
1570 PyObject
* _argo2
= 0;
1571 PyObject
* _argo3
= 0;
1572 PyObject
* _obj5
= 0;
1573 PyObject
* _obj6
= 0;
1574 PyObject
* _obj7
= 0;
1575 char *_kwnames
[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1578 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_argo3
,&_arg4
,&_obj5
,&_obj6
,&_obj7
))
1581 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1582 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1583 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
1588 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1589 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1590 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1595 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1596 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1607 #if PYTHON_API_VERSION >= 1009
1608 char* tmpPtr
; int tmpSize
;
1609 if (!PyString_Check(_obj6
) && !PyUnicode_Check(_obj6
)) {
1610 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1613 if (PyString_AsStringAndSize(_obj6
, &tmpPtr
, &tmpSize
) == -1)
1615 _arg6
= new wxString(tmpPtr
, tmpSize
);
1617 if (!PyString_Check(_obj6
)) {
1618 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1621 _arg6
= new wxString(PyString_AS_STRING(_obj6
), PyString_GET_SIZE(_obj6
));
1626 #if PYTHON_API_VERSION >= 1009
1627 char* tmpPtr
; int tmpSize
;
1628 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1629 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1632 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1634 _arg7
= new wxString(tmpPtr
, tmpSize
);
1636 if (!PyString_Check(_obj7
)) {
1637 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1640 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1644 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1645 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddTool(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
,*_arg6
,*_arg7
);
1647 wxPyEndAllowThreads(__tstate
);
1648 if (PyErr_Occurred()) return NULL
;
1649 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1661 static wxToolBarToolBase
* wxToolBarBase_AddSimpleTool(wxToolBarBase
*self
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1662 return self
->AddTool(id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1663 shortHelpString
, longHelpString
);
1665 static PyObject
*_wrap_wxToolBarBase_AddSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1666 PyObject
* _resultobj
;
1667 wxToolBarToolBase
* _result
;
1668 wxToolBarBase
* _arg0
;
1671 wxString
* _arg3
= (wxString
*) &wxEmptyString
;
1672 wxString
* _arg4
= (wxString
*) &wxEmptyString
;
1673 int _arg5
= (int ) FALSE
;
1674 PyObject
* _argo0
= 0;
1675 PyObject
* _argo2
= 0;
1676 PyObject
* _obj3
= 0;
1677 PyObject
* _obj4
= 0;
1678 char *_kwnames
[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_argo2
,&_obj3
,&_obj4
,&_arg5
))
1684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
1691 if (_argo2
== Py_None
) { _arg2
= NULL
; }
1692 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxBitmap_p")) {
1693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1699 #if PYTHON_API_VERSION >= 1009
1700 char* tmpPtr
; int tmpSize
;
1701 if (!PyString_Check(_obj3
) && !PyUnicode_Check(_obj3
)) {
1702 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1705 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
1707 _arg3
= new wxString(tmpPtr
, tmpSize
);
1709 if (!PyString_Check(_obj3
)) {
1710 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1713 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
1718 #if PYTHON_API_VERSION >= 1009
1719 char* tmpPtr
; int tmpSize
;
1720 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1721 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1724 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1726 _arg4
= new wxString(tmpPtr
, tmpSize
);
1728 if (!PyString_Check(_obj4
)) {
1729 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1732 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1736 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1737 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSimpleTool(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
);
1739 wxPyEndAllowThreads(__tstate
);
1740 if (PyErr_Occurred()) return NULL
;
1741 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1753 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
) {
1754 wxPyUserData
* udata
= NULL
;
1756 udata
= new wxPyUserData(clientData
);
1757 return self
->InsertTool(pos
, id
, bitmap
, pushedBitmap
, (bool)isToggle
,
1758 udata
, shortHelpString
, longHelpString
);
1760 static PyObject
*_wrap_wxToolBarBase_InsertTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1761 PyObject
* _resultobj
;
1762 wxToolBarToolBase
* _result
;
1763 wxToolBarBase
* _arg0
;
1767 wxBitmap
* _arg4
= (wxBitmap
*) &wxNullBitmap
;
1768 int _arg5
= (int ) FALSE
;
1769 PyObject
* _arg6
= (PyObject
*) NULL
;
1770 wxString
* _arg7
= (wxString
*) &wxEmptyString
;
1771 wxString
* _arg8
= (wxString
*) &wxEmptyString
;
1772 PyObject
* _argo0
= 0;
1773 PyObject
* _argo3
= 0;
1774 PyObject
* _argo4
= 0;
1775 PyObject
* _obj6
= 0;
1776 PyObject
* _obj7
= 0;
1777 PyObject
* _obj8
= 0;
1778 char *_kwnames
[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL
};
1781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_argo4
,&_arg5
,&_obj6
,&_obj7
,&_obj8
))
1784 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1785 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1786 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1791 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1792 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1798 if (_argo4
== Py_None
) { _arg4
= NULL
; }
1799 else if (SWIG_GetPtrObj(_argo4
,(void **) &_arg4
,"_wxBitmap_p")) {
1800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1810 #if PYTHON_API_VERSION >= 1009
1811 char* tmpPtr
; int tmpSize
;
1812 if (!PyString_Check(_obj7
) && !PyUnicode_Check(_obj7
)) {
1813 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1816 if (PyString_AsStringAndSize(_obj7
, &tmpPtr
, &tmpSize
) == -1)
1818 _arg7
= new wxString(tmpPtr
, tmpSize
);
1820 if (!PyString_Check(_obj7
)) {
1821 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1824 _arg7
= new wxString(PyString_AS_STRING(_obj7
), PyString_GET_SIZE(_obj7
));
1829 #if PYTHON_API_VERSION >= 1009
1830 char* tmpPtr
; int tmpSize
;
1831 if (!PyString_Check(_obj8
) && !PyUnicode_Check(_obj8
)) {
1832 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1835 if (PyString_AsStringAndSize(_obj8
, &tmpPtr
, &tmpSize
) == -1)
1837 _arg8
= new wxString(tmpPtr
, tmpSize
);
1839 if (!PyString_Check(_obj8
)) {
1840 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1843 _arg8
= new wxString(PyString_AS_STRING(_obj8
), PyString_GET_SIZE(_obj8
));
1847 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1848 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
,*_arg7
,*_arg8
);
1850 wxPyEndAllowThreads(__tstate
);
1851 if (PyErr_Occurred()) return NULL
;
1852 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1864 static wxToolBarToolBase
* wxToolBarBase_InsertSimpleTool(wxToolBarBase
*self
,size_t pos
,int id
,const wxBitmap
& bitmap
,const wxString
& shortHelpString
,const wxString
& longHelpString
,int isToggle
) {
1865 return self
->InsertTool(pos
, id
, bitmap
, wxNullBitmap
, isToggle
, NULL
,
1866 shortHelpString
, longHelpString
);
1868 static PyObject
*_wrap_wxToolBarBase_InsertSimpleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1869 PyObject
* _resultobj
;
1870 wxToolBarToolBase
* _result
;
1871 wxToolBarBase
* _arg0
;
1875 wxString
* _arg4
= (wxString
*) &wxEmptyString
;
1876 wxString
* _arg5
= (wxString
*) &wxEmptyString
;
1877 int _arg6
= (int ) FALSE
;
1878 PyObject
* _argo0
= 0;
1879 PyObject
* _argo3
= 0;
1880 PyObject
* _obj4
= 0;
1881 PyObject
* _obj5
= 0;
1882 char *_kwnames
[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL
};
1885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_argo3
,&_obj4
,&_obj5
,&_arg6
))
1888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
1895 if (_argo3
== Py_None
) { _arg3
= NULL
; }
1896 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxBitmap_p")) {
1897 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1903 #if PYTHON_API_VERSION >= 1009
1904 char* tmpPtr
; int tmpSize
;
1905 if (!PyString_Check(_obj4
) && !PyUnicode_Check(_obj4
)) {
1906 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1909 if (PyString_AsStringAndSize(_obj4
, &tmpPtr
, &tmpSize
) == -1)
1911 _arg4
= new wxString(tmpPtr
, tmpSize
);
1913 if (!PyString_Check(_obj4
)) {
1914 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1917 _arg4
= new wxString(PyString_AS_STRING(_obj4
), PyString_GET_SIZE(_obj4
));
1922 #if PYTHON_API_VERSION >= 1009
1923 char* tmpPtr
; int tmpSize
;
1924 if (!PyString_Check(_obj5
) && !PyUnicode_Check(_obj5
)) {
1925 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1928 if (PyString_AsStringAndSize(_obj5
, &tmpPtr
, &tmpSize
) == -1)
1930 _arg5
= new wxString(tmpPtr
, tmpSize
);
1932 if (!PyString_Check(_obj5
)) {
1933 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1936 _arg5
= new wxString(PyString_AS_STRING(_obj5
), PyString_GET_SIZE(_obj5
));
1940 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1941 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSimpleTool(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,*_arg5
,_arg6
);
1943 wxPyEndAllowThreads(__tstate
);
1944 if (PyErr_Occurred()) return NULL
;
1945 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1957 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1958 static PyObject
*_wrap_wxToolBarBase_AddControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1959 PyObject
* _resultobj
;
1960 wxToolBarToolBase
* _result
;
1961 wxToolBarBase
* _arg0
;
1963 PyObject
* _argo0
= 0;
1964 PyObject
* _argo1
= 0;
1965 char *_kwnames
[] = { "self","control", NULL
};
1968 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_AddControl",_kwnames
,&_argo0
,&_argo1
))
1971 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1972 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
1973 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1978 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1979 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxControl_p")) {
1980 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1985 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1986 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddControl(_arg0
,_arg1
);
1988 wxPyEndAllowThreads(__tstate
);
1989 if (PyErr_Occurred()) return NULL
;
1990 }{ _resultobj
= wxPyMake_wxObject(_result
); }
1994 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1995 static PyObject
*_wrap_wxToolBarBase_InsertControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1996 PyObject
* _resultobj
;
1997 wxToolBarToolBase
* _result
;
1998 wxToolBarBase
* _arg0
;
2001 PyObject
* _argo0
= 0;
2002 PyObject
* _argo2
= 0;
2003 char *_kwnames
[] = { "self","pos","control", NULL
};
2006 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_InsertControl",_kwnames
,&_argo0
,&_arg1
,&_argo2
))
2009 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2010 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2011 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
2016 if (_argo2
== Py_None
) { _arg2
= NULL
; }
2017 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxControl_p")) {
2018 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
2023 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2024 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertControl(_arg0
,_arg1
,_arg2
);
2026 wxPyEndAllowThreads(__tstate
);
2027 if (PyErr_Occurred()) return NULL
;
2028 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2032 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
2033 static PyObject
*_wrap_wxToolBarBase_AddSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2034 PyObject
* _resultobj
;
2035 wxToolBarToolBase
* _result
;
2036 wxToolBarBase
* _arg0
;
2037 PyObject
* _argo0
= 0;
2038 char *_kwnames
[] = { "self", NULL
};
2041 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_AddSeparator",_kwnames
,&_argo0
))
2044 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2045 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2046 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
2051 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2052 _result
= (wxToolBarToolBase
*)wxToolBarBase_AddSeparator(_arg0
);
2054 wxPyEndAllowThreads(__tstate
);
2055 if (PyErr_Occurred()) return NULL
;
2056 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2060 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
2061 static PyObject
*_wrap_wxToolBarBase_InsertSeparator(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2062 PyObject
* _resultobj
;
2063 wxToolBarToolBase
* _result
;
2064 wxToolBarBase
* _arg0
;
2066 PyObject
* _argo0
= 0;
2067 char *_kwnames
[] = { "self","pos", NULL
};
2070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_InsertSeparator",_kwnames
,&_argo0
,&_arg1
))
2073 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2074 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
2080 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2081 _result
= (wxToolBarToolBase
*)wxToolBarBase_InsertSeparator(_arg0
,_arg1
);
2083 wxPyEndAllowThreads(__tstate
);
2084 if (PyErr_Occurred()) return NULL
;
2085 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2089 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
2090 static PyObject
*_wrap_wxToolBarBase_RemoveTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2091 PyObject
* _resultobj
;
2092 wxToolBarToolBase
* _result
;
2093 wxToolBarBase
* _arg0
;
2095 PyObject
* _argo0
= 0;
2096 char *_kwnames
[] = { "self","id", NULL
};
2099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_RemoveTool",_kwnames
,&_argo0
,&_arg1
))
2102 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2103 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2104 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
2109 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2110 _result
= (wxToolBarToolBase
*)wxToolBarBase_RemoveTool(_arg0
,_arg1
);
2112 wxPyEndAllowThreads(__tstate
);
2113 if (PyErr_Occurred()) return NULL
;
2114 }{ _resultobj
= wxPyMake_wxObject(_result
); }
2118 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2119 static PyObject
*_wrap_wxToolBarBase_DeleteToolByPos(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2120 PyObject
* _resultobj
;
2122 wxToolBarBase
* _arg0
;
2124 PyObject
* _argo0
= 0;
2125 char *_kwnames
[] = { "self","pos", NULL
};
2128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames
,&_argo0
,&_arg1
))
2131 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2132 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2133 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2139 _result
= (bool )wxToolBarBase_DeleteToolByPos(_arg0
,_arg1
);
2141 wxPyEndAllowThreads(__tstate
);
2142 if (PyErr_Occurred()) return NULL
;
2143 } _resultobj
= Py_BuildValue("i",_result
);
2147 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2148 static PyObject
*_wrap_wxToolBarBase_DeleteTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2149 PyObject
* _resultobj
;
2151 wxToolBarBase
* _arg0
;
2153 PyObject
* _argo0
= 0;
2154 char *_kwnames
[] = { "self","id", NULL
};
2157 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_DeleteTool",_kwnames
,&_argo0
,&_arg1
))
2160 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2161 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2162 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2167 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2168 _result
= (bool )wxToolBarBase_DeleteTool(_arg0
,_arg1
);
2170 wxPyEndAllowThreads(__tstate
);
2171 if (PyErr_Occurred()) return NULL
;
2172 } _resultobj
= Py_BuildValue("i",_result
);
2176 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2177 static PyObject
*_wrap_wxToolBarBase_ClearTools(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2178 PyObject
* _resultobj
;
2179 wxToolBarBase
* _arg0
;
2180 PyObject
* _argo0
= 0;
2181 char *_kwnames
[] = { "self", NULL
};
2184 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_ClearTools",_kwnames
,&_argo0
))
2187 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2188 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2189 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2194 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2195 wxToolBarBase_ClearTools(_arg0
);
2197 wxPyEndAllowThreads(__tstate
);
2198 if (PyErr_Occurred()) return NULL
;
2199 } Py_INCREF(Py_None
);
2200 _resultobj
= Py_None
;
2204 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2205 static PyObject
*_wrap_wxToolBarBase_Realize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2206 PyObject
* _resultobj
;
2208 wxToolBarBase
* _arg0
;
2209 PyObject
* _argo0
= 0;
2210 char *_kwnames
[] = { "self", NULL
};
2213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_Realize",_kwnames
,&_argo0
))
2216 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2217 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2218 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2224 _result
= (bool )wxToolBarBase_Realize(_arg0
);
2226 wxPyEndAllowThreads(__tstate
);
2227 if (PyErr_Occurred()) return NULL
;
2228 } _resultobj
= Py_BuildValue("i",_result
);
2232 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2233 static PyObject
*_wrap_wxToolBarBase_EnableTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2234 PyObject
* _resultobj
;
2235 wxToolBarBase
* _arg0
;
2238 PyObject
* _argo0
= 0;
2240 char *_kwnames
[] = { "self","id","enable", NULL
};
2243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_EnableTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2252 _arg2
= (bool ) tempbool2
;
2254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2255 wxToolBarBase_EnableTool(_arg0
,_arg1
,_arg2
);
2257 wxPyEndAllowThreads(__tstate
);
2258 if (PyErr_Occurred()) return NULL
;
2259 } Py_INCREF(Py_None
);
2260 _resultobj
= Py_None
;
2264 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2265 static PyObject
*_wrap_wxToolBarBase_ToggleTool(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2266 PyObject
* _resultobj
;
2267 wxToolBarBase
* _arg0
;
2270 PyObject
* _argo0
= 0;
2272 char *_kwnames
[] = { "self","id","toggle", NULL
};
2275 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_ToggleTool",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2278 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2279 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2280 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2284 _arg2
= (bool ) tempbool2
;
2286 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2287 wxToolBarBase_ToggleTool(_arg0
,_arg1
,_arg2
);
2289 wxPyEndAllowThreads(__tstate
);
2290 if (PyErr_Occurred()) return NULL
;
2291 } Py_INCREF(Py_None
);
2292 _resultobj
= Py_None
;
2296 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2297 static PyObject
*_wrap_wxToolBarBase_SetToggle(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2298 PyObject
* _resultobj
;
2299 wxToolBarBase
* _arg0
;
2302 PyObject
* _argo0
= 0;
2304 char *_kwnames
[] = { "self","id","toggle", NULL
};
2307 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetToggle",_kwnames
,&_argo0
,&_arg1
,&tempbool2
))
2310 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2311 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2312 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2316 _arg2
= (bool ) tempbool2
;
2318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2319 wxToolBarBase_SetToggle(_arg0
,_arg1
,_arg2
);
2321 wxPyEndAllowThreads(__tstate
);
2322 if (PyErr_Occurred()) return NULL
;
2323 } Py_INCREF(Py_None
);
2324 _resultobj
= Py_None
;
2328 static PyObject
* wxToolBarBase_GetToolClientData(wxToolBarBase
*self
,int id
) {
2329 wxPyUserData
* udata
= (wxPyUserData
*)self
->GetToolClientData(id
);
2331 Py_INCREF(udata
->m_obj
);
2332 return udata
->m_obj
;
2338 static PyObject
*_wrap_wxToolBarBase_GetToolClientData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2339 PyObject
* _resultobj
;
2341 wxToolBarBase
* _arg0
;
2343 PyObject
* _argo0
= 0;
2344 char *_kwnames
[] = { "self","id", NULL
};
2347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolClientData",_kwnames
,&_argo0
,&_arg1
))
2350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2357 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2358 _result
= (PyObject
*)wxToolBarBase_GetToolClientData(_arg0
,_arg1
);
2360 wxPyEndAllowThreads(__tstate
);
2361 if (PyErr_Occurred()) return NULL
;
2363 _resultobj
= _result
;
2368 static void wxToolBarBase_SetToolClientData(wxToolBarBase
*self
,int id
,PyObject
* clientData
) {
2369 self
->SetToolClientData(id
, new wxPyUserData(clientData
));
2371 static PyObject
*_wrap_wxToolBarBase_SetToolClientData(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","clientData", NULL
};
2381 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolClientData",_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_SetToolClientData. Expected _wxToolBarBase_p.");
2394 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2395 wxToolBarBase_SetToolClientData(_arg0
,_arg1
,_arg2
);
2397 wxPyEndAllowThreads(__tstate
);
2398 if (PyErr_Occurred()) return NULL
;
2399 } Py_INCREF(Py_None
);
2400 _resultobj
= Py_None
;
2404 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2405 static PyObject
*_wrap_wxToolBarBase_GetToolState(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2406 PyObject
* _resultobj
;
2408 wxToolBarBase
* _arg0
;
2410 PyObject
* _argo0
= 0;
2411 char *_kwnames
[] = { "self","id", NULL
};
2414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolState",_kwnames
,&_argo0
,&_arg1
))
2417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2424 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2425 _result
= (bool )wxToolBarBase_GetToolState(_arg0
,_arg1
);
2427 wxPyEndAllowThreads(__tstate
);
2428 if (PyErr_Occurred()) return NULL
;
2429 } _resultobj
= Py_BuildValue("i",_result
);
2433 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2434 static PyObject
*_wrap_wxToolBarBase_GetToolEnabled(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2435 PyObject
* _resultobj
;
2437 wxToolBarBase
* _arg0
;
2439 PyObject
* _argo0
= 0;
2440 char *_kwnames
[] = { "self","id", NULL
};
2443 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolEnabled",_kwnames
,&_argo0
,&_arg1
))
2446 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2447 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2448 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2453 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2454 _result
= (bool )wxToolBarBase_GetToolEnabled(_arg0
,_arg1
);
2456 wxPyEndAllowThreads(__tstate
);
2457 if (PyErr_Occurred()) return NULL
;
2458 } _resultobj
= Py_BuildValue("i",_result
);
2462 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2463 static PyObject
*_wrap_wxToolBarBase_SetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2464 PyObject
* _resultobj
;
2465 wxToolBarBase
* _arg0
;
2468 PyObject
* _argo0
= 0;
2469 PyObject
* _obj2
= 0;
2470 char *_kwnames
[] = { "self","id","helpString", NULL
};
2473 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2476 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2477 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2478 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2483 #if PYTHON_API_VERSION >= 1009
2484 char* tmpPtr
; int tmpSize
;
2485 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2486 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2489 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2491 _arg2
= new wxString(tmpPtr
, tmpSize
);
2493 if (!PyString_Check(_obj2
)) {
2494 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2497 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2502 wxToolBarBase_SetToolShortHelp(_arg0
,_arg1
,*_arg2
);
2504 wxPyEndAllowThreads(__tstate
);
2505 if (PyErr_Occurred()) return NULL
;
2506 } Py_INCREF(Py_None
);
2507 _resultobj
= Py_None
;
2515 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2516 static PyObject
*_wrap_wxToolBarBase_GetToolShortHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2517 PyObject
* _resultobj
;
2519 wxToolBarBase
* _arg0
;
2521 PyObject
* _argo0
= 0;
2522 char *_kwnames
[] = { "self","id", NULL
};
2525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames
,&_argo0
,&_arg1
))
2528 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2529 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2530 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2535 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2536 _result
= new wxString (wxToolBarBase_GetToolShortHelp(_arg0
,_arg1
));
2538 wxPyEndAllowThreads(__tstate
);
2539 if (PyErr_Occurred()) return NULL
;
2541 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2549 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2550 static PyObject
*_wrap_wxToolBarBase_SetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2551 PyObject
* _resultobj
;
2552 wxToolBarBase
* _arg0
;
2555 PyObject
* _argo0
= 0;
2556 PyObject
* _obj2
= 0;
2557 char *_kwnames
[] = { "self","id","helpString", NULL
};
2560 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames
,&_argo0
,&_arg1
,&_obj2
))
2563 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2564 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2565 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2570 #if PYTHON_API_VERSION >= 1009
2571 char* tmpPtr
; int tmpSize
;
2572 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
2573 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2576 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
2578 _arg2
= new wxString(tmpPtr
, tmpSize
);
2580 if (!PyString_Check(_obj2
)) {
2581 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
2584 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
2588 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2589 wxToolBarBase_SetToolLongHelp(_arg0
,_arg1
,*_arg2
);
2591 wxPyEndAllowThreads(__tstate
);
2592 if (PyErr_Occurred()) return NULL
;
2593 } Py_INCREF(Py_None
);
2594 _resultobj
= Py_None
;
2602 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2603 static PyObject
*_wrap_wxToolBarBase_GetToolLongHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2604 PyObject
* _resultobj
;
2606 wxToolBarBase
* _arg0
;
2608 PyObject
* _argo0
= 0;
2609 char *_kwnames
[] = { "self","id", NULL
};
2612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames
,&_argo0
,&_arg1
))
2615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2622 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2623 _result
= new wxString (wxToolBarBase_GetToolLongHelp(_arg0
,_arg1
));
2625 wxPyEndAllowThreads(__tstate
);
2626 if (PyErr_Occurred()) return NULL
;
2628 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
2636 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2637 static PyObject
*_wrap_wxToolBarBase_SetMarginsXY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2638 PyObject
* _resultobj
;
2639 wxToolBarBase
* _arg0
;
2642 PyObject
* _argo0
= 0;
2643 char *_kwnames
[] = { "self","x","y", NULL
};
2646 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMarginsXY",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2649 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2650 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2657 wxToolBarBase_SetMarginsXY(_arg0
,_arg1
,_arg2
);
2659 wxPyEndAllowThreads(__tstate
);
2660 if (PyErr_Occurred()) return NULL
;
2661 } Py_INCREF(Py_None
);
2662 _resultobj
= Py_None
;
2666 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2667 static PyObject
*_wrap_wxToolBarBase_SetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2668 PyObject
* _resultobj
;
2669 wxToolBarBase
* _arg0
;
2671 PyObject
* _argo0
= 0;
2673 PyObject
* _obj1
= 0;
2674 char *_kwnames
[] = { "self","size", NULL
};
2677 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetMargins",_kwnames
,&_argo0
,&_obj1
))
2680 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2681 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2682 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2688 if (! wxSize_helper(_obj1
, &_arg1
))
2692 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2693 wxToolBarBase_SetMargins(_arg0
,*_arg1
);
2695 wxPyEndAllowThreads(__tstate
);
2696 if (PyErr_Occurred()) return NULL
;
2697 } Py_INCREF(Py_None
);
2698 _resultobj
= Py_None
;
2702 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2703 static PyObject
*_wrap_wxToolBarBase_SetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2704 PyObject
* _resultobj
;
2705 wxToolBarBase
* _arg0
;
2707 PyObject
* _argo0
= 0;
2708 char *_kwnames
[] = { "self","packing", NULL
};
2711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolPacking",_kwnames
,&_argo0
,&_arg1
))
2714 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2715 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2716 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2721 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2722 wxToolBarBase_SetToolPacking(_arg0
,_arg1
);
2724 wxPyEndAllowThreads(__tstate
);
2725 if (PyErr_Occurred()) return NULL
;
2726 } Py_INCREF(Py_None
);
2727 _resultobj
= Py_None
;
2731 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2732 static PyObject
*_wrap_wxToolBarBase_SetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2733 PyObject
* _resultobj
;
2734 wxToolBarBase
* _arg0
;
2736 PyObject
* _argo0
= 0;
2737 char *_kwnames
[] = { "self","separation", NULL
};
2740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetToolSeparation",_kwnames
,&_argo0
,&_arg1
))
2743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2750 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2751 wxToolBarBase_SetToolSeparation(_arg0
,_arg1
);
2753 wxPyEndAllowThreads(__tstate
);
2754 if (PyErr_Occurred()) return NULL
;
2755 } Py_INCREF(Py_None
);
2756 _resultobj
= Py_None
;
2760 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2761 static PyObject
*_wrap_wxToolBarBase_GetToolMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2762 PyObject
* _resultobj
;
2764 wxToolBarBase
* _arg0
;
2765 PyObject
* _argo0
= 0;
2766 char *_kwnames
[] = { "self", NULL
};
2770 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolMargins",_kwnames
,&_argo0
))
2773 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2774 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2775 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2780 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2781 _result
= new wxSize (wxToolBarBase_GetToolMargins(_arg0
));
2783 wxPyEndAllowThreads(__tstate
);
2784 if (PyErr_Occurred()) return NULL
;
2785 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2786 _resultobj
= Py_BuildValue("s",_ptemp
);
2790 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2791 static PyObject
*_wrap_wxToolBarBase_GetMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2792 PyObject
* _resultobj
;
2794 wxToolBarBase
* _arg0
;
2795 PyObject
* _argo0
= 0;
2796 char *_kwnames
[] = { "self", NULL
};
2800 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMargins",_kwnames
,&_argo0
))
2803 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2804 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2805 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2810 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2811 _result
= new wxSize (wxToolBarBase_GetMargins(_arg0
));
2813 wxPyEndAllowThreads(__tstate
);
2814 if (PyErr_Occurred()) return NULL
;
2815 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2816 _resultobj
= Py_BuildValue("s",_ptemp
);
2820 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2821 static PyObject
*_wrap_wxToolBarBase_GetToolPacking(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2822 PyObject
* _resultobj
;
2824 wxToolBarBase
* _arg0
;
2825 PyObject
* _argo0
= 0;
2826 char *_kwnames
[] = { "self", NULL
};
2829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolPacking",_kwnames
,&_argo0
))
2832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2839 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2840 _result
= (int )wxToolBarBase_GetToolPacking(_arg0
);
2842 wxPyEndAllowThreads(__tstate
);
2843 if (PyErr_Occurred()) return NULL
;
2844 } _resultobj
= Py_BuildValue("i",_result
);
2848 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2849 static PyObject
*_wrap_wxToolBarBase_GetToolSeparation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2850 PyObject
* _resultobj
;
2852 wxToolBarBase
* _arg0
;
2853 PyObject
* _argo0
= 0;
2854 char *_kwnames
[] = { "self", NULL
};
2857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSeparation",_kwnames
,&_argo0
))
2860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2867 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2868 _result
= (int )wxToolBarBase_GetToolSeparation(_arg0
);
2870 wxPyEndAllowThreads(__tstate
);
2871 if (PyErr_Occurred()) return NULL
;
2872 } _resultobj
= Py_BuildValue("i",_result
);
2876 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2877 static PyObject
*_wrap_wxToolBarBase_SetRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2878 PyObject
* _resultobj
;
2879 wxToolBarBase
* _arg0
;
2881 PyObject
* _argo0
= 0;
2882 char *_kwnames
[] = { "self","nRows", NULL
};
2885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxToolBarBase_SetRows",_kwnames
,&_argo0
,&_arg1
))
2888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2895 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2896 wxToolBarBase_SetRows(_arg0
,_arg1
);
2898 wxPyEndAllowThreads(__tstate
);
2899 if (PyErr_Occurred()) return NULL
;
2900 } Py_INCREF(Py_None
);
2901 _resultobj
= Py_None
;
2905 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2906 static PyObject
*_wrap_wxToolBarBase_SetMaxRowsCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2907 PyObject
* _resultobj
;
2908 wxToolBarBase
* _arg0
;
2911 PyObject
* _argo0
= 0;
2912 char *_kwnames
[] = { "self","rows","cols", NULL
};
2915 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
2918 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2919 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2920 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2925 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2926 wxToolBarBase_SetMaxRowsCols(_arg0
,_arg1
,_arg2
);
2928 wxPyEndAllowThreads(__tstate
);
2929 if (PyErr_Occurred()) return NULL
;
2930 } Py_INCREF(Py_None
);
2931 _resultobj
= Py_None
;
2935 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2936 static PyObject
*_wrap_wxToolBarBase_GetMaxRows(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2937 PyObject
* _resultobj
;
2939 wxToolBarBase
* _arg0
;
2940 PyObject
* _argo0
= 0;
2941 char *_kwnames
[] = { "self", NULL
};
2944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxRows",_kwnames
,&_argo0
))
2947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2955 _result
= (int )wxToolBarBase_GetMaxRows(_arg0
);
2957 wxPyEndAllowThreads(__tstate
);
2958 if (PyErr_Occurred()) return NULL
;
2959 } _resultobj
= Py_BuildValue("i",_result
);
2963 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2964 static PyObject
*_wrap_wxToolBarBase_GetMaxCols(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2965 PyObject
* _resultobj
;
2967 wxToolBarBase
* _arg0
;
2968 PyObject
* _argo0
= 0;
2969 char *_kwnames
[] = { "self", NULL
};
2972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetMaxCols",_kwnames
,&_argo0
))
2975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
2977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2982 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2983 _result
= (int )wxToolBarBase_GetMaxCols(_arg0
);
2985 wxPyEndAllowThreads(__tstate
);
2986 if (PyErr_Occurred()) return NULL
;
2987 } _resultobj
= Py_BuildValue("i",_result
);
2991 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2992 static PyObject
*_wrap_wxToolBarBase_SetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2993 PyObject
* _resultobj
;
2994 wxToolBarBase
* _arg0
;
2996 PyObject
* _argo0
= 0;
2998 PyObject
* _obj1
= 0;
2999 char *_kwnames
[] = { "self","size", NULL
};
3002 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames
,&_argo0
,&_obj1
))
3005 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3006 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
3007 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
3013 if (! wxSize_helper(_obj1
, &_arg1
))
3017 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3018 wxToolBarBase_SetToolBitmapSize(_arg0
,*_arg1
);
3020 wxPyEndAllowThreads(__tstate
);
3021 if (PyErr_Occurred()) return NULL
;
3022 } Py_INCREF(Py_None
);
3023 _resultobj
= Py_None
;
3027 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
3028 static PyObject
*_wrap_wxToolBarBase_GetToolBitmapSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3029 PyObject
* _resultobj
;
3031 wxToolBarBase
* _arg0
;
3032 PyObject
* _argo0
= 0;
3033 char *_kwnames
[] = { "self", NULL
};
3037 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolBitmapSize",_kwnames
,&_argo0
))
3040 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3041 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
3042 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
3047 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3048 _result
= new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0
));
3050 wxPyEndAllowThreads(__tstate
);
3051 if (PyErr_Occurred()) return NULL
;
3052 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
3053 _resultobj
= Py_BuildValue("s",_ptemp
);
3057 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
3058 static PyObject
*_wrap_wxToolBarBase_GetToolSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3059 PyObject
* _resultobj
;
3061 wxToolBarBase
* _arg0
;
3062 PyObject
* _argo0
= 0;
3063 char *_kwnames
[] = { "self", NULL
};
3067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_GetToolSize",_kwnames
,&_argo0
))
3070 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3071 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
3072 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
3077 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3078 _result
= new wxSize (wxToolBarBase_GetToolSize(_arg0
));
3080 wxPyEndAllowThreads(__tstate
);
3081 if (PyErr_Occurred()) return NULL
;
3082 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
3083 _resultobj
= Py_BuildValue("s",_ptemp
);
3087 #define wxToolBarBase_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3088 static PyObject
*_wrap_wxToolBarBase_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3089 PyObject
* _resultobj
;
3090 wxToolBarToolBase
* _result
;
3091 wxToolBarBase
* _arg0
;
3094 PyObject
* _argo0
= 0;
3095 char *_kwnames
[] = { "self","x","y", NULL
};
3098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarBase_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
3103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_FindToolForPosition. Expected _wxToolBarBase_p.");
3108 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3109 _result
= (wxToolBarToolBase
*)wxToolBarBase_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3111 wxPyEndAllowThreads(__tstate
);
3112 if (PyErr_Occurred()) return NULL
;
3113 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3117 #define wxToolBarBase_IsVertical(_swigobj) (_swigobj->IsVertical())
3118 static PyObject
*_wrap_wxToolBarBase_IsVertical(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3119 PyObject
* _resultobj
;
3121 wxToolBarBase
* _arg0
;
3122 PyObject
* _argo0
= 0;
3123 char *_kwnames
[] = { "self", NULL
};
3126 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxToolBarBase_IsVertical",_kwnames
,&_argo0
))
3129 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3130 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarBase_p")) {
3131 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarBase_IsVertical. Expected _wxToolBarBase_p.");
3136 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3137 _result
= (bool )wxToolBarBase_IsVertical(_arg0
);
3139 wxPyEndAllowThreads(__tstate
);
3140 if (PyErr_Occurred()) return NULL
;
3141 } _resultobj
= Py_BuildValue("i",_result
);
3145 static void *SwigwxToolBarTowxToolBarBase(void *ptr
) {
3147 wxToolBarBase
*dest
;
3148 src
= (wxToolBar
*) ptr
;
3149 dest
= (wxToolBarBase
*) src
;
3150 return (void *) dest
;
3153 static void *SwigwxToolBarTowxControl(void *ptr
) {
3156 src
= (wxToolBar
*) ptr
;
3157 dest
= (wxControl
*) src
;
3158 return (void *) dest
;
3161 static void *SwigwxToolBarTowxWindow(void *ptr
) {
3164 src
= (wxToolBar
*) ptr
;
3165 dest
= (wxWindow
*) src
;
3166 return (void *) dest
;
3169 static void *SwigwxToolBarTowxEvtHandler(void *ptr
) {
3172 src
= (wxToolBar
*) ptr
;
3173 dest
= (wxEvtHandler
*) src
;
3174 return (void *) dest
;
3177 static void *SwigwxToolBarTowxObject(void *ptr
) {
3180 src
= (wxToolBar
*) ptr
;
3181 dest
= (wxObject
*) src
;
3182 return (void *) dest
;
3185 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3186 static PyObject
*_wrap_new_wxToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3187 PyObject
* _resultobj
;
3188 wxToolBar
* _result
;
3191 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3192 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3193 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3194 char * _arg5
= (char *) wxToolBarNameStr
;
3195 PyObject
* _argo0
= 0;
3197 PyObject
* _obj2
= 0;
3199 PyObject
* _obj3
= 0;
3200 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBar",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3216 if (! wxPoint_helper(_obj2
, &_arg2
))
3222 if (! wxSize_helper(_obj3
, &_arg3
))
3226 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3227 _result
= (wxToolBar
*)new_wxToolBar(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3229 wxPyEndAllowThreads(__tstate
);
3230 if (PyErr_Occurred()) return NULL
;
3232 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3233 _resultobj
= Py_BuildValue("s",_ptemp
);
3236 _resultobj
= Py_None
;
3241 #define new_wxPreToolBar() (new wxToolBar())
3242 static PyObject
*_wrap_new_wxPreToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3243 PyObject
* _resultobj
;
3244 wxToolBar
* _result
;
3245 char *_kwnames
[] = { NULL
};
3249 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBar",_kwnames
))
3252 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3253 _result
= (wxToolBar
*)new_wxPreToolBar();
3255 wxPyEndAllowThreads(__tstate
);
3256 if (PyErr_Occurred()) return NULL
;
3258 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBar_p");
3259 _resultobj
= Py_BuildValue("s",_ptemp
);
3262 _resultobj
= Py_None
;
3267 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3268 static PyObject
*_wrap_wxToolBar_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3269 PyObject
* _resultobj
;
3274 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3275 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3276 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3277 char * _arg6
= (char *) wxToolBarNameStr
;
3278 PyObject
* _argo0
= 0;
3279 PyObject
* _argo1
= 0;
3281 PyObject
* _obj3
= 0;
3283 PyObject
* _obj4
= 0;
3284 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3287 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBar_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3290 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3291 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3292 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3297 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3298 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3299 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3306 if (! wxPoint_helper(_obj3
, &_arg3
))
3312 if (! wxSize_helper(_obj4
, &_arg4
))
3316 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3317 _result
= (bool )wxToolBar_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3319 wxPyEndAllowThreads(__tstate
);
3320 if (PyErr_Occurred()) return NULL
;
3321 } _resultobj
= Py_BuildValue("i",_result
);
3325 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3326 static PyObject
*_wrap_wxToolBar_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3327 PyObject
* _resultobj
;
3328 wxToolBarToolBase
* _result
;
3332 PyObject
* _argo0
= 0;
3333 char *_kwnames
[] = { "self","x","y", NULL
};
3336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBar_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3339 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3340 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBar_p")) {
3341 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3346 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3347 _result
= (wxToolBarToolBase
*)wxToolBar_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3349 wxPyEndAllowThreads(__tstate
);
3350 if (PyErr_Occurred()) return NULL
;
3351 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3355 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr
) {
3356 wxToolBarSimple
*src
;
3357 wxToolBarBase
*dest
;
3358 src
= (wxToolBarSimple
*) ptr
;
3359 dest
= (wxToolBarBase
*) src
;
3360 return (void *) dest
;
3363 static void *SwigwxToolBarSimpleTowxControl(void *ptr
) {
3364 wxToolBarSimple
*src
;
3366 src
= (wxToolBarSimple
*) ptr
;
3367 dest
= (wxControl
*) src
;
3368 return (void *) dest
;
3371 static void *SwigwxToolBarSimpleTowxWindow(void *ptr
) {
3372 wxToolBarSimple
*src
;
3374 src
= (wxToolBarSimple
*) ptr
;
3375 dest
= (wxWindow
*) src
;
3376 return (void *) dest
;
3379 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr
) {
3380 wxToolBarSimple
*src
;
3382 src
= (wxToolBarSimple
*) ptr
;
3383 dest
= (wxEvtHandler
*) src
;
3384 return (void *) dest
;
3387 static void *SwigwxToolBarSimpleTowxObject(void *ptr
) {
3388 wxToolBarSimple
*src
;
3390 src
= (wxToolBarSimple
*) ptr
;
3391 dest
= (wxObject
*) src
;
3392 return (void *) dest
;
3395 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3396 static PyObject
*_wrap_new_wxToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3397 PyObject
* _resultobj
;
3398 wxToolBarSimple
* _result
;
3401 wxPoint
* _arg2
= (wxPoint
*) &wxDefaultPosition
;
3402 wxSize
* _arg3
= (wxSize
*) &wxDefaultSize
;
3403 long _arg4
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3404 char * _arg5
= (char *) wxToolBarNameStr
;
3405 PyObject
* _argo0
= 0;
3407 PyObject
* _obj2
= 0;
3409 PyObject
* _obj3
= 0;
3410 char *_kwnames
[] = { "parent","id","pos","size","style","name", NULL
};
3414 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi|OOls:new_wxToolBarSimple",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&_obj3
,&_arg4
,&_arg5
))
3417 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3418 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3419 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3426 if (! wxPoint_helper(_obj2
, &_arg2
))
3432 if (! wxSize_helper(_obj3
, &_arg3
))
3436 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3437 _result
= (wxToolBarSimple
*)new_wxToolBarSimple(_arg0
,_arg1
,*_arg2
,*_arg3
,_arg4
,_arg5
);
3439 wxPyEndAllowThreads(__tstate
);
3440 if (PyErr_Occurred()) return NULL
;
3442 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3443 _resultobj
= Py_BuildValue("s",_ptemp
);
3446 _resultobj
= Py_None
;
3451 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3452 static PyObject
*_wrap_new_wxPreToolBarSimple(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3453 PyObject
* _resultobj
;
3454 wxToolBarSimple
* _result
;
3455 char *_kwnames
[] = { NULL
};
3459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPreToolBarSimple",_kwnames
))
3462 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3463 _result
= (wxToolBarSimple
*)new_wxPreToolBarSimple();
3465 wxPyEndAllowThreads(__tstate
);
3466 if (PyErr_Occurred()) return NULL
;
3468 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolBarSimple_p");
3469 _resultobj
= Py_BuildValue("s",_ptemp
);
3472 _resultobj
= Py_None
;
3477 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3478 static PyObject
*_wrap_wxToolBarSimple_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3479 PyObject
* _resultobj
;
3481 wxToolBarSimple
* _arg0
;
3484 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
3485 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
3486 long _arg5
= (long ) wxNO_BORDER
|wxTB_HORIZONTAL
;
3487 char * _arg6
= (char *) wxToolBarNameStr
;
3488 PyObject
* _argo0
= 0;
3489 PyObject
* _argo1
= 0;
3491 PyObject
* _obj3
= 0;
3493 PyObject
* _obj4
= 0;
3494 char *_kwnames
[] = { "self","parent","id","pos","size","style","name", NULL
};
3497 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi|OOls:wxToolBarSimple_Create",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
3500 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3501 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3502 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3507 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3508 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
3509 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3516 if (! wxPoint_helper(_obj3
, &_arg3
))
3522 if (! wxSize_helper(_obj4
, &_arg4
))
3526 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3527 _result
= (bool )wxToolBarSimple_Create(_arg0
,_arg1
,_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
3529 wxPyEndAllowThreads(__tstate
);
3530 if (PyErr_Occurred()) return NULL
;
3531 } _resultobj
= Py_BuildValue("i",_result
);
3535 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3536 static PyObject
*_wrap_wxToolBarSimple_FindToolForPosition(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3537 PyObject
* _resultobj
;
3538 wxToolBarToolBase
* _result
;
3539 wxToolBarSimple
* _arg0
;
3542 PyObject
* _argo0
= 0;
3543 char *_kwnames
[] = { "self","x","y", NULL
};
3546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3549 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3550 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxToolBarSimple_p")) {
3551 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3556 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3557 _result
= (wxToolBarToolBase
*)wxToolBarSimple_FindToolForPosition(_arg0
,_arg1
,_arg2
);
3559 wxPyEndAllowThreads(__tstate
);
3560 if (PyErr_Occurred()) return NULL
;
3561 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3565 static PyMethodDef stattoolcMethods
[] = {
3566 { "wxToolBarSimple_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarSimple_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3567 { "wxToolBarSimple_Create", (PyCFunction
) _wrap_wxToolBarSimple_Create
, METH_VARARGS
| METH_KEYWORDS
},
3568 { "new_wxPreToolBarSimple", (PyCFunction
) _wrap_new_wxPreToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3569 { "new_wxToolBarSimple", (PyCFunction
) _wrap_new_wxToolBarSimple
, METH_VARARGS
| METH_KEYWORDS
},
3570 { "wxToolBar_FindToolForPosition", (PyCFunction
) _wrap_wxToolBar_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3571 { "wxToolBar_Create", (PyCFunction
) _wrap_wxToolBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3572 { "new_wxPreToolBar", (PyCFunction
) _wrap_new_wxPreToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3573 { "new_wxToolBar", (PyCFunction
) _wrap_new_wxToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3574 { "wxToolBarBase_IsVertical", (PyCFunction
) _wrap_wxToolBarBase_IsVertical
, METH_VARARGS
| METH_KEYWORDS
},
3575 { "wxToolBarBase_FindToolForPosition", (PyCFunction
) _wrap_wxToolBarBase_FindToolForPosition
, METH_VARARGS
| METH_KEYWORDS
},
3576 { "wxToolBarBase_GetToolSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolSize
, METH_VARARGS
| METH_KEYWORDS
},
3577 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_GetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3578 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction
) _wrap_wxToolBarBase_SetToolBitmapSize
, METH_VARARGS
| METH_KEYWORDS
},
3579 { "wxToolBarBase_GetMaxCols", (PyCFunction
) _wrap_wxToolBarBase_GetMaxCols
, METH_VARARGS
| METH_KEYWORDS
},
3580 { "wxToolBarBase_GetMaxRows", (PyCFunction
) _wrap_wxToolBarBase_GetMaxRows
, METH_VARARGS
| METH_KEYWORDS
},
3581 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction
) _wrap_wxToolBarBase_SetMaxRowsCols
, METH_VARARGS
| METH_KEYWORDS
},
3582 { "wxToolBarBase_SetRows", (PyCFunction
) _wrap_wxToolBarBase_SetRows
, METH_VARARGS
| METH_KEYWORDS
},
3583 { "wxToolBarBase_GetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_GetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3584 { "wxToolBarBase_GetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_GetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3585 { "wxToolBarBase_GetMargins", (PyCFunction
) _wrap_wxToolBarBase_GetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3586 { "wxToolBarBase_GetToolMargins", (PyCFunction
) _wrap_wxToolBarBase_GetToolMargins
, METH_VARARGS
| METH_KEYWORDS
},
3587 { "wxToolBarBase_SetToolSeparation", (PyCFunction
) _wrap_wxToolBarBase_SetToolSeparation
, METH_VARARGS
| METH_KEYWORDS
},
3588 { "wxToolBarBase_SetToolPacking", (PyCFunction
) _wrap_wxToolBarBase_SetToolPacking
, METH_VARARGS
| METH_KEYWORDS
},
3589 { "wxToolBarBase_SetMargins", (PyCFunction
) _wrap_wxToolBarBase_SetMargins
, METH_VARARGS
| METH_KEYWORDS
},
3590 { "wxToolBarBase_SetMarginsXY", (PyCFunction
) _wrap_wxToolBarBase_SetMarginsXY
, METH_VARARGS
| METH_KEYWORDS
},
3591 { "wxToolBarBase_GetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3592 { "wxToolBarBase_SetToolLongHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3593 { "wxToolBarBase_GetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_GetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3594 { "wxToolBarBase_SetToolShortHelp", (PyCFunction
) _wrap_wxToolBarBase_SetToolShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3595 { "wxToolBarBase_GetToolEnabled", (PyCFunction
) _wrap_wxToolBarBase_GetToolEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3596 { "wxToolBarBase_GetToolState", (PyCFunction
) _wrap_wxToolBarBase_GetToolState
, METH_VARARGS
| METH_KEYWORDS
},
3597 { "wxToolBarBase_SetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_SetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3598 { "wxToolBarBase_GetToolClientData", (PyCFunction
) _wrap_wxToolBarBase_GetToolClientData
, METH_VARARGS
| METH_KEYWORDS
},
3599 { "wxToolBarBase_SetToggle", (PyCFunction
) _wrap_wxToolBarBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3600 { "wxToolBarBase_ToggleTool", (PyCFunction
) _wrap_wxToolBarBase_ToggleTool
, METH_VARARGS
| METH_KEYWORDS
},
3601 { "wxToolBarBase_EnableTool", (PyCFunction
) _wrap_wxToolBarBase_EnableTool
, METH_VARARGS
| METH_KEYWORDS
},
3602 { "wxToolBarBase_Realize", (PyCFunction
) _wrap_wxToolBarBase_Realize
, METH_VARARGS
| METH_KEYWORDS
},
3603 { "wxToolBarBase_ClearTools", (PyCFunction
) _wrap_wxToolBarBase_ClearTools
, METH_VARARGS
| METH_KEYWORDS
},
3604 { "wxToolBarBase_DeleteTool", (PyCFunction
) _wrap_wxToolBarBase_DeleteTool
, METH_VARARGS
| METH_KEYWORDS
},
3605 { "wxToolBarBase_DeleteToolByPos", (PyCFunction
) _wrap_wxToolBarBase_DeleteToolByPos
, METH_VARARGS
| METH_KEYWORDS
},
3606 { "wxToolBarBase_RemoveTool", (PyCFunction
) _wrap_wxToolBarBase_RemoveTool
, METH_VARARGS
| METH_KEYWORDS
},
3607 { "wxToolBarBase_InsertSeparator", (PyCFunction
) _wrap_wxToolBarBase_InsertSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3608 { "wxToolBarBase_AddSeparator", (PyCFunction
) _wrap_wxToolBarBase_AddSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3609 { "wxToolBarBase_InsertControl", (PyCFunction
) _wrap_wxToolBarBase_InsertControl
, METH_VARARGS
| METH_KEYWORDS
},
3610 { "wxToolBarBase_AddControl", (PyCFunction
) _wrap_wxToolBarBase_AddControl
, METH_VARARGS
| METH_KEYWORDS
},
3611 { "wxToolBarBase_InsertSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_InsertSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3612 { "wxToolBarBase_InsertTool", (PyCFunction
) _wrap_wxToolBarBase_InsertTool
, METH_VARARGS
| METH_KEYWORDS
},
3613 { "wxToolBarBase_AddSimpleTool", (PyCFunction
) _wrap_wxToolBarBase_AddSimpleTool
, METH_VARARGS
| METH_KEYWORDS
},
3614 { "wxToolBarBase_AddTool", (PyCFunction
) _wrap_wxToolBarBase_AddTool
, METH_VARARGS
| METH_KEYWORDS
},
3615 { "wxToolBarToolBase_SetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_SetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3616 { "wxToolBarToolBase_GetClientData", (PyCFunction
) _wrap_wxToolBarToolBase_GetClientData
, METH_VARARGS
| METH_KEYWORDS
},
3617 { "wxToolBarToolBase_Attach", (PyCFunction
) _wrap_wxToolBarToolBase_Attach
, METH_VARARGS
| METH_KEYWORDS
},
3618 { "wxToolBarToolBase_Detach", (PyCFunction
) _wrap_wxToolBarToolBase_Detach
, METH_VARARGS
| METH_KEYWORDS
},
3619 { "wxToolBarToolBase_SetLabel", (PyCFunction
) _wrap_wxToolBarToolBase_SetLabel
, METH_VARARGS
| METH_KEYWORDS
},
3620 { "wxToolBarToolBase_SetDisabledBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_SetDisabledBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3621 { "wxToolBarToolBase_SetNormalBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_SetNormalBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3622 { "wxToolBarToolBase_SetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3623 { "wxToolBarToolBase_SetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_SetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3624 { "wxToolBarToolBase_SetToggle", (PyCFunction
) _wrap_wxToolBarToolBase_SetToggle
, METH_VARARGS
| METH_KEYWORDS
},
3625 { "wxToolBarToolBase_Toggle", (PyCFunction
) _wrap_wxToolBarToolBase_Toggle
, METH_VARARGS
| METH_KEYWORDS
},
3626 { "wxToolBarToolBase_Enable", (PyCFunction
) _wrap_wxToolBarToolBase_Enable
, METH_VARARGS
| METH_KEYWORDS
},
3627 { "wxToolBarToolBase_GetLongHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetLongHelp
, METH_VARARGS
| METH_KEYWORDS
},
3628 { "wxToolBarToolBase_GetShortHelp", (PyCFunction
) _wrap_wxToolBarToolBase_GetShortHelp
, METH_VARARGS
| METH_KEYWORDS
},
3629 { "wxToolBarToolBase_GetLabel", (PyCFunction
) _wrap_wxToolBarToolBase_GetLabel
, METH_VARARGS
| METH_KEYWORDS
},
3630 { "wxToolBarToolBase_GetBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3631 { "wxToolBarToolBase_GetDisabledBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetDisabledBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3632 { "wxToolBarToolBase_GetNormalBitmap", (PyCFunction
) _wrap_wxToolBarToolBase_GetNormalBitmap
, METH_VARARGS
| METH_KEYWORDS
},
3633 { "wxToolBarToolBase_CanBeToggled", (PyCFunction
) _wrap_wxToolBarToolBase_CanBeToggled
, METH_VARARGS
| METH_KEYWORDS
},
3634 { "wxToolBarToolBase_IsToggled", (PyCFunction
) _wrap_wxToolBarToolBase_IsToggled
, METH_VARARGS
| METH_KEYWORDS
},
3635 { "wxToolBarToolBase_IsEnabled", (PyCFunction
) _wrap_wxToolBarToolBase_IsEnabled
, METH_VARARGS
| METH_KEYWORDS
},
3636 { "wxToolBarToolBase_GetStyle", (PyCFunction
) _wrap_wxToolBarToolBase_GetStyle
, METH_VARARGS
| METH_KEYWORDS
},
3637 { "wxToolBarToolBase_IsSeparator", (PyCFunction
) _wrap_wxToolBarToolBase_IsSeparator
, METH_VARARGS
| METH_KEYWORDS
},
3638 { "wxToolBarToolBase_IsControl", (PyCFunction
) _wrap_wxToolBarToolBase_IsControl
, METH_VARARGS
| METH_KEYWORDS
},
3639 { "wxToolBarToolBase_IsButton", (PyCFunction
) _wrap_wxToolBarToolBase_IsButton
, METH_VARARGS
| METH_KEYWORDS
},
3640 { "wxToolBarToolBase_GetToolBar", (PyCFunction
) _wrap_wxToolBarToolBase_GetToolBar
, METH_VARARGS
| METH_KEYWORDS
},
3641 { "wxToolBarToolBase_GetControl", (PyCFunction
) _wrap_wxToolBarToolBase_GetControl
, METH_VARARGS
| METH_KEYWORDS
},
3642 { "wxToolBarToolBase_GetId", (PyCFunction
) _wrap_wxToolBarToolBase_GetId
, METH_VARARGS
| METH_KEYWORDS
},
3643 { "wxToolBarToolBase_Destroy", (PyCFunction
) _wrap_wxToolBarToolBase_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
3644 { "wxStatusBar_SetMinHeight", (PyCFunction
) _wrap_wxStatusBar_SetMinHeight
, METH_VARARGS
| METH_KEYWORDS
},
3645 { "wxStatusBar_SetStatusWidths", (PyCFunction
) _wrap_wxStatusBar_SetStatusWidths
, METH_VARARGS
| METH_KEYWORDS
},
3646 { "wxStatusBar_SetStatusText", (PyCFunction
) _wrap_wxStatusBar_SetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3647 { "wxStatusBar_SetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_SetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3648 { "wxStatusBar_GetBorderY", (PyCFunction
) _wrap_wxStatusBar_GetBorderY
, METH_VARARGS
| METH_KEYWORDS
},
3649 { "wxStatusBar_GetBorderX", (PyCFunction
) _wrap_wxStatusBar_GetBorderX
, METH_VARARGS
| METH_KEYWORDS
},
3650 { "wxStatusBar_GetStatusText", (PyCFunction
) _wrap_wxStatusBar_GetStatusText
, METH_VARARGS
| METH_KEYWORDS
},
3651 { "wxStatusBar_GetFieldsCount", (PyCFunction
) _wrap_wxStatusBar_GetFieldsCount
, METH_VARARGS
| METH_KEYWORDS
},
3652 { "wxStatusBar_GetFieldRect", (PyCFunction
) _wrap_wxStatusBar_GetFieldRect
, METH_VARARGS
| METH_KEYWORDS
},
3653 { "wxStatusBar_Create", (PyCFunction
) _wrap_wxStatusBar_Create
, METH_VARARGS
| METH_KEYWORDS
},
3654 { "new_wxPreStatusBar", (PyCFunction
) _wrap_new_wxPreStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3655 { "new_wxStatusBar", (PyCFunction
) _wrap_new_wxStatusBar
, METH_VARARGS
| METH_KEYWORDS
},
3662 * This table is used by the pointer type-checker
3664 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
3665 { "_signed_long","_long",0},
3666 { "_wxPrintQuality","_wxCoord",0},
3667 { "_wxPrintQuality","_int",0},
3668 { "_wxPrintQuality","_signed_int",0},
3669 { "_wxPrintQuality","_unsigned_int",0},
3670 { "_wxPrintQuality","_wxWindowID",0},
3671 { "_wxPrintQuality","_uint",0},
3672 { "_wxPrintQuality","_EBool",0},
3673 { "_wxPrintQuality","_size_t",0},
3674 { "_wxPrintQuality","_time_t",0},
3675 { "_byte","_unsigned_char",0},
3676 { "_long","_unsigned_long",0},
3677 { "_long","_signed_long",0},
3678 { "_size_t","_wxCoord",0},
3679 { "_size_t","_wxPrintQuality",0},
3680 { "_size_t","_time_t",0},
3681 { "_size_t","_unsigned_int",0},
3682 { "_size_t","_int",0},
3683 { "_size_t","_wxWindowID",0},
3684 { "_size_t","_uint",0},
3685 { "_uint","_wxCoord",0},
3686 { "_uint","_wxPrintQuality",0},
3687 { "_uint","_time_t",0},
3688 { "_uint","_size_t",0},
3689 { "_uint","_unsigned_int",0},
3690 { "_uint","_int",0},
3691 { "_uint","_wxWindowID",0},
3692 { "_wxChar","_char",0},
3693 { "_char","_wxChar",0},
3694 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3695 { "_EBool","_wxCoord",0},
3696 { "_EBool","_wxPrintQuality",0},
3697 { "_EBool","_signed_int",0},
3698 { "_EBool","_int",0},
3699 { "_EBool","_wxWindowID",0},
3700 { "_unsigned_long","_long",0},
3701 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3702 { "_signed_int","_wxCoord",0},
3703 { "_signed_int","_wxPrintQuality",0},
3704 { "_signed_int","_EBool",0},
3705 { "_signed_int","_wxWindowID",0},
3706 { "_signed_int","_int",0},
3707 { "_WXTYPE","_short",0},
3708 { "_WXTYPE","_signed_short",0},
3709 { "_WXTYPE","_unsigned_short",0},
3710 { "_unsigned_short","_WXTYPE",0},
3711 { "_unsigned_short","_short",0},
3712 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject
},
3713 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject
},
3714 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject
},
3715 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject
},
3716 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject
},
3717 { "_signed_short","_WXTYPE",0},
3718 { "_signed_short","_short",0},
3719 { "_unsigned_char","_byte",0},
3720 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl
},
3721 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl
},
3722 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl
},
3723 { "_unsigned_int","_wxCoord",0},
3724 { "_unsigned_int","_wxPrintQuality",0},
3725 { "_unsigned_int","_time_t",0},
3726 { "_unsigned_int","_size_t",0},
3727 { "_unsigned_int","_uint",0},
3728 { "_unsigned_int","_wxWindowID",0},
3729 { "_unsigned_int","_int",0},
3730 { "_short","_WXTYPE",0},
3731 { "_short","_unsigned_short",0},
3732 { "_short","_signed_short",0},
3733 { "_wxWindowID","_wxCoord",0},
3734 { "_wxWindowID","_wxPrintQuality",0},
3735 { "_wxWindowID","_time_t",0},
3736 { "_wxWindowID","_size_t",0},
3737 { "_wxWindowID","_EBool",0},
3738 { "_wxWindowID","_uint",0},
3739 { "_wxWindowID","_int",0},
3740 { "_wxWindowID","_signed_int",0},
3741 { "_wxWindowID","_unsigned_int",0},
3742 { "_int","_wxCoord",0},
3743 { "_int","_wxPrintQuality",0},
3744 { "_int","_time_t",0},
3745 { "_int","_size_t",0},
3746 { "_int","_EBool",0},
3747 { "_int","_uint",0},
3748 { "_int","_wxWindowID",0},
3749 { "_int","_unsigned_int",0},
3750 { "_int","_signed_int",0},
3751 { "_time_t","_wxCoord",0},
3752 { "_time_t","_wxPrintQuality",0},
3753 { "_time_t","_unsigned_int",0},
3754 { "_time_t","_int",0},
3755 { "_time_t","_wxWindowID",0},
3756 { "_time_t","_uint",0},
3757 { "_time_t","_size_t",0},
3758 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase
},
3759 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase
},
3760 { "_wxCoord","_int",0},
3761 { "_wxCoord","_signed_int",0},
3762 { "_wxCoord","_unsigned_int",0},
3763 { "_wxCoord","_wxWindowID",0},
3764 { "_wxCoord","_uint",0},
3765 { "_wxCoord","_EBool",0},
3766 { "_wxCoord","_size_t",0},
3767 { "_wxCoord","_time_t",0},
3768 { "_wxCoord","_wxPrintQuality",0},
3769 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler
},
3770 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler
},
3771 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler
},
3772 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler
},
3773 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow
},
3774 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow
},
3775 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow
},
3776 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow
},
3779 static PyObject
*SWIG_globals
;
3783 SWIGEXPORT(void) initstattoolc() {
3785 SWIG_globals
= SWIG_newvarlink();
3786 m
= Py_InitModule("stattoolc", stattoolcMethods
);
3787 d
= PyModule_GetDict(m
);
3788 PyDict_SetItemString(d
,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON
));
3789 PyDict_SetItemString(d
,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR
));
3790 PyDict_SetItemString(d
,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL
));
3793 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
3794 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);