]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/help.cpp
SWIGged updates
[wxWidgets.git] / wxPython / src / gtk / help.cpp
1 /*
2 * FILE : src/gtk/help.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 inithelpc
55
56 #define SWIG_name "helpc"
57
58 #include "wxPython.h"
59 #include <wx/cshelp.h>
60
61
62 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86 }
87 #ifdef __cplusplus
88 extern "C" {
89 #endif
90 static void *SwigwxHelpEventTowxCommandEvent(void *ptr) {
91 wxHelpEvent *src;
92 wxCommandEvent *dest;
93 src = (wxHelpEvent *) ptr;
94 dest = (wxCommandEvent *) src;
95 return (void *) dest;
96 }
97
98 static void *SwigwxHelpEventTowxEvent(void *ptr) {
99 wxHelpEvent *src;
100 wxEvent *dest;
101 src = (wxHelpEvent *) ptr;
102 dest = (wxEvent *) src;
103 return (void *) dest;
104 }
105
106 static void *SwigwxHelpEventTowxObject(void *ptr) {
107 wxHelpEvent *src;
108 wxObject *dest;
109 src = (wxHelpEvent *) ptr;
110 dest = (wxObject *) src;
111 return (void *) dest;
112 }
113
114 #define new_wxHelpEvent(_swigarg0,_swigarg1,_swigarg2) (new wxHelpEvent(_swigarg0,_swigarg1,_swigarg2))
115 static PyObject *_wrap_new_wxHelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
116 PyObject * _resultobj;
117 wxHelpEvent * _result;
118 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
119 wxWindowID _arg1 = (wxWindowID ) 0;
120 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
121 wxPoint temp;
122 PyObject * _obj2 = 0;
123 char *_kwnames[] = { "type","id","pt", NULL };
124 char _ptemp[128];
125
126 self = self;
127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiO:new_wxHelpEvent",_kwnames,&_arg0,&_arg1,&_obj2))
128 return NULL;
129 if (_obj2)
130 {
131 _arg2 = &temp;
132 if (! wxPoint_helper(_obj2, &_arg2))
133 return NULL;
134 }
135 {
136 PyThreadState* __tstate = wxPyBeginAllowThreads();
137 _result = (wxHelpEvent *)new_wxHelpEvent(_arg0,_arg1,*_arg2);
138
139 wxPyEndAllowThreads(__tstate);
140 if (PyErr_Occurred()) return NULL;
141 } if (_result) {
142 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpEvent_p");
143 _resultobj = Py_BuildValue("s",_ptemp);
144 } else {
145 Py_INCREF(Py_None);
146 _resultobj = Py_None;
147 }
148 return _resultobj;
149 }
150
151 #define wxHelpEvent_GetPosition(_swigobj) (_swigobj->GetPosition())
152 static PyObject *_wrap_wxHelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
153 PyObject * _resultobj;
154 wxPoint * _result;
155 wxHelpEvent * _arg0;
156 PyObject * _argo0 = 0;
157 char *_kwnames[] = { "self", NULL };
158 char _ptemp[128];
159
160 self = self;
161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetPosition",_kwnames,&_argo0))
162 return NULL;
163 if (_argo0) {
164 if (_argo0 == Py_None) { _arg0 = NULL; }
165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetPosition. Expected _wxHelpEvent_p.");
167 return NULL;
168 }
169 }
170 {
171 PyThreadState* __tstate = wxPyBeginAllowThreads();
172 const wxPoint & _result_ref = wxHelpEvent_GetPosition(_arg0);
173 _result = (wxPoint *) &_result_ref;
174
175 wxPyEndAllowThreads(__tstate);
176 if (PyErr_Occurred()) return NULL;
177 } if (_result) {
178 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
179 _resultobj = Py_BuildValue("s",_ptemp);
180 } else {
181 Py_INCREF(Py_None);
182 _resultobj = Py_None;
183 }
184 return _resultobj;
185 }
186
187 #define wxHelpEvent_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0))
188 static PyObject *_wrap_wxHelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
189 PyObject * _resultobj;
190 wxHelpEvent * _arg0;
191 wxPoint * _arg1;
192 PyObject * _argo0 = 0;
193 wxPoint temp;
194 PyObject * _obj1 = 0;
195 char *_kwnames[] = { "self","pos", NULL };
196
197 self = self;
198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetPosition",_kwnames,&_argo0,&_obj1))
199 return NULL;
200 if (_argo0) {
201 if (_argo0 == Py_None) { _arg0 = NULL; }
202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetPosition. Expected _wxHelpEvent_p.");
204 return NULL;
205 }
206 }
207 {
208 _arg1 = &temp;
209 if (! wxPoint_helper(_obj1, &_arg1))
210 return NULL;
211 }
212 {
213 PyThreadState* __tstate = wxPyBeginAllowThreads();
214 wxHelpEvent_SetPosition(_arg0,*_arg1);
215
216 wxPyEndAllowThreads(__tstate);
217 if (PyErr_Occurred()) return NULL;
218 } Py_INCREF(Py_None);
219 _resultobj = Py_None;
220 return _resultobj;
221 }
222
223 #define wxHelpEvent_GetLink(_swigobj) (_swigobj->GetLink())
224 static PyObject *_wrap_wxHelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
225 PyObject * _resultobj;
226 wxString * _result;
227 wxHelpEvent * _arg0;
228 PyObject * _argo0 = 0;
229 char *_kwnames[] = { "self", NULL };
230
231 self = self;
232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetLink",_kwnames,&_argo0))
233 return NULL;
234 if (_argo0) {
235 if (_argo0 == Py_None) { _arg0 = NULL; }
236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetLink. Expected _wxHelpEvent_p.");
238 return NULL;
239 }
240 }
241 {
242 PyThreadState* __tstate = wxPyBeginAllowThreads();
243 const wxString & _result_ref = wxHelpEvent_GetLink(_arg0);
244 _result = (wxString *) &_result_ref;
245
246 wxPyEndAllowThreads(__tstate);
247 if (PyErr_Occurred()) return NULL;
248 }{
249 #if wxUSE_UNICODE
250 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
251 #else
252 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
253 #endif
254 }
255 return _resultobj;
256 }
257
258 #define wxHelpEvent_SetLink(_swigobj,_swigarg0) (_swigobj->SetLink(_swigarg0))
259 static PyObject *_wrap_wxHelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
260 PyObject * _resultobj;
261 wxHelpEvent * _arg0;
262 wxString * _arg1;
263 PyObject * _argo0 = 0;
264 PyObject * _obj1 = 0;
265 char *_kwnames[] = { "self","link", NULL };
266
267 self = self;
268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetLink",_kwnames,&_argo0,&_obj1))
269 return NULL;
270 if (_argo0) {
271 if (_argo0 == Py_None) { _arg0 = NULL; }
272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetLink. Expected _wxHelpEvent_p.");
274 return NULL;
275 }
276 }
277 {
278 _arg1 = wxString_in_helper(_obj1);
279 if (_arg1 == NULL)
280 return NULL;
281 }
282 {
283 PyThreadState* __tstate = wxPyBeginAllowThreads();
284 wxHelpEvent_SetLink(_arg0,*_arg1);
285
286 wxPyEndAllowThreads(__tstate);
287 if (PyErr_Occurred()) return NULL;
288 } Py_INCREF(Py_None);
289 _resultobj = Py_None;
290 {
291 if (_obj1)
292 delete _arg1;
293 }
294 return _resultobj;
295 }
296
297 #define wxHelpEvent_GetTarget(_swigobj) (_swigobj->GetTarget())
298 static PyObject *_wrap_wxHelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
299 PyObject * _resultobj;
300 wxString * _result;
301 wxHelpEvent * _arg0;
302 PyObject * _argo0 = 0;
303 char *_kwnames[] = { "self", NULL };
304
305 self = self;
306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetTarget",_kwnames,&_argo0))
307 return NULL;
308 if (_argo0) {
309 if (_argo0 == Py_None) { _arg0 = NULL; }
310 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
311 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetTarget. Expected _wxHelpEvent_p.");
312 return NULL;
313 }
314 }
315 {
316 PyThreadState* __tstate = wxPyBeginAllowThreads();
317 const wxString & _result_ref = wxHelpEvent_GetTarget(_arg0);
318 _result = (wxString *) &_result_ref;
319
320 wxPyEndAllowThreads(__tstate);
321 if (PyErr_Occurred()) return NULL;
322 }{
323 #if wxUSE_UNICODE
324 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
325 #else
326 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
327 #endif
328 }
329 return _resultobj;
330 }
331
332 #define wxHelpEvent_SetTarget(_swigobj,_swigarg0) (_swigobj->SetTarget(_swigarg0))
333 static PyObject *_wrap_wxHelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
334 PyObject * _resultobj;
335 wxHelpEvent * _arg0;
336 wxString * _arg1;
337 PyObject * _argo0 = 0;
338 PyObject * _obj1 = 0;
339 char *_kwnames[] = { "self","target", NULL };
340
341 self = self;
342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetTarget",_kwnames,&_argo0,&_obj1))
343 return NULL;
344 if (_argo0) {
345 if (_argo0 == Py_None) { _arg0 = NULL; }
346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) {
347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetTarget. Expected _wxHelpEvent_p.");
348 return NULL;
349 }
350 }
351 {
352 _arg1 = wxString_in_helper(_obj1);
353 if (_arg1 == NULL)
354 return NULL;
355 }
356 {
357 PyThreadState* __tstate = wxPyBeginAllowThreads();
358 wxHelpEvent_SetTarget(_arg0,*_arg1);
359
360 wxPyEndAllowThreads(__tstate);
361 if (PyErr_Occurred()) return NULL;
362 } Py_INCREF(Py_None);
363 _resultobj = Py_None;
364 {
365 if (_obj1)
366 delete _arg1;
367 }
368 return _resultobj;
369 }
370
371 static void *SwigwxContextHelpTowxObject(void *ptr) {
372 wxContextHelp *src;
373 wxObject *dest;
374 src = (wxContextHelp *) ptr;
375 dest = (wxObject *) src;
376 return (void *) dest;
377 }
378
379 #define new_wxContextHelp(_swigarg0,_swigarg1) (new wxContextHelp(_swigarg0,_swigarg1))
380 static PyObject *_wrap_new_wxContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
381 PyObject * _resultobj;
382 wxContextHelp * _result;
383 wxWindow * _arg0 = (wxWindow *) NULL;
384 bool _arg1 = (bool ) TRUE;
385 PyObject * _argo0 = 0;
386 int tempbool1 = (int) TRUE;
387 char *_kwnames[] = { "window","doNow", NULL };
388 char _ptemp[128];
389
390 self = self;
391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxContextHelp",_kwnames,&_argo0,&tempbool1))
392 return NULL;
393 if (_argo0) {
394 if (_argo0 == Py_None) { _arg0 = NULL; }
395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxContextHelp. Expected _wxWindow_p.");
397 return NULL;
398 }
399 }
400 _arg1 = (bool ) tempbool1;
401 {
402 PyThreadState* __tstate = wxPyBeginAllowThreads();
403 _result = (wxContextHelp *)new_wxContextHelp(_arg0,_arg1);
404
405 wxPyEndAllowThreads(__tstate);
406 if (PyErr_Occurred()) return NULL;
407 } if (_result) {
408 SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextHelp_p");
409 _resultobj = Py_BuildValue("s",_ptemp);
410 } else {
411 Py_INCREF(Py_None);
412 _resultobj = Py_None;
413 }
414 return _resultobj;
415 }
416
417 #define delete_wxContextHelp(_swigobj) (delete _swigobj)
418 static PyObject *_wrap_delete_wxContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
419 PyObject * _resultobj;
420 wxContextHelp * _arg0;
421 PyObject * _argo0 = 0;
422 char *_kwnames[] = { "self", NULL };
423
424 self = self;
425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxContextHelp",_kwnames,&_argo0))
426 return NULL;
427 if (_argo0) {
428 if (_argo0 == Py_None) { _arg0 = NULL; }
429 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) {
430 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxContextHelp. Expected _wxContextHelp_p.");
431 return NULL;
432 }
433 }
434 {
435 PyThreadState* __tstate = wxPyBeginAllowThreads();
436 delete_wxContextHelp(_arg0);
437
438 wxPyEndAllowThreads(__tstate);
439 if (PyErr_Occurred()) return NULL;
440 } Py_INCREF(Py_None);
441 _resultobj = Py_None;
442 return _resultobj;
443 }
444
445 #define wxContextHelp_BeginContextHelp(_swigobj,_swigarg0) (_swigobj->BeginContextHelp(_swigarg0))
446 static PyObject *_wrap_wxContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
447 PyObject * _resultobj;
448 bool _result;
449 wxContextHelp * _arg0;
450 wxWindow * _arg1 = (wxWindow *) NULL;
451 PyObject * _argo0 = 0;
452 PyObject * _argo1 = 0;
453 char *_kwnames[] = { "self","window", NULL };
454
455 self = self;
456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxContextHelp_BeginContextHelp",_kwnames,&_argo0,&_argo1))
457 return NULL;
458 if (_argo0) {
459 if (_argo0 == Py_None) { _arg0 = NULL; }
460 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) {
461 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextHelp_BeginContextHelp. Expected _wxContextHelp_p.");
462 return NULL;
463 }
464 }
465 if (_argo1) {
466 if (_argo1 == Py_None) { _arg1 = NULL; }
467 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
468 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxContextHelp_BeginContextHelp. Expected _wxWindow_p.");
469 return NULL;
470 }
471 }
472 {
473 PyThreadState* __tstate = wxPyBeginAllowThreads();
474 _result = (bool )wxContextHelp_BeginContextHelp(_arg0,_arg1);
475
476 wxPyEndAllowThreads(__tstate);
477 if (PyErr_Occurred()) return NULL;
478 } _resultobj = Py_BuildValue("i",_result);
479 return _resultobj;
480 }
481
482 #define wxContextHelp_EndContextHelp(_swigobj) (_swigobj->EndContextHelp())
483 static PyObject *_wrap_wxContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
484 PyObject * _resultobj;
485 bool _result;
486 wxContextHelp * _arg0;
487 PyObject * _argo0 = 0;
488 char *_kwnames[] = { "self", NULL };
489
490 self = self;
491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxContextHelp_EndContextHelp",_kwnames,&_argo0))
492 return NULL;
493 if (_argo0) {
494 if (_argo0 == Py_None) { _arg0 = NULL; }
495 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) {
496 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextHelp_EndContextHelp. Expected _wxContextHelp_p.");
497 return NULL;
498 }
499 }
500 {
501 PyThreadState* __tstate = wxPyBeginAllowThreads();
502 _result = (bool )wxContextHelp_EndContextHelp(_arg0);
503
504 wxPyEndAllowThreads(__tstate);
505 if (PyErr_Occurred()) return NULL;
506 } _resultobj = Py_BuildValue("i",_result);
507 return _resultobj;
508 }
509
510 static void *SwigwxContextHelpButtonTowxBitmapButton(void *ptr) {
511 wxContextHelpButton *src;
512 wxBitmapButton *dest;
513 src = (wxContextHelpButton *) ptr;
514 dest = (wxBitmapButton *) src;
515 return (void *) dest;
516 }
517
518 static void *SwigwxContextHelpButtonTowxButton(void *ptr) {
519 wxContextHelpButton *src;
520 wxButton *dest;
521 src = (wxContextHelpButton *) ptr;
522 dest = (wxButton *) src;
523 return (void *) dest;
524 }
525
526 static void *SwigwxContextHelpButtonTowxControl(void *ptr) {
527 wxContextHelpButton *src;
528 wxControl *dest;
529 src = (wxContextHelpButton *) ptr;
530 dest = (wxControl *) src;
531 return (void *) dest;
532 }
533
534 static void *SwigwxContextHelpButtonTowxWindow(void *ptr) {
535 wxContextHelpButton *src;
536 wxWindow *dest;
537 src = (wxContextHelpButton *) ptr;
538 dest = (wxWindow *) src;
539 return (void *) dest;
540 }
541
542 static void *SwigwxContextHelpButtonTowxEvtHandler(void *ptr) {
543 wxContextHelpButton *src;
544 wxEvtHandler *dest;
545 src = (wxContextHelpButton *) ptr;
546 dest = (wxEvtHandler *) src;
547 return (void *) dest;
548 }
549
550 static void *SwigwxContextHelpButtonTowxObject(void *ptr) {
551 wxContextHelpButton *src;
552 wxObject *dest;
553 src = (wxContextHelpButton *) ptr;
554 dest = (wxObject *) src;
555 return (void *) dest;
556 }
557
558 #define new_wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
559 static PyObject *_wrap_new_wxContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) {
560 PyObject * _resultobj;
561 wxContextHelpButton * _result;
562 wxWindow * _arg0;
563 wxWindowID _arg1 = (wxWindowID ) (wxID_CONTEXT_HELP);
564 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
565 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
566 long _arg4 = (long ) wxBU_AUTODRAW;
567 PyObject * _argo0 = 0;
568 wxPoint temp;
569 PyObject * _obj2 = 0;
570 wxSize temp0;
571 PyObject * _obj3 = 0;
572 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
573 char _ptemp[128];
574
575 self = self;
576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxContextHelpButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
577 return NULL;
578 if (_argo0) {
579 if (_argo0 == Py_None) { _arg0 = NULL; }
580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxContextHelpButton. Expected _wxWindow_p.");
582 return NULL;
583 }
584 }
585 if (_obj2)
586 {
587 _arg2 = &temp;
588 if (! wxPoint_helper(_obj2, &_arg2))
589 return NULL;
590 }
591 if (_obj3)
592 {
593 _arg3 = &temp0;
594 if (! wxSize_helper(_obj3, &_arg3))
595 return NULL;
596 }
597 {
598 PyThreadState* __tstate = wxPyBeginAllowThreads();
599 _result = (wxContextHelpButton *)new_wxContextHelpButton(_arg0,_arg1,*_arg2,*_arg3,_arg4);
600
601 wxPyEndAllowThreads(__tstate);
602 if (PyErr_Occurred()) return NULL;
603 } if (_result) {
604 SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextHelpButton_p");
605 _resultobj = Py_BuildValue("s",_ptemp);
606 } else {
607 Py_INCREF(Py_None);
608 _resultobj = Py_None;
609 }
610 return _resultobj;
611 }
612
613 static PyObject *_wrap_wxHelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
614 PyObject * _resultobj;
615 wxHelpProvider * _result;
616 wxHelpProvider * _arg0;
617 PyObject * _argo0 = 0;
618 char *_kwnames[] = { "helpProvider", NULL };
619 char _ptemp[128];
620
621 self = self;
622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpProvider_Set",_kwnames,&_argo0))
623 return NULL;
624 if (_argo0) {
625 if (_argo0 == Py_None) { _arg0 = NULL; }
626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_Set. Expected _wxHelpProvider_p.");
628 return NULL;
629 }
630 }
631 {
632 PyThreadState* __tstate = wxPyBeginAllowThreads();
633 _result = (wxHelpProvider *)wxHelpProvider::Set(_arg0);
634
635 wxPyEndAllowThreads(__tstate);
636 if (PyErr_Occurred()) return NULL;
637 } if (_result) {
638 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpProvider_p");
639 _resultobj = Py_BuildValue("s",_ptemp);
640 } else {
641 Py_INCREF(Py_None);
642 _resultobj = Py_None;
643 }
644 return _resultobj;
645 }
646
647 static PyObject *_wrap_wxHelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
648 PyObject * _resultobj;
649 wxHelpProvider * _result;
650 char *_kwnames[] = { NULL };
651 char _ptemp[128];
652
653 self = self;
654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxHelpProvider_Get",_kwnames))
655 return NULL;
656 {
657 PyThreadState* __tstate = wxPyBeginAllowThreads();
658 _result = (wxHelpProvider *)wxHelpProvider::Get();
659
660 wxPyEndAllowThreads(__tstate);
661 if (PyErr_Occurred()) return NULL;
662 } if (_result) {
663 SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpProvider_p");
664 _resultobj = Py_BuildValue("s",_ptemp);
665 } else {
666 Py_INCREF(Py_None);
667 _resultobj = Py_None;
668 }
669 return _resultobj;
670 }
671
672 #define wxHelpProvider_GetHelp(_swigobj,_swigarg0) (_swigobj->GetHelp(_swigarg0))
673 static PyObject *_wrap_wxHelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
674 PyObject * _resultobj;
675 wxString * _result;
676 wxHelpProvider * _arg0;
677 wxWindow * _arg1;
678 PyObject * _argo0 = 0;
679 PyObject * _argo1 = 0;
680 char *_kwnames[] = { "self","window", NULL };
681
682 self = self;
683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpProvider_GetHelp",_kwnames,&_argo0,&_argo1))
684 return NULL;
685 if (_argo0) {
686 if (_argo0 == Py_None) { _arg0 = NULL; }
687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_GetHelp. Expected _wxHelpProvider_p.");
689 return NULL;
690 }
691 }
692 if (_argo1) {
693 if (_argo1 == Py_None) { _arg1 = NULL; }
694 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
695 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_GetHelp. Expected _wxWindow_p.");
696 return NULL;
697 }
698 }
699 {
700 PyThreadState* __tstate = wxPyBeginAllowThreads();
701 _result = new wxString (wxHelpProvider_GetHelp(_arg0,_arg1));
702
703 wxPyEndAllowThreads(__tstate);
704 if (PyErr_Occurred()) return NULL;
705 }{
706 #if wxUSE_UNICODE
707 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
708 #else
709 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
710 #endif
711 }
712 {
713 delete _result;
714 }
715 return _resultobj;
716 }
717
718 #define wxHelpProvider_ShowHelp(_swigobj,_swigarg0) (_swigobj->ShowHelp(_swigarg0))
719 static PyObject *_wrap_wxHelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
720 PyObject * _resultobj;
721 bool _result;
722 wxHelpProvider * _arg0;
723 wxWindowBase * _arg1;
724 PyObject * _argo0 = 0;
725 PyObject * _argo1 = 0;
726 char *_kwnames[] = { "self","window", NULL };
727
728 self = self;
729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpProvider_ShowHelp",_kwnames,&_argo0,&_argo1))
730 return NULL;
731 if (_argo0) {
732 if (_argo0 == Py_None) { _arg0 = NULL; }
733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_ShowHelp. Expected _wxHelpProvider_p.");
735 return NULL;
736 }
737 }
738 if (_argo1) {
739 if (_argo1 == Py_None) { _arg1 = NULL; }
740 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindowBase_p")) {
741 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_ShowHelp. Expected _wxWindowBase_p.");
742 return NULL;
743 }
744 }
745 {
746 PyThreadState* __tstate = wxPyBeginAllowThreads();
747 _result = (bool )wxHelpProvider_ShowHelp(_arg0,_arg1);
748
749 wxPyEndAllowThreads(__tstate);
750 if (PyErr_Occurred()) return NULL;
751 } _resultobj = Py_BuildValue("i",_result);
752 return _resultobj;
753 }
754
755 #define wxHelpProvider_AddHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1))
756 static PyObject *_wrap_wxHelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
757 PyObject * _resultobj;
758 wxHelpProvider * _arg0;
759 wxWindowBase * _arg1;
760 wxString * _arg2;
761 PyObject * _argo0 = 0;
762 PyObject * _argo1 = 0;
763 PyObject * _obj2 = 0;
764 char *_kwnames[] = { "self","window","text", NULL };
765
766 self = self;
767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHelpProvider_AddHelp",_kwnames,&_argo0,&_argo1,&_obj2))
768 return NULL;
769 if (_argo0) {
770 if (_argo0 == Py_None) { _arg0 = NULL; }
771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_AddHelp. Expected _wxHelpProvider_p.");
773 return NULL;
774 }
775 }
776 if (_argo1) {
777 if (_argo1 == Py_None) { _arg1 = NULL; }
778 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindowBase_p")) {
779 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_AddHelp. Expected _wxWindowBase_p.");
780 return NULL;
781 }
782 }
783 {
784 _arg2 = wxString_in_helper(_obj2);
785 if (_arg2 == NULL)
786 return NULL;
787 }
788 {
789 PyThreadState* __tstate = wxPyBeginAllowThreads();
790 wxHelpProvider_AddHelp(_arg0,_arg1,*_arg2);
791
792 wxPyEndAllowThreads(__tstate);
793 if (PyErr_Occurred()) return NULL;
794 } Py_INCREF(Py_None);
795 _resultobj = Py_None;
796 {
797 if (_obj2)
798 delete _arg2;
799 }
800 return _resultobj;
801 }
802
803 #define wxHelpProvider_AddHelpById(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1))
804 static PyObject *_wrap_wxHelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) {
805 PyObject * _resultobj;
806 wxHelpProvider * _arg0;
807 wxWindowID _arg1;
808 wxString * _arg2;
809 PyObject * _argo0 = 0;
810 PyObject * _obj2 = 0;
811 char *_kwnames[] = { "self","id","text", NULL };
812
813 self = self;
814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxHelpProvider_AddHelpById",_kwnames,&_argo0,&_arg1,&_obj2))
815 return NULL;
816 if (_argo0) {
817 if (_argo0 == Py_None) { _arg0 = NULL; }
818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_AddHelpById. Expected _wxHelpProvider_p.");
820 return NULL;
821 }
822 }
823 {
824 _arg2 = wxString_in_helper(_obj2);
825 if (_arg2 == NULL)
826 return NULL;
827 }
828 {
829 PyThreadState* __tstate = wxPyBeginAllowThreads();
830 wxHelpProvider_AddHelpById(_arg0,_arg1,*_arg2);
831
832 wxPyEndAllowThreads(__tstate);
833 if (PyErr_Occurred()) return NULL;
834 } Py_INCREF(Py_None);
835 _resultobj = Py_None;
836 {
837 if (_obj2)
838 delete _arg2;
839 }
840 return _resultobj;
841 }
842
843 static void wxHelpProvider_Destroy(wxHelpProvider *self) { delete self; }
844 static PyObject *_wrap_wxHelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
845 PyObject * _resultobj;
846 wxHelpProvider * _arg0;
847 PyObject * _argo0 = 0;
848 char *_kwnames[] = { "self", NULL };
849
850 self = self;
851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpProvider_Destroy",_kwnames,&_argo0))
852 return NULL;
853 if (_argo0) {
854 if (_argo0 == Py_None) { _arg0 = NULL; }
855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) {
856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_Destroy. Expected _wxHelpProvider_p.");
857 return NULL;
858 }
859 }
860 {
861 PyThreadState* __tstate = wxPyBeginAllowThreads();
862 wxHelpProvider_Destroy(_arg0);
863
864 wxPyEndAllowThreads(__tstate);
865 if (PyErr_Occurred()) return NULL;
866 } Py_INCREF(Py_None);
867 _resultobj = Py_None;
868 return _resultobj;
869 }
870
871 static void *SwigwxSimpleHelpProviderTowxHelpProvider(void *ptr) {
872 wxSimpleHelpProvider *src;
873 wxHelpProvider *dest;
874 src = (wxSimpleHelpProvider *) ptr;
875 dest = (wxHelpProvider *) src;
876 return (void *) dest;
877 }
878
879 #define new_wxSimpleHelpProvider() (new wxSimpleHelpProvider())
880 static PyObject *_wrap_new_wxSimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
881 PyObject * _resultobj;
882 wxSimpleHelpProvider * _result;
883 char *_kwnames[] = { NULL };
884 char _ptemp[128];
885
886 self = self;
887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxSimpleHelpProvider",_kwnames))
888 return NULL;
889 {
890 PyThreadState* __tstate = wxPyBeginAllowThreads();
891 _result = (wxSimpleHelpProvider *)new_wxSimpleHelpProvider();
892
893 wxPyEndAllowThreads(__tstate);
894 if (PyErr_Occurred()) return NULL;
895 } if (_result) {
896 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSimpleHelpProvider_p");
897 _resultobj = Py_BuildValue("s",_ptemp);
898 } else {
899 Py_INCREF(Py_None);
900 _resultobj = Py_None;
901 }
902 return _resultobj;
903 }
904
905 static PyMethodDef helpcMethods[] = {
906 { "new_wxSimpleHelpProvider", (PyCFunction) _wrap_new_wxSimpleHelpProvider, METH_VARARGS | METH_KEYWORDS },
907 { "wxHelpProvider_Destroy", (PyCFunction) _wrap_wxHelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
908 { "wxHelpProvider_AddHelpById", (PyCFunction) _wrap_wxHelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS },
909 { "wxHelpProvider_AddHelp", (PyCFunction) _wrap_wxHelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS },
910 { "wxHelpProvider_ShowHelp", (PyCFunction) _wrap_wxHelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS },
911 { "wxHelpProvider_GetHelp", (PyCFunction) _wrap_wxHelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS },
912 { "wxHelpProvider_Get", (PyCFunction) _wrap_wxHelpProvider_Get, METH_VARARGS | METH_KEYWORDS },
913 { "wxHelpProvider_Set", (PyCFunction) _wrap_wxHelpProvider_Set, METH_VARARGS | METH_KEYWORDS },
914 { "new_wxContextHelpButton", (PyCFunction) _wrap_new_wxContextHelpButton, METH_VARARGS | METH_KEYWORDS },
915 { "wxContextHelp_EndContextHelp", (PyCFunction) _wrap_wxContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS },
916 { "wxContextHelp_BeginContextHelp", (PyCFunction) _wrap_wxContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS },
917 { "delete_wxContextHelp", (PyCFunction) _wrap_delete_wxContextHelp, METH_VARARGS | METH_KEYWORDS },
918 { "new_wxContextHelp", (PyCFunction) _wrap_new_wxContextHelp, METH_VARARGS | METH_KEYWORDS },
919 { "wxHelpEvent_SetTarget", (PyCFunction) _wrap_wxHelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS },
920 { "wxHelpEvent_GetTarget", (PyCFunction) _wrap_wxHelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS },
921 { "wxHelpEvent_SetLink", (PyCFunction) _wrap_wxHelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS },
922 { "wxHelpEvent_GetLink", (PyCFunction) _wrap_wxHelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS },
923 { "wxHelpEvent_SetPosition", (PyCFunction) _wrap_wxHelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
924 { "wxHelpEvent_GetPosition", (PyCFunction) _wrap_wxHelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
925 { "new_wxHelpEvent", (PyCFunction) _wrap_new_wxHelpEvent, METH_VARARGS | METH_KEYWORDS },
926 { NULL, NULL }
927 };
928 #ifdef __cplusplus
929 }
930 #endif
931 /*
932 * This table is used by the pointer type-checker
933 */
934 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
935 { "_wxEvent","_wxHelpEvent",SwigwxHelpEventTowxEvent},
936 { "_signed_long","_long",0},
937 { "_wxPrintQuality","_wxCoord",0},
938 { "_wxPrintQuality","_int",0},
939 { "_wxPrintQuality","_signed_int",0},
940 { "_wxPrintQuality","_unsigned_int",0},
941 { "_wxPrintQuality","_wxWindowID",0},
942 { "_wxPrintQuality","_uint",0},
943 { "_wxPrintQuality","_EBool",0},
944 { "_wxPrintQuality","_size_t",0},
945 { "_wxPrintQuality","_time_t",0},
946 { "_byte","_unsigned_char",0},
947 { "_long","_unsigned_long",0},
948 { "_long","_signed_long",0},
949 { "_wxBitmapButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxBitmapButton},
950 { "_size_t","_wxCoord",0},
951 { "_size_t","_wxPrintQuality",0},
952 { "_size_t","_time_t",0},
953 { "_size_t","_unsigned_int",0},
954 { "_size_t","_int",0},
955 { "_size_t","_wxWindowID",0},
956 { "_size_t","_uint",0},
957 { "_uint","_wxCoord",0},
958 { "_uint","_wxPrintQuality",0},
959 { "_uint","_time_t",0},
960 { "_uint","_size_t",0},
961 { "_uint","_unsigned_int",0},
962 { "_uint","_int",0},
963 { "_uint","_wxWindowID",0},
964 { "_wxChar","_char",0},
965 { "_wxCommandEvent","_wxHelpEvent",SwigwxHelpEventTowxCommandEvent},
966 { "_char","_wxChar",0},
967 { "_wxHelpProvider","_wxSimpleHelpProvider",SwigwxSimpleHelpProviderTowxHelpProvider},
968 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
969 { "_EBool","_wxCoord",0},
970 { "_EBool","_wxPrintQuality",0},
971 { "_EBool","_signed_int",0},
972 { "_EBool","_int",0},
973 { "_EBool","_wxWindowID",0},
974 { "_unsigned_long","_long",0},
975 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
976 { "_signed_int","_wxCoord",0},
977 { "_signed_int","_wxPrintQuality",0},
978 { "_signed_int","_EBool",0},
979 { "_signed_int","_wxWindowID",0},
980 { "_signed_int","_int",0},
981 { "_WXTYPE","_short",0},
982 { "_WXTYPE","_signed_short",0},
983 { "_WXTYPE","_unsigned_short",0},
984 { "_unsigned_short","_WXTYPE",0},
985 { "_unsigned_short","_short",0},
986 { "_wxObject","_wxContextHelpButton",SwigwxContextHelpButtonTowxObject},
987 { "_wxObject","_wxContextHelp",SwigwxContextHelpTowxObject},
988 { "_wxObject","_wxHelpEvent",SwigwxHelpEventTowxObject},
989 { "_signed_short","_WXTYPE",0},
990 { "_signed_short","_short",0},
991 { "_unsigned_char","_byte",0},
992 { "_wxControl","_wxContextHelpButton",SwigwxContextHelpButtonTowxControl},
993 { "_unsigned_int","_wxCoord",0},
994 { "_unsigned_int","_wxPrintQuality",0},
995 { "_unsigned_int","_time_t",0},
996 { "_unsigned_int","_size_t",0},
997 { "_unsigned_int","_uint",0},
998 { "_unsigned_int","_wxWindowID",0},
999 { "_unsigned_int","_int",0},
1000 { "_short","_WXTYPE",0},
1001 { "_short","_unsigned_short",0},
1002 { "_short","_signed_short",0},
1003 { "_wxWindowID","_wxCoord",0},
1004 { "_wxWindowID","_wxPrintQuality",0},
1005 { "_wxWindowID","_time_t",0},
1006 { "_wxWindowID","_size_t",0},
1007 { "_wxWindowID","_EBool",0},
1008 { "_wxWindowID","_uint",0},
1009 { "_wxWindowID","_int",0},
1010 { "_wxWindowID","_signed_int",0},
1011 { "_wxWindowID","_unsigned_int",0},
1012 { "_int","_wxCoord",0},
1013 { "_int","_wxPrintQuality",0},
1014 { "_int","_time_t",0},
1015 { "_int","_size_t",0},
1016 { "_int","_EBool",0},
1017 { "_int","_uint",0},
1018 { "_int","_wxWindowID",0},
1019 { "_int","_unsigned_int",0},
1020 { "_int","_signed_int",0},
1021 { "_time_t","_wxCoord",0},
1022 { "_time_t","_wxPrintQuality",0},
1023 { "_time_t","_unsigned_int",0},
1024 { "_time_t","_int",0},
1025 { "_time_t","_wxWindowID",0},
1026 { "_time_t","_uint",0},
1027 { "_time_t","_size_t",0},
1028 { "_wxButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxButton},
1029 { "_wxCoord","_int",0},
1030 { "_wxCoord","_signed_int",0},
1031 { "_wxCoord","_unsigned_int",0},
1032 { "_wxCoord","_wxWindowID",0},
1033 { "_wxCoord","_uint",0},
1034 { "_wxCoord","_EBool",0},
1035 { "_wxCoord","_size_t",0},
1036 { "_wxCoord","_time_t",0},
1037 { "_wxCoord","_wxPrintQuality",0},
1038 { "_wxEvtHandler","_wxContextHelpButton",SwigwxContextHelpButtonTowxEvtHandler},
1039 { "_wxWindow","_wxContextHelpButton",SwigwxContextHelpButtonTowxWindow},
1040 {0,0,0}};
1041
1042 static PyObject *SWIG_globals;
1043 #ifdef __cplusplus
1044 extern "C"
1045 #endif
1046 SWIGEXPORT(void) inithelpc() {
1047 PyObject *m, *d;
1048 SWIG_globals = SWIG_newvarlink();
1049 m = Py_InitModule("helpc", helpcMethods);
1050 d = PyModule_GetDict(m);
1051 PyDict_SetItemString(d,"wxFRAME_EX_CONTEXTHELP", PyInt_FromLong((long) wxFRAME_EX_CONTEXTHELP));
1052 PyDict_SetItemString(d,"wxDIALOG_EX_CONTEXTHELP", PyInt_FromLong((long) wxDIALOG_EX_CONTEXTHELP));
1053 PyDict_SetItemString(d,"wxID_CONTEXT_HELP", PyInt_FromLong((long) wxID_CONTEXT_HELP));
1054 PyDict_SetItemString(d,"wxEVT_HELP", PyInt_FromLong((long) wxEVT_HELP));
1055 PyDict_SetItemString(d,"wxEVT_DETAILED_HELP", PyInt_FromLong((long) wxEVT_DETAILED_HELP));
1056 {
1057 int i;
1058 for (i = 0; _swig_mapping[i].n1; i++)
1059 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1060 }
1061 }