]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/stattool.cpp
reference count bugs in DrawXXXList fixed
[wxWidgets.git] / wxPython / src / gtk / stattool.cpp
1 /*
2 * FILE : src/gtk/stattool.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
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.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initstattoolc
53
54 #define SWIG_name "stattoolc"
55
56 #include "helpers.h"
57 #include <wx/toolbar.h>
58 #include <wx/tbarsmpl.h>
59
60 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
61 PyObject* o2;
62 if (!target) {
63 target = o;
64 } else if (target == Py_None) {
65 Py_DECREF(Py_None);
66 target = o;
67 } else {
68 if (!PyList_Check(target)) {
69 o2 = target;
70 target = PyList_New(0);
71 PyList_Append(target, o2);
72 Py_XDECREF(o2);
73 }
74 PyList_Append(target,o);
75 Py_XDECREF(o);
76 }
77 return target;
78 }
79
80 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
81 PyObject* o2;
82 PyObject* o3;
83
84 if (!target) {
85 target = o;
86 } else if (target == Py_None) {
87 Py_DECREF(Py_None);
88 target = o;
89 } else {
90 if (!PyTuple_Check(target)) {
91 o2 = target;
92 target = PyTuple_New(1);
93 PyTuple_SetItem(target, 0, o2);
94 }
95 o3 = PyTuple_New(1);
96 PyTuple_SetItem(o3, 0, o);
97
98 o2 = target;
99 target = PySequence_Concat(o2, o3);
100 Py_DECREF(o2);
101 Py_DECREF(o3);
102 }
103 return target;
104 }
105
106 #if PYTHON_API_VERSION >= 1009
107 static char* wxStringErrorMsg = "String or Unicode type required";
108 #else
109 static char* wxStringErrorMsg = "String type required";
110 #endif
111
112 static wxString wxPyEmptyStr("");
113 #ifdef __cplusplus
114 extern "C" {
115 #endif
116 static void *SwigwxStatusBarTowxWindow(void *ptr) {
117 wxStatusBar *src;
118 wxWindow *dest;
119 src = (wxStatusBar *) ptr;
120 dest = (wxWindow *) src;
121 return (void *) dest;
122 }
123
124 static void *SwigwxStatusBarTowxEvtHandler(void *ptr) {
125 wxStatusBar *src;
126 wxEvtHandler *dest;
127 src = (wxStatusBar *) ptr;
128 dest = (wxEvtHandler *) src;
129 return (void *) dest;
130 }
131
132 static void *SwigwxStatusBarTowxObject(void *ptr) {
133 wxStatusBar *src;
134 wxObject *dest;
135 src = (wxStatusBar *) ptr;
136 dest = (wxObject *) src;
137 return (void *) dest;
138 }
139
140 #define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
141 static PyObject *_wrap_new_wxStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
142 PyObject * _resultobj;
143 wxStatusBar * _result;
144 wxWindow * _arg0;
145 wxWindowID _arg1;
146 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
147 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
148 long _arg4 = (long ) wxST_SIZEGRIP;
149 char * _arg5 = (char *) "statusBar";
150 PyObject * _argo0 = 0;
151 wxPoint temp;
152 PyObject * _obj2 = 0;
153 wxSize temp0;
154 PyObject * _obj3 = 0;
155 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
156 char _ptemp[128];
157
158 self = self;
159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxStatusBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
160 return NULL;
161 if (_argo0) {
162 if (_argo0 == Py_None) { _arg0 = NULL; }
163 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
164 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxStatusBar. Expected _wxWindow_p.");
165 return NULL;
166 }
167 }
168 if (_obj2)
169 {
170 _arg2 = &temp;
171 if (! wxPoint_helper(_obj2, &_arg2))
172 return NULL;
173 }
174 if (_obj3)
175 {
176 _arg3 = &temp0;
177 if (! wxSize_helper(_obj3, &_arg3))
178 return NULL;
179 }
180 {
181 wxPy_BEGIN_ALLOW_THREADS;
182 _result = (wxStatusBar *)new_wxStatusBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
183
184 wxPy_END_ALLOW_THREADS;
185 if (PyErr_Occurred()) return NULL;
186 } if (_result) {
187 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
188 _resultobj = Py_BuildValue("s",_ptemp);
189 } else {
190 Py_INCREF(Py_None);
191 _resultobj = Py_None;
192 }
193 return _resultobj;
194 }
195
196 #define new_wxPreStatusBar() (new wxStatusBar())
197 static PyObject *_wrap_new_wxPreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
198 PyObject * _resultobj;
199 wxStatusBar * _result;
200 char *_kwnames[] = { NULL };
201 char _ptemp[128];
202
203 self = self;
204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreStatusBar",_kwnames))
205 return NULL;
206 {
207 wxPy_BEGIN_ALLOW_THREADS;
208 _result = (wxStatusBar *)new_wxPreStatusBar();
209
210 wxPy_END_ALLOW_THREADS;
211 if (PyErr_Occurred()) return NULL;
212 } if (_result) {
213 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
214 _resultobj = Py_BuildValue("s",_ptemp);
215 } else {
216 Py_INCREF(Py_None);
217 _resultobj = Py_None;
218 }
219 return _resultobj;
220 }
221
222 #define wxStatusBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
223 static PyObject *_wrap_wxStatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
224 PyObject * _resultobj;
225 bool _result;
226 wxStatusBar * _arg0;
227 wxWindow * _arg1;
228 wxWindowID _arg2;
229 long _arg3 = (long ) wxST_SIZEGRIP;
230 char * _arg4 = (char *) "statusBar";
231 PyObject * _argo0 = 0;
232 PyObject * _argo1 = 0;
233 char *_kwnames[] = { "self","parent","id","style","name", NULL };
234
235 self = self;
236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|ls:wxStatusBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
237 return NULL;
238 if (_argo0) {
239 if (_argo0 == Py_None) { _arg0 = NULL; }
240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_Create. Expected _wxStatusBar_p.");
242 return NULL;
243 }
244 }
245 if (_argo1) {
246 if (_argo1 == Py_None) { _arg1 = NULL; }
247 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
248 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_Create. Expected _wxWindow_p.");
249 return NULL;
250 }
251 }
252 {
253 wxPy_BEGIN_ALLOW_THREADS;
254 _result = (bool )wxStatusBar_Create(_arg0,_arg1,_arg2,_arg3,_arg4);
255
256 wxPy_END_ALLOW_THREADS;
257 if (PyErr_Occurred()) return NULL;
258 } _resultobj = Py_BuildValue("i",_result);
259 return _resultobj;
260 }
261
262 static wxRect * wxStatusBar_GetFieldRect(wxStatusBar *self,long item) {
263 wxRect* rect= new wxRect;
264 self->GetFieldRect(item, *rect);
265 return rect;
266 }
267 static PyObject *_wrap_wxStatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) {
268 PyObject * _resultobj;
269 wxRect * _result;
270 wxStatusBar * _arg0;
271 long _arg1;
272 PyObject * _argo0 = 0;
273 char *_kwnames[] = { "self","item", NULL };
274 char _ptemp[128];
275
276 self = self;
277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxStatusBar_GetFieldRect",_kwnames,&_argo0,&_arg1))
278 return NULL;
279 if (_argo0) {
280 if (_argo0 == Py_None) { _arg0 = NULL; }
281 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
282 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldRect. Expected _wxStatusBar_p.");
283 return NULL;
284 }
285 }
286 {
287 wxPy_BEGIN_ALLOW_THREADS;
288 _result = (wxRect *)wxStatusBar_GetFieldRect(_arg0,_arg1);
289
290 wxPy_END_ALLOW_THREADS;
291 if (PyErr_Occurred()) return NULL;
292 } if (_result) {
293 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
294 _resultobj = Py_BuildValue("s",_ptemp);
295 } else {
296 Py_INCREF(Py_None);
297 _resultobj = Py_None;
298 }
299 return _resultobj;
300 }
301
302 #define wxStatusBar_GetFieldsCount(_swigobj) (_swigobj->GetFieldsCount())
303 static PyObject *_wrap_wxStatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
304 PyObject * _resultobj;
305 int _result;
306 wxStatusBar * _arg0;
307 PyObject * _argo0 = 0;
308 char *_kwnames[] = { "self", NULL };
309
310 self = self;
311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetFieldsCount",_kwnames,&_argo0))
312 return NULL;
313 if (_argo0) {
314 if (_argo0 == Py_None) { _arg0 = NULL; }
315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetFieldsCount. Expected _wxStatusBar_p.");
317 return NULL;
318 }
319 }
320 {
321 wxPy_BEGIN_ALLOW_THREADS;
322 _result = (int )wxStatusBar_GetFieldsCount(_arg0);
323
324 wxPy_END_ALLOW_THREADS;
325 if (PyErr_Occurred()) return NULL;
326 } _resultobj = Py_BuildValue("i",_result);
327 return _resultobj;
328 }
329
330 #define wxStatusBar_GetStatusText(_swigobj,_swigarg0) (_swigobj->GetStatusText(_swigarg0))
331 static PyObject *_wrap_wxStatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) {
332 PyObject * _resultobj;
333 wxString * _result;
334 wxStatusBar * _arg0;
335 int _arg1 = (int ) 0;
336 PyObject * _argo0 = 0;
337 char *_kwnames[] = { "self","ir", NULL };
338
339 self = self;
340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxStatusBar_GetStatusText",_kwnames,&_argo0,&_arg1))
341 return NULL;
342 if (_argo0) {
343 if (_argo0 == Py_None) { _arg0 = NULL; }
344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetStatusText. Expected _wxStatusBar_p.");
346 return NULL;
347 }
348 }
349 {
350 wxPy_BEGIN_ALLOW_THREADS;
351 _result = new wxString (wxStatusBar_GetStatusText(_arg0,_arg1));
352
353 wxPy_END_ALLOW_THREADS;
354 if (PyErr_Occurred()) return NULL;
355 }{
356 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
357 }
358 {
359 delete _result;
360 }
361 return _resultobj;
362 }
363
364 #define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
365 static PyObject *_wrap_wxStatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) {
366 PyObject * _resultobj;
367 int _result;
368 wxStatusBar * _arg0;
369 PyObject * _argo0 = 0;
370 char *_kwnames[] = { "self", NULL };
371
372 self = self;
373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderX",_kwnames,&_argo0))
374 return NULL;
375 if (_argo0) {
376 if (_argo0 == Py_None) { _arg0 = NULL; }
377 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
378 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
379 return NULL;
380 }
381 }
382 {
383 wxPy_BEGIN_ALLOW_THREADS;
384 _result = (int )wxStatusBar_GetBorderX(_arg0);
385
386 wxPy_END_ALLOW_THREADS;
387 if (PyErr_Occurred()) return NULL;
388 } _resultobj = Py_BuildValue("i",_result);
389 return _resultobj;
390 }
391
392 #define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
393 static PyObject *_wrap_wxStatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) {
394 PyObject * _resultobj;
395 int _result;
396 wxStatusBar * _arg0;
397 PyObject * _argo0 = 0;
398 char *_kwnames[] = { "self", NULL };
399
400 self = self;
401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderY",_kwnames,&_argo0))
402 return NULL;
403 if (_argo0) {
404 if (_argo0 == Py_None) { _arg0 = NULL; }
405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
407 return NULL;
408 }
409 }
410 {
411 wxPy_BEGIN_ALLOW_THREADS;
412 _result = (int )wxStatusBar_GetBorderY(_arg0);
413
414 wxPy_END_ALLOW_THREADS;
415 if (PyErr_Occurred()) return NULL;
416 } _resultobj = Py_BuildValue("i",_result);
417 return _resultobj;
418 }
419
420 #define wxStatusBar_SetFieldsCount(_swigobj,_swigarg0) (_swigobj->SetFieldsCount(_swigarg0))
421 static PyObject *_wrap_wxStatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
422 PyObject * _resultobj;
423 wxStatusBar * _arg0;
424 int _arg1 = (int ) 1;
425 PyObject * _argo0 = 0;
426 char *_kwnames[] = { "self","number", NULL };
427
428 self = self;
429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxStatusBar_SetFieldsCount",_kwnames,&_argo0,&_arg1))
430 return NULL;
431 if (_argo0) {
432 if (_argo0 == Py_None) { _arg0 = NULL; }
433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetFieldsCount. Expected _wxStatusBar_p.");
435 return NULL;
436 }
437 }
438 {
439 wxPy_BEGIN_ALLOW_THREADS;
440 wxStatusBar_SetFieldsCount(_arg0,_arg1);
441
442 wxPy_END_ALLOW_THREADS;
443 if (PyErr_Occurred()) return NULL;
444 } Py_INCREF(Py_None);
445 _resultobj = Py_None;
446 return _resultobj;
447 }
448
449 #define wxStatusBar_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
450 static PyObject *_wrap_wxStatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) {
451 PyObject * _resultobj;
452 wxStatusBar * _arg0;
453 wxString * _arg1;
454 int _arg2 = (int ) 0;
455 PyObject * _argo0 = 0;
456 PyObject * _obj1 = 0;
457 char *_kwnames[] = { "self","text","i", NULL };
458
459 self = self;
460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxStatusBar_SetStatusText",_kwnames,&_argo0,&_obj1,&_arg2))
461 return NULL;
462 if (_argo0) {
463 if (_argo0 == Py_None) { _arg0 = NULL; }
464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusText. Expected _wxStatusBar_p.");
466 return NULL;
467 }
468 }
469 {
470 #if PYTHON_API_VERSION >= 1009
471 char* tmpPtr; int tmpSize;
472 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
473 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
474 return NULL;
475 }
476 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
477 return NULL;
478 _arg1 = new wxString(tmpPtr, tmpSize);
479 #else
480 if (!PyString_Check(_obj1)) {
481 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
482 return NULL;
483 }
484 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
485 #endif
486 }
487 {
488 wxPy_BEGIN_ALLOW_THREADS;
489 wxStatusBar_SetStatusText(_arg0,*_arg1,_arg2);
490
491 wxPy_END_ALLOW_THREADS;
492 if (PyErr_Occurred()) return NULL;
493 } Py_INCREF(Py_None);
494 _resultobj = Py_None;
495 {
496 if (_obj1)
497 delete _arg1;
498 }
499 return _resultobj;
500 }
501
502 #define wxStatusBar_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
503 static PyObject *_wrap_wxStatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
504 PyObject * _resultobj;
505 wxStatusBar * _arg0;
506 int _arg1;
507 int * _arg2;
508 PyObject * _argo0 = 0;
509 PyObject * _obj2 = 0;
510 char *_kwnames[] = { "self","choices", NULL };
511
512 self = self;
513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStatusBar_SetStatusWidths",_kwnames,&_argo0,&_obj2))
514 return NULL;
515 if (_argo0) {
516 if (_argo0 == Py_None) { _arg0 = NULL; }
517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetStatusWidths. Expected _wxStatusBar_p.");
519 return NULL;
520 }
521 }
522 if (_obj2)
523 {
524 _arg2 = int_LIST_helper(_obj2);
525 if (_arg2 == NULL) {
526 return NULL;
527 }
528 }
529 {
530 if (_obj2) {
531 _arg1 = PyList_Size(_obj2);
532 }
533 else {
534 _arg1 = 0;
535 }
536 }
537 {
538 wxPy_BEGIN_ALLOW_THREADS;
539 wxStatusBar_SetStatusWidths(_arg0,_arg1,_arg2);
540
541 wxPy_END_ALLOW_THREADS;
542 if (PyErr_Occurred()) return NULL;
543 } Py_INCREF(Py_None);
544 _resultobj = Py_None;
545 {
546 delete [] _arg2;
547 }
548 return _resultobj;
549 }
550
551 #define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
552 static PyObject *_wrap_wxStatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
553 PyObject * _resultobj;
554 wxStatusBar * _arg0;
555 int _arg1;
556 PyObject * _argo0 = 0;
557 char *_kwnames[] = { "self","height", NULL };
558
559 self = self;
560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStatusBar_SetMinHeight",_kwnames,&_argo0,&_arg1))
561 return NULL;
562 if (_argo0) {
563 if (_argo0 == Py_None) { _arg0 = NULL; }
564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
566 return NULL;
567 }
568 }
569 {
570 wxPy_BEGIN_ALLOW_THREADS;
571 wxStatusBar_SetMinHeight(_arg0,_arg1);
572
573 wxPy_END_ALLOW_THREADS;
574 if (PyErr_Occurred()) return NULL;
575 } Py_INCREF(Py_None);
576 _resultobj = Py_None;
577 return _resultobj;
578 }
579
580 static void *SwigwxToolBarToolBaseTowxObject(void *ptr) {
581 wxToolBarToolBase *src;
582 wxObject *dest;
583 src = (wxToolBarToolBase *) ptr;
584 dest = (wxObject *) src;
585 return (void *) dest;
586 }
587
588 static void wxToolBarToolBase_Destroy(wxToolBarToolBase *self) { delete self; }
589 static PyObject *_wrap_wxToolBarToolBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
590 PyObject * _resultobj;
591 wxToolBarToolBase * _arg0;
592 PyObject * _argo0 = 0;
593 char *_kwnames[] = { "self", NULL };
594
595 self = self;
596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_Destroy",_kwnames,&_argo0))
597 return NULL;
598 if (_argo0) {
599 if (_argo0 == Py_None) { _arg0 = NULL; }
600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Destroy. Expected _wxToolBarToolBase_p.");
602 return NULL;
603 }
604 }
605 {
606 wxPy_BEGIN_ALLOW_THREADS;
607 wxToolBarToolBase_Destroy(_arg0);
608
609 wxPy_END_ALLOW_THREADS;
610 if (PyErr_Occurred()) return NULL;
611 } Py_INCREF(Py_None);
612 _resultobj = Py_None;
613 return _resultobj;
614 }
615
616 #define wxToolBarToolBase_GetId(_swigobj) (_swigobj->GetId())
617 static PyObject *_wrap_wxToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
618 PyObject * _resultobj;
619 int _result;
620 wxToolBarToolBase * _arg0;
621 PyObject * _argo0 = 0;
622 char *_kwnames[] = { "self", NULL };
623
624 self = self;
625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetId",_kwnames,&_argo0))
626 return NULL;
627 if (_argo0) {
628 if (_argo0 == Py_None) { _arg0 = NULL; }
629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetId. Expected _wxToolBarToolBase_p.");
631 return NULL;
632 }
633 }
634 {
635 wxPy_BEGIN_ALLOW_THREADS;
636 _result = (int )wxToolBarToolBase_GetId(_arg0);
637
638 wxPy_END_ALLOW_THREADS;
639 if (PyErr_Occurred()) return NULL;
640 } _resultobj = Py_BuildValue("i",_result);
641 return _resultobj;
642 }
643
644 #define wxToolBarToolBase_GetControl(_swigobj) (_swigobj->GetControl())
645 static PyObject *_wrap_wxToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
646 PyObject * _resultobj;
647 wxControl * _result;
648 wxToolBarToolBase * _arg0;
649 PyObject * _argo0 = 0;
650 char *_kwnames[] = { "self", NULL };
651
652 self = self;
653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetControl",_kwnames,&_argo0))
654 return NULL;
655 if (_argo0) {
656 if (_argo0 == Py_None) { _arg0 = NULL; }
657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetControl. Expected _wxToolBarToolBase_p.");
659 return NULL;
660 }
661 }
662 {
663 wxPy_BEGIN_ALLOW_THREADS;
664 _result = (wxControl *)wxToolBarToolBase_GetControl(_arg0);
665
666 wxPy_END_ALLOW_THREADS;
667 if (PyErr_Occurred()) return NULL;
668 }{ _resultobj = wxPyMake_wxObject(_result); }
669 return _resultobj;
670 }
671
672 #define wxToolBarToolBase_GetToolBar(_swigobj) (_swigobj->GetToolBar())
673 static PyObject *_wrap_wxToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
674 PyObject * _resultobj;
675 wxToolBarBase * _result;
676 wxToolBarToolBase * _arg0;
677 PyObject * _argo0 = 0;
678 char *_kwnames[] = { "self", NULL };
679
680 self = self;
681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetToolBar",_kwnames,&_argo0))
682 return NULL;
683 if (_argo0) {
684 if (_argo0 == Py_None) { _arg0 = NULL; }
685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetToolBar. Expected _wxToolBarToolBase_p.");
687 return NULL;
688 }
689 }
690 {
691 wxPy_BEGIN_ALLOW_THREADS;
692 _result = (wxToolBarBase *)wxToolBarToolBase_GetToolBar(_arg0);
693
694 wxPy_END_ALLOW_THREADS;
695 if (PyErr_Occurred()) return NULL;
696 }{ _resultobj = wxPyMake_wxObject(_result); }
697 return _resultobj;
698 }
699
700 #define wxToolBarToolBase_IsButton(_swigobj) (_swigobj->IsButton())
701 static PyObject *_wrap_wxToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
702 PyObject * _resultobj;
703 int _result;
704 wxToolBarToolBase * _arg0;
705 PyObject * _argo0 = 0;
706 char *_kwnames[] = { "self", NULL };
707
708 self = self;
709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsButton",_kwnames,&_argo0))
710 return NULL;
711 if (_argo0) {
712 if (_argo0 == Py_None) { _arg0 = NULL; }
713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsButton. Expected _wxToolBarToolBase_p.");
715 return NULL;
716 }
717 }
718 {
719 wxPy_BEGIN_ALLOW_THREADS;
720 _result = (int )wxToolBarToolBase_IsButton(_arg0);
721
722 wxPy_END_ALLOW_THREADS;
723 if (PyErr_Occurred()) return NULL;
724 } _resultobj = Py_BuildValue("i",_result);
725 return _resultobj;
726 }
727
728 #define wxToolBarToolBase_IsControl(_swigobj) (_swigobj->IsControl())
729 static PyObject *_wrap_wxToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) {
730 PyObject * _resultobj;
731 int _result;
732 wxToolBarToolBase * _arg0;
733 PyObject * _argo0 = 0;
734 char *_kwnames[] = { "self", NULL };
735
736 self = self;
737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsControl",_kwnames,&_argo0))
738 return NULL;
739 if (_argo0) {
740 if (_argo0 == Py_None) { _arg0 = NULL; }
741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsControl. Expected _wxToolBarToolBase_p.");
743 return NULL;
744 }
745 }
746 {
747 wxPy_BEGIN_ALLOW_THREADS;
748 _result = (int )wxToolBarToolBase_IsControl(_arg0);
749
750 wxPy_END_ALLOW_THREADS;
751 if (PyErr_Occurred()) return NULL;
752 } _resultobj = Py_BuildValue("i",_result);
753 return _resultobj;
754 }
755
756 #define wxToolBarToolBase_IsSeparator(_swigobj) (_swigobj->IsSeparator())
757 static PyObject *_wrap_wxToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
758 PyObject * _resultobj;
759 int _result;
760 wxToolBarToolBase * _arg0;
761 PyObject * _argo0 = 0;
762 char *_kwnames[] = { "self", NULL };
763
764 self = self;
765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsSeparator",_kwnames,&_argo0))
766 return NULL;
767 if (_argo0) {
768 if (_argo0 == Py_None) { _arg0 = NULL; }
769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsSeparator. Expected _wxToolBarToolBase_p.");
771 return NULL;
772 }
773 }
774 {
775 wxPy_BEGIN_ALLOW_THREADS;
776 _result = (int )wxToolBarToolBase_IsSeparator(_arg0);
777
778 wxPy_END_ALLOW_THREADS;
779 if (PyErr_Occurred()) return NULL;
780 } _resultobj = Py_BuildValue("i",_result);
781 return _resultobj;
782 }
783
784 #define wxToolBarToolBase_GetStyle(_swigobj) (_swigobj->GetStyle())
785 static PyObject *_wrap_wxToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
786 PyObject * _resultobj;
787 int _result;
788 wxToolBarToolBase * _arg0;
789 PyObject * _argo0 = 0;
790 char *_kwnames[] = { "self", NULL };
791
792 self = self;
793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetStyle",_kwnames,&_argo0))
794 return NULL;
795 if (_argo0) {
796 if (_argo0 == Py_None) { _arg0 = NULL; }
797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetStyle. Expected _wxToolBarToolBase_p.");
799 return NULL;
800 }
801 }
802 {
803 wxPy_BEGIN_ALLOW_THREADS;
804 _result = (int )wxToolBarToolBase_GetStyle(_arg0);
805
806 wxPy_END_ALLOW_THREADS;
807 if (PyErr_Occurred()) return NULL;
808 } _resultobj = Py_BuildValue("i",_result);
809 return _resultobj;
810 }
811
812 #define wxToolBarToolBase_IsEnabled(_swigobj) (_swigobj->IsEnabled())
813 static PyObject *_wrap_wxToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
814 PyObject * _resultobj;
815 bool _result;
816 wxToolBarToolBase * _arg0;
817 PyObject * _argo0 = 0;
818 char *_kwnames[] = { "self", NULL };
819
820 self = self;
821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsEnabled",_kwnames,&_argo0))
822 return NULL;
823 if (_argo0) {
824 if (_argo0 == Py_None) { _arg0 = NULL; }
825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsEnabled. Expected _wxToolBarToolBase_p.");
827 return NULL;
828 }
829 }
830 {
831 wxPy_BEGIN_ALLOW_THREADS;
832 _result = (bool )wxToolBarToolBase_IsEnabled(_arg0);
833
834 wxPy_END_ALLOW_THREADS;
835 if (PyErr_Occurred()) return NULL;
836 } _resultobj = Py_BuildValue("i",_result);
837 return _resultobj;
838 }
839
840 #define wxToolBarToolBase_IsToggled(_swigobj) (_swigobj->IsToggled())
841 static PyObject *_wrap_wxToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
842 PyObject * _resultobj;
843 bool _result;
844 wxToolBarToolBase * _arg0;
845 PyObject * _argo0 = 0;
846 char *_kwnames[] = { "self", NULL };
847
848 self = self;
849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_IsToggled",_kwnames,&_argo0))
850 return NULL;
851 if (_argo0) {
852 if (_argo0 == Py_None) { _arg0 = NULL; }
853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_IsToggled. Expected _wxToolBarToolBase_p.");
855 return NULL;
856 }
857 }
858 {
859 wxPy_BEGIN_ALLOW_THREADS;
860 _result = (bool )wxToolBarToolBase_IsToggled(_arg0);
861
862 wxPy_END_ALLOW_THREADS;
863 if (PyErr_Occurred()) return NULL;
864 } _resultobj = Py_BuildValue("i",_result);
865 return _resultobj;
866 }
867
868 #define wxToolBarToolBase_CanBeToggled(_swigobj) (_swigobj->CanBeToggled())
869 static PyObject *_wrap_wxToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) {
870 PyObject * _resultobj;
871 bool _result;
872 wxToolBarToolBase * _arg0;
873 PyObject * _argo0 = 0;
874 char *_kwnames[] = { "self", NULL };
875
876 self = self;
877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_CanBeToggled",_kwnames,&_argo0))
878 return NULL;
879 if (_argo0) {
880 if (_argo0 == Py_None) { _arg0 = NULL; }
881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_CanBeToggled. Expected _wxToolBarToolBase_p.");
883 return NULL;
884 }
885 }
886 {
887 wxPy_BEGIN_ALLOW_THREADS;
888 _result = (bool )wxToolBarToolBase_CanBeToggled(_arg0);
889
890 wxPy_END_ALLOW_THREADS;
891 if (PyErr_Occurred()) return NULL;
892 } _resultobj = Py_BuildValue("i",_result);
893 return _resultobj;
894 }
895
896 #define wxToolBarToolBase_GetBitmap1(_swigobj) (_swigobj->GetBitmap1())
897 static PyObject *_wrap_wxToolBarToolBase_GetBitmap1(PyObject *self, PyObject *args, PyObject *kwargs) {
898 PyObject * _resultobj;
899 wxBitmap * _result;
900 wxToolBarToolBase * _arg0;
901 PyObject * _argo0 = 0;
902 char *_kwnames[] = { "self", NULL };
903 char _ptemp[128];
904
905 self = self;
906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap1",_kwnames,&_argo0))
907 return NULL;
908 if (_argo0) {
909 if (_argo0 == Py_None) { _arg0 = NULL; }
910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetBitmap1. Expected _wxToolBarToolBase_p.");
912 return NULL;
913 }
914 }
915 {
916 wxPy_BEGIN_ALLOW_THREADS;
917 const wxBitmap & _result_ref = wxToolBarToolBase_GetBitmap1(_arg0);
918 _result = (wxBitmap *) &_result_ref;
919
920 wxPy_END_ALLOW_THREADS;
921 if (PyErr_Occurred()) return NULL;
922 } if (_result) {
923 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
924 _resultobj = Py_BuildValue("s",_ptemp);
925 } else {
926 Py_INCREF(Py_None);
927 _resultobj = Py_None;
928 }
929 return _resultobj;
930 }
931
932 #define wxToolBarToolBase_GetBitmap2(_swigobj) (_swigobj->GetBitmap2())
933 static PyObject *_wrap_wxToolBarToolBase_GetBitmap2(PyObject *self, PyObject *args, PyObject *kwargs) {
934 PyObject * _resultobj;
935 wxBitmap * _result;
936 wxToolBarToolBase * _arg0;
937 PyObject * _argo0 = 0;
938 char *_kwnames[] = { "self", NULL };
939 char _ptemp[128];
940
941 self = self;
942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap2",_kwnames,&_argo0))
943 return NULL;
944 if (_argo0) {
945 if (_argo0 == Py_None) { _arg0 = NULL; }
946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetBitmap2. Expected _wxToolBarToolBase_p.");
948 return NULL;
949 }
950 }
951 {
952 wxPy_BEGIN_ALLOW_THREADS;
953 const wxBitmap & _result_ref = wxToolBarToolBase_GetBitmap2(_arg0);
954 _result = (wxBitmap *) &_result_ref;
955
956 wxPy_END_ALLOW_THREADS;
957 if (PyErr_Occurred()) return NULL;
958 } if (_result) {
959 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
960 _resultobj = Py_BuildValue("s",_ptemp);
961 } else {
962 Py_INCREF(Py_None);
963 _resultobj = Py_None;
964 }
965 return _resultobj;
966 }
967
968 #define wxToolBarToolBase_GetBitmap(_swigobj) (_swigobj->GetBitmap())
969 static PyObject *_wrap_wxToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
970 PyObject * _resultobj;
971 wxBitmap * _result;
972 wxToolBarToolBase * _arg0;
973 PyObject * _argo0 = 0;
974 char *_kwnames[] = { "self", NULL };
975 char _ptemp[128];
976
977 self = self;
978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetBitmap",_kwnames,&_argo0))
979 return NULL;
980 if (_argo0) {
981 if (_argo0 == Py_None) { _arg0 = NULL; }
982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetBitmap. Expected _wxToolBarToolBase_p.");
984 return NULL;
985 }
986 }
987 {
988 wxPy_BEGIN_ALLOW_THREADS;
989 const wxBitmap & _result_ref = wxToolBarToolBase_GetBitmap(_arg0);
990 _result = (wxBitmap *) &_result_ref;
991
992 wxPy_END_ALLOW_THREADS;
993 if (PyErr_Occurred()) return NULL;
994 } if (_result) {
995 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
996 _resultobj = Py_BuildValue("s",_ptemp);
997 } else {
998 Py_INCREF(Py_None);
999 _resultobj = Py_None;
1000 }
1001 return _resultobj;
1002 }
1003
1004 #define wxToolBarToolBase_GetShortHelp(_swigobj) (_swigobj->GetShortHelp())
1005 static PyObject *_wrap_wxToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
1006 PyObject * _resultobj;
1007 wxString * _result;
1008 wxToolBarToolBase * _arg0;
1009 PyObject * _argo0 = 0;
1010 char *_kwnames[] = { "self", NULL };
1011
1012 self = self;
1013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetShortHelp",_kwnames,&_argo0))
1014 return NULL;
1015 if (_argo0) {
1016 if (_argo0 == Py_None) { _arg0 = NULL; }
1017 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1018 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetShortHelp. Expected _wxToolBarToolBase_p.");
1019 return NULL;
1020 }
1021 }
1022 {
1023 wxPy_BEGIN_ALLOW_THREADS;
1024 _result = new wxString (wxToolBarToolBase_GetShortHelp(_arg0));
1025
1026 wxPy_END_ALLOW_THREADS;
1027 if (PyErr_Occurred()) return NULL;
1028 }{
1029 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1030 }
1031 {
1032 delete _result;
1033 }
1034 return _resultobj;
1035 }
1036
1037 #define wxToolBarToolBase_GetLongHelp(_swigobj) (_swigobj->GetLongHelp())
1038 static PyObject *_wrap_wxToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
1039 PyObject * _resultobj;
1040 wxString * _result;
1041 wxToolBarToolBase * _arg0;
1042 PyObject * _argo0 = 0;
1043 char *_kwnames[] = { "self", NULL };
1044
1045 self = self;
1046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetLongHelp",_kwnames,&_argo0))
1047 return NULL;
1048 if (_argo0) {
1049 if (_argo0 == Py_None) { _arg0 = NULL; }
1050 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1051 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetLongHelp. Expected _wxToolBarToolBase_p.");
1052 return NULL;
1053 }
1054 }
1055 {
1056 wxPy_BEGIN_ALLOW_THREADS;
1057 _result = new wxString (wxToolBarToolBase_GetLongHelp(_arg0));
1058
1059 wxPy_END_ALLOW_THREADS;
1060 if (PyErr_Occurred()) return NULL;
1061 }{
1062 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1063 }
1064 {
1065 delete _result;
1066 }
1067 return _resultobj;
1068 }
1069
1070 #define wxToolBarToolBase_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1071 static PyObject *_wrap_wxToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
1072 PyObject * _resultobj;
1073 bool _result;
1074 wxToolBarToolBase * _arg0;
1075 bool _arg1;
1076 PyObject * _argo0 = 0;
1077 int tempbool1;
1078 char *_kwnames[] = { "self","enable", NULL };
1079
1080 self = self;
1081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_Enable",_kwnames,&_argo0,&tempbool1))
1082 return NULL;
1083 if (_argo0) {
1084 if (_argo0 == Py_None) { _arg0 = NULL; }
1085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Enable. Expected _wxToolBarToolBase_p.");
1087 return NULL;
1088 }
1089 }
1090 _arg1 = (bool ) tempbool1;
1091 {
1092 wxPy_BEGIN_ALLOW_THREADS;
1093 _result = (bool )wxToolBarToolBase_Enable(_arg0,_arg1);
1094
1095 wxPy_END_ALLOW_THREADS;
1096 if (PyErr_Occurred()) return NULL;
1097 } _resultobj = Py_BuildValue("i",_result);
1098 return _resultobj;
1099 }
1100
1101 #define wxToolBarToolBase_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
1102 static PyObject *_wrap_wxToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
1103 PyObject * _resultobj;
1104 bool _result;
1105 wxToolBarToolBase * _arg0;
1106 bool _arg1;
1107 PyObject * _argo0 = 0;
1108 int tempbool1;
1109 char *_kwnames[] = { "self","toggle", NULL };
1110
1111 self = self;
1112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_Toggle",_kwnames,&_argo0,&tempbool1))
1113 return NULL;
1114 if (_argo0) {
1115 if (_argo0 == Py_None) { _arg0 = NULL; }
1116 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Toggle. Expected _wxToolBarToolBase_p.");
1118 return NULL;
1119 }
1120 }
1121 _arg1 = (bool ) tempbool1;
1122 {
1123 wxPy_BEGIN_ALLOW_THREADS;
1124 _result = (bool )wxToolBarToolBase_Toggle(_arg0,_arg1);
1125
1126 wxPy_END_ALLOW_THREADS;
1127 if (PyErr_Occurred()) return NULL;
1128 } _resultobj = Py_BuildValue("i",_result);
1129 return _resultobj;
1130 }
1131
1132 #define wxToolBarToolBase_SetToggle(_swigobj,_swigarg0) (_swigobj->SetToggle(_swigarg0))
1133 static PyObject *_wrap_wxToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
1134 PyObject * _resultobj;
1135 bool _result;
1136 wxToolBarToolBase * _arg0;
1137 bool _arg1;
1138 PyObject * _argo0 = 0;
1139 int tempbool1;
1140 char *_kwnames[] = { "self","toggle", NULL };
1141
1142 self = self;
1143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarToolBase_SetToggle",_kwnames,&_argo0,&tempbool1))
1144 return NULL;
1145 if (_argo0) {
1146 if (_argo0 == Py_None) { _arg0 = NULL; }
1147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetToggle. Expected _wxToolBarToolBase_p.");
1149 return NULL;
1150 }
1151 }
1152 _arg1 = (bool ) tempbool1;
1153 {
1154 wxPy_BEGIN_ALLOW_THREADS;
1155 _result = (bool )wxToolBarToolBase_SetToggle(_arg0,_arg1);
1156
1157 wxPy_END_ALLOW_THREADS;
1158 if (PyErr_Occurred()) return NULL;
1159 } _resultobj = Py_BuildValue("i",_result);
1160 return _resultobj;
1161 }
1162
1163 #define wxToolBarToolBase_SetShortHelp(_swigobj,_swigarg0) (_swigobj->SetShortHelp(_swigarg0))
1164 static PyObject *_wrap_wxToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
1165 PyObject * _resultobj;
1166 bool _result;
1167 wxToolBarToolBase * _arg0;
1168 wxString * _arg1;
1169 PyObject * _argo0 = 0;
1170 PyObject * _obj1 = 0;
1171 char *_kwnames[] = { "self","help", NULL };
1172
1173 self = self;
1174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetShortHelp",_kwnames,&_argo0,&_obj1))
1175 return NULL;
1176 if (_argo0) {
1177 if (_argo0 == Py_None) { _arg0 = NULL; }
1178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetShortHelp. Expected _wxToolBarToolBase_p.");
1180 return NULL;
1181 }
1182 }
1183 {
1184 #if PYTHON_API_VERSION >= 1009
1185 char* tmpPtr; int tmpSize;
1186 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1187 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1188 return NULL;
1189 }
1190 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1191 return NULL;
1192 _arg1 = new wxString(tmpPtr, tmpSize);
1193 #else
1194 if (!PyString_Check(_obj1)) {
1195 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1196 return NULL;
1197 }
1198 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1199 #endif
1200 }
1201 {
1202 wxPy_BEGIN_ALLOW_THREADS;
1203 _result = (bool )wxToolBarToolBase_SetShortHelp(_arg0,*_arg1);
1204
1205 wxPy_END_ALLOW_THREADS;
1206 if (PyErr_Occurred()) return NULL;
1207 } _resultobj = Py_BuildValue("i",_result);
1208 {
1209 if (_obj1)
1210 delete _arg1;
1211 }
1212 return _resultobj;
1213 }
1214
1215 #define wxToolBarToolBase_SetLongHelp(_swigobj,_swigarg0) (_swigobj->SetLongHelp(_swigarg0))
1216 static PyObject *_wrap_wxToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
1217 PyObject * _resultobj;
1218 bool _result;
1219 wxToolBarToolBase * _arg0;
1220 wxString * _arg1;
1221 PyObject * _argo0 = 0;
1222 PyObject * _obj1 = 0;
1223 char *_kwnames[] = { "self","help", NULL };
1224
1225 self = self;
1226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetLongHelp",_kwnames,&_argo0,&_obj1))
1227 return NULL;
1228 if (_argo0) {
1229 if (_argo0 == Py_None) { _arg0 = NULL; }
1230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetLongHelp. Expected _wxToolBarToolBase_p.");
1232 return NULL;
1233 }
1234 }
1235 {
1236 #if PYTHON_API_VERSION >= 1009
1237 char* tmpPtr; int tmpSize;
1238 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1239 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1240 return NULL;
1241 }
1242 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1243 return NULL;
1244 _arg1 = new wxString(tmpPtr, tmpSize);
1245 #else
1246 if (!PyString_Check(_obj1)) {
1247 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1248 return NULL;
1249 }
1250 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1251 #endif
1252 }
1253 {
1254 wxPy_BEGIN_ALLOW_THREADS;
1255 _result = (bool )wxToolBarToolBase_SetLongHelp(_arg0,*_arg1);
1256
1257 wxPy_END_ALLOW_THREADS;
1258 if (PyErr_Occurred()) return NULL;
1259 } _resultobj = Py_BuildValue("i",_result);
1260 {
1261 if (_obj1)
1262 delete _arg1;
1263 }
1264 return _resultobj;
1265 }
1266
1267 #define wxToolBarToolBase_SetBitmap1(_swigobj,_swigarg0) (_swigobj->SetBitmap1(_swigarg0))
1268 static PyObject *_wrap_wxToolBarToolBase_SetBitmap1(PyObject *self, PyObject *args, PyObject *kwargs) {
1269 PyObject * _resultobj;
1270 wxToolBarToolBase * _arg0;
1271 wxBitmap * _arg1;
1272 PyObject * _argo0 = 0;
1273 PyObject * _argo1 = 0;
1274 char *_kwnames[] = { "self","bmp", NULL };
1275
1276 self = self;
1277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetBitmap1",_kwnames,&_argo0,&_argo1))
1278 return NULL;
1279 if (_argo0) {
1280 if (_argo0 == Py_None) { _arg0 = NULL; }
1281 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1282 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetBitmap1. Expected _wxToolBarToolBase_p.");
1283 return NULL;
1284 }
1285 }
1286 if (_argo1) {
1287 if (_argo1 == Py_None) { _arg1 = NULL; }
1288 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1289 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_SetBitmap1. Expected _wxBitmap_p.");
1290 return NULL;
1291 }
1292 }
1293 {
1294 wxPy_BEGIN_ALLOW_THREADS;
1295 wxToolBarToolBase_SetBitmap1(_arg0,*_arg1);
1296
1297 wxPy_END_ALLOW_THREADS;
1298 if (PyErr_Occurred()) return NULL;
1299 } Py_INCREF(Py_None);
1300 _resultobj = Py_None;
1301 return _resultobj;
1302 }
1303
1304 #define wxToolBarToolBase_SetBitmap2(_swigobj,_swigarg0) (_swigobj->SetBitmap2(_swigarg0))
1305 static PyObject *_wrap_wxToolBarToolBase_SetBitmap2(PyObject *self, PyObject *args, PyObject *kwargs) {
1306 PyObject * _resultobj;
1307 wxToolBarToolBase * _arg0;
1308 wxBitmap * _arg1;
1309 PyObject * _argo0 = 0;
1310 PyObject * _argo1 = 0;
1311 char *_kwnames[] = { "self","bmp", NULL };
1312
1313 self = self;
1314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetBitmap2",_kwnames,&_argo0,&_argo1))
1315 return NULL;
1316 if (_argo0) {
1317 if (_argo0 == Py_None) { _arg0 = NULL; }
1318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetBitmap2. Expected _wxToolBarToolBase_p.");
1320 return NULL;
1321 }
1322 }
1323 if (_argo1) {
1324 if (_argo1 == Py_None) { _arg1 = NULL; }
1325 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
1326 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_SetBitmap2. Expected _wxBitmap_p.");
1327 return NULL;
1328 }
1329 }
1330 {
1331 wxPy_BEGIN_ALLOW_THREADS;
1332 wxToolBarToolBase_SetBitmap2(_arg0,*_arg1);
1333
1334 wxPy_END_ALLOW_THREADS;
1335 if (PyErr_Occurred()) return NULL;
1336 } Py_INCREF(Py_None);
1337 _resultobj = Py_None;
1338 return _resultobj;
1339 }
1340
1341 #define wxToolBarToolBase_Detach(_swigobj) (_swigobj->Detach())
1342 static PyObject *_wrap_wxToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
1343 PyObject * _resultobj;
1344 wxToolBarToolBase * _arg0;
1345 PyObject * _argo0 = 0;
1346 char *_kwnames[] = { "self", NULL };
1347
1348 self = self;
1349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_Detach",_kwnames,&_argo0))
1350 return NULL;
1351 if (_argo0) {
1352 if (_argo0 == Py_None) { _arg0 = NULL; }
1353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Detach. Expected _wxToolBarToolBase_p.");
1355 return NULL;
1356 }
1357 }
1358 {
1359 wxPy_BEGIN_ALLOW_THREADS;
1360 wxToolBarToolBase_Detach(_arg0);
1361
1362 wxPy_END_ALLOW_THREADS;
1363 if (PyErr_Occurred()) return NULL;
1364 } Py_INCREF(Py_None);
1365 _resultobj = Py_None;
1366 return _resultobj;
1367 }
1368
1369 #define wxToolBarToolBase_Attach(_swigobj,_swigarg0) (_swigobj->Attach(_swigarg0))
1370 static PyObject *_wrap_wxToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
1371 PyObject * _resultobj;
1372 wxToolBarToolBase * _arg0;
1373 wxToolBarBase * _arg1;
1374 PyObject * _argo0 = 0;
1375 PyObject * _argo1 = 0;
1376 char *_kwnames[] = { "self","tbar", NULL };
1377
1378 self = self;
1379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_Attach",_kwnames,&_argo0,&_argo1))
1380 return NULL;
1381 if (_argo0) {
1382 if (_argo0 == Py_None) { _arg0 = NULL; }
1383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_Attach. Expected _wxToolBarToolBase_p.");
1385 return NULL;
1386 }
1387 }
1388 if (_argo1) {
1389 if (_argo1 == Py_None) { _arg1 = NULL; }
1390 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBarBase_p")) {
1391 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarToolBase_Attach. Expected _wxToolBarBase_p.");
1392 return NULL;
1393 }
1394 }
1395 {
1396 wxPy_BEGIN_ALLOW_THREADS;
1397 wxToolBarToolBase_Attach(_arg0,_arg1);
1398
1399 wxPy_END_ALLOW_THREADS;
1400 if (PyErr_Occurred()) return NULL;
1401 } Py_INCREF(Py_None);
1402 _resultobj = Py_None;
1403 return _resultobj;
1404 }
1405
1406 static PyObject * wxToolBarToolBase_GetClientData(wxToolBarToolBase *self) {
1407 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
1408 if (udata) {
1409 Py_INCREF(udata->m_obj);
1410 return udata->m_obj;
1411 } else {
1412 Py_INCREF(Py_None);
1413 return Py_None;
1414 }
1415 }
1416 static PyObject *_wrap_wxToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
1417 PyObject * _resultobj;
1418 PyObject * _result;
1419 wxToolBarToolBase * _arg0;
1420 PyObject * _argo0 = 0;
1421 char *_kwnames[] = { "self", NULL };
1422
1423 self = self;
1424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetClientData",_kwnames,&_argo0))
1425 return NULL;
1426 if (_argo0) {
1427 if (_argo0 == Py_None) { _arg0 = NULL; }
1428 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1429 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_GetClientData. Expected _wxToolBarToolBase_p.");
1430 return NULL;
1431 }
1432 }
1433 {
1434 wxPy_BEGIN_ALLOW_THREADS;
1435 _result = (PyObject *)wxToolBarToolBase_GetClientData(_arg0);
1436
1437 wxPy_END_ALLOW_THREADS;
1438 if (PyErr_Occurred()) return NULL;
1439 }{
1440 _resultobj = _result;
1441 }
1442 return _resultobj;
1443 }
1444
1445 static void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject * clientData) {
1446 self->SetClientData(new wxPyUserData(clientData));
1447 }
1448 static PyObject *_wrap_wxToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
1449 PyObject * _resultobj;
1450 wxToolBarToolBase * _arg0;
1451 PyObject * _arg1;
1452 PyObject * _argo0 = 0;
1453 PyObject * _obj1 = 0;
1454 char *_kwnames[] = { "self","clientData", NULL };
1455
1456 self = self;
1457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarToolBase_SetClientData",_kwnames,&_argo0,&_obj1))
1458 return NULL;
1459 if (_argo0) {
1460 if (_argo0 == Py_None) { _arg0 = NULL; }
1461 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarToolBase_p")) {
1462 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarToolBase_SetClientData. Expected _wxToolBarToolBase_p.");
1463 return NULL;
1464 }
1465 }
1466 {
1467 _arg1 = _obj1;
1468 }
1469 {
1470 wxPy_BEGIN_ALLOW_THREADS;
1471 wxToolBarToolBase_SetClientData(_arg0,_arg1);
1472
1473 wxPy_END_ALLOW_THREADS;
1474 if (PyErr_Occurred()) return NULL;
1475 } Py_INCREF(Py_None);
1476 _resultobj = Py_None;
1477 return _resultobj;
1478 }
1479
1480 static void *SwigwxToolBarBaseTowxControl(void *ptr) {
1481 wxToolBarBase *src;
1482 wxControl *dest;
1483 src = (wxToolBarBase *) ptr;
1484 dest = (wxControl *) src;
1485 return (void *) dest;
1486 }
1487
1488 static void *SwigwxToolBarBaseTowxWindow(void *ptr) {
1489 wxToolBarBase *src;
1490 wxWindow *dest;
1491 src = (wxToolBarBase *) ptr;
1492 dest = (wxWindow *) src;
1493 return (void *) dest;
1494 }
1495
1496 static void *SwigwxToolBarBaseTowxEvtHandler(void *ptr) {
1497 wxToolBarBase *src;
1498 wxEvtHandler *dest;
1499 src = (wxToolBarBase *) ptr;
1500 dest = (wxEvtHandler *) src;
1501 return (void *) dest;
1502 }
1503
1504 static void *SwigwxToolBarBaseTowxObject(void *ptr) {
1505 wxToolBarBase *src;
1506 wxObject *dest;
1507 src = (wxToolBarBase *) ptr;
1508 dest = (wxObject *) src;
1509 return (void *) dest;
1510 }
1511
1512 static wxToolBarToolBase * wxToolBarBase_AddTool(wxToolBarBase *self,int id,const wxBitmap & bitmap,const wxBitmap & pushedBitmap,int isToggle,PyObject * clientData,const wxString & shortHelpString,const wxString & longHelpString) {
1513 wxPyUserData* udata = NULL;
1514 if (clientData)
1515 udata = new wxPyUserData(clientData);
1516 return self->AddTool(id, bitmap, pushedBitmap, (bool)isToggle,
1517 udata, shortHelpString, longHelpString);
1518 }
1519 static PyObject *_wrap_wxToolBarBase_AddTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1520 PyObject * _resultobj;
1521 wxToolBarToolBase * _result;
1522 wxToolBarBase * _arg0;
1523 int _arg1;
1524 wxBitmap * _arg2;
1525 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
1526 int _arg4 = (int ) FALSE;
1527 PyObject * _arg5 = (PyObject *) NULL;
1528 wxString * _arg6 = (wxString *) &wxPyEmptyStr;
1529 wxString * _arg7 = (wxString *) &wxPyEmptyStr;
1530 PyObject * _argo0 = 0;
1531 PyObject * _argo2 = 0;
1532 PyObject * _argo3 = 0;
1533 PyObject * _obj5 = 0;
1534 PyObject * _obj6 = 0;
1535 PyObject * _obj7 = 0;
1536 char *_kwnames[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL };
1537
1538 self = self;
1539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_obj5,&_obj6,&_obj7))
1540 return NULL;
1541 if (_argo0) {
1542 if (_argo0 == Py_None) { _arg0 = NULL; }
1543 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1544 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddTool. Expected _wxToolBarBase_p.");
1545 return NULL;
1546 }
1547 }
1548 if (_argo2) {
1549 if (_argo2 == Py_None) { _arg2 = NULL; }
1550 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1551 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1552 return NULL;
1553 }
1554 }
1555 if (_argo3) {
1556 if (_argo3 == Py_None) { _arg3 = NULL; }
1557 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1558 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_AddTool. Expected _wxBitmap_p.");
1559 return NULL;
1560 }
1561 }
1562 if (_obj5)
1563 {
1564 _arg5 = _obj5;
1565 }
1566 if (_obj6)
1567 {
1568 #if PYTHON_API_VERSION >= 1009
1569 char* tmpPtr; int tmpSize;
1570 if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) {
1571 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1572 return NULL;
1573 }
1574 if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1)
1575 return NULL;
1576 _arg6 = new wxString(tmpPtr, tmpSize);
1577 #else
1578 if (!PyString_Check(_obj6)) {
1579 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1580 return NULL;
1581 }
1582 _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6));
1583 #endif
1584 }
1585 if (_obj7)
1586 {
1587 #if PYTHON_API_VERSION >= 1009
1588 char* tmpPtr; int tmpSize;
1589 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
1590 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1591 return NULL;
1592 }
1593 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
1594 return NULL;
1595 _arg7 = new wxString(tmpPtr, tmpSize);
1596 #else
1597 if (!PyString_Check(_obj7)) {
1598 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1599 return NULL;
1600 }
1601 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
1602 #endif
1603 }
1604 {
1605 wxPy_BEGIN_ALLOW_THREADS;
1606 _result = (wxToolBarToolBase *)wxToolBarBase_AddTool(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,*_arg6,*_arg7);
1607
1608 wxPy_END_ALLOW_THREADS;
1609 if (PyErr_Occurred()) return NULL;
1610 }{ _resultobj = wxPyMake_wxObject(_result); }
1611 {
1612 if (_obj6)
1613 delete _arg6;
1614 }
1615 {
1616 if (_obj7)
1617 delete _arg7;
1618 }
1619 return _resultobj;
1620 }
1621
1622 static wxToolBarToolBase * wxToolBarBase_AddSimpleTool(wxToolBarBase *self,int id,const wxBitmap & bitmap,const wxString & shortHelpString,const wxString & longHelpString,int isToggle) {
1623 return self->AddTool(id, bitmap, wxNullBitmap, isToggle, NULL,
1624 shortHelpString, longHelpString);
1625 }
1626 static PyObject *_wrap_wxToolBarBase_AddSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1627 PyObject * _resultobj;
1628 wxToolBarToolBase * _result;
1629 wxToolBarBase * _arg0;
1630 int _arg1;
1631 wxBitmap * _arg2;
1632 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
1633 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
1634 int _arg5 = (int ) FALSE;
1635 PyObject * _argo0 = 0;
1636 PyObject * _argo2 = 0;
1637 PyObject * _obj3 = 0;
1638 PyObject * _obj4 = 0;
1639 char *_kwnames[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL };
1640
1641 self = self;
1642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5))
1643 return NULL;
1644 if (_argo0) {
1645 if (_argo0 == Py_None) { _arg0 = NULL; }
1646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddSimpleTool. Expected _wxToolBarBase_p.");
1648 return NULL;
1649 }
1650 }
1651 if (_argo2) {
1652 if (_argo2 == Py_None) { _arg2 = NULL; }
1653 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
1654 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_AddSimpleTool. Expected _wxBitmap_p.");
1655 return NULL;
1656 }
1657 }
1658 if (_obj3)
1659 {
1660 #if PYTHON_API_VERSION >= 1009
1661 char* tmpPtr; int tmpSize;
1662 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
1663 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1664 return NULL;
1665 }
1666 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
1667 return NULL;
1668 _arg3 = new wxString(tmpPtr, tmpSize);
1669 #else
1670 if (!PyString_Check(_obj3)) {
1671 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1672 return NULL;
1673 }
1674 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
1675 #endif
1676 }
1677 if (_obj4)
1678 {
1679 #if PYTHON_API_VERSION >= 1009
1680 char* tmpPtr; int tmpSize;
1681 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
1682 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1683 return NULL;
1684 }
1685 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
1686 return NULL;
1687 _arg4 = new wxString(tmpPtr, tmpSize);
1688 #else
1689 if (!PyString_Check(_obj4)) {
1690 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1691 return NULL;
1692 }
1693 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
1694 #endif
1695 }
1696 {
1697 wxPy_BEGIN_ALLOW_THREADS;
1698 _result = (wxToolBarToolBase *)wxToolBarBase_AddSimpleTool(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5);
1699
1700 wxPy_END_ALLOW_THREADS;
1701 if (PyErr_Occurred()) return NULL;
1702 }{ _resultobj = wxPyMake_wxObject(_result); }
1703 {
1704 if (_obj3)
1705 delete _arg3;
1706 }
1707 {
1708 if (_obj4)
1709 delete _arg4;
1710 }
1711 return _resultobj;
1712 }
1713
1714 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) {
1715 wxPyUserData* udata = NULL;
1716 if (clientData)
1717 udata = new wxPyUserData(clientData);
1718 return self->InsertTool(pos, id, bitmap, pushedBitmap, (bool)isToggle,
1719 udata, shortHelpString, longHelpString);
1720 }
1721 static PyObject *_wrap_wxToolBarBase_InsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1722 PyObject * _resultobj;
1723 wxToolBarToolBase * _result;
1724 wxToolBarBase * _arg0;
1725 size_t _arg1;
1726 int _arg2;
1727 wxBitmap * _arg3;
1728 wxBitmap * _arg4 = (wxBitmap *) &wxNullBitmap;
1729 int _arg5 = (int ) FALSE;
1730 PyObject * _arg6 = (PyObject *) NULL;
1731 wxString * _arg7 = (wxString *) &wxPyEmptyStr;
1732 wxString * _arg8 = (wxString *) &wxPyEmptyStr;
1733 PyObject * _argo0 = 0;
1734 PyObject * _argo3 = 0;
1735 PyObject * _argo4 = 0;
1736 PyObject * _obj6 = 0;
1737 PyObject * _obj7 = 0;
1738 PyObject * _obj8 = 0;
1739 char *_kwnames[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL };
1740
1741 self = self;
1742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_argo4,&_arg5,&_obj6,&_obj7,&_obj8))
1743 return NULL;
1744 if (_argo0) {
1745 if (_argo0 == Py_None) { _arg0 = NULL; }
1746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
1748 return NULL;
1749 }
1750 }
1751 if (_argo3) {
1752 if (_argo3 == Py_None) { _arg3 = NULL; }
1753 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1754 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1755 return NULL;
1756 }
1757 }
1758 if (_argo4) {
1759 if (_argo4 == Py_None) { _arg4 = NULL; }
1760 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxBitmap_p")) {
1761 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
1762 return NULL;
1763 }
1764 }
1765 if (_obj6)
1766 {
1767 _arg6 = _obj6;
1768 }
1769 if (_obj7)
1770 {
1771 #if PYTHON_API_VERSION >= 1009
1772 char* tmpPtr; int tmpSize;
1773 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
1774 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1775 return NULL;
1776 }
1777 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
1778 return NULL;
1779 _arg7 = new wxString(tmpPtr, tmpSize);
1780 #else
1781 if (!PyString_Check(_obj7)) {
1782 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1783 return NULL;
1784 }
1785 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
1786 #endif
1787 }
1788 if (_obj8)
1789 {
1790 #if PYTHON_API_VERSION >= 1009
1791 char* tmpPtr; int tmpSize;
1792 if (!PyString_Check(_obj8) && !PyUnicode_Check(_obj8)) {
1793 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1794 return NULL;
1795 }
1796 if (PyString_AsStringAndSize(_obj8, &tmpPtr, &tmpSize) == -1)
1797 return NULL;
1798 _arg8 = new wxString(tmpPtr, tmpSize);
1799 #else
1800 if (!PyString_Check(_obj8)) {
1801 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1802 return NULL;
1803 }
1804 _arg8 = new wxString(PyString_AS_STRING(_obj8), PyString_GET_SIZE(_obj8));
1805 #endif
1806 }
1807 {
1808 wxPy_BEGIN_ALLOW_THREADS;
1809 _result = (wxToolBarToolBase *)wxToolBarBase_InsertTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,*_arg7,*_arg8);
1810
1811 wxPy_END_ALLOW_THREADS;
1812 if (PyErr_Occurred()) return NULL;
1813 }{ _resultobj = wxPyMake_wxObject(_result); }
1814 {
1815 if (_obj7)
1816 delete _arg7;
1817 }
1818 {
1819 if (_obj8)
1820 delete _arg8;
1821 }
1822 return _resultobj;
1823 }
1824
1825 static wxToolBarToolBase * wxToolBarBase_InsertSimpleTool(wxToolBarBase *self,size_t pos,int id,const wxBitmap & bitmap,const wxString & shortHelpString,const wxString & longHelpString,int isToggle) {
1826 return self->InsertTool(pos, id, bitmap, wxNullBitmap, isToggle, NULL,
1827 shortHelpString, longHelpString);
1828 }
1829 static PyObject *_wrap_wxToolBarBase_InsertSimpleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
1830 PyObject * _resultobj;
1831 wxToolBarToolBase * _result;
1832 wxToolBarBase * _arg0;
1833 size_t _arg1;
1834 int _arg2;
1835 wxBitmap * _arg3;
1836 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
1837 wxString * _arg5 = (wxString *) &wxPyEmptyStr;
1838 int _arg6 = (int ) FALSE;
1839 PyObject * _argo0 = 0;
1840 PyObject * _argo3 = 0;
1841 PyObject * _obj4 = 0;
1842 PyObject * _obj5 = 0;
1843 char *_kwnames[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL };
1844
1845 self = self;
1846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6))
1847 return NULL;
1848 if (_argo0) {
1849 if (_argo0 == Py_None) { _arg0 = NULL; }
1850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertSimpleTool. Expected _wxToolBarBase_p.");
1852 return NULL;
1853 }
1854 }
1855 if (_argo3) {
1856 if (_argo3 == Py_None) { _arg3 = NULL; }
1857 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
1858 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxToolBarBase_InsertSimpleTool. Expected _wxBitmap_p.");
1859 return NULL;
1860 }
1861 }
1862 if (_obj4)
1863 {
1864 #if PYTHON_API_VERSION >= 1009
1865 char* tmpPtr; int tmpSize;
1866 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
1867 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1868 return NULL;
1869 }
1870 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
1871 return NULL;
1872 _arg4 = new wxString(tmpPtr, tmpSize);
1873 #else
1874 if (!PyString_Check(_obj4)) {
1875 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1876 return NULL;
1877 }
1878 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
1879 #endif
1880 }
1881 if (_obj5)
1882 {
1883 #if PYTHON_API_VERSION >= 1009
1884 char* tmpPtr; int tmpSize;
1885 if (!PyString_Check(_obj5) && !PyUnicode_Check(_obj5)) {
1886 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1887 return NULL;
1888 }
1889 if (PyString_AsStringAndSize(_obj5, &tmpPtr, &tmpSize) == -1)
1890 return NULL;
1891 _arg5 = new wxString(tmpPtr, tmpSize);
1892 #else
1893 if (!PyString_Check(_obj5)) {
1894 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1895 return NULL;
1896 }
1897 _arg5 = new wxString(PyString_AS_STRING(_obj5), PyString_GET_SIZE(_obj5));
1898 #endif
1899 }
1900 {
1901 wxPy_BEGIN_ALLOW_THREADS;
1902 _result = (wxToolBarToolBase *)wxToolBarBase_InsertSimpleTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6);
1903
1904 wxPy_END_ALLOW_THREADS;
1905 if (PyErr_Occurred()) return NULL;
1906 }{ _resultobj = wxPyMake_wxObject(_result); }
1907 {
1908 if (_obj4)
1909 delete _arg4;
1910 }
1911 {
1912 if (_obj5)
1913 delete _arg5;
1914 }
1915 return _resultobj;
1916 }
1917
1918 #define wxToolBarBase_AddControl(_swigobj,_swigarg0) (_swigobj->AddControl(_swigarg0))
1919 static PyObject *_wrap_wxToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) {
1920 PyObject * _resultobj;
1921 wxToolBarToolBase * _result;
1922 wxToolBarBase * _arg0;
1923 wxControl * _arg1;
1924 PyObject * _argo0 = 0;
1925 PyObject * _argo1 = 0;
1926 char *_kwnames[] = { "self","control", NULL };
1927
1928 self = self;
1929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_AddControl",_kwnames,&_argo0,&_argo1))
1930 return NULL;
1931 if (_argo0) {
1932 if (_argo0 == Py_None) { _arg0 = NULL; }
1933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddControl. Expected _wxToolBarBase_p.");
1935 return NULL;
1936 }
1937 }
1938 if (_argo1) {
1939 if (_argo1 == Py_None) { _arg1 = NULL; }
1940 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxControl_p")) {
1941 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarBase_AddControl. Expected _wxControl_p.");
1942 return NULL;
1943 }
1944 }
1945 {
1946 wxPy_BEGIN_ALLOW_THREADS;
1947 _result = (wxToolBarToolBase *)wxToolBarBase_AddControl(_arg0,_arg1);
1948
1949 wxPy_END_ALLOW_THREADS;
1950 if (PyErr_Occurred()) return NULL;
1951 }{ _resultobj = wxPyMake_wxObject(_result); }
1952 return _resultobj;
1953 }
1954
1955 #define wxToolBarBase_InsertControl(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertControl(_swigarg0,_swigarg1))
1956 static PyObject *_wrap_wxToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) {
1957 PyObject * _resultobj;
1958 wxToolBarToolBase * _result;
1959 wxToolBarBase * _arg0;
1960 size_t _arg1;
1961 wxControl * _arg2;
1962 PyObject * _argo0 = 0;
1963 PyObject * _argo2 = 0;
1964 char *_kwnames[] = { "self","pos","control", NULL };
1965
1966 self = self;
1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_InsertControl",_kwnames,&_argo0,&_arg1,&_argo2))
1968 return NULL;
1969 if (_argo0) {
1970 if (_argo0 == Py_None) { _arg0 = NULL; }
1971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
1972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertControl. Expected _wxToolBarBase_p.");
1973 return NULL;
1974 }
1975 }
1976 if (_argo2) {
1977 if (_argo2 == Py_None) { _arg2 = NULL; }
1978 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxControl_p")) {
1979 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxToolBarBase_InsertControl. Expected _wxControl_p.");
1980 return NULL;
1981 }
1982 }
1983 {
1984 wxPy_BEGIN_ALLOW_THREADS;
1985 _result = (wxToolBarToolBase *)wxToolBarBase_InsertControl(_arg0,_arg1,_arg2);
1986
1987 wxPy_END_ALLOW_THREADS;
1988 if (PyErr_Occurred()) return NULL;
1989 }{ _resultobj = wxPyMake_wxObject(_result); }
1990 return _resultobj;
1991 }
1992
1993 #define wxToolBarBase_AddSeparator(_swigobj) (_swigobj->AddSeparator())
1994 static PyObject *_wrap_wxToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject * _resultobj;
1996 wxToolBarToolBase * _result;
1997 wxToolBarBase * _arg0;
1998 PyObject * _argo0 = 0;
1999 char *_kwnames[] = { "self", NULL };
2000
2001 self = self;
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_AddSeparator",_kwnames,&_argo0))
2003 return NULL;
2004 if (_argo0) {
2005 if (_argo0 == Py_None) { _arg0 = NULL; }
2006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_AddSeparator. Expected _wxToolBarBase_p.");
2008 return NULL;
2009 }
2010 }
2011 {
2012 wxPy_BEGIN_ALLOW_THREADS;
2013 _result = (wxToolBarToolBase *)wxToolBarBase_AddSeparator(_arg0);
2014
2015 wxPy_END_ALLOW_THREADS;
2016 if (PyErr_Occurred()) return NULL;
2017 }{ _resultobj = wxPyMake_wxObject(_result); }
2018 return _resultobj;
2019 }
2020
2021 #define wxToolBarBase_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
2022 static PyObject *_wrap_wxToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
2023 PyObject * _resultobj;
2024 wxToolBarToolBase * _result;
2025 wxToolBarBase * _arg0;
2026 size_t _arg1;
2027 PyObject * _argo0 = 0;
2028 char *_kwnames[] = { "self","pos", NULL };
2029
2030 self = self;
2031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_InsertSeparator",_kwnames,&_argo0,&_arg1))
2032 return NULL;
2033 if (_argo0) {
2034 if (_argo0 == Py_None) { _arg0 = NULL; }
2035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertSeparator. Expected _wxToolBarBase_p.");
2037 return NULL;
2038 }
2039 }
2040 {
2041 wxPy_BEGIN_ALLOW_THREADS;
2042 _result = (wxToolBarToolBase *)wxToolBarBase_InsertSeparator(_arg0,_arg1);
2043
2044 wxPy_END_ALLOW_THREADS;
2045 if (PyErr_Occurred()) return NULL;
2046 }{ _resultobj = wxPyMake_wxObject(_result); }
2047 return _resultobj;
2048 }
2049
2050 #define wxToolBarBase_RemoveTool(_swigobj,_swigarg0) (_swigobj->RemoveTool(_swigarg0))
2051 static PyObject *_wrap_wxToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2052 PyObject * _resultobj;
2053 wxToolBarToolBase * _result;
2054 wxToolBarBase * _arg0;
2055 int _arg1;
2056 PyObject * _argo0 = 0;
2057 char *_kwnames[] = { "self","id", NULL };
2058
2059 self = self;
2060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_RemoveTool",_kwnames,&_argo0,&_arg1))
2061 return NULL;
2062 if (_argo0) {
2063 if (_argo0 == Py_None) { _arg0 = NULL; }
2064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_RemoveTool. Expected _wxToolBarBase_p.");
2066 return NULL;
2067 }
2068 }
2069 {
2070 wxPy_BEGIN_ALLOW_THREADS;
2071 _result = (wxToolBarToolBase *)wxToolBarBase_RemoveTool(_arg0,_arg1);
2072
2073 wxPy_END_ALLOW_THREADS;
2074 if (PyErr_Occurred()) return NULL;
2075 }{ _resultobj = wxPyMake_wxObject(_result); }
2076 return _resultobj;
2077 }
2078
2079 #define wxToolBarBase_DeleteToolByPos(_swigobj,_swigarg0) (_swigobj->DeleteToolByPos(_swigarg0))
2080 static PyObject *_wrap_wxToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
2081 PyObject * _resultobj;
2082 bool _result;
2083 wxToolBarBase * _arg0;
2084 size_t _arg1;
2085 PyObject * _argo0 = 0;
2086 char *_kwnames[] = { "self","pos", NULL };
2087
2088 self = self;
2089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_DeleteToolByPos",_kwnames,&_argo0,&_arg1))
2090 return NULL;
2091 if (_argo0) {
2092 if (_argo0 == Py_None) { _arg0 = NULL; }
2093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_DeleteToolByPos. Expected _wxToolBarBase_p.");
2095 return NULL;
2096 }
2097 }
2098 {
2099 wxPy_BEGIN_ALLOW_THREADS;
2100 _result = (bool )wxToolBarBase_DeleteToolByPos(_arg0,_arg1);
2101
2102 wxPy_END_ALLOW_THREADS;
2103 if (PyErr_Occurred()) return NULL;
2104 } _resultobj = Py_BuildValue("i",_result);
2105 return _resultobj;
2106 }
2107
2108 #define wxToolBarBase_DeleteTool(_swigobj,_swigarg0) (_swigobj->DeleteTool(_swigarg0))
2109 static PyObject *_wrap_wxToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2110 PyObject * _resultobj;
2111 bool _result;
2112 wxToolBarBase * _arg0;
2113 int _arg1;
2114 PyObject * _argo0 = 0;
2115 char *_kwnames[] = { "self","id", NULL };
2116
2117 self = self;
2118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_DeleteTool",_kwnames,&_argo0,&_arg1))
2119 return NULL;
2120 if (_argo0) {
2121 if (_argo0 == Py_None) { _arg0 = NULL; }
2122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_DeleteTool. Expected _wxToolBarBase_p.");
2124 return NULL;
2125 }
2126 }
2127 {
2128 wxPy_BEGIN_ALLOW_THREADS;
2129 _result = (bool )wxToolBarBase_DeleteTool(_arg0,_arg1);
2130
2131 wxPy_END_ALLOW_THREADS;
2132 if (PyErr_Occurred()) return NULL;
2133 } _resultobj = Py_BuildValue("i",_result);
2134 return _resultobj;
2135 }
2136
2137 #define wxToolBarBase_ClearTools(_swigobj) (_swigobj->ClearTools())
2138 static PyObject *_wrap_wxToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) {
2139 PyObject * _resultobj;
2140 wxToolBarBase * _arg0;
2141 PyObject * _argo0 = 0;
2142 char *_kwnames[] = { "self", NULL };
2143
2144 self = self;
2145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_ClearTools",_kwnames,&_argo0))
2146 return NULL;
2147 if (_argo0) {
2148 if (_argo0 == Py_None) { _arg0 = NULL; }
2149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_ClearTools. Expected _wxToolBarBase_p.");
2151 return NULL;
2152 }
2153 }
2154 {
2155 wxPy_BEGIN_ALLOW_THREADS;
2156 wxToolBarBase_ClearTools(_arg0);
2157
2158 wxPy_END_ALLOW_THREADS;
2159 if (PyErr_Occurred()) return NULL;
2160 } Py_INCREF(Py_None);
2161 _resultobj = Py_None;
2162 return _resultobj;
2163 }
2164
2165 #define wxToolBarBase_Realize(_swigobj) (_swigobj->Realize())
2166 static PyObject *_wrap_wxToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) {
2167 PyObject * _resultobj;
2168 bool _result;
2169 wxToolBarBase * _arg0;
2170 PyObject * _argo0 = 0;
2171 char *_kwnames[] = { "self", NULL };
2172
2173 self = self;
2174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_Realize",_kwnames,&_argo0))
2175 return NULL;
2176 if (_argo0) {
2177 if (_argo0 == Py_None) { _arg0 = NULL; }
2178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_Realize. Expected _wxToolBarBase_p.");
2180 return NULL;
2181 }
2182 }
2183 {
2184 wxPy_BEGIN_ALLOW_THREADS;
2185 _result = (bool )wxToolBarBase_Realize(_arg0);
2186
2187 wxPy_END_ALLOW_THREADS;
2188 if (PyErr_Occurred()) return NULL;
2189 } _resultobj = Py_BuildValue("i",_result);
2190 return _resultobj;
2191 }
2192
2193 #define wxToolBarBase_EnableTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTool(_swigarg0,_swigarg1))
2194 static PyObject *_wrap_wxToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2195 PyObject * _resultobj;
2196 wxToolBarBase * _arg0;
2197 int _arg1;
2198 bool _arg2;
2199 PyObject * _argo0 = 0;
2200 int tempbool2;
2201 char *_kwnames[] = { "self","id","enable", NULL };
2202
2203 self = self;
2204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_EnableTool",_kwnames,&_argo0,&_arg1,&tempbool2))
2205 return NULL;
2206 if (_argo0) {
2207 if (_argo0 == Py_None) { _arg0 = NULL; }
2208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_EnableTool. Expected _wxToolBarBase_p.");
2210 return NULL;
2211 }
2212 }
2213 _arg2 = (bool ) tempbool2;
2214 {
2215 wxPy_BEGIN_ALLOW_THREADS;
2216 wxToolBarBase_EnableTool(_arg0,_arg1,_arg2);
2217
2218 wxPy_END_ALLOW_THREADS;
2219 if (PyErr_Occurred()) return NULL;
2220 } Py_INCREF(Py_None);
2221 _resultobj = Py_None;
2222 return _resultobj;
2223 }
2224
2225 #define wxToolBarBase_ToggleTool(_swigobj,_swigarg0,_swigarg1) (_swigobj->ToggleTool(_swigarg0,_swigarg1))
2226 static PyObject *_wrap_wxToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) {
2227 PyObject * _resultobj;
2228 wxToolBarBase * _arg0;
2229 int _arg1;
2230 bool _arg2;
2231 PyObject * _argo0 = 0;
2232 int tempbool2;
2233 char *_kwnames[] = { "self","id","toggle", NULL };
2234
2235 self = self;
2236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_ToggleTool",_kwnames,&_argo0,&_arg1,&tempbool2))
2237 return NULL;
2238 if (_argo0) {
2239 if (_argo0 == Py_None) { _arg0 = NULL; }
2240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_ToggleTool. Expected _wxToolBarBase_p.");
2242 return NULL;
2243 }
2244 }
2245 _arg2 = (bool ) tempbool2;
2246 {
2247 wxPy_BEGIN_ALLOW_THREADS;
2248 wxToolBarBase_ToggleTool(_arg0,_arg1,_arg2);
2249
2250 wxPy_END_ALLOW_THREADS;
2251 if (PyErr_Occurred()) return NULL;
2252 } Py_INCREF(Py_None);
2253 _resultobj = Py_None;
2254 return _resultobj;
2255 }
2256
2257 #define wxToolBarBase_SetToggle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToggle(_swigarg0,_swigarg1))
2258 static PyObject *_wrap_wxToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) {
2259 PyObject * _resultobj;
2260 wxToolBarBase * _arg0;
2261 int _arg1;
2262 bool _arg2;
2263 PyObject * _argo0 = 0;
2264 int tempbool2;
2265 char *_kwnames[] = { "self","id","toggle", NULL };
2266
2267 self = self;
2268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetToggle",_kwnames,&_argo0,&_arg1,&tempbool2))
2269 return NULL;
2270 if (_argo0) {
2271 if (_argo0 == Py_None) { _arg0 = NULL; }
2272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToggle. Expected _wxToolBarBase_p.");
2274 return NULL;
2275 }
2276 }
2277 _arg2 = (bool ) tempbool2;
2278 {
2279 wxPy_BEGIN_ALLOW_THREADS;
2280 wxToolBarBase_SetToggle(_arg0,_arg1,_arg2);
2281
2282 wxPy_END_ALLOW_THREADS;
2283 if (PyErr_Occurred()) return NULL;
2284 } Py_INCREF(Py_None);
2285 _resultobj = Py_None;
2286 return _resultobj;
2287 }
2288
2289 static PyObject * wxToolBarBase_GetToolClientData(wxToolBarBase *self,int index) {
2290 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(index);
2291 if (udata) {
2292 Py_INCREF(udata->m_obj);
2293 return udata->m_obj;
2294 } else {
2295 Py_INCREF(Py_None);
2296 return Py_None;
2297 }
2298 }
2299 static PyObject *_wrap_wxToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
2300 PyObject * _resultobj;
2301 PyObject * _result;
2302 wxToolBarBase * _arg0;
2303 int _arg1;
2304 PyObject * _argo0 = 0;
2305 char *_kwnames[] = { "self","index", NULL };
2306
2307 self = self;
2308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolClientData",_kwnames,&_argo0,&_arg1))
2309 return NULL;
2310 if (_argo0) {
2311 if (_argo0 == Py_None) { _arg0 = NULL; }
2312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolClientData. Expected _wxToolBarBase_p.");
2314 return NULL;
2315 }
2316 }
2317 {
2318 wxPy_BEGIN_ALLOW_THREADS;
2319 _result = (PyObject *)wxToolBarBase_GetToolClientData(_arg0,_arg1);
2320
2321 wxPy_END_ALLOW_THREADS;
2322 if (PyErr_Occurred()) return NULL;
2323 }{
2324 _resultobj = _result;
2325 }
2326 return _resultobj;
2327 }
2328
2329 static void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int index,PyObject * clientData) {
2330 self->SetToolClientData(index, new wxPyUserData(clientData));
2331 }
2332 static PyObject *_wrap_wxToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
2333 PyObject * _resultobj;
2334 wxToolBarBase * _arg0;
2335 int _arg1;
2336 PyObject * _arg2;
2337 PyObject * _argo0 = 0;
2338 PyObject * _obj2 = 0;
2339 char *_kwnames[] = { "self","index","clientData", NULL };
2340
2341 self = self;
2342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolClientData",_kwnames,&_argo0,&_arg1,&_obj2))
2343 return NULL;
2344 if (_argo0) {
2345 if (_argo0 == Py_None) { _arg0 = NULL; }
2346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolClientData. Expected _wxToolBarBase_p.");
2348 return NULL;
2349 }
2350 }
2351 {
2352 _arg2 = _obj2;
2353 }
2354 {
2355 wxPy_BEGIN_ALLOW_THREADS;
2356 wxToolBarBase_SetToolClientData(_arg0,_arg1,_arg2);
2357
2358 wxPy_END_ALLOW_THREADS;
2359 if (PyErr_Occurred()) return NULL;
2360 } Py_INCREF(Py_None);
2361 _resultobj = Py_None;
2362 return _resultobj;
2363 }
2364
2365 #define wxToolBarBase_GetToolState(_swigobj,_swigarg0) (_swigobj->GetToolState(_swigarg0))
2366 static PyObject *_wrap_wxToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) {
2367 PyObject * _resultobj;
2368 bool _result;
2369 wxToolBarBase * _arg0;
2370 int _arg1;
2371 PyObject * _argo0 = 0;
2372 char *_kwnames[] = { "self","id", NULL };
2373
2374 self = self;
2375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolState",_kwnames,&_argo0,&_arg1))
2376 return NULL;
2377 if (_argo0) {
2378 if (_argo0 == Py_None) { _arg0 = NULL; }
2379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolState. Expected _wxToolBarBase_p.");
2381 return NULL;
2382 }
2383 }
2384 {
2385 wxPy_BEGIN_ALLOW_THREADS;
2386 _result = (bool )wxToolBarBase_GetToolState(_arg0,_arg1);
2387
2388 wxPy_END_ALLOW_THREADS;
2389 if (PyErr_Occurred()) return NULL;
2390 } _resultobj = Py_BuildValue("i",_result);
2391 return _resultobj;
2392 }
2393
2394 #define wxToolBarBase_GetToolEnabled(_swigobj,_swigarg0) (_swigobj->GetToolEnabled(_swigarg0))
2395 static PyObject *_wrap_wxToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
2396 PyObject * _resultobj;
2397 bool _result;
2398 wxToolBarBase * _arg0;
2399 int _arg1;
2400 PyObject * _argo0 = 0;
2401 char *_kwnames[] = { "self","id", NULL };
2402
2403 self = self;
2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolEnabled",_kwnames,&_argo0,&_arg1))
2405 return NULL;
2406 if (_argo0) {
2407 if (_argo0 == Py_None) { _arg0 = NULL; }
2408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolEnabled. Expected _wxToolBarBase_p.");
2410 return NULL;
2411 }
2412 }
2413 {
2414 wxPy_BEGIN_ALLOW_THREADS;
2415 _result = (bool )wxToolBarBase_GetToolEnabled(_arg0,_arg1);
2416
2417 wxPy_END_ALLOW_THREADS;
2418 if (PyErr_Occurred()) return NULL;
2419 } _resultobj = Py_BuildValue("i",_result);
2420 return _resultobj;
2421 }
2422
2423 #define wxToolBarBase_SetToolShortHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolShortHelp(_swigarg0,_swigarg1))
2424 static PyObject *_wrap_wxToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2425 PyObject * _resultobj;
2426 wxToolBarBase * _arg0;
2427 int _arg1;
2428 wxString * _arg2;
2429 PyObject * _argo0 = 0;
2430 PyObject * _obj2 = 0;
2431 char *_kwnames[] = { "self","id","helpString", NULL };
2432
2433 self = self;
2434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolShortHelp",_kwnames,&_argo0,&_arg1,&_obj2))
2435 return NULL;
2436 if (_argo0) {
2437 if (_argo0 == Py_None) { _arg0 = NULL; }
2438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolShortHelp. Expected _wxToolBarBase_p.");
2440 return NULL;
2441 }
2442 }
2443 {
2444 #if PYTHON_API_VERSION >= 1009
2445 char* tmpPtr; int tmpSize;
2446 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
2447 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2448 return NULL;
2449 }
2450 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2451 return NULL;
2452 _arg2 = new wxString(tmpPtr, tmpSize);
2453 #else
2454 if (!PyString_Check(_obj2)) {
2455 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2456 return NULL;
2457 }
2458 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2459 #endif
2460 }
2461 {
2462 wxPy_BEGIN_ALLOW_THREADS;
2463 wxToolBarBase_SetToolShortHelp(_arg0,_arg1,*_arg2);
2464
2465 wxPy_END_ALLOW_THREADS;
2466 if (PyErr_Occurred()) return NULL;
2467 } Py_INCREF(Py_None);
2468 _resultobj = Py_None;
2469 {
2470 if (_obj2)
2471 delete _arg2;
2472 }
2473 return _resultobj;
2474 }
2475
2476 #define wxToolBarBase_GetToolShortHelp(_swigobj,_swigarg0) (_swigobj->GetToolShortHelp(_swigarg0))
2477 static PyObject *_wrap_wxToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2478 PyObject * _resultobj;
2479 wxString * _result;
2480 wxToolBarBase * _arg0;
2481 int _arg1;
2482 PyObject * _argo0 = 0;
2483 char *_kwnames[] = { "self","id", NULL };
2484
2485 self = self;
2486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolShortHelp",_kwnames,&_argo0,&_arg1))
2487 return NULL;
2488 if (_argo0) {
2489 if (_argo0 == Py_None) { _arg0 = NULL; }
2490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolShortHelp. Expected _wxToolBarBase_p.");
2492 return NULL;
2493 }
2494 }
2495 {
2496 wxPy_BEGIN_ALLOW_THREADS;
2497 _result = new wxString (wxToolBarBase_GetToolShortHelp(_arg0,_arg1));
2498
2499 wxPy_END_ALLOW_THREADS;
2500 if (PyErr_Occurred()) return NULL;
2501 }{
2502 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2503 }
2504 {
2505 delete _result;
2506 }
2507 return _resultobj;
2508 }
2509
2510 #define wxToolBarBase_SetToolLongHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetToolLongHelp(_swigarg0,_swigarg1))
2511 static PyObject *_wrap_wxToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2512 PyObject * _resultobj;
2513 wxToolBarBase * _arg0;
2514 int _arg1;
2515 wxString * _arg2;
2516 PyObject * _argo0 = 0;
2517 PyObject * _obj2 = 0;
2518 char *_kwnames[] = { "self","id","helpString", NULL };
2519
2520 self = self;
2521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_SetToolLongHelp",_kwnames,&_argo0,&_arg1,&_obj2))
2522 return NULL;
2523 if (_argo0) {
2524 if (_argo0 == Py_None) { _arg0 = NULL; }
2525 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolLongHelp. Expected _wxToolBarBase_p.");
2527 return NULL;
2528 }
2529 }
2530 {
2531 #if PYTHON_API_VERSION >= 1009
2532 char* tmpPtr; int tmpSize;
2533 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
2534 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2535 return NULL;
2536 }
2537 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2538 return NULL;
2539 _arg2 = new wxString(tmpPtr, tmpSize);
2540 #else
2541 if (!PyString_Check(_obj2)) {
2542 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2543 return NULL;
2544 }
2545 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2546 #endif
2547 }
2548 {
2549 wxPy_BEGIN_ALLOW_THREADS;
2550 wxToolBarBase_SetToolLongHelp(_arg0,_arg1,*_arg2);
2551
2552 wxPy_END_ALLOW_THREADS;
2553 if (PyErr_Occurred()) return NULL;
2554 } Py_INCREF(Py_None);
2555 _resultobj = Py_None;
2556 {
2557 if (_obj2)
2558 delete _arg2;
2559 }
2560 return _resultobj;
2561 }
2562
2563 #define wxToolBarBase_GetToolLongHelp(_swigobj,_swigarg0) (_swigobj->GetToolLongHelp(_swigarg0))
2564 static PyObject *_wrap_wxToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2565 PyObject * _resultobj;
2566 wxString * _result;
2567 wxToolBarBase * _arg0;
2568 int _arg1;
2569 PyObject * _argo0 = 0;
2570 char *_kwnames[] = { "self","id", NULL };
2571
2572 self = self;
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_GetToolLongHelp",_kwnames,&_argo0,&_arg1))
2574 return NULL;
2575 if (_argo0) {
2576 if (_argo0 == Py_None) { _arg0 = NULL; }
2577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolLongHelp. Expected _wxToolBarBase_p.");
2579 return NULL;
2580 }
2581 }
2582 {
2583 wxPy_BEGIN_ALLOW_THREADS;
2584 _result = new wxString (wxToolBarBase_GetToolLongHelp(_arg0,_arg1));
2585
2586 wxPy_END_ALLOW_THREADS;
2587 if (PyErr_Occurred()) return NULL;
2588 }{
2589 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2590 }
2591 {
2592 delete _result;
2593 }
2594 return _resultobj;
2595 }
2596
2597 #define wxToolBarBase_SetMarginsXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1))
2598 static PyObject *_wrap_wxToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2599 PyObject * _resultobj;
2600 wxToolBarBase * _arg0;
2601 int _arg1;
2602 int _arg2;
2603 PyObject * _argo0 = 0;
2604 char *_kwnames[] = { "self","x","y", NULL };
2605
2606 self = self;
2607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetMarginsXY",_kwnames,&_argo0,&_arg1,&_arg2))
2608 return NULL;
2609 if (_argo0) {
2610 if (_argo0 == Py_None) { _arg0 = NULL; }
2611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMarginsXY. Expected _wxToolBarBase_p.");
2613 return NULL;
2614 }
2615 }
2616 {
2617 wxPy_BEGIN_ALLOW_THREADS;
2618 wxToolBarBase_SetMarginsXY(_arg0,_arg1,_arg2);
2619
2620 wxPy_END_ALLOW_THREADS;
2621 if (PyErr_Occurred()) return NULL;
2622 } Py_INCREF(Py_None);
2623 _resultobj = Py_None;
2624 return _resultobj;
2625 }
2626
2627 #define wxToolBarBase_SetMargins(_swigobj,_swigarg0) (_swigobj->SetMargins(_swigarg0))
2628 static PyObject *_wrap_wxToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2629 PyObject * _resultobj;
2630 wxToolBarBase * _arg0;
2631 wxSize * _arg1;
2632 PyObject * _argo0 = 0;
2633 wxSize temp;
2634 PyObject * _obj1 = 0;
2635 char *_kwnames[] = { "self","size", NULL };
2636
2637 self = self;
2638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_SetMargins",_kwnames,&_argo0,&_obj1))
2639 return NULL;
2640 if (_argo0) {
2641 if (_argo0 == Py_None) { _arg0 = NULL; }
2642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMargins. Expected _wxToolBarBase_p.");
2644 return NULL;
2645 }
2646 }
2647 {
2648 _arg1 = &temp;
2649 if (! wxSize_helper(_obj1, &_arg1))
2650 return NULL;
2651 }
2652 {
2653 wxPy_BEGIN_ALLOW_THREADS;
2654 wxToolBarBase_SetMargins(_arg0,*_arg1);
2655
2656 wxPy_END_ALLOW_THREADS;
2657 if (PyErr_Occurred()) return NULL;
2658 } Py_INCREF(Py_None);
2659 _resultobj = Py_None;
2660 return _resultobj;
2661 }
2662
2663 #define wxToolBarBase_SetToolPacking(_swigobj,_swigarg0) (_swigobj->SetToolPacking(_swigarg0))
2664 static PyObject *_wrap_wxToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
2665 PyObject * _resultobj;
2666 wxToolBarBase * _arg0;
2667 int _arg1;
2668 PyObject * _argo0 = 0;
2669 char *_kwnames[] = { "self","packing", NULL };
2670
2671 self = self;
2672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetToolPacking",_kwnames,&_argo0,&_arg1))
2673 return NULL;
2674 if (_argo0) {
2675 if (_argo0 == Py_None) { _arg0 = NULL; }
2676 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2677 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolPacking. Expected _wxToolBarBase_p.");
2678 return NULL;
2679 }
2680 }
2681 {
2682 wxPy_BEGIN_ALLOW_THREADS;
2683 wxToolBarBase_SetToolPacking(_arg0,_arg1);
2684
2685 wxPy_END_ALLOW_THREADS;
2686 if (PyErr_Occurred()) return NULL;
2687 } Py_INCREF(Py_None);
2688 _resultobj = Py_None;
2689 return _resultobj;
2690 }
2691
2692 #define wxToolBarBase_SetToolSeparation(_swigobj,_swigarg0) (_swigobj->SetToolSeparation(_swigarg0))
2693 static PyObject *_wrap_wxToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
2694 PyObject * _resultobj;
2695 wxToolBarBase * _arg0;
2696 int _arg1;
2697 PyObject * _argo0 = 0;
2698 char *_kwnames[] = { "self","separation", NULL };
2699
2700 self = self;
2701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetToolSeparation",_kwnames,&_argo0,&_arg1))
2702 return NULL;
2703 if (_argo0) {
2704 if (_argo0 == Py_None) { _arg0 = NULL; }
2705 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2706 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolSeparation. Expected _wxToolBarBase_p.");
2707 return NULL;
2708 }
2709 }
2710 {
2711 wxPy_BEGIN_ALLOW_THREADS;
2712 wxToolBarBase_SetToolSeparation(_arg0,_arg1);
2713
2714 wxPy_END_ALLOW_THREADS;
2715 if (PyErr_Occurred()) return NULL;
2716 } Py_INCREF(Py_None);
2717 _resultobj = Py_None;
2718 return _resultobj;
2719 }
2720
2721 #define wxToolBarBase_GetToolMargins(_swigobj) (_swigobj->GetToolMargins())
2722 static PyObject *_wrap_wxToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2723 PyObject * _resultobj;
2724 wxSize * _result;
2725 wxToolBarBase * _arg0;
2726 PyObject * _argo0 = 0;
2727 char *_kwnames[] = { "self", NULL };
2728 char _ptemp[128];
2729
2730 self = self;
2731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolMargins",_kwnames,&_argo0))
2732 return NULL;
2733 if (_argo0) {
2734 if (_argo0 == Py_None) { _arg0 = NULL; }
2735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolMargins. Expected _wxToolBarBase_p.");
2737 return NULL;
2738 }
2739 }
2740 {
2741 wxPy_BEGIN_ALLOW_THREADS;
2742 _result = new wxSize (wxToolBarBase_GetToolMargins(_arg0));
2743
2744 wxPy_END_ALLOW_THREADS;
2745 if (PyErr_Occurred()) return NULL;
2746 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2747 _resultobj = Py_BuildValue("s",_ptemp);
2748 return _resultobj;
2749 }
2750
2751 #define wxToolBarBase_GetMargins(_swigobj) (_swigobj->GetMargins())
2752 static PyObject *_wrap_wxToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2753 PyObject * _resultobj;
2754 wxSize * _result;
2755 wxToolBarBase * _arg0;
2756 PyObject * _argo0 = 0;
2757 char *_kwnames[] = { "self", NULL };
2758 char _ptemp[128];
2759
2760 self = self;
2761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMargins",_kwnames,&_argo0))
2762 return NULL;
2763 if (_argo0) {
2764 if (_argo0 == Py_None) { _arg0 = NULL; }
2765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMargins. Expected _wxToolBarBase_p.");
2767 return NULL;
2768 }
2769 }
2770 {
2771 wxPy_BEGIN_ALLOW_THREADS;
2772 _result = new wxSize (wxToolBarBase_GetMargins(_arg0));
2773
2774 wxPy_END_ALLOW_THREADS;
2775 if (PyErr_Occurred()) return NULL;
2776 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2777 _resultobj = Py_BuildValue("s",_ptemp);
2778 return _resultobj;
2779 }
2780
2781 #define wxToolBarBase_GetToolPacking(_swigobj) (_swigobj->GetToolPacking())
2782 static PyObject *_wrap_wxToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) {
2783 PyObject * _resultobj;
2784 int _result;
2785 wxToolBarBase * _arg0;
2786 PyObject * _argo0 = 0;
2787 char *_kwnames[] = { "self", NULL };
2788
2789 self = self;
2790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolPacking",_kwnames,&_argo0))
2791 return NULL;
2792 if (_argo0) {
2793 if (_argo0 == Py_None) { _arg0 = NULL; }
2794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolPacking. Expected _wxToolBarBase_p.");
2796 return NULL;
2797 }
2798 }
2799 {
2800 wxPy_BEGIN_ALLOW_THREADS;
2801 _result = (int )wxToolBarBase_GetToolPacking(_arg0);
2802
2803 wxPy_END_ALLOW_THREADS;
2804 if (PyErr_Occurred()) return NULL;
2805 } _resultobj = Py_BuildValue("i",_result);
2806 return _resultobj;
2807 }
2808
2809 #define wxToolBarBase_GetToolSeparation(_swigobj) (_swigobj->GetToolSeparation())
2810 static PyObject *_wrap_wxToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) {
2811 PyObject * _resultobj;
2812 int _result;
2813 wxToolBarBase * _arg0;
2814 PyObject * _argo0 = 0;
2815 char *_kwnames[] = { "self", NULL };
2816
2817 self = self;
2818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolSeparation",_kwnames,&_argo0))
2819 return NULL;
2820 if (_argo0) {
2821 if (_argo0 == Py_None) { _arg0 = NULL; }
2822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolSeparation. Expected _wxToolBarBase_p.");
2824 return NULL;
2825 }
2826 }
2827 {
2828 wxPy_BEGIN_ALLOW_THREADS;
2829 _result = (int )wxToolBarBase_GetToolSeparation(_arg0);
2830
2831 wxPy_END_ALLOW_THREADS;
2832 if (PyErr_Occurred()) return NULL;
2833 } _resultobj = Py_BuildValue("i",_result);
2834 return _resultobj;
2835 }
2836
2837 #define wxToolBarBase_SetRows(_swigobj,_swigarg0) (_swigobj->SetRows(_swigarg0))
2838 static PyObject *_wrap_wxToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
2839 PyObject * _resultobj;
2840 wxToolBarBase * _arg0;
2841 int _arg1;
2842 PyObject * _argo0 = 0;
2843 char *_kwnames[] = { "self","nRows", NULL };
2844
2845 self = self;
2846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_SetRows",_kwnames,&_argo0,&_arg1))
2847 return NULL;
2848 if (_argo0) {
2849 if (_argo0 == Py_None) { _arg0 = NULL; }
2850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetRows. Expected _wxToolBarBase_p.");
2852 return NULL;
2853 }
2854 }
2855 {
2856 wxPy_BEGIN_ALLOW_THREADS;
2857 wxToolBarBase_SetRows(_arg0,_arg1);
2858
2859 wxPy_END_ALLOW_THREADS;
2860 if (PyErr_Occurred()) return NULL;
2861 } Py_INCREF(Py_None);
2862 _resultobj = Py_None;
2863 return _resultobj;
2864 }
2865
2866 #define wxToolBarBase_SetMaxRowsCols(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMaxRowsCols(_swigarg0,_swigarg1))
2867 static PyObject *_wrap_wxToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) {
2868 PyObject * _resultobj;
2869 wxToolBarBase * _arg0;
2870 int _arg1;
2871 int _arg2;
2872 PyObject * _argo0 = 0;
2873 char *_kwnames[] = { "self","rows","cols", NULL };
2874
2875 self = self;
2876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarBase_SetMaxRowsCols",_kwnames,&_argo0,&_arg1,&_arg2))
2877 return NULL;
2878 if (_argo0) {
2879 if (_argo0 == Py_None) { _arg0 = NULL; }
2880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetMaxRowsCols. Expected _wxToolBarBase_p.");
2882 return NULL;
2883 }
2884 }
2885 {
2886 wxPy_BEGIN_ALLOW_THREADS;
2887 wxToolBarBase_SetMaxRowsCols(_arg0,_arg1,_arg2);
2888
2889 wxPy_END_ALLOW_THREADS;
2890 if (PyErr_Occurred()) return NULL;
2891 } Py_INCREF(Py_None);
2892 _resultobj = Py_None;
2893 return _resultobj;
2894 }
2895
2896 #define wxToolBarBase_GetMaxRows(_swigobj) (_swigobj->GetMaxRows())
2897 static PyObject *_wrap_wxToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) {
2898 PyObject * _resultobj;
2899 int _result;
2900 wxToolBarBase * _arg0;
2901 PyObject * _argo0 = 0;
2902 char *_kwnames[] = { "self", NULL };
2903
2904 self = self;
2905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMaxRows",_kwnames,&_argo0))
2906 return NULL;
2907 if (_argo0) {
2908 if (_argo0 == Py_None) { _arg0 = NULL; }
2909 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2910 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMaxRows. Expected _wxToolBarBase_p.");
2911 return NULL;
2912 }
2913 }
2914 {
2915 wxPy_BEGIN_ALLOW_THREADS;
2916 _result = (int )wxToolBarBase_GetMaxRows(_arg0);
2917
2918 wxPy_END_ALLOW_THREADS;
2919 if (PyErr_Occurred()) return NULL;
2920 } _resultobj = Py_BuildValue("i",_result);
2921 return _resultobj;
2922 }
2923
2924 #define wxToolBarBase_GetMaxCols(_swigobj) (_swigobj->GetMaxCols())
2925 static PyObject *_wrap_wxToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) {
2926 PyObject * _resultobj;
2927 int _result;
2928 wxToolBarBase * _arg0;
2929 PyObject * _argo0 = 0;
2930 char *_kwnames[] = { "self", NULL };
2931
2932 self = self;
2933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetMaxCols",_kwnames,&_argo0))
2934 return NULL;
2935 if (_argo0) {
2936 if (_argo0 == Py_None) { _arg0 = NULL; }
2937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetMaxCols. Expected _wxToolBarBase_p.");
2939 return NULL;
2940 }
2941 }
2942 {
2943 wxPy_BEGIN_ALLOW_THREADS;
2944 _result = (int )wxToolBarBase_GetMaxCols(_arg0);
2945
2946 wxPy_END_ALLOW_THREADS;
2947 if (PyErr_Occurred()) return NULL;
2948 } _resultobj = Py_BuildValue("i",_result);
2949 return _resultobj;
2950 }
2951
2952 #define wxToolBarBase_SetToolBitmapSize(_swigobj,_swigarg0) (_swigobj->SetToolBitmapSize(_swigarg0))
2953 static PyObject *_wrap_wxToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2954 PyObject * _resultobj;
2955 wxToolBarBase * _arg0;
2956 wxSize * _arg1;
2957 PyObject * _argo0 = 0;
2958 wxSize temp;
2959 PyObject * _obj1 = 0;
2960 char *_kwnames[] = { "self","size", NULL };
2961
2962 self = self;
2963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_SetToolBitmapSize",_kwnames,&_argo0,&_obj1))
2964 return NULL;
2965 if (_argo0) {
2966 if (_argo0 == Py_None) { _arg0 = NULL; }
2967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
2968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_SetToolBitmapSize. Expected _wxToolBarBase_p.");
2969 return NULL;
2970 }
2971 }
2972 {
2973 _arg1 = &temp;
2974 if (! wxSize_helper(_obj1, &_arg1))
2975 return NULL;
2976 }
2977 {
2978 wxPy_BEGIN_ALLOW_THREADS;
2979 wxToolBarBase_SetToolBitmapSize(_arg0,*_arg1);
2980
2981 wxPy_END_ALLOW_THREADS;
2982 if (PyErr_Occurred()) return NULL;
2983 } Py_INCREF(Py_None);
2984 _resultobj = Py_None;
2985 return _resultobj;
2986 }
2987
2988 #define wxToolBarBase_GetToolBitmapSize(_swigobj) (_swigobj->GetToolBitmapSize())
2989 static PyObject *_wrap_wxToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2990 PyObject * _resultobj;
2991 wxSize * _result;
2992 wxToolBarBase * _arg0;
2993 PyObject * _argo0 = 0;
2994 char *_kwnames[] = { "self", NULL };
2995 char _ptemp[128];
2996
2997 self = self;
2998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolBitmapSize",_kwnames,&_argo0))
2999 return NULL;
3000 if (_argo0) {
3001 if (_argo0 == Py_None) { _arg0 = NULL; }
3002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
3003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolBitmapSize. Expected _wxToolBarBase_p.");
3004 return NULL;
3005 }
3006 }
3007 {
3008 wxPy_BEGIN_ALLOW_THREADS;
3009 _result = new wxSize (wxToolBarBase_GetToolBitmapSize(_arg0));
3010
3011 wxPy_END_ALLOW_THREADS;
3012 if (PyErr_Occurred()) return NULL;
3013 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3014 _resultobj = Py_BuildValue("s",_ptemp);
3015 return _resultobj;
3016 }
3017
3018 #define wxToolBarBase_GetToolSize(_swigobj) (_swigobj->GetToolSize())
3019 static PyObject *_wrap_wxToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3020 PyObject * _resultobj;
3021 wxSize * _result;
3022 wxToolBarBase * _arg0;
3023 PyObject * _argo0 = 0;
3024 char *_kwnames[] = { "self", NULL };
3025 char _ptemp[128];
3026
3027 self = self;
3028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_GetToolSize",_kwnames,&_argo0))
3029 return NULL;
3030 if (_argo0) {
3031 if (_argo0 == Py_None) { _arg0 = NULL; }
3032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
3033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_GetToolSize. Expected _wxToolBarBase_p.");
3034 return NULL;
3035 }
3036 }
3037 {
3038 wxPy_BEGIN_ALLOW_THREADS;
3039 _result = new wxSize (wxToolBarBase_GetToolSize(_arg0));
3040
3041 wxPy_END_ALLOW_THREADS;
3042 if (PyErr_Occurred()) return NULL;
3043 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3044 _resultobj = Py_BuildValue("s",_ptemp);
3045 return _resultobj;
3046 }
3047
3048 static void *SwigwxToolBarTowxToolBarBase(void *ptr) {
3049 wxToolBar *src;
3050 wxToolBarBase *dest;
3051 src = (wxToolBar *) ptr;
3052 dest = (wxToolBarBase *) src;
3053 return (void *) dest;
3054 }
3055
3056 static void *SwigwxToolBarTowxControl(void *ptr) {
3057 wxToolBar *src;
3058 wxControl *dest;
3059 src = (wxToolBar *) ptr;
3060 dest = (wxControl *) src;
3061 return (void *) dest;
3062 }
3063
3064 static void *SwigwxToolBarTowxWindow(void *ptr) {
3065 wxToolBar *src;
3066 wxWindow *dest;
3067 src = (wxToolBar *) ptr;
3068 dest = (wxWindow *) src;
3069 return (void *) dest;
3070 }
3071
3072 static void *SwigwxToolBarTowxEvtHandler(void *ptr) {
3073 wxToolBar *src;
3074 wxEvtHandler *dest;
3075 src = (wxToolBar *) ptr;
3076 dest = (wxEvtHandler *) src;
3077 return (void *) dest;
3078 }
3079
3080 static void *SwigwxToolBarTowxObject(void *ptr) {
3081 wxToolBar *src;
3082 wxObject *dest;
3083 src = (wxToolBar *) ptr;
3084 dest = (wxObject *) src;
3085 return (void *) dest;
3086 }
3087
3088 #define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3089 static PyObject *_wrap_new_wxToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
3090 PyObject * _resultobj;
3091 wxToolBar * _result;
3092 wxWindow * _arg0;
3093 wxWindowID _arg1;
3094 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3095 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
3096 long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3097 char * _arg5 = (char *) wxToolBarNameStr;
3098 PyObject * _argo0 = 0;
3099 wxPoint temp;
3100 PyObject * _obj2 = 0;
3101 wxSize temp0;
3102 PyObject * _obj3 = 0;
3103 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3104 char _ptemp[128];
3105
3106 self = self;
3107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBar",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
3108 return NULL;
3109 if (_argo0) {
3110 if (_argo0 == Py_None) { _arg0 = NULL; }
3111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBar. Expected _wxWindow_p.");
3113 return NULL;
3114 }
3115 }
3116 if (_obj2)
3117 {
3118 _arg2 = &temp;
3119 if (! wxPoint_helper(_obj2, &_arg2))
3120 return NULL;
3121 }
3122 if (_obj3)
3123 {
3124 _arg3 = &temp0;
3125 if (! wxSize_helper(_obj3, &_arg3))
3126 return NULL;
3127 }
3128 {
3129 wxPy_BEGIN_ALLOW_THREADS;
3130 _result = (wxToolBar *)new_wxToolBar(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
3131
3132 wxPy_END_ALLOW_THREADS;
3133 if (PyErr_Occurred()) return NULL;
3134 } if (_result) {
3135 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
3136 _resultobj = Py_BuildValue("s",_ptemp);
3137 } else {
3138 Py_INCREF(Py_None);
3139 _resultobj = Py_None;
3140 }
3141 return _resultobj;
3142 }
3143
3144 #define new_wxPreToolBar() (new wxToolBar())
3145 static PyObject *_wrap_new_wxPreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
3146 PyObject * _resultobj;
3147 wxToolBar * _result;
3148 char *_kwnames[] = { NULL };
3149 char _ptemp[128];
3150
3151 self = self;
3152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToolBar",_kwnames))
3153 return NULL;
3154 {
3155 wxPy_BEGIN_ALLOW_THREADS;
3156 _result = (wxToolBar *)new_wxPreToolBar();
3157
3158 wxPy_END_ALLOW_THREADS;
3159 if (PyErr_Occurred()) return NULL;
3160 } if (_result) {
3161 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
3162 _resultobj = Py_BuildValue("s",_ptemp);
3163 } else {
3164 Py_INCREF(Py_None);
3165 _resultobj = Py_None;
3166 }
3167 return _resultobj;
3168 }
3169
3170 #define wxToolBar_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3171 static PyObject *_wrap_wxToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3172 PyObject * _resultobj;
3173 bool _result;
3174 wxToolBar * _arg0;
3175 wxWindow * _arg1;
3176 wxWindowID _arg2;
3177 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3178 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3179 long _arg5 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3180 char * _arg6 = (char *) wxToolBarNameStr;
3181 PyObject * _argo0 = 0;
3182 PyObject * _argo1 = 0;
3183 wxPoint temp;
3184 PyObject * _obj3 = 0;
3185 wxSize temp0;
3186 PyObject * _obj4 = 0;
3187 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
3188
3189 self = self;
3190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxToolBar_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
3191 return NULL;
3192 if (_argo0) {
3193 if (_argo0 == Py_None) { _arg0 = NULL; }
3194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
3195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_Create. Expected _wxToolBar_p.");
3196 return NULL;
3197 }
3198 }
3199 if (_argo1) {
3200 if (_argo1 == Py_None) { _arg1 = NULL; }
3201 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3202 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBar_Create. Expected _wxWindow_p.");
3203 return NULL;
3204 }
3205 }
3206 if (_obj3)
3207 {
3208 _arg3 = &temp;
3209 if (! wxPoint_helper(_obj3, &_arg3))
3210 return NULL;
3211 }
3212 if (_obj4)
3213 {
3214 _arg4 = &temp0;
3215 if (! wxSize_helper(_obj4, &_arg4))
3216 return NULL;
3217 }
3218 {
3219 wxPy_BEGIN_ALLOW_THREADS;
3220 _result = (bool )wxToolBar_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
3221
3222 wxPy_END_ALLOW_THREADS;
3223 if (PyErr_Occurred()) return NULL;
3224 } _resultobj = Py_BuildValue("i",_result);
3225 return _resultobj;
3226 }
3227
3228 #define wxToolBar_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3229 static PyObject *_wrap_wxToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3230 PyObject * _resultobj;
3231 wxToolBarToolBase * _result;
3232 wxToolBar * _arg0;
3233 wxCoord _arg1;
3234 wxCoord _arg2;
3235 PyObject * _argo0 = 0;
3236 char *_kwnames[] = { "self","x","y", NULL };
3237
3238 self = self;
3239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBar_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
3240 return NULL;
3241 if (_argo0) {
3242 if (_argo0 == Py_None) { _arg0 = NULL; }
3243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBar_p")) {
3244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBar_FindToolForPosition. Expected _wxToolBar_p.");
3245 return NULL;
3246 }
3247 }
3248 {
3249 wxPy_BEGIN_ALLOW_THREADS;
3250 _result = (wxToolBarToolBase *)wxToolBar_FindToolForPosition(_arg0,_arg1,_arg2);
3251
3252 wxPy_END_ALLOW_THREADS;
3253 if (PyErr_Occurred()) return NULL;
3254 }{ _resultobj = wxPyMake_wxObject(_result); }
3255 return _resultobj;
3256 }
3257
3258 static void *SwigwxToolBarSimpleTowxToolBarBase(void *ptr) {
3259 wxToolBarSimple *src;
3260 wxToolBarBase *dest;
3261 src = (wxToolBarSimple *) ptr;
3262 dest = (wxToolBarBase *) src;
3263 return (void *) dest;
3264 }
3265
3266 static void *SwigwxToolBarSimpleTowxControl(void *ptr) {
3267 wxToolBarSimple *src;
3268 wxControl *dest;
3269 src = (wxToolBarSimple *) ptr;
3270 dest = (wxControl *) src;
3271 return (void *) dest;
3272 }
3273
3274 static void *SwigwxToolBarSimpleTowxWindow(void *ptr) {
3275 wxToolBarSimple *src;
3276 wxWindow *dest;
3277 src = (wxToolBarSimple *) ptr;
3278 dest = (wxWindow *) src;
3279 return (void *) dest;
3280 }
3281
3282 static void *SwigwxToolBarSimpleTowxEvtHandler(void *ptr) {
3283 wxToolBarSimple *src;
3284 wxEvtHandler *dest;
3285 src = (wxToolBarSimple *) ptr;
3286 dest = (wxEvtHandler *) src;
3287 return (void *) dest;
3288 }
3289
3290 static void *SwigwxToolBarSimpleTowxObject(void *ptr) {
3291 wxToolBarSimple *src;
3292 wxObject *dest;
3293 src = (wxToolBarSimple *) ptr;
3294 dest = (wxObject *) src;
3295 return (void *) dest;
3296 }
3297
3298 #define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3299 static PyObject *_wrap_new_wxToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
3300 PyObject * _resultobj;
3301 wxToolBarSimple * _result;
3302 wxWindow * _arg0;
3303 wxWindowID _arg1;
3304 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
3305 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
3306 long _arg4 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3307 char * _arg5 = (char *) wxToolBarNameStr;
3308 PyObject * _argo0 = 0;
3309 wxPoint temp;
3310 PyObject * _obj2 = 0;
3311 wxSize temp0;
3312 PyObject * _obj3 = 0;
3313 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3314 char _ptemp[128];
3315
3316 self = self;
3317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxToolBarSimple",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
3318 return NULL;
3319 if (_argo0) {
3320 if (_argo0 == Py_None) { _arg0 = NULL; }
3321 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3322 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxToolBarSimple. Expected _wxWindow_p.");
3323 return NULL;
3324 }
3325 }
3326 if (_obj2)
3327 {
3328 _arg2 = &temp;
3329 if (! wxPoint_helper(_obj2, &_arg2))
3330 return NULL;
3331 }
3332 if (_obj3)
3333 {
3334 _arg3 = &temp0;
3335 if (! wxSize_helper(_obj3, &_arg3))
3336 return NULL;
3337 }
3338 {
3339 wxPy_BEGIN_ALLOW_THREADS;
3340 _result = (wxToolBarSimple *)new_wxToolBarSimple(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
3341
3342 wxPy_END_ALLOW_THREADS;
3343 if (PyErr_Occurred()) return NULL;
3344 } if (_result) {
3345 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarSimple_p");
3346 _resultobj = Py_BuildValue("s",_ptemp);
3347 } else {
3348 Py_INCREF(Py_None);
3349 _resultobj = Py_None;
3350 }
3351 return _resultobj;
3352 }
3353
3354 #define new_wxPreToolBarSimple() (new wxToolBarSimple())
3355 static PyObject *_wrap_new_wxPreToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
3356 PyObject * _resultobj;
3357 wxToolBarSimple * _result;
3358 char *_kwnames[] = { NULL };
3359 char _ptemp[128];
3360
3361 self = self;
3362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreToolBarSimple",_kwnames))
3363 return NULL;
3364 {
3365 wxPy_BEGIN_ALLOW_THREADS;
3366 _result = (wxToolBarSimple *)new_wxPreToolBarSimple();
3367
3368 wxPy_END_ALLOW_THREADS;
3369 if (PyErr_Occurred()) return NULL;
3370 } if (_result) {
3371 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarSimple_p");
3372 _resultobj = Py_BuildValue("s",_ptemp);
3373 } else {
3374 Py_INCREF(Py_None);
3375 _resultobj = Py_None;
3376 }
3377 return _resultobj;
3378 }
3379
3380 #define wxToolBarSimple_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3381 static PyObject *_wrap_wxToolBarSimple_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3382 PyObject * _resultobj;
3383 bool _result;
3384 wxToolBarSimple * _arg0;
3385 wxWindow * _arg1;
3386 wxWindowID _arg2;
3387 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3388 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3389 long _arg5 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
3390 char * _arg6 = (char *) wxToolBarNameStr;
3391 PyObject * _argo0 = 0;
3392 PyObject * _argo1 = 0;
3393 wxPoint temp;
3394 PyObject * _obj3 = 0;
3395 wxSize temp0;
3396 PyObject * _obj4 = 0;
3397 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
3398
3399 self = self;
3400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxToolBarSimple_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
3401 return NULL;
3402 if (_argo0) {
3403 if (_argo0 == Py_None) { _arg0 = NULL; }
3404 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarSimple_p")) {
3405 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarSimple_Create. Expected _wxToolBarSimple_p.");
3406 return NULL;
3407 }
3408 }
3409 if (_argo1) {
3410 if (_argo1 == Py_None) { _arg1 = NULL; }
3411 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3412 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxToolBarSimple_Create. Expected _wxWindow_p.");
3413 return NULL;
3414 }
3415 }
3416 if (_obj3)
3417 {
3418 _arg3 = &temp;
3419 if (! wxPoint_helper(_obj3, &_arg3))
3420 return NULL;
3421 }
3422 if (_obj4)
3423 {
3424 _arg4 = &temp0;
3425 if (! wxSize_helper(_obj4, &_arg4))
3426 return NULL;
3427 }
3428 {
3429 wxPy_BEGIN_ALLOW_THREADS;
3430 _result = (bool )wxToolBarSimple_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
3431
3432 wxPy_END_ALLOW_THREADS;
3433 if (PyErr_Occurred()) return NULL;
3434 } _resultobj = Py_BuildValue("i",_result);
3435 return _resultobj;
3436 }
3437
3438 #define wxToolBarSimple_FindToolForPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindToolForPosition(_swigarg0,_swigarg1))
3439 static PyObject *_wrap_wxToolBarSimple_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3440 PyObject * _resultobj;
3441 wxToolBarToolBase * _result;
3442 wxToolBarSimple * _arg0;
3443 wxCoord _arg1;
3444 wxCoord _arg2;
3445 PyObject * _argo0 = 0;
3446 char *_kwnames[] = { "self","x","y", NULL };
3447
3448 self = self;
3449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
3450 return NULL;
3451 if (_argo0) {
3452 if (_argo0 == Py_None) { _arg0 = NULL; }
3453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarSimple_p")) {
3454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarSimple_FindToolForPosition. Expected _wxToolBarSimple_p.");
3455 return NULL;
3456 }
3457 }
3458 {
3459 wxPy_BEGIN_ALLOW_THREADS;
3460 _result = (wxToolBarToolBase *)wxToolBarSimple_FindToolForPosition(_arg0,_arg1,_arg2);
3461
3462 wxPy_END_ALLOW_THREADS;
3463 if (PyErr_Occurred()) return NULL;
3464 }{ _resultobj = wxPyMake_wxObject(_result); }
3465 return _resultobj;
3466 }
3467
3468 static PyMethodDef stattoolcMethods[] = {
3469 { "wxToolBarSimple_FindToolForPosition", (PyCFunction) _wrap_wxToolBarSimple_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
3470 { "wxToolBarSimple_Create", (PyCFunction) _wrap_wxToolBarSimple_Create, METH_VARARGS | METH_KEYWORDS },
3471 { "new_wxPreToolBarSimple", (PyCFunction) _wrap_new_wxPreToolBarSimple, METH_VARARGS | METH_KEYWORDS },
3472 { "new_wxToolBarSimple", (PyCFunction) _wrap_new_wxToolBarSimple, METH_VARARGS | METH_KEYWORDS },
3473 { "wxToolBar_FindToolForPosition", (PyCFunction) _wrap_wxToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS },
3474 { "wxToolBar_Create", (PyCFunction) _wrap_wxToolBar_Create, METH_VARARGS | METH_KEYWORDS },
3475 { "new_wxPreToolBar", (PyCFunction) _wrap_new_wxPreToolBar, METH_VARARGS | METH_KEYWORDS },
3476 { "new_wxToolBar", (PyCFunction) _wrap_new_wxToolBar, METH_VARARGS | METH_KEYWORDS },
3477 { "wxToolBarBase_GetToolSize", (PyCFunction) _wrap_wxToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS },
3478 { "wxToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_wxToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
3479 { "wxToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_wxToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS },
3480 { "wxToolBarBase_GetMaxCols", (PyCFunction) _wrap_wxToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS },
3481 { "wxToolBarBase_GetMaxRows", (PyCFunction) _wrap_wxToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS },
3482 { "wxToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_wxToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS },
3483 { "wxToolBarBase_SetRows", (PyCFunction) _wrap_wxToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS },
3484 { "wxToolBarBase_GetToolSeparation", (PyCFunction) _wrap_wxToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS },
3485 { "wxToolBarBase_GetToolPacking", (PyCFunction) _wrap_wxToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS },
3486 { "wxToolBarBase_GetMargins", (PyCFunction) _wrap_wxToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS },
3487 { "wxToolBarBase_GetToolMargins", (PyCFunction) _wrap_wxToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS },
3488 { "wxToolBarBase_SetToolSeparation", (PyCFunction) _wrap_wxToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS },
3489 { "wxToolBarBase_SetToolPacking", (PyCFunction) _wrap_wxToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS },
3490 { "wxToolBarBase_SetMargins", (PyCFunction) _wrap_wxToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS },
3491 { "wxToolBarBase_SetMarginsXY", (PyCFunction) _wrap_wxToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS },
3492 { "wxToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_wxToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
3493 { "wxToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_wxToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS },
3494 { "wxToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_wxToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
3495 { "wxToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_wxToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS },
3496 { "wxToolBarBase_GetToolEnabled", (PyCFunction) _wrap_wxToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS },
3497 { "wxToolBarBase_GetToolState", (PyCFunction) _wrap_wxToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS },
3498 { "wxToolBarBase_SetToolClientData", (PyCFunction) _wrap_wxToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS },
3499 { "wxToolBarBase_GetToolClientData", (PyCFunction) _wrap_wxToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS },
3500 { "wxToolBarBase_SetToggle", (PyCFunction) _wrap_wxToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
3501 { "wxToolBarBase_ToggleTool", (PyCFunction) _wrap_wxToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS },
3502 { "wxToolBarBase_EnableTool", (PyCFunction) _wrap_wxToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS },
3503 { "wxToolBarBase_Realize", (PyCFunction) _wrap_wxToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS },
3504 { "wxToolBarBase_ClearTools", (PyCFunction) _wrap_wxToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS },
3505 { "wxToolBarBase_DeleteTool", (PyCFunction) _wrap_wxToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS },
3506 { "wxToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_wxToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS },
3507 { "wxToolBarBase_RemoveTool", (PyCFunction) _wrap_wxToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS },
3508 { "wxToolBarBase_InsertSeparator", (PyCFunction) _wrap_wxToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
3509 { "wxToolBarBase_AddSeparator", (PyCFunction) _wrap_wxToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS },
3510 { "wxToolBarBase_InsertControl", (PyCFunction) _wrap_wxToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
3511 { "wxToolBarBase_AddControl", (PyCFunction) _wrap_wxToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
3512 { "wxToolBarBase_InsertSimpleTool", (PyCFunction) _wrap_wxToolBarBase_InsertSimpleTool, METH_VARARGS | METH_KEYWORDS },
3513 { "wxToolBarBase_InsertTool", (PyCFunction) _wrap_wxToolBarBase_InsertTool, METH_VARARGS | METH_KEYWORDS },
3514 { "wxToolBarBase_AddSimpleTool", (PyCFunction) _wrap_wxToolBarBase_AddSimpleTool, METH_VARARGS | METH_KEYWORDS },
3515 { "wxToolBarBase_AddTool", (PyCFunction) _wrap_wxToolBarBase_AddTool, METH_VARARGS | METH_KEYWORDS },
3516 { "wxToolBarToolBase_SetClientData", (PyCFunction) _wrap_wxToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
3517 { "wxToolBarToolBase_GetClientData", (PyCFunction) _wrap_wxToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
3518 { "wxToolBarToolBase_Attach", (PyCFunction) _wrap_wxToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS },
3519 { "wxToolBarToolBase_Detach", (PyCFunction) _wrap_wxToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS },
3520 { "wxToolBarToolBase_SetBitmap2", (PyCFunction) _wrap_wxToolBarToolBase_SetBitmap2, METH_VARARGS | METH_KEYWORDS },
3521 { "wxToolBarToolBase_SetBitmap1", (PyCFunction) _wrap_wxToolBarToolBase_SetBitmap1, METH_VARARGS | METH_KEYWORDS },
3522 { "wxToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_wxToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS },
3523 { "wxToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_wxToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS },
3524 { "wxToolBarToolBase_SetToggle", (PyCFunction) _wrap_wxToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS },
3525 { "wxToolBarToolBase_Toggle", (PyCFunction) _wrap_wxToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS },
3526 { "wxToolBarToolBase_Enable", (PyCFunction) _wrap_wxToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS },
3527 { "wxToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_wxToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS },
3528 { "wxToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_wxToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS },
3529 { "wxToolBarToolBase_GetBitmap", (PyCFunction) _wrap_wxToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS },
3530 { "wxToolBarToolBase_GetBitmap2", (PyCFunction) _wrap_wxToolBarToolBase_GetBitmap2, METH_VARARGS | METH_KEYWORDS },
3531 { "wxToolBarToolBase_GetBitmap1", (PyCFunction) _wrap_wxToolBarToolBase_GetBitmap1, METH_VARARGS | METH_KEYWORDS },
3532 { "wxToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_wxToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS },
3533 { "wxToolBarToolBase_IsToggled", (PyCFunction) _wrap_wxToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS },
3534 { "wxToolBarToolBase_IsEnabled", (PyCFunction) _wrap_wxToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS },
3535 { "wxToolBarToolBase_GetStyle", (PyCFunction) _wrap_wxToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
3536 { "wxToolBarToolBase_IsSeparator", (PyCFunction) _wrap_wxToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS },
3537 { "wxToolBarToolBase_IsControl", (PyCFunction) _wrap_wxToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS },
3538 { "wxToolBarToolBase_IsButton", (PyCFunction) _wrap_wxToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS },
3539 { "wxToolBarToolBase_GetToolBar", (PyCFunction) _wrap_wxToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS },
3540 { "wxToolBarToolBase_GetControl", (PyCFunction) _wrap_wxToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
3541 { "wxToolBarToolBase_GetId", (PyCFunction) _wrap_wxToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
3542 { "wxToolBarToolBase_Destroy", (PyCFunction) _wrap_wxToolBarToolBase_Destroy, METH_VARARGS | METH_KEYWORDS },
3543 { "wxStatusBar_SetMinHeight", (PyCFunction) _wrap_wxStatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS },
3544 { "wxStatusBar_SetStatusWidths", (PyCFunction) _wrap_wxStatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS },
3545 { "wxStatusBar_SetStatusText", (PyCFunction) _wrap_wxStatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS },
3546 { "wxStatusBar_SetFieldsCount", (PyCFunction) _wrap_wxStatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS },
3547 { "wxStatusBar_GetBorderY", (PyCFunction) _wrap_wxStatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS },
3548 { "wxStatusBar_GetBorderX", (PyCFunction) _wrap_wxStatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS },
3549 { "wxStatusBar_GetStatusText", (PyCFunction) _wrap_wxStatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS },
3550 { "wxStatusBar_GetFieldsCount", (PyCFunction) _wrap_wxStatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS },
3551 { "wxStatusBar_GetFieldRect", (PyCFunction) _wrap_wxStatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS },
3552 { "wxStatusBar_Create", (PyCFunction) _wrap_wxStatusBar_Create, METH_VARARGS | METH_KEYWORDS },
3553 { "new_wxPreStatusBar", (PyCFunction) _wrap_new_wxPreStatusBar, METH_VARARGS | METH_KEYWORDS },
3554 { "new_wxStatusBar", (PyCFunction) _wrap_new_wxStatusBar, METH_VARARGS | METH_KEYWORDS },
3555 { NULL, NULL }
3556 };
3557 #ifdef __cplusplus
3558 }
3559 #endif
3560 /*
3561 * This table is used by the pointer type-checker
3562 */
3563 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
3564 { "_signed_long","_long",0},
3565 { "_wxPrintQuality","_wxCoord",0},
3566 { "_wxPrintQuality","_int",0},
3567 { "_wxPrintQuality","_signed_int",0},
3568 { "_wxPrintQuality","_unsigned_int",0},
3569 { "_wxPrintQuality","_wxWindowID",0},
3570 { "_wxPrintQuality","_uint",0},
3571 { "_wxPrintQuality","_EBool",0},
3572 { "_wxPrintQuality","_size_t",0},
3573 { "_wxPrintQuality","_time_t",0},
3574 { "_class_wxEvtHandler","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler},
3575 { "_class_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler},
3576 { "_class_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler},
3577 { "_class_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler},
3578 { "_class_wxEvtHandler","_class_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler},
3579 { "_class_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler},
3580 { "_class_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
3581 { "_class_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
3582 { "_class_wxToolBarBase","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase},
3583 { "_class_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase},
3584 { "_class_wxToolBarBase","_class_wxToolBar",SwigwxToolBarTowxToolBarBase},
3585 { "_class_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase},
3586 { "_byte","_unsigned_char",0},
3587 { "_long","_unsigned_long",0},
3588 { "_long","_signed_long",0},
3589 { "_class_wxObject","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
3590 { "_class_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
3591 { "_class_wxObject","_class_wxToolBar",SwigwxToolBarTowxObject},
3592 { "_class_wxObject","_wxToolBar",SwigwxToolBarTowxObject},
3593 { "_class_wxObject","_class_wxToolBarBase",SwigwxToolBarBaseTowxObject},
3594 { "_class_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject},
3595 { "_class_wxObject","_class_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
3596 { "_class_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
3597 { "_class_wxObject","_class_wxStatusBar",SwigwxStatusBarTowxObject},
3598 { "_class_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject},
3599 { "_size_t","_wxCoord",0},
3600 { "_size_t","_wxPrintQuality",0},
3601 { "_size_t","_time_t",0},
3602 { "_size_t","_unsigned_int",0},
3603 { "_size_t","_int",0},
3604 { "_size_t","_wxWindowID",0},
3605 { "_size_t","_uint",0},
3606 { "_uint","_wxCoord",0},
3607 { "_uint","_wxPrintQuality",0},
3608 { "_uint","_time_t",0},
3609 { "_uint","_size_t",0},
3610 { "_uint","_unsigned_int",0},
3611 { "_uint","_int",0},
3612 { "_uint","_wxWindowID",0},
3613 { "_wxChar","_char",0},
3614 { "_char","_wxChar",0},
3615 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
3616 { "_EBool","_wxCoord",0},
3617 { "_EBool","_wxPrintQuality",0},
3618 { "_EBool","_signed_int",0},
3619 { "_EBool","_int",0},
3620 { "_EBool","_wxWindowID",0},
3621 { "_unsigned_long","_long",0},
3622 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
3623 { "_signed_int","_wxCoord",0},
3624 { "_signed_int","_wxPrintQuality",0},
3625 { "_signed_int","_EBool",0},
3626 { "_signed_int","_wxWindowID",0},
3627 { "_signed_int","_int",0},
3628 { "_WXTYPE","_short",0},
3629 { "_WXTYPE","_signed_short",0},
3630 { "_WXTYPE","_unsigned_short",0},
3631 { "_unsigned_short","_WXTYPE",0},
3632 { "_unsigned_short","_short",0},
3633 { "_class_wxWindow","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow},
3634 { "_class_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow},
3635 { "_class_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow},
3636 { "_class_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow},
3637 { "_class_wxWindow","_class_wxToolBarBase",SwigwxToolBarBaseTowxWindow},
3638 { "_class_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow},
3639 { "_class_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow},
3640 { "_class_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow},
3641 { "_wxObject","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
3642 { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
3643 { "_wxObject","_class_wxToolBar",SwigwxToolBarTowxObject},
3644 { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject},
3645 { "_wxObject","_class_wxToolBarBase",SwigwxToolBarBaseTowxObject},
3646 { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject},
3647 { "_wxObject","_class_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
3648 { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
3649 { "_wxObject","_class_wxStatusBar",SwigwxStatusBarTowxObject},
3650 { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject},
3651 { "_signed_short","_WXTYPE",0},
3652 { "_signed_short","_short",0},
3653 { "_unsigned_char","_byte",0},
3654 { "_wxControl","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxControl},
3655 { "_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl},
3656 { "_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl},
3657 { "_wxControl","_wxToolBar",SwigwxToolBarTowxControl},
3658 { "_wxControl","_class_wxToolBarBase",SwigwxToolBarBaseTowxControl},
3659 { "_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl},
3660 { "_unsigned_int","_wxCoord",0},
3661 { "_unsigned_int","_wxPrintQuality",0},
3662 { "_unsigned_int","_time_t",0},
3663 { "_unsigned_int","_size_t",0},
3664 { "_unsigned_int","_uint",0},
3665 { "_unsigned_int","_wxWindowID",0},
3666 { "_unsigned_int","_int",0},
3667 { "_short","_WXTYPE",0},
3668 { "_short","_unsigned_short",0},
3669 { "_short","_signed_short",0},
3670 { "_wxWindowID","_wxCoord",0},
3671 { "_wxWindowID","_wxPrintQuality",0},
3672 { "_wxWindowID","_time_t",0},
3673 { "_wxWindowID","_size_t",0},
3674 { "_wxWindowID","_EBool",0},
3675 { "_wxWindowID","_uint",0},
3676 { "_wxWindowID","_int",0},
3677 { "_wxWindowID","_signed_int",0},
3678 { "_wxWindowID","_unsigned_int",0},
3679 { "_int","_wxCoord",0},
3680 { "_int","_wxPrintQuality",0},
3681 { "_int","_time_t",0},
3682 { "_int","_size_t",0},
3683 { "_int","_EBool",0},
3684 { "_int","_uint",0},
3685 { "_int","_wxWindowID",0},
3686 { "_int","_unsigned_int",0},
3687 { "_int","_signed_int",0},
3688 { "_time_t","_wxCoord",0},
3689 { "_time_t","_wxPrintQuality",0},
3690 { "_time_t","_unsigned_int",0},
3691 { "_time_t","_int",0},
3692 { "_time_t","_wxWindowID",0},
3693 { "_time_t","_uint",0},
3694 { "_time_t","_size_t",0},
3695 { "_wxToolBarBase","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase},
3696 { "_wxToolBarBase","_wxToolBarSimple",SwigwxToolBarSimpleTowxToolBarBase},
3697 { "_wxToolBarBase","_class_wxToolBar",SwigwxToolBarTowxToolBarBase},
3698 { "_wxToolBarBase","_wxToolBar",SwigwxToolBarTowxToolBarBase},
3699 { "_class_wxControl","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxControl},
3700 { "_class_wxControl","_wxToolBarSimple",SwigwxToolBarSimpleTowxControl},
3701 { "_class_wxControl","_class_wxToolBar",SwigwxToolBarTowxControl},
3702 { "_class_wxControl","_wxToolBar",SwigwxToolBarTowxControl},
3703 { "_class_wxControl","_class_wxToolBarBase",SwigwxToolBarBaseTowxControl},
3704 { "_class_wxControl","_wxToolBarBase",SwigwxToolBarBaseTowxControl},
3705 { "_wxCoord","_int",0},
3706 { "_wxCoord","_signed_int",0},
3707 { "_wxCoord","_unsigned_int",0},
3708 { "_wxCoord","_wxWindowID",0},
3709 { "_wxCoord","_uint",0},
3710 { "_wxCoord","_EBool",0},
3711 { "_wxCoord","_size_t",0},
3712 { "_wxCoord","_time_t",0},
3713 { "_wxCoord","_wxPrintQuality",0},
3714 { "_wxEvtHandler","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler},
3715 { "_wxEvtHandler","_wxToolBarSimple",SwigwxToolBarSimpleTowxEvtHandler},
3716 { "_wxEvtHandler","_class_wxToolBar",SwigwxToolBarTowxEvtHandler},
3717 { "_wxEvtHandler","_wxToolBar",SwigwxToolBarTowxEvtHandler},
3718 { "_wxEvtHandler","_class_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler},
3719 { "_wxEvtHandler","_wxToolBarBase",SwigwxToolBarBaseTowxEvtHandler},
3720 { "_wxEvtHandler","_class_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
3721 { "_wxEvtHandler","_wxStatusBar",SwigwxStatusBarTowxEvtHandler},
3722 { "_wxWindow","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow},
3723 { "_wxWindow","_wxToolBarSimple",SwigwxToolBarSimpleTowxWindow},
3724 { "_wxWindow","_class_wxToolBar",SwigwxToolBarTowxWindow},
3725 { "_wxWindow","_wxToolBar",SwigwxToolBarTowxWindow},
3726 { "_wxWindow","_class_wxToolBarBase",SwigwxToolBarBaseTowxWindow},
3727 { "_wxWindow","_wxToolBarBase",SwigwxToolBarBaseTowxWindow},
3728 { "_wxWindow","_class_wxStatusBar",SwigwxStatusBarTowxWindow},
3729 { "_wxWindow","_wxStatusBar",SwigwxStatusBarTowxWindow},
3730 {0,0,0}};
3731
3732 static PyObject *SWIG_globals;
3733 #ifdef __cplusplus
3734 extern "C"
3735 #endif
3736 SWIGEXPORT(void) initstattoolc() {
3737 PyObject *m, *d;
3738 SWIG_globals = SWIG_newvarlink();
3739 m = Py_InitModule("stattoolc", stattoolcMethods);
3740 d = PyModule_GetDict(m);
3741 PyDict_SetItemString(d,"wxTOOL_STYLE_BUTTON", PyInt_FromLong((long) wxTOOL_STYLE_BUTTON));
3742 PyDict_SetItemString(d,"wxTOOL_STYLE_SEPARATOR", PyInt_FromLong((long) wxTOOL_STYLE_SEPARATOR));
3743 PyDict_SetItemString(d,"wxTOOL_STYLE_CONTROL", PyInt_FromLong((long) wxTOOL_STYLE_CONTROL));
3744 {
3745 int i;
3746 for (i = 0; _swig_mapping[i].n1; i++)
3747 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3748 }
3749 }