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