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