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