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