]>
Commit | Line | Data |
---|---|---|
cd096152 RD |
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__) | |
0220cbc1 | 30 | # define SWIGEXPORT(a) a _export |
cd096152 | 31 | # else |
0220cbc1 | 32 | # define SWIGEXPORT(a) a |
cd096152 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
0220cbc1 | 36 | # define SWIGEXPORT(a) a |
cd096152 RD |
37 | #endif |
38 | ||
cd096152 RD |
39 | #ifdef __cplusplus |
40 | extern "C" { | |
41 | #endif | |
0220cbc1 | 42 | #include "Python.h" |
cd096152 RD |
43 | extern void SWIG_MakePtr(char *, void *, char *); |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
52 | #define SWIG_init inithelpc | |
53 | ||
54 | #define SWIG_name "helpc" | |
55 | ||
56 | #include "export.h" | |
57 | #include <wx/cshelp.h> | |
58 | ||
0220cbc1 RD |
59 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { |
60 | PyObject* o2; | |
61 | if (!target) { | |
62 | target = o; | |
63 | } else if (target == Py_None) { | |
64 | Py_DECREF(Py_None); | |
65 | target = o; | |
66 | } else { | |
67 | if (!PyList_Check(target)) { | |
68 | o2 = target; | |
69 | target = PyList_New(0); | |
70 | PyList_Append(target, o2); | |
71 | Py_XDECREF(o2); | |
72 | } | |
73 | PyList_Append(target,o); | |
74 | Py_XDECREF(o); | |
75 | } | |
76 | return target; | |
77 | } | |
cd096152 RD |
78 | |
79 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
80 | PyObject* o2; | |
81 | PyObject* o3; | |
82 | ||
0220cbc1 | 83 | if (!target) { |
cd096152 | 84 | target = o; |
0220cbc1 | 85 | } else if (target == Py_None) { |
cd096152 RD |
86 | Py_DECREF(Py_None); |
87 | target = o; | |
0220cbc1 | 88 | } else { |
cd096152 RD |
89 | if (!PyTuple_Check(target)) { |
90 | o2 = target; | |
91 | target = PyTuple_New(1); | |
92 | PyTuple_SetItem(target, 0, o2); | |
93 | } | |
0220cbc1 RD |
94 | o3 = PyTuple_New(1); |
95 | PyTuple_SetItem(o3, 0, o); | |
cd096152 RD |
96 | |
97 | o2 = target; | |
0220cbc1 RD |
98 | target = PySequence_Concat(o2, o3); |
99 | Py_DECREF(o2); | |
cd096152 RD |
100 | Py_DECREF(o3); |
101 | } | |
102 | return target; | |
103 | } | |
104 | ||
105 | #if PYTHON_API_VERSION >= 1009 | |
106 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
107 | #else | |
0220cbc1 | 108 | static char* wxStringErrorMsg = "String type required"; |
cd096152 RD |
109 | #endif |
110 | #ifdef __cplusplus | |
111 | extern "C" { | |
112 | #endif | |
113 | static void *SwigwxHelpEventTowxCommandEvent(void *ptr) { | |
114 | wxHelpEvent *src; | |
115 | wxCommandEvent *dest; | |
116 | src = (wxHelpEvent *) ptr; | |
117 | dest = (wxCommandEvent *) src; | |
118 | return (void *) dest; | |
119 | } | |
120 | ||
121 | static void *SwigwxHelpEventTowxEvent(void *ptr) { | |
122 | wxHelpEvent *src; | |
123 | wxEvent *dest; | |
124 | src = (wxHelpEvent *) ptr; | |
125 | dest = (wxEvent *) src; | |
126 | return (void *) dest; | |
127 | } | |
128 | ||
129 | static void *SwigwxHelpEventTowxObject(void *ptr) { | |
130 | wxHelpEvent *src; | |
131 | wxObject *dest; | |
132 | src = (wxHelpEvent *) ptr; | |
133 | dest = (wxObject *) src; | |
134 | return (void *) dest; | |
135 | } | |
136 | ||
137 | #define new_wxHelpEvent(_swigarg0,_swigarg1,_swigarg2) (new wxHelpEvent(_swigarg0,_swigarg1,_swigarg2)) | |
138 | static PyObject *_wrap_new_wxHelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
139 | PyObject * _resultobj; | |
140 | wxHelpEvent * _result; | |
141 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
142 | wxWindowID _arg1 = (wxWindowID ) 0; | |
143 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
144 | wxPoint temp; | |
145 | PyObject * _obj2 = 0; | |
146 | char *_kwnames[] = { "type","id","pt", NULL }; | |
147 | char _ptemp[128]; | |
148 | ||
149 | self = self; | |
150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiO:new_wxHelpEvent",_kwnames,&_arg0,&_arg1,&_obj2)) | |
151 | return NULL; | |
152 | if (_obj2) | |
153 | { | |
154 | _arg2 = &temp; | |
155 | if (! wxPoint_helper(_obj2, &_arg2)) | |
156 | return NULL; | |
157 | } | |
158 | { | |
159 | wxPy_BEGIN_ALLOW_THREADS; | |
160 | _result = (wxHelpEvent *)new_wxHelpEvent(_arg0,_arg1,*_arg2); | |
161 | ||
162 | wxPy_END_ALLOW_THREADS; | |
163 | if (PyErr_Occurred()) return NULL; | |
164 | } if (_result) { | |
165 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpEvent_p"); | |
166 | _resultobj = Py_BuildValue("s",_ptemp); | |
167 | } else { | |
168 | Py_INCREF(Py_None); | |
169 | _resultobj = Py_None; | |
170 | } | |
171 | return _resultobj; | |
172 | } | |
173 | ||
174 | #define wxHelpEvent_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
175 | static PyObject *_wrap_wxHelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
176 | PyObject * _resultobj; | |
177 | wxPoint * _result; | |
178 | wxHelpEvent * _arg0; | |
179 | PyObject * _argo0 = 0; | |
180 | char *_kwnames[] = { "self", NULL }; | |
181 | char _ptemp[128]; | |
182 | ||
183 | self = self; | |
184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetPosition",_kwnames,&_argo0)) | |
185 | return NULL; | |
186 | if (_argo0) { | |
187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) { | |
189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetPosition. Expected _wxHelpEvent_p."); | |
190 | return NULL; | |
191 | } | |
192 | } | |
193 | { | |
194 | wxPy_BEGIN_ALLOW_THREADS; | |
195 | const wxPoint & _result_ref = wxHelpEvent_GetPosition(_arg0); | |
196 | _result = (wxPoint *) &_result_ref; | |
197 | ||
198 | wxPy_END_ALLOW_THREADS; | |
199 | if (PyErr_Occurred()) return NULL; | |
200 | } if (_result) { | |
201 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
202 | _resultobj = Py_BuildValue("s",_ptemp); | |
203 | } else { | |
204 | Py_INCREF(Py_None); | |
205 | _resultobj = Py_None; | |
206 | } | |
207 | return _resultobj; | |
208 | } | |
209 | ||
210 | #define wxHelpEvent_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0)) | |
211 | static PyObject *_wrap_wxHelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
212 | PyObject * _resultobj; | |
213 | wxHelpEvent * _arg0; | |
214 | wxPoint * _arg1; | |
215 | PyObject * _argo0 = 0; | |
216 | wxPoint temp; | |
217 | PyObject * _obj1 = 0; | |
218 | char *_kwnames[] = { "self","pos", NULL }; | |
219 | ||
220 | self = self; | |
221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetPosition",_kwnames,&_argo0,&_obj1)) | |
222 | return NULL; | |
223 | if (_argo0) { | |
224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) { | |
226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetPosition. Expected _wxHelpEvent_p."); | |
227 | return NULL; | |
228 | } | |
229 | } | |
230 | { | |
231 | _arg1 = &temp; | |
232 | if (! wxPoint_helper(_obj1, &_arg1)) | |
233 | return NULL; | |
234 | } | |
235 | { | |
236 | wxPy_BEGIN_ALLOW_THREADS; | |
237 | wxHelpEvent_SetPosition(_arg0,*_arg1); | |
238 | ||
239 | wxPy_END_ALLOW_THREADS; | |
240 | if (PyErr_Occurred()) return NULL; | |
241 | } Py_INCREF(Py_None); | |
242 | _resultobj = Py_None; | |
243 | return _resultobj; | |
244 | } | |
245 | ||
246 | #define wxHelpEvent_GetLink(_swigobj) (_swigobj->GetLink()) | |
247 | static PyObject *_wrap_wxHelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
248 | PyObject * _resultobj; | |
249 | wxString * _result; | |
250 | wxHelpEvent * _arg0; | |
251 | PyObject * _argo0 = 0; | |
252 | char *_kwnames[] = { "self", NULL }; | |
253 | ||
254 | self = self; | |
255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetLink",_kwnames,&_argo0)) | |
256 | return NULL; | |
257 | if (_argo0) { | |
258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) { | |
260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetLink. Expected _wxHelpEvent_p."); | |
261 | return NULL; | |
262 | } | |
263 | } | |
264 | { | |
265 | wxPy_BEGIN_ALLOW_THREADS; | |
266 | const wxString & _result_ref = wxHelpEvent_GetLink(_arg0); | |
267 | _result = (wxString *) &_result_ref; | |
268 | ||
269 | wxPy_END_ALLOW_THREADS; | |
270 | if (PyErr_Occurred()) return NULL; | |
271 | }{ | |
272 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
273 | } | |
274 | return _resultobj; | |
275 | } | |
276 | ||
277 | #define wxHelpEvent_SetLink(_swigobj,_swigarg0) (_swigobj->SetLink(_swigarg0)) | |
278 | static PyObject *_wrap_wxHelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
279 | PyObject * _resultobj; | |
280 | wxHelpEvent * _arg0; | |
281 | wxString * _arg1; | |
282 | PyObject * _argo0 = 0; | |
283 | PyObject * _obj1 = 0; | |
284 | char *_kwnames[] = { "self","link", NULL }; | |
285 | ||
286 | self = self; | |
287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetLink",_kwnames,&_argo0,&_obj1)) | |
288 | return NULL; | |
289 | if (_argo0) { | |
290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) { | |
292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetLink. Expected _wxHelpEvent_p."); | |
293 | return NULL; | |
294 | } | |
295 | } | |
296 | { | |
297 | #if PYTHON_API_VERSION >= 1009 | |
298 | char* tmpPtr; int tmpSize; | |
299 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
300 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
301 | return NULL; | |
302 | } | |
303 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
304 | return NULL; | |
305 | _arg1 = new wxString(tmpPtr, tmpSize); | |
306 | #else | |
307 | if (!PyString_Check(_obj1)) { | |
308 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
309 | return NULL; | |
310 | } | |
311 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
312 | #endif | |
313 | } | |
314 | { | |
315 | wxPy_BEGIN_ALLOW_THREADS; | |
316 | wxHelpEvent_SetLink(_arg0,*_arg1); | |
317 | ||
318 | wxPy_END_ALLOW_THREADS; | |
319 | if (PyErr_Occurred()) return NULL; | |
320 | } Py_INCREF(Py_None); | |
321 | _resultobj = Py_None; | |
322 | { | |
323 | if (_obj1) | |
324 | delete _arg1; | |
325 | } | |
326 | return _resultobj; | |
327 | } | |
328 | ||
329 | #define wxHelpEvent_GetTarget(_swigobj) (_swigobj->GetTarget()) | |
330 | static PyObject *_wrap_wxHelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
331 | PyObject * _resultobj; | |
332 | wxString * _result; | |
333 | wxHelpEvent * _arg0; | |
334 | PyObject * _argo0 = 0; | |
335 | char *_kwnames[] = { "self", NULL }; | |
336 | ||
337 | self = self; | |
338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpEvent_GetTarget",_kwnames,&_argo0)) | |
339 | return NULL; | |
340 | if (_argo0) { | |
341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) { | |
343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_GetTarget. Expected _wxHelpEvent_p."); | |
344 | return NULL; | |
345 | } | |
346 | } | |
347 | { | |
348 | wxPy_BEGIN_ALLOW_THREADS; | |
349 | const wxString & _result_ref = wxHelpEvent_GetTarget(_arg0); | |
350 | _result = (wxString *) &_result_ref; | |
351 | ||
352 | wxPy_END_ALLOW_THREADS; | |
353 | if (PyErr_Occurred()) return NULL; | |
354 | }{ | |
355 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
356 | } | |
357 | return _resultobj; | |
358 | } | |
359 | ||
360 | #define wxHelpEvent_SetTarget(_swigobj,_swigarg0) (_swigobj->SetTarget(_swigarg0)) | |
361 | static PyObject *_wrap_wxHelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
362 | PyObject * _resultobj; | |
363 | wxHelpEvent * _arg0; | |
364 | wxString * _arg1; | |
365 | PyObject * _argo0 = 0; | |
366 | PyObject * _obj1 = 0; | |
367 | char *_kwnames[] = { "self","target", NULL }; | |
368 | ||
369 | self = self; | |
370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpEvent_SetTarget",_kwnames,&_argo0,&_obj1)) | |
371 | return NULL; | |
372 | if (_argo0) { | |
373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpEvent_p")) { | |
375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpEvent_SetTarget. Expected _wxHelpEvent_p."); | |
376 | return NULL; | |
377 | } | |
378 | } | |
379 | { | |
380 | #if PYTHON_API_VERSION >= 1009 | |
381 | char* tmpPtr; int tmpSize; | |
382 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
383 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
384 | return NULL; | |
385 | } | |
386 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
387 | return NULL; | |
388 | _arg1 = new wxString(tmpPtr, tmpSize); | |
389 | #else | |
390 | if (!PyString_Check(_obj1)) { | |
391 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
392 | return NULL; | |
393 | } | |
394 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
395 | #endif | |
396 | } | |
397 | { | |
398 | wxPy_BEGIN_ALLOW_THREADS; | |
399 | wxHelpEvent_SetTarget(_arg0,*_arg1); | |
400 | ||
401 | wxPy_END_ALLOW_THREADS; | |
402 | if (PyErr_Occurred()) return NULL; | |
403 | } Py_INCREF(Py_None); | |
404 | _resultobj = Py_None; | |
405 | { | |
406 | if (_obj1) | |
407 | delete _arg1; | |
408 | } | |
409 | return _resultobj; | |
410 | } | |
411 | ||
412 | static void *SwigwxContextMenuEventTowxCommandEvent(void *ptr) { | |
413 | wxContextMenuEvent *src; | |
414 | wxCommandEvent *dest; | |
415 | src = (wxContextMenuEvent *) ptr; | |
416 | dest = (wxCommandEvent *) src; | |
417 | return (void *) dest; | |
418 | } | |
419 | ||
420 | static void *SwigwxContextMenuEventTowxEvent(void *ptr) { | |
421 | wxContextMenuEvent *src; | |
422 | wxEvent *dest; | |
423 | src = (wxContextMenuEvent *) ptr; | |
424 | dest = (wxEvent *) src; | |
425 | return (void *) dest; | |
426 | } | |
427 | ||
428 | static void *SwigwxContextMenuEventTowxObject(void *ptr) { | |
429 | wxContextMenuEvent *src; | |
430 | wxObject *dest; | |
431 | src = (wxContextMenuEvent *) ptr; | |
432 | dest = (wxObject *) src; | |
433 | return (void *) dest; | |
434 | } | |
435 | ||
436 | #define new_wxContextMenuEvent(_swigarg0,_swigarg1,_swigarg2) (new wxContextMenuEvent(_swigarg0,_swigarg1,_swigarg2)) | |
437 | static PyObject *_wrap_new_wxContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
438 | PyObject * _resultobj; | |
439 | wxContextMenuEvent * _result; | |
440 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
441 | wxWindowID _arg1 = (wxWindowID ) 0; | |
442 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
443 | wxPoint temp; | |
444 | PyObject * _obj2 = 0; | |
445 | char *_kwnames[] = { "type","id","pt", NULL }; | |
446 | char _ptemp[128]; | |
447 | ||
448 | self = self; | |
449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiO:new_wxContextMenuEvent",_kwnames,&_arg0,&_arg1,&_obj2)) | |
450 | return NULL; | |
451 | if (_obj2) | |
452 | { | |
453 | _arg2 = &temp; | |
454 | if (! wxPoint_helper(_obj2, &_arg2)) | |
455 | return NULL; | |
456 | } | |
457 | { | |
458 | wxPy_BEGIN_ALLOW_THREADS; | |
459 | _result = (wxContextMenuEvent *)new_wxContextMenuEvent(_arg0,_arg1,*_arg2); | |
460 | ||
461 | wxPy_END_ALLOW_THREADS; | |
462 | if (PyErr_Occurred()) return NULL; | |
463 | } if (_result) { | |
464 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextMenuEvent_p"); | |
465 | _resultobj = Py_BuildValue("s",_ptemp); | |
466 | } else { | |
467 | Py_INCREF(Py_None); | |
468 | _resultobj = Py_None; | |
469 | } | |
470 | return _resultobj; | |
471 | } | |
472 | ||
473 | #define wxContextMenuEvent_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
474 | static PyObject *_wrap_wxContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
475 | PyObject * _resultobj; | |
476 | wxPoint * _result; | |
477 | wxContextMenuEvent * _arg0; | |
478 | PyObject * _argo0 = 0; | |
479 | char *_kwnames[] = { "self", NULL }; | |
480 | char _ptemp[128]; | |
481 | ||
482 | self = self; | |
483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxContextMenuEvent_GetPosition",_kwnames,&_argo0)) | |
484 | return NULL; | |
485 | if (_argo0) { | |
486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextMenuEvent_p")) { | |
488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextMenuEvent_GetPosition. Expected _wxContextMenuEvent_p."); | |
489 | return NULL; | |
490 | } | |
491 | } | |
492 | { | |
493 | wxPy_BEGIN_ALLOW_THREADS; | |
494 | const wxPoint & _result_ref = wxContextMenuEvent_GetPosition(_arg0); | |
495 | _result = (wxPoint *) &_result_ref; | |
496 | ||
497 | wxPy_END_ALLOW_THREADS; | |
498 | if (PyErr_Occurred()) return NULL; | |
499 | } if (_result) { | |
500 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
501 | _resultobj = Py_BuildValue("s",_ptemp); | |
502 | } else { | |
503 | Py_INCREF(Py_None); | |
504 | _resultobj = Py_None; | |
505 | } | |
506 | return _resultobj; | |
507 | } | |
508 | ||
509 | #define wxContextMenuEvent_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0)) | |
510 | static PyObject *_wrap_wxContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
511 | PyObject * _resultobj; | |
512 | wxContextMenuEvent * _arg0; | |
513 | wxPoint * _arg1; | |
514 | PyObject * _argo0 = 0; | |
515 | wxPoint temp; | |
516 | PyObject * _obj1 = 0; | |
517 | char *_kwnames[] = { "self","pos", NULL }; | |
518 | ||
519 | self = self; | |
520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxContextMenuEvent_SetPosition",_kwnames,&_argo0,&_obj1)) | |
521 | return NULL; | |
522 | if (_argo0) { | |
523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextMenuEvent_p")) { | |
525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextMenuEvent_SetPosition. Expected _wxContextMenuEvent_p."); | |
526 | return NULL; | |
527 | } | |
528 | } | |
529 | { | |
530 | _arg1 = &temp; | |
531 | if (! wxPoint_helper(_obj1, &_arg1)) | |
532 | return NULL; | |
533 | } | |
534 | { | |
535 | wxPy_BEGIN_ALLOW_THREADS; | |
536 | wxContextMenuEvent_SetPosition(_arg0,*_arg1); | |
537 | ||
538 | wxPy_END_ALLOW_THREADS; | |
539 | if (PyErr_Occurred()) return NULL; | |
540 | } Py_INCREF(Py_None); | |
541 | _resultobj = Py_None; | |
542 | return _resultobj; | |
543 | } | |
544 | ||
545 | static void *SwigwxContextHelpTowxObject(void *ptr) { | |
546 | wxContextHelp *src; | |
547 | wxObject *dest; | |
548 | src = (wxContextHelp *) ptr; | |
549 | dest = (wxObject *) src; | |
550 | return (void *) dest; | |
551 | } | |
552 | ||
553 | #define new_wxContextHelp(_swigarg0,_swigarg1) (new wxContextHelp(_swigarg0,_swigarg1)) | |
554 | static PyObject *_wrap_new_wxContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
555 | PyObject * _resultobj; | |
556 | wxContextHelp * _result; | |
557 | wxWindow * _arg0 = (wxWindow *) NULL; | |
558 | bool _arg1 = (bool ) TRUE; | |
559 | PyObject * _argo0 = 0; | |
560 | int tempbool1 = (int) TRUE; | |
561 | char *_kwnames[] = { "window","doNow", NULL }; | |
562 | char _ptemp[128]; | |
563 | ||
564 | self = self; | |
565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxContextHelp",_kwnames,&_argo0,&tempbool1)) | |
566 | return NULL; | |
567 | if (_argo0) { | |
568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxContextHelp. Expected _wxWindow_p."); | |
571 | return NULL; | |
572 | } | |
573 | } | |
574 | _arg1 = (bool ) tempbool1; | |
575 | { | |
576 | wxPy_BEGIN_ALLOW_THREADS; | |
577 | _result = (wxContextHelp *)new_wxContextHelp(_arg0,_arg1); | |
578 | ||
579 | wxPy_END_ALLOW_THREADS; | |
580 | if (PyErr_Occurred()) return NULL; | |
581 | } if (_result) { | |
582 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextHelp_p"); | |
583 | _resultobj = Py_BuildValue("s",_ptemp); | |
584 | } else { | |
585 | Py_INCREF(Py_None); | |
586 | _resultobj = Py_None; | |
587 | } | |
588 | return _resultobj; | |
589 | } | |
590 | ||
591 | #define delete_wxContextHelp(_swigobj) (delete _swigobj) | |
592 | static PyObject *_wrap_delete_wxContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
593 | PyObject * _resultobj; | |
594 | wxContextHelp * _arg0; | |
595 | PyObject * _argo0 = 0; | |
596 | char *_kwnames[] = { "self", NULL }; | |
597 | ||
598 | self = self; | |
599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxContextHelp",_kwnames,&_argo0)) | |
600 | return NULL; | |
601 | if (_argo0) { | |
602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) { | |
604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxContextHelp. Expected _wxContextHelp_p."); | |
605 | return NULL; | |
606 | } | |
607 | } | |
608 | { | |
609 | wxPy_BEGIN_ALLOW_THREADS; | |
610 | delete_wxContextHelp(_arg0); | |
611 | ||
612 | wxPy_END_ALLOW_THREADS; | |
613 | if (PyErr_Occurred()) return NULL; | |
614 | } Py_INCREF(Py_None); | |
615 | _resultobj = Py_None; | |
616 | return _resultobj; | |
617 | } | |
618 | ||
619 | #define wxContextHelp_BeginContextHelp(_swigobj,_swigarg0) (_swigobj->BeginContextHelp(_swigarg0)) | |
620 | static PyObject *_wrap_wxContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
621 | PyObject * _resultobj; | |
622 | bool _result; | |
623 | wxContextHelp * _arg0; | |
624 | wxWindow * _arg1 = (wxWindow *) NULL; | |
625 | PyObject * _argo0 = 0; | |
626 | PyObject * _argo1 = 0; | |
627 | char *_kwnames[] = { "self","window", NULL }; | |
628 | ||
629 | self = self; | |
630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxContextHelp_BeginContextHelp",_kwnames,&_argo0,&_argo1)) | |
631 | return NULL; | |
632 | if (_argo0) { | |
633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) { | |
635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextHelp_BeginContextHelp. Expected _wxContextHelp_p."); | |
636 | return NULL; | |
637 | } | |
638 | } | |
639 | if (_argo1) { | |
640 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
641 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxContextHelp_BeginContextHelp. Expected _wxWindow_p."); | |
643 | return NULL; | |
644 | } | |
645 | } | |
646 | { | |
647 | wxPy_BEGIN_ALLOW_THREADS; | |
648 | _result = (bool )wxContextHelp_BeginContextHelp(_arg0,_arg1); | |
649 | ||
650 | wxPy_END_ALLOW_THREADS; | |
651 | if (PyErr_Occurred()) return NULL; | |
652 | } _resultobj = Py_BuildValue("i",_result); | |
653 | return _resultobj; | |
654 | } | |
655 | ||
656 | #define wxContextHelp_EndContextHelp(_swigobj) (_swigobj->EndContextHelp()) | |
657 | static PyObject *_wrap_wxContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
658 | PyObject * _resultobj; | |
659 | bool _result; | |
660 | wxContextHelp * _arg0; | |
661 | PyObject * _argo0 = 0; | |
662 | char *_kwnames[] = { "self", NULL }; | |
663 | ||
664 | self = self; | |
665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxContextHelp_EndContextHelp",_kwnames,&_argo0)) | |
666 | return NULL; | |
667 | if (_argo0) { | |
668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxContextHelp_p")) { | |
670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxContextHelp_EndContextHelp. Expected _wxContextHelp_p."); | |
671 | return NULL; | |
672 | } | |
673 | } | |
674 | { | |
675 | wxPy_BEGIN_ALLOW_THREADS; | |
676 | _result = (bool )wxContextHelp_EndContextHelp(_arg0); | |
677 | ||
678 | wxPy_END_ALLOW_THREADS; | |
679 | if (PyErr_Occurred()) return NULL; | |
680 | } _resultobj = Py_BuildValue("i",_result); | |
681 | return _resultobj; | |
682 | } | |
683 | ||
684 | static void *SwigwxContextHelpButtonTowxBitmapButton(void *ptr) { | |
685 | wxContextHelpButton *src; | |
686 | wxBitmapButton *dest; | |
687 | src = (wxContextHelpButton *) ptr; | |
688 | dest = (wxBitmapButton *) src; | |
689 | return (void *) dest; | |
690 | } | |
691 | ||
692 | static void *SwigwxContextHelpButtonTowxButton(void *ptr) { | |
693 | wxContextHelpButton *src; | |
694 | wxButton *dest; | |
695 | src = (wxContextHelpButton *) ptr; | |
696 | dest = (wxButton *) src; | |
697 | return (void *) dest; | |
698 | } | |
699 | ||
700 | static void *SwigwxContextHelpButtonTowxControl(void *ptr) { | |
701 | wxContextHelpButton *src; | |
702 | wxControl *dest; | |
703 | src = (wxContextHelpButton *) ptr; | |
704 | dest = (wxControl *) src; | |
705 | return (void *) dest; | |
706 | } | |
707 | ||
708 | static void *SwigwxContextHelpButtonTowxWindow(void *ptr) { | |
709 | wxContextHelpButton *src; | |
710 | wxWindow *dest; | |
711 | src = (wxContextHelpButton *) ptr; | |
712 | dest = (wxWindow *) src; | |
713 | return (void *) dest; | |
714 | } | |
715 | ||
716 | static void *SwigwxContextHelpButtonTowxEvtHandler(void *ptr) { | |
717 | wxContextHelpButton *src; | |
718 | wxEvtHandler *dest; | |
719 | src = (wxContextHelpButton *) ptr; | |
720 | dest = (wxEvtHandler *) src; | |
721 | return (void *) dest; | |
722 | } | |
723 | ||
724 | static void *SwigwxContextHelpButtonTowxObject(void *ptr) { | |
725 | wxContextHelpButton *src; | |
726 | wxObject *dest; | |
727 | src = (wxContextHelpButton *) ptr; | |
728 | dest = (wxObject *) src; | |
729 | return (void *) dest; | |
730 | } | |
731 | ||
732 | #define new_wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxContextHelpButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
733 | static PyObject *_wrap_new_wxContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
734 | PyObject * _resultobj; | |
735 | wxContextHelpButton * _result; | |
736 | wxWindow * _arg0; | |
737 | wxWindowID _arg1 = (wxWindowID ) (wxID_CONTEXT_HELP); | |
738 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
739 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
740 | long _arg4 = (long ) wxBU_AUTODRAW; | |
741 | PyObject * _argo0 = 0; | |
742 | wxPoint temp; | |
743 | PyObject * _obj2 = 0; | |
744 | wxSize temp0; | |
745 | PyObject * _obj3 = 0; | |
746 | char *_kwnames[] = { "parent","id","pos","size","style", NULL }; | |
747 | char _ptemp[128]; | |
748 | ||
749 | self = self; | |
750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxContextHelpButton",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
751 | return NULL; | |
752 | if (_argo0) { | |
753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxContextHelpButton. Expected _wxWindow_p."); | |
756 | return NULL; | |
757 | } | |
758 | } | |
759 | if (_obj2) | |
760 | { | |
761 | _arg2 = &temp; | |
762 | if (! wxPoint_helper(_obj2, &_arg2)) | |
763 | return NULL; | |
764 | } | |
765 | if (_obj3) | |
766 | { | |
767 | _arg3 = &temp0; | |
768 | if (! wxSize_helper(_obj3, &_arg3)) | |
769 | return NULL; | |
770 | } | |
771 | { | |
772 | wxPy_BEGIN_ALLOW_THREADS; | |
773 | _result = (wxContextHelpButton *)new_wxContextHelpButton(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
774 | ||
775 | wxPy_END_ALLOW_THREADS; | |
776 | if (PyErr_Occurred()) return NULL; | |
777 | } if (_result) { | |
778 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxContextHelpButton_p"); | |
779 | _resultobj = Py_BuildValue("s",_ptemp); | |
780 | } else { | |
781 | Py_INCREF(Py_None); | |
782 | _resultobj = Py_None; | |
783 | } | |
784 | return _resultobj; | |
785 | } | |
786 | ||
787 | static PyObject *_wrap_wxHelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
788 | PyObject * _resultobj; | |
789 | wxHelpProvider * _result; | |
790 | wxHelpProvider * _arg0; | |
791 | PyObject * _argo0 = 0; | |
792 | char *_kwnames[] = { "helpProvider", NULL }; | |
793 | char _ptemp[128]; | |
794 | ||
795 | self = self; | |
796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpProvider_Set",_kwnames,&_argo0)) | |
797 | return NULL; | |
798 | if (_argo0) { | |
799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) { | |
801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_Set. Expected _wxHelpProvider_p."); | |
802 | return NULL; | |
803 | } | |
804 | } | |
805 | { | |
806 | wxPy_BEGIN_ALLOW_THREADS; | |
807 | _result = (wxHelpProvider *)wxHelpProvider::Set(_arg0); | |
808 | ||
809 | wxPy_END_ALLOW_THREADS; | |
810 | if (PyErr_Occurred()) return NULL; | |
811 | } if (_result) { | |
812 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpProvider_p"); | |
813 | _resultobj = Py_BuildValue("s",_ptemp); | |
814 | } else { | |
815 | Py_INCREF(Py_None); | |
816 | _resultobj = Py_None; | |
817 | } | |
818 | return _resultobj; | |
819 | } | |
820 | ||
821 | static PyObject *_wrap_wxHelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
822 | PyObject * _resultobj; | |
823 | wxHelpProvider * _result; | |
824 | char *_kwnames[] = { NULL }; | |
825 | char _ptemp[128]; | |
826 | ||
827 | self = self; | |
828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxHelpProvider_Get",_kwnames)) | |
829 | return NULL; | |
830 | { | |
831 | wxPy_BEGIN_ALLOW_THREADS; | |
832 | _result = (wxHelpProvider *)wxHelpProvider::Get(); | |
833 | ||
834 | wxPy_END_ALLOW_THREADS; | |
835 | if (PyErr_Occurred()) return NULL; | |
836 | } if (_result) { | |
837 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxHelpProvider_p"); | |
838 | _resultobj = Py_BuildValue("s",_ptemp); | |
839 | } else { | |
840 | Py_INCREF(Py_None); | |
841 | _resultobj = Py_None; | |
842 | } | |
843 | return _resultobj; | |
844 | } | |
845 | ||
846 | #define wxHelpProvider_GetHelp(_swigobj,_swigarg0) (_swigobj->GetHelp(_swigarg0)) | |
847 | static PyObject *_wrap_wxHelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
848 | PyObject * _resultobj; | |
849 | wxString * _result; | |
850 | wxHelpProvider * _arg0; | |
851 | wxWindow * _arg1; | |
852 | PyObject * _argo0 = 0; | |
853 | PyObject * _argo1 = 0; | |
854 | char *_kwnames[] = { "self","window", NULL }; | |
855 | ||
856 | self = self; | |
857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpProvider_GetHelp",_kwnames,&_argo0,&_argo1)) | |
858 | return NULL; | |
859 | if (_argo0) { | |
860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) { | |
862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_GetHelp. Expected _wxHelpProvider_p."); | |
863 | return NULL; | |
864 | } | |
865 | } | |
866 | if (_argo1) { | |
867 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
868 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_GetHelp. Expected _wxWindow_p."); | |
870 | return NULL; | |
871 | } | |
872 | } | |
873 | { | |
874 | wxPy_BEGIN_ALLOW_THREADS; | |
875 | _result = new wxString (wxHelpProvider_GetHelp(_arg0,_arg1)); | |
876 | ||
877 | wxPy_END_ALLOW_THREADS; | |
878 | if (PyErr_Occurred()) return NULL; | |
879 | }{ | |
880 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
881 | } | |
882 | { | |
883 | delete _result; | |
884 | } | |
885 | return _resultobj; | |
886 | } | |
887 | ||
888 | #define wxHelpProvider_ShowHelp(_swigobj,_swigarg0) (_swigobj->ShowHelp(_swigarg0)) | |
889 | static PyObject *_wrap_wxHelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
890 | PyObject * _resultobj; | |
891 | bool _result; | |
892 | wxHelpProvider * _arg0; | |
893 | wxWindowBase * _arg1; | |
894 | PyObject * _argo0 = 0; | |
895 | PyObject * _argo1 = 0; | |
896 | char *_kwnames[] = { "self","window", NULL }; | |
897 | ||
898 | self = self; | |
899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHelpProvider_ShowHelp",_kwnames,&_argo0,&_argo1)) | |
900 | return NULL; | |
901 | if (_argo0) { | |
902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) { | |
904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_ShowHelp. Expected _wxHelpProvider_p."); | |
905 | return NULL; | |
906 | } | |
907 | } | |
908 | if (_argo1) { | |
909 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
910 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindowBase_p")) { | |
911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_ShowHelp. Expected _wxWindowBase_p."); | |
912 | return NULL; | |
913 | } | |
914 | } | |
915 | { | |
916 | wxPy_BEGIN_ALLOW_THREADS; | |
917 | _result = (bool )wxHelpProvider_ShowHelp(_arg0,_arg1); | |
918 | ||
919 | wxPy_END_ALLOW_THREADS; | |
920 | if (PyErr_Occurred()) return NULL; | |
921 | } _resultobj = Py_BuildValue("i",_result); | |
922 | return _resultobj; | |
923 | } | |
924 | ||
925 | #define wxHelpProvider_AddHelp(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1)) | |
926 | static PyObject *_wrap_wxHelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
927 | PyObject * _resultobj; | |
928 | wxHelpProvider * _arg0; | |
929 | wxWindowBase * _arg1; | |
930 | wxString * _arg2; | |
931 | PyObject * _argo0 = 0; | |
932 | PyObject * _argo1 = 0; | |
933 | PyObject * _obj2 = 0; | |
934 | char *_kwnames[] = { "self","window","text", NULL }; | |
935 | ||
936 | self = self; | |
937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxHelpProvider_AddHelp",_kwnames,&_argo0,&_argo1,&_obj2)) | |
938 | return NULL; | |
939 | if (_argo0) { | |
940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) { | |
942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_AddHelp. Expected _wxHelpProvider_p."); | |
943 | return NULL; | |
944 | } | |
945 | } | |
946 | if (_argo1) { | |
947 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
948 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindowBase_p")) { | |
949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxHelpProvider_AddHelp. Expected _wxWindowBase_p."); | |
950 | return NULL; | |
951 | } | |
952 | } | |
953 | { | |
954 | #if PYTHON_API_VERSION >= 1009 | |
955 | char* tmpPtr; int tmpSize; | |
956 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
957 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
958 | return NULL; | |
959 | } | |
960 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
961 | return NULL; | |
962 | _arg2 = new wxString(tmpPtr, tmpSize); | |
963 | #else | |
964 | if (!PyString_Check(_obj2)) { | |
965 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
966 | return NULL; | |
967 | } | |
968 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
969 | #endif | |
970 | } | |
971 | { | |
972 | wxPy_BEGIN_ALLOW_THREADS; | |
973 | wxHelpProvider_AddHelp(_arg0,_arg1,*_arg2); | |
974 | ||
975 | wxPy_END_ALLOW_THREADS; | |
976 | if (PyErr_Occurred()) return NULL; | |
977 | } Py_INCREF(Py_None); | |
978 | _resultobj = Py_None; | |
979 | { | |
980 | if (_obj2) | |
981 | delete _arg2; | |
982 | } | |
983 | return _resultobj; | |
984 | } | |
985 | ||
986 | #define wxHelpProvider_AddHelpById(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddHelp(_swigarg0,_swigarg1)) | |
987 | static PyObject *_wrap_wxHelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
988 | PyObject * _resultobj; | |
989 | wxHelpProvider * _arg0; | |
990 | wxWindowID _arg1; | |
991 | wxString * _arg2; | |
992 | PyObject * _argo0 = 0; | |
993 | PyObject * _obj2 = 0; | |
994 | char *_kwnames[] = { "self","id","text", NULL }; | |
995 | ||
996 | self = self; | |
997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxHelpProvider_AddHelpById",_kwnames,&_argo0,&_arg1,&_obj2)) | |
998 | return NULL; | |
999 | if (_argo0) { | |
1000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) { | |
1002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_AddHelpById. Expected _wxHelpProvider_p."); | |
1003 | return NULL; | |
1004 | } | |
1005 | } | |
1006 | { | |
1007 | #if PYTHON_API_VERSION >= 1009 | |
1008 | char* tmpPtr; int tmpSize; | |
1009 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1010 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1011 | return NULL; | |
1012 | } | |
1013 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1014 | return NULL; | |
1015 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1016 | #else | |
1017 | if (!PyString_Check(_obj2)) { | |
1018 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1019 | return NULL; | |
1020 | } | |
1021 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
1022 | #endif | |
1023 | } | |
1024 | { | |
1025 | wxPy_BEGIN_ALLOW_THREADS; | |
1026 | wxHelpProvider_AddHelpById(_arg0,_arg1,*_arg2); | |
1027 | ||
1028 | wxPy_END_ALLOW_THREADS; | |
1029 | if (PyErr_Occurred()) return NULL; | |
1030 | } Py_INCREF(Py_None); | |
1031 | _resultobj = Py_None; | |
1032 | { | |
1033 | if (_obj2) | |
1034 | delete _arg2; | |
1035 | } | |
1036 | return _resultobj; | |
1037 | } | |
1038 | ||
1039 | static void wxHelpProvider_Destroy(wxHelpProvider *self) { delete self; } | |
1040 | static PyObject *_wrap_wxHelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1041 | PyObject * _resultobj; | |
1042 | wxHelpProvider * _arg0; | |
1043 | PyObject * _argo0 = 0; | |
1044 | char *_kwnames[] = { "self", NULL }; | |
1045 | ||
1046 | self = self; | |
1047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHelpProvider_Destroy",_kwnames,&_argo0)) | |
1048 | return NULL; | |
1049 | if (_argo0) { | |
1050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxHelpProvider_p")) { | |
1052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxHelpProvider_Destroy. Expected _wxHelpProvider_p."); | |
1053 | return NULL; | |
1054 | } | |
1055 | } | |
1056 | { | |
1057 | wxPy_BEGIN_ALLOW_THREADS; | |
1058 | wxHelpProvider_Destroy(_arg0); | |
1059 | ||
1060 | wxPy_END_ALLOW_THREADS; | |
1061 | if (PyErr_Occurred()) return NULL; | |
1062 | } Py_INCREF(Py_None); | |
1063 | _resultobj = Py_None; | |
1064 | return _resultobj; | |
1065 | } | |
1066 | ||
1067 | static void *SwigwxSimpleHelpProviderTowxHelpProvider(void *ptr) { | |
1068 | wxSimpleHelpProvider *src; | |
1069 | wxHelpProvider *dest; | |
1070 | src = (wxSimpleHelpProvider *) ptr; | |
1071 | dest = (wxHelpProvider *) src; | |
1072 | return (void *) dest; | |
1073 | } | |
1074 | ||
1075 | #define new_wxSimpleHelpProvider() (new wxSimpleHelpProvider()) | |
1076 | static PyObject *_wrap_new_wxSimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1077 | PyObject * _resultobj; | |
1078 | wxSimpleHelpProvider * _result; | |
1079 | char *_kwnames[] = { NULL }; | |
1080 | char _ptemp[128]; | |
1081 | ||
1082 | self = self; | |
1083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxSimpleHelpProvider",_kwnames)) | |
1084 | return NULL; | |
1085 | { | |
1086 | wxPy_BEGIN_ALLOW_THREADS; | |
1087 | _result = (wxSimpleHelpProvider *)new_wxSimpleHelpProvider(); | |
1088 | ||
1089 | wxPy_END_ALLOW_THREADS; | |
1090 | if (PyErr_Occurred()) return NULL; | |
1091 | } if (_result) { | |
1092 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSimpleHelpProvider_p"); | |
1093 | _resultobj = Py_BuildValue("s",_ptemp); | |
1094 | } else { | |
1095 | Py_INCREF(Py_None); | |
1096 | _resultobj = Py_None; | |
1097 | } | |
1098 | return _resultobj; | |
1099 | } | |
1100 | ||
1101 | static PyMethodDef helpcMethods[] = { | |
1102 | { "new_wxSimpleHelpProvider", (PyCFunction) _wrap_new_wxSimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
1103 | { "wxHelpProvider_Destroy", (PyCFunction) _wrap_wxHelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
1104 | { "wxHelpProvider_AddHelpById", (PyCFunction) _wrap_wxHelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
1105 | { "wxHelpProvider_AddHelp", (PyCFunction) _wrap_wxHelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
1106 | { "wxHelpProvider_ShowHelp", (PyCFunction) _wrap_wxHelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
1107 | { "wxHelpProvider_GetHelp", (PyCFunction) _wrap_wxHelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
1108 | { "wxHelpProvider_Get", (PyCFunction) _wrap_wxHelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
1109 | { "wxHelpProvider_Set", (PyCFunction) _wrap_wxHelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
1110 | { "new_wxContextHelpButton", (PyCFunction) _wrap_new_wxContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
1111 | { "wxContextHelp_EndContextHelp", (PyCFunction) _wrap_wxContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
1112 | { "wxContextHelp_BeginContextHelp", (PyCFunction) _wrap_wxContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
1113 | { "delete_wxContextHelp", (PyCFunction) _wrap_delete_wxContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
1114 | { "new_wxContextHelp", (PyCFunction) _wrap_new_wxContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
1115 | { "wxContextMenuEvent_SetPosition", (PyCFunction) _wrap_wxContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
1116 | { "wxContextMenuEvent_GetPosition", (PyCFunction) _wrap_wxContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
1117 | { "new_wxContextMenuEvent", (PyCFunction) _wrap_new_wxContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
1118 | { "wxHelpEvent_SetTarget", (PyCFunction) _wrap_wxHelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
1119 | { "wxHelpEvent_GetTarget", (PyCFunction) _wrap_wxHelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
1120 | { "wxHelpEvent_SetLink", (PyCFunction) _wrap_wxHelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
1121 | { "wxHelpEvent_GetLink", (PyCFunction) _wrap_wxHelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
1122 | { "wxHelpEvent_SetPosition", (PyCFunction) _wrap_wxHelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
1123 | { "wxHelpEvent_GetPosition", (PyCFunction) _wrap_wxHelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
1124 | { "new_wxHelpEvent", (PyCFunction) _wrap_new_wxHelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
1125 | { NULL, NULL } | |
1126 | }; | |
1127 | #ifdef __cplusplus | |
1128 | } | |
1129 | #endif | |
1130 | /* | |
1131 | * This table is used by the pointer type-checker | |
1132 | */ | |
1133 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1134 | { "_wxEvent","_class_wxContextMenuEvent",SwigwxContextMenuEventTowxEvent}, | |
1135 | { "_wxEvent","_wxContextMenuEvent",SwigwxContextMenuEventTowxEvent}, | |
1136 | { "_wxEvent","_class_wxHelpEvent",SwigwxHelpEventTowxEvent}, | |
1137 | { "_wxEvent","_wxHelpEvent",SwigwxHelpEventTowxEvent}, | |
1138 | { "_signed_long","_long",0}, | |
1139 | { "_wxPrintQuality","_wxCoord",0}, | |
1140 | { "_wxPrintQuality","_int",0}, | |
1141 | { "_wxPrintQuality","_signed_int",0}, | |
1142 | { "_wxPrintQuality","_unsigned_int",0}, | |
1143 | { "_wxPrintQuality","_wxWindowID",0}, | |
1144 | { "_wxPrintQuality","_uint",0}, | |
1145 | { "_wxPrintQuality","_EBool",0}, | |
1146 | { "_wxPrintQuality","_size_t",0}, | |
1147 | { "_wxPrintQuality","_time_t",0}, | |
1148 | { "_class_wxEvtHandler","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxEvtHandler}, | |
1149 | { "_class_wxEvtHandler","_wxContextHelpButton",SwigwxContextHelpButtonTowxEvtHandler}, | |
1150 | { "_byte","_unsigned_char",0}, | |
1151 | { "_long","_unsigned_long",0}, | |
1152 | { "_long","_signed_long",0}, | |
1153 | { "_wxBitmapButton","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxBitmapButton}, | |
1154 | { "_wxBitmapButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxBitmapButton}, | |
1155 | { "_class_wxObject","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxObject}, | |
1156 | { "_class_wxObject","_wxContextHelpButton",SwigwxContextHelpButtonTowxObject}, | |
1157 | { "_class_wxObject","_class_wxContextHelp",SwigwxContextHelpTowxObject}, | |
1158 | { "_class_wxObject","_wxContextHelp",SwigwxContextHelpTowxObject}, | |
1159 | { "_class_wxObject","_class_wxContextMenuEvent",SwigwxContextMenuEventTowxObject}, | |
1160 | { "_class_wxObject","_wxContextMenuEvent",SwigwxContextMenuEventTowxObject}, | |
1161 | { "_class_wxObject","_class_wxHelpEvent",SwigwxHelpEventTowxObject}, | |
1162 | { "_class_wxObject","_wxHelpEvent",SwigwxHelpEventTowxObject}, | |
1163 | { "_size_t","_wxCoord",0}, | |
1164 | { "_size_t","_wxPrintQuality",0}, | |
1165 | { "_size_t","_time_t",0}, | |
1166 | { "_size_t","_unsigned_int",0}, | |
1167 | { "_size_t","_int",0}, | |
1168 | { "_size_t","_wxWindowID",0}, | |
1169 | { "_size_t","_uint",0}, | |
1170 | { "_uint","_wxCoord",0}, | |
1171 | { "_uint","_wxPrintQuality",0}, | |
1172 | { "_uint","_time_t",0}, | |
1173 | { "_uint","_size_t",0}, | |
1174 | { "_uint","_unsigned_int",0}, | |
1175 | { "_uint","_int",0}, | |
1176 | { "_uint","_wxWindowID",0}, | |
1177 | { "_wxChar","_char",0}, | |
1178 | { "_class_wxEvent","_class_wxContextMenuEvent",SwigwxContextMenuEventTowxEvent}, | |
1179 | { "_class_wxEvent","_wxContextMenuEvent",SwigwxContextMenuEventTowxEvent}, | |
1180 | { "_class_wxEvent","_class_wxHelpEvent",SwigwxHelpEventTowxEvent}, | |
1181 | { "_class_wxEvent","_wxHelpEvent",SwigwxHelpEventTowxEvent}, | |
1182 | { "_wxCommandEvent","_class_wxContextMenuEvent",SwigwxContextMenuEventTowxCommandEvent}, | |
1183 | { "_wxCommandEvent","_wxContextMenuEvent",SwigwxContextMenuEventTowxCommandEvent}, | |
1184 | { "_wxCommandEvent","_class_wxHelpEvent",SwigwxHelpEventTowxCommandEvent}, | |
1185 | { "_wxCommandEvent","_wxHelpEvent",SwigwxHelpEventTowxCommandEvent}, | |
1186 | { "_class_wxButton","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxButton}, | |
1187 | { "_class_wxButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxButton}, | |
1188 | { "_char","_wxChar",0}, | |
1189 | { "_wxHelpProvider","_class_wxSimpleHelpProvider",SwigwxSimpleHelpProviderTowxHelpProvider}, | |
1190 | { "_wxHelpProvider","_wxSimpleHelpProvider",SwigwxSimpleHelpProviderTowxHelpProvider}, | |
32c988a3 | 1191 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
cd096152 RD |
1192 | { "_EBool","_wxCoord",0}, |
1193 | { "_EBool","_wxPrintQuality",0}, | |
1194 | { "_EBool","_signed_int",0}, | |
1195 | { "_EBool","_int",0}, | |
1196 | { "_EBool","_wxWindowID",0}, | |
1197 | { "_unsigned_long","_long",0}, | |
32c988a3 | 1198 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
cd096152 RD |
1199 | { "_signed_int","_wxCoord",0}, |
1200 | { "_signed_int","_wxPrintQuality",0}, | |
1201 | { "_signed_int","_EBool",0}, | |
1202 | { "_signed_int","_wxWindowID",0}, | |
1203 | { "_signed_int","_int",0}, | |
1204 | { "_WXTYPE","_short",0}, | |
1205 | { "_WXTYPE","_signed_short",0}, | |
1206 | { "_WXTYPE","_unsigned_short",0}, | |
1207 | { "_unsigned_short","_WXTYPE",0}, | |
1208 | { "_unsigned_short","_short",0}, | |
1209 | { "_class_wxWindow","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxWindow}, | |
1210 | { "_class_wxWindow","_wxContextHelpButton",SwigwxContextHelpButtonTowxWindow}, | |
1211 | { "_wxObject","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxObject}, | |
1212 | { "_wxObject","_wxContextHelpButton",SwigwxContextHelpButtonTowxObject}, | |
1213 | { "_wxObject","_class_wxContextHelp",SwigwxContextHelpTowxObject}, | |
1214 | { "_wxObject","_wxContextHelp",SwigwxContextHelpTowxObject}, | |
1215 | { "_wxObject","_class_wxContextMenuEvent",SwigwxContextMenuEventTowxObject}, | |
1216 | { "_wxObject","_wxContextMenuEvent",SwigwxContextMenuEventTowxObject}, | |
1217 | { "_wxObject","_class_wxHelpEvent",SwigwxHelpEventTowxObject}, | |
1218 | { "_wxObject","_wxHelpEvent",SwigwxHelpEventTowxObject}, | |
1219 | { "_signed_short","_WXTYPE",0}, | |
1220 | { "_signed_short","_short",0}, | |
1221 | { "_unsigned_char","_byte",0}, | |
1222 | { "_wxControl","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxControl}, | |
1223 | { "_wxControl","_wxContextHelpButton",SwigwxContextHelpButtonTowxControl}, | |
1224 | { "_unsigned_int","_wxCoord",0}, | |
1225 | { "_unsigned_int","_wxPrintQuality",0}, | |
1226 | { "_unsigned_int","_time_t",0}, | |
1227 | { "_unsigned_int","_size_t",0}, | |
1228 | { "_unsigned_int","_uint",0}, | |
1229 | { "_unsigned_int","_wxWindowID",0}, | |
1230 | { "_unsigned_int","_int",0}, | |
1231 | { "_short","_WXTYPE",0}, | |
1232 | { "_short","_unsigned_short",0}, | |
1233 | { "_short","_signed_short",0}, | |
1234 | { "_class_wxBitmapButton","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxBitmapButton}, | |
1235 | { "_class_wxBitmapButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxBitmapButton}, | |
1236 | { "_wxWindowID","_wxCoord",0}, | |
1237 | { "_wxWindowID","_wxPrintQuality",0}, | |
1238 | { "_wxWindowID","_time_t",0}, | |
1239 | { "_wxWindowID","_size_t",0}, | |
1240 | { "_wxWindowID","_EBool",0}, | |
1241 | { "_wxWindowID","_uint",0}, | |
1242 | { "_wxWindowID","_int",0}, | |
1243 | { "_wxWindowID","_signed_int",0}, | |
1244 | { "_wxWindowID","_unsigned_int",0}, | |
1245 | { "_int","_wxCoord",0}, | |
1246 | { "_int","_wxPrintQuality",0}, | |
1247 | { "_int","_time_t",0}, | |
1248 | { "_int","_size_t",0}, | |
1249 | { "_int","_EBool",0}, | |
1250 | { "_int","_uint",0}, | |
1251 | { "_int","_wxWindowID",0}, | |
1252 | { "_int","_unsigned_int",0}, | |
1253 | { "_int","_signed_int",0}, | |
1254 | { "_time_t","_wxCoord",0}, | |
1255 | { "_time_t","_wxPrintQuality",0}, | |
1256 | { "_time_t","_unsigned_int",0}, | |
1257 | { "_time_t","_int",0}, | |
1258 | { "_time_t","_wxWindowID",0}, | |
1259 | { "_time_t","_uint",0}, | |
1260 | { "_time_t","_size_t",0}, | |
1261 | { "_wxButton","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxButton}, | |
1262 | { "_wxButton","_wxContextHelpButton",SwigwxContextHelpButtonTowxButton}, | |
1263 | { "_class_wxControl","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxControl}, | |
1264 | { "_class_wxControl","_wxContextHelpButton",SwigwxContextHelpButtonTowxControl}, | |
1265 | { "_wxCoord","_int",0}, | |
1266 | { "_wxCoord","_signed_int",0}, | |
1267 | { "_wxCoord","_unsigned_int",0}, | |
1268 | { "_wxCoord","_wxWindowID",0}, | |
1269 | { "_wxCoord","_uint",0}, | |
1270 | { "_wxCoord","_EBool",0}, | |
1271 | { "_wxCoord","_size_t",0}, | |
1272 | { "_wxCoord","_time_t",0}, | |
1273 | { "_wxCoord","_wxPrintQuality",0}, | |
1274 | { "_class_wxCommandEvent","_class_wxContextMenuEvent",SwigwxContextMenuEventTowxCommandEvent}, | |
1275 | { "_class_wxCommandEvent","_wxContextMenuEvent",SwigwxContextMenuEventTowxCommandEvent}, | |
1276 | { "_class_wxCommandEvent","_class_wxHelpEvent",SwigwxHelpEventTowxCommandEvent}, | |
1277 | { "_class_wxCommandEvent","_wxHelpEvent",SwigwxHelpEventTowxCommandEvent}, | |
1278 | { "_wxEvtHandler","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxEvtHandler}, | |
1279 | { "_wxEvtHandler","_wxContextHelpButton",SwigwxContextHelpButtonTowxEvtHandler}, | |
1280 | { "_class_wxHelpProvider","_class_wxSimpleHelpProvider",SwigwxSimpleHelpProviderTowxHelpProvider}, | |
1281 | { "_class_wxHelpProvider","_wxSimpleHelpProvider",SwigwxSimpleHelpProviderTowxHelpProvider}, | |
1282 | { "_wxWindow","_class_wxContextHelpButton",SwigwxContextHelpButtonTowxWindow}, | |
1283 | { "_wxWindow","_wxContextHelpButton",SwigwxContextHelpButtonTowxWindow}, | |
1284 | {0,0,0}}; | |
1285 | ||
1286 | static PyObject *SWIG_globals; | |
1287 | #ifdef __cplusplus | |
1288 | extern "C" | |
1289 | #endif | |
1290 | SWIGEXPORT(void) inithelpc() { | |
1291 | PyObject *m, *d; | |
1292 | SWIG_globals = SWIG_newvarlink(); | |
1293 | m = Py_InitModule("helpc", helpcMethods); | |
1294 | d = PyModule_GetDict(m); | |
1295 | PyDict_SetItemString(d,"wxFRAME_EX_CONTEXTHELP", PyInt_FromLong((long) wxFRAME_EX_CONTEXTHELP)); | |
1296 | PyDict_SetItemString(d,"wxDIALOG_EX_CONTEXTHELP", PyInt_FromLong((long) wxDIALOG_EX_CONTEXTHELP)); | |
1297 | PyDict_SetItemString(d,"wxID_CONTEXT_HELP", PyInt_FromLong((long) wxID_CONTEXT_HELP)); | |
1298 | PyDict_SetItemString(d,"wxEVT_HELP", PyInt_FromLong((long) wxEVT_HELP)); | |
1299 | PyDict_SetItemString(d,"wxEVT_DETAILED_HELP", PyInt_FromLong((long) wxEVT_DETAILED_HELP)); | |
1300 | PyDict_SetItemString(d,"wxEVT_CONTEXT_MENU", PyInt_FromLong((long) wxEVT_CONTEXT_MENU)); | |
1301 | { | |
1302 | int i; | |
1303 | for (i = 0; _swig_mapping[i].n1; i++) | |
1304 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
1305 | } | |
1306 | } |