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