]>
Commit | Line | Data |
---|---|---|
d24a34bb | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/misc2.cpp |
d24a34bb RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
d24a34bb RD |
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) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
d24a34bb RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
4662be59 | 30 | # define SWIGEXPORT(a) a _export |
d24a34bb | 31 | # else |
4662be59 | 32 | # define SWIGEXPORT(a) a |
d24a34bb RD |
33 | # endif |
34 | # endif | |
35 | #else | |
4662be59 | 36 | # define SWIGEXPORT(a) a |
d24a34bb RD |
37 | #endif |
38 | ||
4662be59 RD |
39 | #include "Python.h" |
40 | ||
d24a34bb RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
4662be59 | 44 | |
d24a34bb RD |
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 *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
d24a34bb RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
d24a34bb RD |
54 | #define SWIG_init initmisc2c |
55 | ||
56 | #define SWIG_name "misc2c" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/resource.h> | |
60 | #include <wx/tooltip.h> | |
8f17924e RD |
61 | #include <wx/caret.h> |
62 | #include <wx/fontenum.h> | |
f6bcfd97 | 63 | #include <wx/tipdlg.h> |
c368d904 | 64 | #include <wx/process.h> |
4662be59 | 65 | #ifdef __WXMSW__ |
2cd2fac8 | 66 | #include <wx/joystick.h> |
4662be59 | 67 | #endif |
d24a34bb RD |
68 | |
69 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
70 | PyObject* o2; | |
4662be59 | 71 | if (!target) { |
d24a34bb | 72 | target = o; |
4662be59 | 73 | } else if (target == Py_None) { |
d24a34bb RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
4662be59 | 76 | } else { |
d24a34bb RD |
77 | if (!PyList_Check(target)) { |
78 | o2 = target; | |
79 | target = PyList_New(0); | |
80 | PyList_Append(target, o2); | |
81 | Py_XDECREF(o2); | |
82 | } | |
83 | PyList_Append(target,o); | |
84 | Py_XDECREF(o); | |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
89 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
90 | PyObject* o2; | |
91 | PyObject* o3; | |
92 | ||
4662be59 | 93 | if (!target) { |
d24a34bb | 94 | target = o; |
4662be59 | 95 | } else if (target == Py_None) { |
d24a34bb RD |
96 | Py_DECREF(Py_None); |
97 | target = o; | |
4662be59 | 98 | } else { |
d24a34bb RD |
99 | if (!PyTuple_Check(target)) { |
100 | o2 = target; | |
101 | target = PyTuple_New(1); | |
102 | PyTuple_SetItem(target, 0, o2); | |
103 | } | |
4662be59 RD |
104 | o3 = PyTuple_New(1); |
105 | PyTuple_SetItem(o3, 0, o); | |
d24a34bb RD |
106 | |
107 | o2 = target; | |
4662be59 RD |
108 | target = PySequence_Concat(o2, o3); |
109 | Py_DECREF(o2); | |
d24a34bb RD |
110 | Py_DECREF(o3); |
111 | } | |
112 | return target; | |
113 | } | |
114 | ||
d24a34bb RD |
115 | static char* wxStringErrorMsg = "string type is required for parameter"; |
116 | ||
b68dc582 RD |
117 | static wxString wxPyEmptyStr(""); |
118 | ||
bc29c5e0 RD |
119 | |
120 | wxColour wxSystemSettings_GetSystemColour(int index) { | |
121 | return wxSystemSettings::GetSystemColour(index); | |
122 | } | |
123 | ||
124 | wxFont wxSystemSettings_GetSystemFont(int index) { | |
125 | return wxSystemSettings::GetSystemFont(index); | |
126 | } | |
127 | ||
128 | int wxSystemSettings_GetSystemMetric(int index) { | |
129 | return wxSystemSettings::GetSystemMetric(index); | |
130 | } | |
131 | ||
d24a34bb RD |
132 | void wxToolTip_Enable(bool flag) { |
133 | wxToolTip::Enable(flag); | |
134 | } | |
135 | ||
bc29c5e0 RD |
136 | void wxToolTip_SetDelay(long milliseconds) { |
137 | wxToolTip::SetDelay(milliseconds); | |
138 | } | |
139 | ||
140 | int wxCaret_GetBlinkTime() { | |
141 | return wxCaret::GetBlinkTime(); | |
142 | } | |
143 | ||
144 | void wxCaret_SetBlinkTime(int milliseconds) { | |
145 | wxCaret::SetBlinkTime(milliseconds); | |
146 | } | |
4120ef2b RD |
147 | |
148 | class wxPyFontEnumerator : public wxFontEnumerator { | |
149 | public: | |
150 | wxPyFontEnumerator() {} | |
151 | ~wxPyFontEnumerator() {} | |
152 | ||
153 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
154 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
155 | ||
156 | PYPRIVATE; | |
157 | }; | |
158 | ||
159 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
160 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
161 | ||
f6bcfd97 | 162 | |
4662be59 RD |
163 | bool wxThread_IsMain() { |
164 | return wxThread::IsMain(); | |
165 | } | |
166 | ||
f6bcfd97 BP |
167 | class wxPyTipProvider : public wxTipProvider { |
168 | public: | |
169 | wxPyTipProvider(size_t currentTip) | |
170 | : wxTipProvider(currentTip) {} | |
171 | ||
172 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
173 | ||
174 | PYPRIVATE; | |
175 | }; | |
176 | ||
177 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
178 | ||
179 | ||
180 | #include <wx/generic/dragimgg.h> | |
181 | static wxPoint wxPyNullPoint; | |
182 | ||
183 | ||
184 | wxGenericDragImage* wxDragIcon(const wxIcon& image, | |
185 | const wxCursor& cursor, | |
186 | const wxPoint& hotspot) { | |
187 | return new wxGenericDragImage(image, cursor, hotspot); | |
188 | } | |
189 | ||
190 | wxGenericDragImage* wxDragString(const wxString& str, | |
191 | const wxCursor& cursor, | |
192 | const wxPoint& hotspot) { | |
193 | return new wxGenericDragImage(str, cursor, hotspot); | |
194 | } | |
195 | ||
196 | wxGenericDragImage* wxDragTreeItem(const wxTreeCtrl& treeCtrl, wxTreeItemId& id) { | |
197 | return new wxGenericDragImage(treeCtrl, id); | |
198 | } | |
199 | ||
200 | wxGenericDragImage* wxDragListItem(const wxListCtrl& listCtrl, long id) { | |
201 | return new wxGenericDragImage(listCtrl, id); | |
202 | } | |
203 | ||
c368d904 RD |
204 | // C++ version of wxProcess derived class |
205 | ||
206 | class wxPyProcess : public wxProcess { | |
207 | public: | |
208 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
209 | : wxProcess(parent, id) | |
210 | {} | |
211 | ||
212 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
213 | ||
214 | PYPRIVATE; | |
215 | }; | |
216 | ||
217 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
bc29c5e0 RD |
218 | #ifdef __cplusplus |
219 | extern "C" { | |
220 | #endif | |
221 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
222 | PyObject * _resultobj; | |
223 | wxString * _result; | |
224 | char * _arg0; | |
225 | char * _arg1 = (char *) NULL; | |
226 | char * _arg2 = (char *) NULL; | |
227 | char * _arg3 = (char *) NULL; | |
228 | char * _arg4 = (char *) "*.*"; | |
229 | int _arg5 = (int ) 0; | |
230 | wxWindow * _arg6 = (wxWindow *) NULL; | |
231 | int _arg7 = (int ) -1; | |
232 | int _arg8 = (int ) -1; | |
233 | PyObject * _argo6 = 0; | |
234 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
235 | ||
236 | self = self; | |
237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8)) | |
238 | return NULL; | |
239 | if (_argo6) { | |
240 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
241 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
243 | return NULL; | |
244 | } | |
245 | } | |
246 | { | |
247 | wxPy_BEGIN_ALLOW_THREADS; | |
248 | _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)); | |
249 | ||
250 | wxPy_END_ALLOW_THREADS; | |
251 | }{ | |
e02c03a4 | 252 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
bc29c5e0 RD |
253 | } |
254 | { | |
255 | delete _result; | |
256 | } | |
257 | return _resultobj; | |
258 | } | |
259 | ||
260 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
261 | PyObject * _resultobj; | |
262 | wxString * _result; | |
263 | wxString * _arg0; | |
264 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
265 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
266 | wxWindow * _arg3 = (wxWindow *) NULL; | |
267 | int _arg4 = (int ) -1; | |
268 | int _arg5 = (int ) -1; | |
269 | bool _arg6 = (bool ) TRUE; | |
270 | PyObject * _obj0 = 0; | |
271 | PyObject * _obj1 = 0; | |
272 | PyObject * _obj2 = 0; | |
273 | PyObject * _argo3 = 0; | |
274 | int tempbool6 = (int) TRUE; | |
275 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
276 | ||
277 | self = self; | |
278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
279 | return NULL; | |
280 | { | |
2cd2fac8 RD |
281 | #if PYTHON_API_VERSION >= 1009 |
282 | char* tmpPtr; int tmpSize; | |
283 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
284 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
285 | return NULL; | |
286 | } | |
287 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
288 | return NULL; | |
289 | _arg0 = new wxString(tmpPtr, tmpSize); | |
290 | #else | |
bc29c5e0 RD |
291 | if (!PyString_Check(_obj0)) { |
292 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
293 | return NULL; | |
294 | } | |
2cd2fac8 RD |
295 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
296 | #endif | |
bc29c5e0 RD |
297 | } |
298 | if (_obj1) | |
299 | { | |
2cd2fac8 RD |
300 | #if PYTHON_API_VERSION >= 1009 |
301 | char* tmpPtr; int tmpSize; | |
302 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
303 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
304 | return NULL; | |
305 | } | |
306 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
307 | return NULL; | |
308 | _arg1 = new wxString(tmpPtr, tmpSize); | |
309 | #else | |
bc29c5e0 RD |
310 | if (!PyString_Check(_obj1)) { |
311 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
312 | return NULL; | |
313 | } | |
2cd2fac8 RD |
314 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
315 | #endif | |
bc29c5e0 RD |
316 | } |
317 | if (_obj2) | |
318 | { | |
2cd2fac8 RD |
319 | #if PYTHON_API_VERSION >= 1009 |
320 | char* tmpPtr; int tmpSize; | |
321 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
322 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
323 | return NULL; | |
324 | } | |
325 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
326 | return NULL; | |
327 | _arg2 = new wxString(tmpPtr, tmpSize); | |
328 | #else | |
bc29c5e0 RD |
329 | if (!PyString_Check(_obj2)) { |
330 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
331 | return NULL; | |
332 | } | |
2cd2fac8 RD |
333 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
334 | #endif | |
bc29c5e0 RD |
335 | } |
336 | if (_argo3) { | |
337 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
338 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
340 | return NULL; | |
341 | } | |
342 | } | |
343 | _arg6 = (bool ) tempbool6; | |
344 | { | |
345 | wxPy_BEGIN_ALLOW_THREADS; | |
346 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); | |
347 | ||
348 | wxPy_END_ALLOW_THREADS; | |
349 | }{ | |
e02c03a4 | 350 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
bc29c5e0 RD |
351 | } |
352 | { | |
353 | if (_obj0) | |
354 | delete _arg0; | |
355 | } | |
356 | { | |
357 | if (_obj1) | |
358 | delete _arg1; | |
359 | } | |
360 | { | |
361 | if (_obj2) | |
362 | delete _arg2; | |
363 | } | |
364 | { | |
365 | delete _result; | |
366 | } | |
367 | return _resultobj; | |
368 | } | |
369 | ||
1b62f00d RD |
370 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
371 | PyObject * _resultobj; | |
372 | wxString * _result; | |
373 | wxString * _arg0; | |
374 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
375 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
376 | wxWindow * _arg3 = (wxWindow *) NULL; | |
377 | PyObject * _obj0 = 0; | |
378 | PyObject * _obj1 = 0; | |
379 | PyObject * _obj2 = 0; | |
380 | PyObject * _argo3 = 0; | |
381 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
382 | ||
383 | self = self; | |
384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
385 | return NULL; | |
386 | { | |
387 | #if PYTHON_API_VERSION >= 1009 | |
388 | char* tmpPtr; int tmpSize; | |
389 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
390 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
391 | return NULL; | |
392 | } | |
393 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
394 | return NULL; | |
395 | _arg0 = new wxString(tmpPtr, tmpSize); | |
396 | #else | |
397 | if (!PyString_Check(_obj0)) { | |
398 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
399 | return NULL; | |
400 | } | |
401 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
402 | #endif | |
403 | } | |
404 | if (_obj1) | |
405 | { | |
406 | #if PYTHON_API_VERSION >= 1009 | |
407 | char* tmpPtr; int tmpSize; | |
408 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
409 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
410 | return NULL; | |
411 | } | |
412 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
413 | return NULL; | |
414 | _arg1 = new wxString(tmpPtr, tmpSize); | |
415 | #else | |
416 | if (!PyString_Check(_obj1)) { | |
417 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
418 | return NULL; | |
419 | } | |
420 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
421 | #endif | |
422 | } | |
423 | if (_obj2) | |
424 | { | |
425 | #if PYTHON_API_VERSION >= 1009 | |
426 | char* tmpPtr; int tmpSize; | |
427 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
428 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
429 | return NULL; | |
430 | } | |
431 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
432 | return NULL; | |
433 | _arg2 = new wxString(tmpPtr, tmpSize); | |
434 | #else | |
435 | if (!PyString_Check(_obj2)) { | |
436 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
437 | return NULL; | |
438 | } | |
439 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
440 | #endif | |
441 | } | |
442 | if (_argo3) { | |
443 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
444 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
446 | return NULL; | |
447 | } | |
448 | } | |
449 | { | |
450 | wxPy_BEGIN_ALLOW_THREADS; | |
451 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); | |
452 | ||
453 | wxPy_END_ALLOW_THREADS; | |
454 | }{ | |
455 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
456 | } | |
457 | { | |
458 | if (_obj0) | |
459 | delete _arg0; | |
460 | } | |
461 | { | |
462 | if (_obj1) | |
463 | delete _arg1; | |
464 | } | |
465 | { | |
466 | if (_obj2) | |
467 | delete _arg2; | |
468 | } | |
469 | { | |
470 | delete _result; | |
471 | } | |
472 | return _resultobj; | |
473 | } | |
474 | ||
bc29c5e0 RD |
475 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
476 | PyObject * _resultobj; | |
477 | wxString * _result; | |
478 | wxString * _arg0; | |
479 | wxString * _arg1; | |
480 | int _arg2; | |
481 | wxString * _arg3; | |
482 | wxWindow * _arg4 = (wxWindow *) NULL; | |
483 | int _arg5 = (int ) -1; | |
484 | int _arg6 = (int ) -1; | |
485 | bool _arg7 = (bool ) TRUE; | |
486 | int _arg8 = (int ) 150; | |
487 | int _arg9 = (int ) 200; | |
488 | PyObject * _obj0 = 0; | |
489 | PyObject * _obj1 = 0; | |
490 | PyObject * _obj3 = 0; | |
491 | PyObject * _argo4 = 0; | |
492 | int tempbool7 = (int) TRUE; | |
e02c03a4 | 493 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
bc29c5e0 RD |
494 | |
495 | self = self; | |
496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
497 | return NULL; | |
498 | { | |
2cd2fac8 RD |
499 | #if PYTHON_API_VERSION >= 1009 |
500 | char* tmpPtr; int tmpSize; | |
501 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
502 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
503 | return NULL; | |
504 | } | |
505 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
506 | return NULL; | |
507 | _arg0 = new wxString(tmpPtr, tmpSize); | |
508 | #else | |
bc29c5e0 RD |
509 | if (!PyString_Check(_obj0)) { |
510 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
511 | return NULL; | |
512 | } | |
2cd2fac8 RD |
513 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
514 | #endif | |
bc29c5e0 RD |
515 | } |
516 | { | |
2cd2fac8 RD |
517 | #if PYTHON_API_VERSION >= 1009 |
518 | char* tmpPtr; int tmpSize; | |
519 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
520 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
521 | return NULL; | |
522 | } | |
523 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
524 | return NULL; | |
525 | _arg1 = new wxString(tmpPtr, tmpSize); | |
526 | #else | |
bc29c5e0 RD |
527 | if (!PyString_Check(_obj1)) { |
528 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
529 | return NULL; | |
530 | } | |
2cd2fac8 RD |
531 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
532 | #endif | |
bc29c5e0 RD |
533 | } |
534 | if (_obj3) | |
535 | { | |
536 | _arg3 = wxString_LIST_helper(_obj3); | |
537 | if (_arg3 == NULL) { | |
538 | return NULL; | |
539 | } | |
540 | } | |
541 | if (_argo4) { | |
542 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
543 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
545 | return NULL; | |
546 | } | |
547 | } | |
548 | _arg7 = (bool ) tempbool7; | |
549 | { | |
550 | if (_obj3) { | |
551 | _arg2 = PyList_Size(_obj3); | |
552 | } | |
553 | else { | |
554 | _arg2 = 0; | |
555 | } | |
556 | } | |
557 | { | |
558 | wxPy_BEGIN_ALLOW_THREADS; | |
559 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); | |
560 | ||
561 | wxPy_END_ALLOW_THREADS; | |
562 | }{ | |
e02c03a4 | 563 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
bc29c5e0 RD |
564 | } |
565 | { | |
566 | if (_obj0) | |
567 | delete _arg0; | |
568 | } | |
569 | { | |
570 | if (_obj1) | |
571 | delete _arg1; | |
572 | } | |
573 | { | |
574 | delete [] _arg3; | |
575 | } | |
576 | { | |
577 | delete _result; | |
578 | } | |
579 | return _resultobj; | |
580 | } | |
581 | ||
582 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
583 | PyObject * _resultobj; | |
584 | int _result; | |
585 | wxString * _arg0; | |
586 | wxString * _arg1; | |
587 | int _arg2; | |
588 | wxString * _arg3; | |
589 | wxWindow * _arg4 = (wxWindow *) NULL; | |
590 | int _arg5 = (int ) -1; | |
591 | int _arg6 = (int ) -1; | |
592 | bool _arg7 = (bool ) TRUE; | |
593 | int _arg8 = (int ) 150; | |
594 | int _arg9 = (int ) 200; | |
595 | PyObject * _obj0 = 0; | |
596 | PyObject * _obj1 = 0; | |
597 | PyObject * _obj3 = 0; | |
598 | PyObject * _argo4 = 0; | |
599 | int tempbool7 = (int) TRUE; | |
e02c03a4 | 600 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
bc29c5e0 RD |
601 | |
602 | self = self; | |
603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
604 | return NULL; | |
605 | { | |
2cd2fac8 RD |
606 | #if PYTHON_API_VERSION >= 1009 |
607 | char* tmpPtr; int tmpSize; | |
608 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
609 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
610 | return NULL; | |
611 | } | |
612 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
613 | return NULL; | |
614 | _arg0 = new wxString(tmpPtr, tmpSize); | |
615 | #else | |
bc29c5e0 RD |
616 | if (!PyString_Check(_obj0)) { |
617 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
618 | return NULL; | |
619 | } | |
2cd2fac8 RD |
620 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
621 | #endif | |
bc29c5e0 RD |
622 | } |
623 | { | |
2cd2fac8 RD |
624 | #if PYTHON_API_VERSION >= 1009 |
625 | char* tmpPtr; int tmpSize; | |
626 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
627 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
628 | return NULL; | |
629 | } | |
630 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
631 | return NULL; | |
632 | _arg1 = new wxString(tmpPtr, tmpSize); | |
633 | #else | |
bc29c5e0 RD |
634 | if (!PyString_Check(_obj1)) { |
635 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
636 | return NULL; | |
637 | } | |
2cd2fac8 RD |
638 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
639 | #endif | |
bc29c5e0 RD |
640 | } |
641 | if (_obj3) | |
642 | { | |
643 | _arg3 = wxString_LIST_helper(_obj3); | |
644 | if (_arg3 == NULL) { | |
645 | return NULL; | |
646 | } | |
647 | } | |
648 | if (_argo4) { | |
649 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
650 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
652 | return NULL; | |
653 | } | |
654 | } | |
655 | _arg7 = (bool ) tempbool7; | |
656 | { | |
657 | if (_obj3) { | |
658 | _arg2 = PyList_Size(_obj3); | |
659 | } | |
660 | else { | |
661 | _arg2 = 0; | |
662 | } | |
663 | } | |
664 | { | |
665 | wxPy_BEGIN_ALLOW_THREADS; | |
666 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
667 | ||
668 | wxPy_END_ALLOW_THREADS; | |
669 | } _resultobj = Py_BuildValue("i",_result); | |
670 | { | |
671 | if (_obj0) | |
672 | delete _arg0; | |
673 | } | |
674 | { | |
675 | if (_obj1) | |
676 | delete _arg1; | |
677 | } | |
678 | { | |
679 | delete [] _arg3; | |
680 | } | |
681 | return _resultobj; | |
682 | } | |
683 | ||
684 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
685 | PyObject * _resultobj; | |
686 | int _result; | |
687 | wxString * _arg0; | |
688 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
689 | int _arg2 = (int ) wxOK|wxCENTRE; | |
690 | wxWindow * _arg3 = (wxWindow *) NULL; | |
691 | int _arg4 = (int ) -1; | |
692 | int _arg5 = (int ) -1; | |
693 | PyObject * _obj0 = 0; | |
694 | PyObject * _obj1 = 0; | |
695 | PyObject * _argo3 = 0; | |
696 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
697 | ||
698 | self = self; | |
699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
700 | return NULL; | |
701 | { | |
2cd2fac8 RD |
702 | #if PYTHON_API_VERSION >= 1009 |
703 | char* tmpPtr; int tmpSize; | |
704 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
705 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
706 | return NULL; | |
707 | } | |
708 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
709 | return NULL; | |
710 | _arg0 = new wxString(tmpPtr, tmpSize); | |
711 | #else | |
bc29c5e0 RD |
712 | if (!PyString_Check(_obj0)) { |
713 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
714 | return NULL; | |
715 | } | |
2cd2fac8 RD |
716 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
717 | #endif | |
bc29c5e0 RD |
718 | } |
719 | if (_obj1) | |
720 | { | |
2cd2fac8 RD |
721 | #if PYTHON_API_VERSION >= 1009 |
722 | char* tmpPtr; int tmpSize; | |
723 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
724 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
725 | return NULL; | |
726 | } | |
727 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
728 | return NULL; | |
729 | _arg1 = new wxString(tmpPtr, tmpSize); | |
730 | #else | |
bc29c5e0 RD |
731 | if (!PyString_Check(_obj1)) { |
732 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
733 | return NULL; | |
734 | } | |
2cd2fac8 RD |
735 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
736 | #endif | |
bc29c5e0 RD |
737 | } |
738 | if (_argo3) { | |
739 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
740 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
742 | return NULL; | |
743 | } | |
744 | } | |
745 | { | |
746 | wxPy_BEGIN_ALLOW_THREADS; | |
747 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
748 | ||
749 | wxPy_END_ALLOW_THREADS; | |
750 | } _resultobj = Py_BuildValue("i",_result); | |
751 | { | |
752 | if (_obj0) | |
753 | delete _arg0; | |
754 | } | |
755 | { | |
756 | if (_obj1) | |
757 | delete _arg1; | |
758 | } | |
759 | return _resultobj; | |
760 | } | |
761 | ||
762 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
763 | PyObject * _resultobj; | |
764 | long _result; | |
765 | wxString * _arg0; | |
766 | wxString * _arg1; | |
767 | wxString * _arg2; | |
768 | long _arg3; | |
769 | long _arg4 = (long ) 0; | |
770 | long _arg5 = (long ) 100; | |
771 | wxWindow * _arg6 = (wxWindow *) NULL; | |
b68dc582 | 772 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
bc29c5e0 RD |
773 | PyObject * _obj0 = 0; |
774 | PyObject * _obj1 = 0; | |
775 | PyObject * _obj2 = 0; | |
776 | PyObject * _argo6 = 0; | |
777 | wxPoint temp; | |
778 | PyObject * _obj7 = 0; | |
779 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
780 | ||
781 | self = self; | |
782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
783 | return NULL; | |
784 | { | |
2cd2fac8 RD |
785 | #if PYTHON_API_VERSION >= 1009 |
786 | char* tmpPtr; int tmpSize; | |
787 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
788 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
789 | return NULL; | |
790 | } | |
791 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
792 | return NULL; | |
793 | _arg0 = new wxString(tmpPtr, tmpSize); | |
794 | #else | |
bc29c5e0 RD |
795 | if (!PyString_Check(_obj0)) { |
796 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
797 | return NULL; | |
798 | } | |
2cd2fac8 RD |
799 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
800 | #endif | |
bc29c5e0 RD |
801 | } |
802 | { | |
2cd2fac8 RD |
803 | #if PYTHON_API_VERSION >= 1009 |
804 | char* tmpPtr; int tmpSize; | |
805 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
806 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
807 | return NULL; | |
808 | } | |
809 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
810 | return NULL; | |
811 | _arg1 = new wxString(tmpPtr, tmpSize); | |
812 | #else | |
bc29c5e0 RD |
813 | if (!PyString_Check(_obj1)) { |
814 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
815 | return NULL; | |
816 | } | |
2cd2fac8 RD |
817 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
818 | #endif | |
bc29c5e0 RD |
819 | } |
820 | { | |
2cd2fac8 RD |
821 | #if PYTHON_API_VERSION >= 1009 |
822 | char* tmpPtr; int tmpSize; | |
823 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
824 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
825 | return NULL; | |
826 | } | |
827 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
828 | return NULL; | |
829 | _arg2 = new wxString(tmpPtr, tmpSize); | |
830 | #else | |
bc29c5e0 RD |
831 | if (!PyString_Check(_obj2)) { |
832 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
833 | return NULL; | |
834 | } | |
2cd2fac8 RD |
835 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
836 | #endif | |
bc29c5e0 RD |
837 | } |
838 | if (_argo6) { | |
839 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
840 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
842 | return NULL; | |
843 | } | |
844 | } | |
845 | if (_obj7) | |
846 | { | |
847 | _arg7 = &temp; | |
848 | if (! wxPoint_helper(_obj7, &_arg7)) | |
849 | return NULL; | |
850 | } | |
851 | { | |
852 | wxPy_BEGIN_ALLOW_THREADS; | |
853 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); | |
854 | ||
855 | wxPy_END_ALLOW_THREADS; | |
856 | } _resultobj = Py_BuildValue("l",_result); | |
857 | { | |
858 | if (_obj0) | |
859 | delete _arg0; | |
860 | } | |
861 | { | |
862 | if (_obj1) | |
863 | delete _arg1; | |
864 | } | |
865 | { | |
866 | if (_obj2) | |
867 | delete _arg2; | |
868 | } | |
869 | return _resultobj; | |
870 | } | |
871 | ||
872 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
873 | PyObject * _resultobj; | |
874 | bool _result; | |
875 | char *_kwnames[] = { NULL }; | |
876 | ||
877 | self = self; | |
878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
879 | return NULL; | |
880 | { | |
881 | wxPy_BEGIN_ALLOW_THREADS; | |
882 | _result = (bool )wxColourDisplay(); | |
883 | ||
884 | wxPy_END_ALLOW_THREADS; | |
885 | } _resultobj = Py_BuildValue("i",_result); | |
886 | return _resultobj; | |
887 | } | |
888 | ||
889 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
890 | PyObject * _resultobj; | |
891 | int _result; | |
892 | char *_kwnames[] = { NULL }; | |
893 | ||
894 | self = self; | |
895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
896 | return NULL; | |
897 | { | |
898 | wxPy_BEGIN_ALLOW_THREADS; | |
899 | _result = (int )wxDisplayDepth(); | |
900 | ||
901 | wxPy_END_ALLOW_THREADS; | |
902 | } _resultobj = Py_BuildValue("i",_result); | |
903 | return _resultobj; | |
904 | } | |
8f17924e | 905 | |
b68dc582 RD |
906 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
907 | PyObject * _resultobj; | |
908 | int _result; | |
909 | char *_kwnames[] = { NULL }; | |
910 | ||
911 | self = self; | |
912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
913 | return NULL; | |
914 | { | |
915 | wxPy_BEGIN_ALLOW_THREADS; | |
916 | _result = (int )wxGetDisplayDepth(); | |
917 | ||
918 | wxPy_END_ALLOW_THREADS; | |
919 | } _resultobj = Py_BuildValue("i",_result); | |
920 | return _resultobj; | |
921 | } | |
922 | ||
923 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
924 | PyObject * _resultobj; | |
925 | int * _arg0; | |
926 | int temp; | |
927 | int * _arg1; | |
928 | int temp0; | |
929 | char *_kwnames[] = { NULL }; | |
930 | ||
931 | self = self; | |
932 | { | |
933 | _arg0 = &temp; | |
934 | } | |
935 | { | |
936 | _arg1 = &temp0; | |
937 | } | |
938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
939 | return NULL; | |
940 | { | |
941 | wxPy_BEGIN_ALLOW_THREADS; | |
942 | wxDisplaySize(_arg0,_arg1); | |
943 | ||
944 | wxPy_END_ALLOW_THREADS; | |
945 | } Py_INCREF(Py_None); | |
946 | _resultobj = Py_None; | |
947 | { | |
948 | PyObject *o; | |
949 | o = PyInt_FromLong((long) (*_arg0)); | |
950 | _resultobj = t_output_helper(_resultobj, o); | |
951 | } | |
952 | { | |
953 | PyObject *o; | |
954 | o = PyInt_FromLong((long) (*_arg1)); | |
955 | _resultobj = t_output_helper(_resultobj, o); | |
956 | } | |
957 | return _resultobj; | |
958 | } | |
959 | ||
960 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
961 | PyObject * _resultobj; | |
962 | wxSize * _result; | |
963 | char *_kwnames[] = { NULL }; | |
964 | char _ptemp[128]; | |
965 | ||
966 | self = self; | |
967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
968 | return NULL; | |
969 | { | |
970 | wxPy_BEGIN_ALLOW_THREADS; | |
971 | _result = new wxSize (wxGetDisplaySize()); | |
972 | ||
973 | wxPy_END_ALLOW_THREADS; | |
974 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
975 | _resultobj = Py_BuildValue("s",_ptemp); | |
976 | return _resultobj; | |
977 | } | |
978 | ||
9c4165ad RD |
979 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
980 | PyObject * _resultobj; | |
981 | int * _arg0; | |
982 | int temp; | |
983 | int * _arg1; | |
984 | int temp0; | |
985 | char *_kwnames[] = { NULL }; | |
986 | ||
987 | self = self; | |
988 | { | |
989 | _arg0 = &temp; | |
990 | } | |
991 | { | |
992 | _arg1 = &temp0; | |
993 | } | |
994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
995 | return NULL; | |
996 | { | |
997 | wxPy_BEGIN_ALLOW_THREADS; | |
998 | wxDisplaySizeMM(_arg0,_arg1); | |
999 | ||
1000 | wxPy_END_ALLOW_THREADS; | |
1001 | } Py_INCREF(Py_None); | |
1002 | _resultobj = Py_None; | |
1003 | { | |
1004 | PyObject *o; | |
1005 | o = PyInt_FromLong((long) (*_arg0)); | |
1006 | _resultobj = t_output_helper(_resultobj, o); | |
1007 | } | |
1008 | { | |
1009 | PyObject *o; | |
1010 | o = PyInt_FromLong((long) (*_arg1)); | |
1011 | _resultobj = t_output_helper(_resultobj, o); | |
1012 | } | |
1013 | return _resultobj; | |
1014 | } | |
1015 | ||
1016 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1017 | PyObject * _resultobj; | |
1018 | wxSize * _result; | |
1019 | char *_kwnames[] = { NULL }; | |
1020 | char _ptemp[128]; | |
1021 | ||
1022 | self = self; | |
1023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1024 | return NULL; | |
1025 | { | |
1026 | wxPy_BEGIN_ALLOW_THREADS; | |
1027 | _result = new wxSize (wxGetDisplaySizeMM()); | |
1028 | ||
1029 | wxPy_END_ALLOW_THREADS; | |
1030 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1031 | _resultobj = Py_BuildValue("s",_ptemp); | |
1032 | return _resultobj; | |
1033 | } | |
1034 | ||
9e689c06 RD |
1035 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1036 | PyObject * _resultobj; | |
1037 | int * _arg0; | |
1038 | int temp; | |
1039 | int * _arg1; | |
1040 | int temp0; | |
1041 | int * _arg2; | |
1042 | int temp1; | |
1043 | int * _arg3; | |
1044 | int temp2; | |
1045 | char *_kwnames[] = { NULL }; | |
1046 | ||
1047 | self = self; | |
1048 | { | |
1049 | _arg0 = &temp; | |
1050 | } | |
1051 | { | |
1052 | _arg1 = &temp0; | |
1053 | } | |
1054 | { | |
1055 | _arg2 = &temp1; | |
1056 | } | |
1057 | { | |
1058 | _arg3 = &temp2; | |
1059 | } | |
1060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1061 | return NULL; | |
1062 | { | |
1063 | wxPy_BEGIN_ALLOW_THREADS; | |
1064 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); | |
1065 | ||
1066 | wxPy_END_ALLOW_THREADS; | |
1067 | } Py_INCREF(Py_None); | |
1068 | _resultobj = Py_None; | |
1069 | { | |
1070 | PyObject *o; | |
1071 | o = PyInt_FromLong((long) (*_arg0)); | |
1072 | _resultobj = t_output_helper(_resultobj, o); | |
1073 | } | |
1074 | { | |
1075 | PyObject *o; | |
1076 | o = PyInt_FromLong((long) (*_arg1)); | |
1077 | _resultobj = t_output_helper(_resultobj, o); | |
1078 | } | |
1079 | { | |
1080 | PyObject *o; | |
1081 | o = PyInt_FromLong((long) (*_arg2)); | |
1082 | _resultobj = t_output_helper(_resultobj, o); | |
1083 | } | |
1084 | { | |
1085 | PyObject *o; | |
1086 | o = PyInt_FromLong((long) (*_arg3)); | |
1087 | _resultobj = t_output_helper(_resultobj, o); | |
1088 | } | |
1089 | return _resultobj; | |
1090 | } | |
1091 | ||
1092 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1093 | PyObject * _resultobj; | |
1094 | wxRect * _result; | |
1095 | char *_kwnames[] = { NULL }; | |
1096 | char _ptemp[128]; | |
1097 | ||
1098 | self = self; | |
1099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1100 | return NULL; | |
1101 | { | |
1102 | wxPy_BEGIN_ALLOW_THREADS; | |
1103 | _result = new wxRect (wxGetClientDisplayRect()); | |
1104 | ||
1105 | wxPy_END_ALLOW_THREADS; | |
1106 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1107 | _resultobj = Py_BuildValue("s",_ptemp); | |
1108 | return _resultobj; | |
1109 | } | |
1110 | ||
bc29c5e0 RD |
1111 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1112 | PyObject * _resultobj; | |
1113 | wxCursor * _arg0; | |
1114 | PyObject * _argo0 = 0; | |
1115 | char *_kwnames[] = { "cursor", NULL }; | |
8f17924e | 1116 | |
bc29c5e0 RD |
1117 | self = self; |
1118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1119 | return NULL; | |
1120 | if (_argo0) { | |
1121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1124 | return NULL; | |
1125 | } | |
8f17924e | 1126 | } |
bc29c5e0 RD |
1127 | { |
1128 | wxPy_BEGIN_ALLOW_THREADS; | |
1129 | wxSetCursor(*_arg0); | |
1130 | ||
1131 | wxPy_END_ALLOW_THREADS; | |
1132 | } Py_INCREF(Py_None); | |
1133 | _resultobj = Py_None; | |
1134 | return _resultobj; | |
1135 | } | |
1136 | ||
107e4716 | 1137 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1138 | PyObject * _resultobj; |
1139 | wxWindow * _result; | |
1140 | wxString * _arg0; | |
2d091820 | 1141 | wxWindow * _arg1 = (wxWindow *) NULL; |
d24a34bb | 1142 | PyObject * _obj0 = 0; |
2d091820 | 1143 | PyObject * _argo1 = 0; |
107e4716 | 1144 | char *_kwnames[] = { "label","parent", NULL }; |
d24a34bb RD |
1145 | char _ptemp[128]; |
1146 | ||
1147 | self = self; | |
107e4716 | 1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) |
d24a34bb RD |
1149 | return NULL; |
1150 | { | |
2cd2fac8 RD |
1151 | #if PYTHON_API_VERSION >= 1009 |
1152 | char* tmpPtr; int tmpSize; | |
1153 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1154 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1155 | return NULL; | |
1156 | } | |
1157 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1158 | return NULL; | |
1159 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1160 | #else | |
d24a34bb RD |
1161 | if (!PyString_Check(_obj0)) { |
1162 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1163 | return NULL; | |
1164 | } | |
2cd2fac8 RD |
1165 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1166 | #endif | |
d24a34bb | 1167 | } |
2d091820 RD |
1168 | if (_argo1) { |
1169 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1170 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
d24a34bb RD |
1171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); |
1172 | return NULL; | |
1173 | } | |
1174 | } | |
1175 | { | |
1176 | wxPy_BEGIN_ALLOW_THREADS; | |
1177 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
1178 | ||
1179 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1180 | } if (_result) { |
1181 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1182 | _resultobj = Py_BuildValue("s",_ptemp); | |
1183 | } else { | |
1184 | Py_INCREF(Py_None); | |
1185 | _resultobj = Py_None; | |
1186 | } | |
d24a34bb RD |
1187 | { |
1188 | if (_obj0) | |
1189 | delete _arg0; | |
1190 | } | |
1191 | return _resultobj; | |
1192 | } | |
1193 | ||
107e4716 | 1194 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1195 | PyObject * _resultobj; |
1196 | wxWindow * _result; | |
1197 | wxString * _arg0; | |
2d091820 | 1198 | wxWindow * _arg1 = (wxWindow *) NULL; |
d24a34bb | 1199 | PyObject * _obj0 = 0; |
2d091820 | 1200 | PyObject * _argo1 = 0; |
107e4716 | 1201 | char *_kwnames[] = { "name","parent", NULL }; |
d24a34bb RD |
1202 | char _ptemp[128]; |
1203 | ||
1204 | self = self; | |
107e4716 | 1205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) |
d24a34bb RD |
1206 | return NULL; |
1207 | { | |
2cd2fac8 RD |
1208 | #if PYTHON_API_VERSION >= 1009 |
1209 | char* tmpPtr; int tmpSize; | |
1210 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1211 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1212 | return NULL; | |
1213 | } | |
1214 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1215 | return NULL; | |
1216 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1217 | #else | |
d24a34bb RD |
1218 | if (!PyString_Check(_obj0)) { |
1219 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1220 | return NULL; | |
1221 | } | |
2cd2fac8 RD |
1222 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1223 | #endif | |
d24a34bb | 1224 | } |
2d091820 RD |
1225 | if (_argo1) { |
1226 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1227 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
d24a34bb RD |
1228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); |
1229 | return NULL; | |
1230 | } | |
1231 | } | |
1232 | { | |
1233 | wxPy_BEGIN_ALLOW_THREADS; | |
1234 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
1235 | ||
1236 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1237 | } if (_result) { |
1238 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1239 | _resultobj = Py_BuildValue("s",_ptemp); | |
1240 | } else { | |
1241 | Py_INCREF(Py_None); | |
1242 | _resultobj = Py_None; | |
1243 | } | |
d24a34bb RD |
1244 | { |
1245 | if (_obj0) | |
1246 | delete _arg0; | |
1247 | } | |
1248 | return _resultobj; | |
1249 | } | |
1250 | ||
bc29c5e0 RD |
1251 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1252 | PyObject * _resultobj; | |
1253 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1254 | PyObject * _argo0 = 0; | |
1255 | char *_kwnames[] = { "cursor", NULL }; | |
1256 | ||
1257 | self = self; | |
1258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1259 | return NULL; | |
1260 | if (_argo0) { | |
1261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1264 | return NULL; | |
1265 | } | |
1266 | } | |
1267 | { | |
1268 | wxPy_BEGIN_ALLOW_THREADS; | |
1269 | wxBeginBusyCursor(_arg0); | |
1270 | ||
1271 | wxPy_END_ALLOW_THREADS; | |
1272 | } Py_INCREF(Py_None); | |
1273 | _resultobj = Py_None; | |
1274 | return _resultobj; | |
1275 | } | |
1276 | ||
1277 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1278 | PyObject * _resultobj; | |
1279 | wxWindow * _result; | |
1280 | char *_kwnames[] = { NULL }; | |
1281 | char _ptemp[128]; | |
1282 | ||
1283 | self = self; | |
1284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1285 | return NULL; | |
1286 | { | |
1287 | wxPy_BEGIN_ALLOW_THREADS; | |
1288 | _result = (wxWindow *)wxGetActiveWindow(); | |
1289 | ||
1290 | wxPy_END_ALLOW_THREADS; | |
1291 | } if (_result) { | |
1292 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1293 | _resultobj = Py_BuildValue("s",_ptemp); | |
1294 | } else { | |
1295 | Py_INCREF(Py_None); | |
1296 | _resultobj = Py_None; | |
1297 | } | |
1298 | return _resultobj; | |
1299 | } | |
1300 | ||
1301 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1302 | PyObject * _resultobj; | |
1303 | bool _result; | |
1304 | char * _arg0; | |
1305 | int _arg1; | |
1306 | char *_kwnames[] = { "name","value", NULL }; | |
1307 | ||
1308 | self = self; | |
1309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1310 | return NULL; | |
1311 | { | |
1312 | wxPy_BEGIN_ALLOW_THREADS; | |
1313 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); | |
1314 | ||
1315 | wxPy_END_ALLOW_THREADS; | |
1316 | } _resultobj = Py_BuildValue("i",_result); | |
1317 | return _resultobj; | |
1318 | } | |
1319 | ||
1320 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1321 | PyObject * _resultobj; | |
1322 | char *_kwnames[] = { NULL }; | |
1323 | ||
1324 | self = self; | |
1325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1326 | return NULL; | |
1327 | { | |
1328 | wxPy_BEGIN_ALLOW_THREADS; | |
1329 | wxResourceClear(); | |
1330 | ||
1331 | wxPy_END_ALLOW_THREADS; | |
1332 | } Py_INCREF(Py_None); | |
1333 | _resultobj = Py_None; | |
1334 | return _resultobj; | |
1335 | } | |
1336 | ||
1337 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1338 | PyObject * _resultobj; | |
1339 | wxBitmap * _result; | |
1340 | char * _arg0; | |
1341 | char *_kwnames[] = { "resource", NULL }; | |
1342 | char _ptemp[128]; | |
1343 | ||
1344 | self = self; | |
1345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1346 | return NULL; | |
1347 | { | |
1348 | wxPy_BEGIN_ALLOW_THREADS; | |
1349 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); | |
1350 | ||
1351 | wxPy_END_ALLOW_THREADS; | |
1352 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1353 | _resultobj = Py_BuildValue("s",_ptemp); | |
1354 | return _resultobj; | |
1355 | } | |
1356 | ||
1357 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1358 | PyObject * _resultobj; | |
1359 | wxIcon * _result; | |
1360 | char * _arg0; | |
1361 | char *_kwnames[] = { "resource", NULL }; | |
1362 | char _ptemp[128]; | |
1363 | ||
1364 | self = self; | |
1365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1366 | return NULL; | |
1367 | { | |
1368 | wxPy_BEGIN_ALLOW_THREADS; | |
1369 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); | |
1370 | ||
1371 | wxPy_END_ALLOW_THREADS; | |
1372 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
1373 | _resultobj = Py_BuildValue("s",_ptemp); | |
1374 | return _resultobj; | |
1375 | } | |
1376 | ||
1377 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1378 | PyObject * _resultobj; | |
1379 | wxMenuBar * _result; | |
1380 | char * _arg0; | |
1381 | char *_kwnames[] = { "resource", NULL }; | |
1382 | char _ptemp[128]; | |
1383 | ||
1384 | self = self; | |
1385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1386 | return NULL; | |
1387 | { | |
1388 | wxPy_BEGIN_ALLOW_THREADS; | |
1389 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); | |
1390 | ||
1391 | wxPy_END_ALLOW_THREADS; | |
1392 | } if (_result) { | |
1393 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
1394 | _resultobj = Py_BuildValue("s",_ptemp); | |
1395 | } else { | |
1396 | Py_INCREF(Py_None); | |
1397 | _resultobj = Py_None; | |
1398 | } | |
1399 | return _resultobj; | |
1400 | } | |
1401 | ||
1402 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1403 | PyObject * _resultobj; | |
1404 | int _result; | |
1405 | char * _arg0; | |
1406 | char *_kwnames[] = { "name", NULL }; | |
1407 | ||
1408 | self = self; | |
1409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1410 | return NULL; | |
1411 | { | |
1412 | wxPy_BEGIN_ALLOW_THREADS; | |
1413 | _result = (int )wxResourceGetIdentifier(_arg0); | |
1414 | ||
1415 | wxPy_END_ALLOW_THREADS; | |
1416 | } _resultobj = Py_BuildValue("i",_result); | |
1417 | return _resultobj; | |
1418 | } | |
1419 | ||
1420 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1421 | PyObject * _resultobj; | |
1422 | bool _result; | |
1423 | char * _arg0; | |
1424 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1425 | PyObject * _argo1 = 0; | |
1426 | char *_kwnames[] = { "resource","table", NULL }; | |
1427 | ||
1428 | self = self; | |
1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1430 | return NULL; | |
1431 | if (_argo1) { | |
1432 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1433 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1435 | return NULL; | |
1436 | } | |
1437 | } | |
1438 | { | |
1439 | wxPy_BEGIN_ALLOW_THREADS; | |
1440 | _result = (bool )wxResourceParseData(_arg0,_arg1); | |
1441 | ||
1442 | wxPy_END_ALLOW_THREADS; | |
1443 | } _resultobj = Py_BuildValue("i",_result); | |
1444 | return _resultobj; | |
1445 | } | |
1446 | ||
1447 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1448 | PyObject * _resultobj; | |
1449 | bool _result; | |
1450 | char * _arg0; | |
1451 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1452 | PyObject * _argo1 = 0; | |
1453 | char *_kwnames[] = { "filename","table", NULL }; | |
1454 | ||
1455 | self = self; | |
1456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1457 | return NULL; | |
1458 | if (_argo1) { | |
1459 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1460 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1462 | return NULL; | |
1463 | } | |
1464 | } | |
1465 | { | |
1466 | wxPy_BEGIN_ALLOW_THREADS; | |
1467 | _result = (bool )wxResourceParseFile(_arg0,_arg1); | |
1468 | ||
1469 | wxPy_END_ALLOW_THREADS; | |
1470 | } _resultobj = Py_BuildValue("i",_result); | |
1471 | return _resultobj; | |
1472 | } | |
1473 | ||
1474 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1475 | PyObject * _resultobj; | |
1476 | bool _result; | |
1477 | char * _arg0; | |
1478 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1479 | PyObject * _argo1 = 0; | |
1480 | char *_kwnames[] = { "resource","table", NULL }; | |
1481 | ||
1482 | self = self; | |
1483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1484 | return NULL; | |
1485 | if (_argo1) { | |
1486 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1487 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1489 | return NULL; | |
1490 | } | |
1491 | } | |
1492 | { | |
1493 | wxPy_BEGIN_ALLOW_THREADS; | |
1494 | _result = (bool )wxResourceParseString(_arg0,_arg1); | |
1495 | ||
1496 | wxPy_END_ALLOW_THREADS; | |
1497 | } _resultobj = Py_BuildValue("i",_result); | |
1498 | return _resultobj; | |
1499 | } | |
1500 | ||
1501 | static PyObject *_wrap_wxSystemSettings_GetSystemColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1502 | PyObject * _resultobj; | |
1503 | wxColour * _result; | |
1504 | int _arg0; | |
1505 | char *_kwnames[] = { "index", NULL }; | |
1506 | char _ptemp[128]; | |
1507 | ||
1508 | self = self; | |
1509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemColour",_kwnames,&_arg0)) | |
1510 | return NULL; | |
1511 | { | |
1512 | wxPy_BEGIN_ALLOW_THREADS; | |
1513 | _result = new wxColour (wxSystemSettings_GetSystemColour(_arg0)); | |
1514 | ||
1515 | wxPy_END_ALLOW_THREADS; | |
1516 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1517 | _resultobj = Py_BuildValue("s",_ptemp); | |
1518 | return _resultobj; | |
1519 | } | |
1520 | ||
1521 | static PyObject *_wrap_wxSystemSettings_GetSystemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1522 | PyObject * _resultobj; | |
1523 | wxFont * _result; | |
1524 | int _arg0; | |
1525 | char *_kwnames[] = { "index", NULL }; | |
1526 | char _ptemp[128]; | |
1527 | ||
1528 | self = self; | |
1529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemFont",_kwnames,&_arg0)) | |
1530 | return NULL; | |
1531 | { | |
1532 | wxPy_BEGIN_ALLOW_THREADS; | |
1533 | _result = new wxFont (wxSystemSettings_GetSystemFont(_arg0)); | |
1534 | ||
1535 | wxPy_END_ALLOW_THREADS; | |
1536 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1537 | _resultobj = Py_BuildValue("s",_ptemp); | |
1538 | return _resultobj; | |
1539 | } | |
1540 | ||
1541 | static PyObject *_wrap_wxSystemSettings_GetSystemMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject * _resultobj; | |
1543 | int _result; | |
1544 | int _arg0; | |
1545 | char *_kwnames[] = { "index", NULL }; | |
1546 | ||
1547 | self = self; | |
1548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemMetric",_kwnames,&_arg0)) | |
1549 | return NULL; | |
1550 | { | |
1551 | wxPy_BEGIN_ALLOW_THREADS; | |
1552 | _result = (int )wxSystemSettings_GetSystemMetric(_arg0); | |
1553 | ||
1554 | wxPy_END_ALLOW_THREADS; | |
1555 | } _resultobj = Py_BuildValue("i",_result); | |
1556 | return _resultobj; | |
1557 | } | |
1558 | ||
107e4716 | 1559 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1560 | PyObject * _resultobj; |
1561 | bool _arg0; | |
1562 | int tempbool0; | |
107e4716 | 1563 | char *_kwnames[] = { "flag", NULL }; |
d24a34bb RD |
1564 | |
1565 | self = self; | |
107e4716 | 1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) |
d24a34bb RD |
1567 | return NULL; |
1568 | _arg0 = (bool ) tempbool0; | |
1569 | { | |
1570 | wxPy_BEGIN_ALLOW_THREADS; | |
1571 | wxToolTip_Enable(_arg0); | |
1572 | ||
1573 | wxPy_END_ALLOW_THREADS; | |
1574 | } Py_INCREF(Py_None); | |
1575 | _resultobj = Py_None; | |
1576 | return _resultobj; | |
1577 | } | |
1578 | ||
107e4716 | 1579 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1580 | PyObject * _resultobj; |
1581 | long _arg0; | |
107e4716 | 1582 | char *_kwnames[] = { "milliseconds", NULL }; |
d24a34bb RD |
1583 | |
1584 | self = self; | |
107e4716 | 1585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) |
d24a34bb RD |
1586 | return NULL; |
1587 | { | |
1588 | wxPy_BEGIN_ALLOW_THREADS; | |
1589 | wxToolTip_SetDelay(_arg0); | |
1590 | ||
1591 | wxPy_END_ALLOW_THREADS; | |
1592 | } Py_INCREF(Py_None); | |
1593 | _resultobj = Py_None; | |
1594 | return _resultobj; | |
1595 | } | |
1596 | ||
8f17924e RD |
1597 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1598 | PyObject * _resultobj; | |
1599 | int _result; | |
1600 | char *_kwnames[] = { NULL }; | |
1601 | ||
1602 | self = self; | |
1603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1604 | return NULL; | |
1605 | { | |
1606 | wxPy_BEGIN_ALLOW_THREADS; | |
1607 | _result = (int )wxCaret_GetBlinkTime(); | |
1608 | ||
1609 | wxPy_END_ALLOW_THREADS; | |
1610 | } _resultobj = Py_BuildValue("i",_result); | |
1611 | return _resultobj; | |
1612 | } | |
1613 | ||
1614 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1615 | PyObject * _resultobj; | |
1616 | int _arg0; | |
1617 | char *_kwnames[] = { "milliseconds", NULL }; | |
1618 | ||
1619 | self = self; | |
1620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1621 | return NULL; | |
1622 | { | |
1623 | wxPy_BEGIN_ALLOW_THREADS; | |
1624 | wxCaret_SetBlinkTime(_arg0); | |
1625 | ||
1626 | wxPy_END_ALLOW_THREADS; | |
1627 | } Py_INCREF(Py_None); | |
1628 | _resultobj = Py_None; | |
1629 | return _resultobj; | |
1630 | } | |
1631 | ||
4662be59 RD |
1632 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1633 | PyObject * _resultobj; | |
1634 | bool _result; | |
1635 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1636 | PyObject * _argo0 = 0; | |
1637 | char *_kwnames[] = { "win", NULL }; | |
1638 | ||
1639 | self = self; | |
1640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1641 | return NULL; | |
1642 | if (_argo0) { | |
1643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1646 | return NULL; | |
1647 | } | |
1648 | } | |
1649 | { | |
1650 | wxPy_BEGIN_ALLOW_THREADS; | |
1651 | _result = (bool )wxSafeYield(_arg0); | |
1652 | ||
1653 | wxPy_END_ALLOW_THREADS; | |
1654 | } _resultobj = Py_BuildValue("i",_result); | |
1655 | return _resultobj; | |
1656 | } | |
1657 | ||
4120ef2b RD |
1658 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1659 | PyObject * _resultobj; | |
1660 | wxEvtHandler * _arg0; | |
1661 | wxEvent * _arg1; | |
1662 | PyObject * _argo0 = 0; | |
1663 | PyObject * _argo1 = 0; | |
1664 | char *_kwnames[] = { "dest","event", NULL }; | |
1665 | ||
1666 | self = self; | |
1667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1668 | return NULL; | |
1669 | if (_argo0) { | |
1670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1673 | return NULL; | |
1674 | } | |
1675 | } | |
1676 | if (_argo1) { | |
1677 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1678 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1680 | return NULL; | |
1681 | } | |
1682 | } | |
1683 | { | |
1684 | wxPy_BEGIN_ALLOW_THREADS; | |
1685 | wxPostEvent(_arg0,*_arg1); | |
1686 | ||
1687 | wxPy_END_ALLOW_THREADS; | |
1688 | } Py_INCREF(Py_None); | |
1689 | _resultobj = Py_None; | |
1690 | return _resultobj; | |
1691 | } | |
1692 | ||
d29aba2f RD |
1693 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1694 | PyObject * _resultobj; | |
1695 | char *_kwnames[] = { NULL }; | |
1696 | ||
1697 | self = self; | |
1698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1699 | return NULL; | |
1700 | { | |
1701 | wxPy_BEGIN_ALLOW_THREADS; | |
1702 | wxWakeUpIdle(); | |
1703 | ||
1704 | wxPy_END_ALLOW_THREADS; | |
1705 | } Py_INCREF(Py_None); | |
1706 | _resultobj = Py_None; | |
1707 | return _resultobj; | |
1708 | } | |
1709 | ||
4662be59 | 1710 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1711 | PyObject * _resultobj; |
4662be59 | 1712 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1713 | |
1714 | self = self; | |
4662be59 | 1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) |
c368d904 | 1716 | return NULL; |
4662be59 RD |
1717 | { |
1718 | wxPy_BEGIN_ALLOW_THREADS; | |
1719 | wxMutexGuiEnter(); | |
1720 | ||
1721 | wxPy_END_ALLOW_THREADS; | |
1722 | } Py_INCREF(Py_None); | |
1723 | _resultobj = Py_None; | |
1724 | return _resultobj; | |
1725 | } | |
1726 | ||
1727 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1728 | PyObject * _resultobj; | |
1729 | char *_kwnames[] = { NULL }; | |
1730 | ||
1731 | self = self; | |
1732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
c368d904 | 1733 | return NULL; |
c368d904 RD |
1734 | { |
1735 | wxPy_BEGIN_ALLOW_THREADS; | |
4662be59 RD |
1736 | wxMutexGuiLeave(); |
1737 | ||
1738 | wxPy_END_ALLOW_THREADS; | |
1739 | } Py_INCREF(Py_None); | |
1740 | _resultobj = Py_None; | |
1741 | return _resultobj; | |
1742 | } | |
1743 | ||
1744 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1745 | PyObject * _resultobj; | |
1746 | bool _result; | |
1747 | char *_kwnames[] = { NULL }; | |
1748 | ||
1749 | self = self; | |
1750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1751 | return NULL; | |
1752 | { | |
1753 | wxPy_BEGIN_ALLOW_THREADS; | |
1754 | _result = (bool )wxThread_IsMain(); | |
c368d904 RD |
1755 | |
1756 | wxPy_END_ALLOW_THREADS; | |
1757 | } _resultobj = Py_BuildValue("i",_result); | |
1758 | return _resultobj; | |
1759 | } | |
1760 | ||
f6bcfd97 | 1761 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb | 1762 | PyObject * _resultobj; |
f6bcfd97 BP |
1763 | bool _result; |
1764 | wxWindow * _arg0; | |
1765 | wxTipProvider * _arg1; | |
1766 | bool _arg2 = (bool ) TRUE; | |
1767 | PyObject * _argo0 = 0; | |
1768 | PyObject * _argo1 = 0; | |
1769 | int tempbool2 = (int) TRUE; | |
1770 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1774 | return NULL; | |
1775 | if (_argo0) { | |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1779 | return NULL; | |
1780 | } | |
1781 | } | |
1782 | if (_argo1) { | |
1783 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1784 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1786 | return NULL; | |
1787 | } | |
1788 | } | |
1789 | _arg2 = (bool ) tempbool2; | |
1790 | { | |
1791 | wxPy_BEGIN_ALLOW_THREADS; | |
1792 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); | |
1793 | ||
1794 | wxPy_END_ALLOW_THREADS; | |
1795 | } _resultobj = Py_BuildValue("i",_result); | |
1796 | return _resultobj; | |
1797 | } | |
1798 | ||
1799 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1800 | PyObject * _resultobj; | |
1801 | wxTipProvider * _result; | |
d24a34bb | 1802 | wxString * _arg0; |
f6bcfd97 | 1803 | size_t _arg1; |
d24a34bb | 1804 | PyObject * _obj0 = 0; |
f6bcfd97 | 1805 | char *_kwnames[] = { "filename","currentTip", NULL }; |
d24a34bb RD |
1806 | char _ptemp[128]; |
1807 | ||
1808 | self = self; | |
f6bcfd97 | 1809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
d24a34bb RD |
1810 | return NULL; |
1811 | { | |
2cd2fac8 RD |
1812 | #if PYTHON_API_VERSION >= 1009 |
1813 | char* tmpPtr; int tmpSize; | |
1814 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1815 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1816 | return NULL; | |
1817 | } | |
1818 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1819 | return NULL; | |
1820 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1821 | #else | |
d24a34bb RD |
1822 | if (!PyString_Check(_obj0)) { |
1823 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1824 | return NULL; | |
1825 | } | |
2cd2fac8 RD |
1826 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1827 | #endif | |
d24a34bb RD |
1828 | } |
1829 | { | |
1830 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1831 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
d24a34bb RD |
1832 | |
1833 | wxPy_END_ALLOW_THREADS; | |
2d091820 | 1834 | } if (_result) { |
f6bcfd97 | 1835 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
2d091820 RD |
1836 | _resultobj = Py_BuildValue("s",_ptemp); |
1837 | } else { | |
1838 | Py_INCREF(Py_None); | |
1839 | _resultobj = Py_None; | |
1840 | } | |
d24a34bb RD |
1841 | { |
1842 | if (_obj0) | |
1843 | delete _arg0; | |
1844 | } | |
1845 | return _resultobj; | |
1846 | } | |
1847 | ||
f6bcfd97 | 1848 | static PyObject *_wrap_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb | 1849 | PyObject * _resultobj; |
f6bcfd97 BP |
1850 | wxGenericDragImage * _result; |
1851 | wxIcon * _arg0; | |
1852 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
1853 | wxPoint * _arg2 = (wxPoint *) &wxPyNullPoint; | |
2d091820 | 1854 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
1855 | PyObject * _argo1 = 0; |
1856 | wxPoint temp; | |
1857 | PyObject * _obj2 = 0; | |
1858 | char *_kwnames[] = { "image","cursor","hotspot", NULL }; | |
1859 | char _ptemp[128]; | |
d24a34bb RD |
1860 | |
1861 | self = self; | |
f6bcfd97 | 1862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxDragIcon",_kwnames,&_argo0,&_argo1,&_obj2)) |
d24a34bb | 1863 | return NULL; |
2d091820 RD |
1864 | if (_argo0) { |
1865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
1866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
1867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragIcon. Expected _wxIcon_p."); | |
d24a34bb RD |
1868 | return NULL; |
1869 | } | |
1870 | } | |
f6bcfd97 BP |
1871 | if (_argo1) { |
1872 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1873 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
1874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragIcon. Expected _wxCursor_p."); | |
d24a34bb | 1875 | return NULL; |
f6bcfd97 | 1876 | } |
d24a34bb | 1877 | } |
f6bcfd97 BP |
1878 | if (_obj2) |
1879 | { | |
1880 | _arg2 = &temp; | |
1881 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1882 | return NULL; | |
d24a34bb RD |
1883 | } |
1884 | { | |
1885 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1886 | _result = (wxGenericDragImage *)wxDragIcon(*_arg0,*_arg1,*_arg2); |
d24a34bb RD |
1887 | |
1888 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
1889 | } if (_result) { |
1890 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
1891 | _resultobj = Py_BuildValue("s",_ptemp); | |
1892 | } else { | |
1893 | Py_INCREF(Py_None); | |
1894 | _resultobj = Py_None; | |
1895 | } | |
d24a34bb RD |
1896 | return _resultobj; |
1897 | } | |
1898 | ||
f6bcfd97 | 1899 | static PyObject *_wrap_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb | 1900 | PyObject * _resultobj; |
f6bcfd97 BP |
1901 | wxGenericDragImage * _result; |
1902 | wxString * _arg0; | |
1903 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
1904 | wxPoint * _arg2 = (wxPoint *) &wxPyNullPoint; | |
1905 | PyObject * _obj0 = 0; | |
1906 | PyObject * _argo1 = 0; | |
1907 | wxPoint temp; | |
1908 | PyObject * _obj2 = 0; | |
1909 | char *_kwnames[] = { "str","cursor","hotspot", NULL }; | |
1910 | char _ptemp[128]; | |
d24a34bb RD |
1911 | |
1912 | self = self; | |
f6bcfd97 | 1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxDragString",_kwnames,&_obj0,&_argo1,&_obj2)) |
d24a34bb | 1914 | return NULL; |
f6bcfd97 | 1915 | { |
2cd2fac8 RD |
1916 | #if PYTHON_API_VERSION >= 1009 |
1917 | char* tmpPtr; int tmpSize; | |
1918 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1919 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1920 | return NULL; | |
1921 | } | |
1922 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1923 | return NULL; | |
1924 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1925 | #else | |
f6bcfd97 BP |
1926 | if (!PyString_Check(_obj0)) { |
1927 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1928 | return NULL; | |
1929 | } | |
2cd2fac8 RD |
1930 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1931 | #endif | |
f6bcfd97 BP |
1932 | } |
1933 | if (_argo1) { | |
1934 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1935 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
1936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragString. Expected _wxCursor_p."); | |
d24a34bb RD |
1937 | return NULL; |
1938 | } | |
1939 | } | |
f6bcfd97 BP |
1940 | if (_obj2) |
1941 | { | |
1942 | _arg2 = &temp; | |
1943 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1944 | return NULL; | |
1945 | } | |
d24a34bb RD |
1946 | { |
1947 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1948 | _result = (wxGenericDragImage *)wxDragString(*_arg0,*_arg1,*_arg2); |
d24a34bb RD |
1949 | |
1950 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
1951 | } if (_result) { |
1952 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
1953 | _resultobj = Py_BuildValue("s",_ptemp); | |
1954 | } else { | |
1955 | Py_INCREF(Py_None); | |
1956 | _resultobj = Py_None; | |
1957 | } | |
d24a34bb | 1958 | { |
f6bcfd97 BP |
1959 | if (_obj0) |
1960 | delete _arg0; | |
d24a34bb RD |
1961 | } |
1962 | return _resultobj; | |
1963 | } | |
1964 | ||
f6bcfd97 | 1965 | static PyObject *_wrap_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb | 1966 | PyObject * _resultobj; |
f6bcfd97 BP |
1967 | wxGenericDragImage * _result; |
1968 | wxTreeCtrl * _arg0; | |
1969 | wxTreeItemId * _arg1; | |
2d091820 | 1970 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
1971 | PyObject * _argo1 = 0; |
1972 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
d24a34bb RD |
1973 | char _ptemp[128]; |
1974 | ||
1975 | self = self; | |
f6bcfd97 | 1976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragTreeItem",_kwnames,&_argo0,&_argo1)) |
d24a34bb | 1977 | return NULL; |
2d091820 RD |
1978 | if (_argo0) { |
1979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
1980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { |
1981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
1982 | return NULL; | |
1983 | } | |
1984 | } | |
1985 | if (_argo1) { | |
1986 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1987 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
1988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragTreeItem. Expected _wxTreeItemId_p."); | |
d24a34bb RD |
1989 | return NULL; |
1990 | } | |
1991 | } | |
1992 | { | |
1993 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1994 | _result = (wxGenericDragImage *)wxDragTreeItem(*_arg0,*_arg1); |
d24a34bb RD |
1995 | |
1996 | wxPy_END_ALLOW_THREADS; | |
2d091820 | 1997 | } if (_result) { |
f6bcfd97 | 1998 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); |
2d091820 RD |
1999 | _resultobj = Py_BuildValue("s",_ptemp); |
2000 | } else { | |
2001 | Py_INCREF(Py_None); | |
2002 | _resultobj = Py_None; | |
2003 | } | |
d24a34bb RD |
2004 | return _resultobj; |
2005 | } | |
2006 | ||
f6bcfd97 | 2007 | static PyObject *_wrap_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 2008 | PyObject * _resultobj; |
f6bcfd97 BP |
2009 | wxGenericDragImage * _result; |
2010 | wxListCtrl * _arg0; | |
2011 | long _arg1; | |
8f17924e | 2012 | PyObject * _argo0 = 0; |
f6bcfd97 | 2013 | char *_kwnames[] = { "listCtrl","id", NULL }; |
8f17924e RD |
2014 | char _ptemp[128]; |
2015 | ||
2016 | self = self; | |
f6bcfd97 | 2017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDragListItem",_kwnames,&_argo0,&_arg1)) |
8f17924e RD |
2018 | return NULL; |
2019 | if (_argo0) { | |
2020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { |
2022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragListItem. Expected _wxListCtrl_p."); | |
8f17924e RD |
2023 | return NULL; |
2024 | } | |
2025 | } | |
8f17924e RD |
2026 | { |
2027 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2028 | _result = (wxGenericDragImage *)wxDragListItem(*_arg0,_arg1); |
8f17924e RD |
2029 | |
2030 | wxPy_END_ALLOW_THREADS; | |
2031 | } if (_result) { | |
f6bcfd97 | 2032 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); |
8f17924e RD |
2033 | _resultobj = Py_BuildValue("s",_ptemp); |
2034 | } else { | |
2035 | Py_INCREF(Py_None); | |
2036 | _resultobj = Py_None; | |
2037 | } | |
2038 | return _resultobj; | |
2039 | } | |
2040 | ||
f6bcfd97 | 2041 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 2042 | PyObject * _resultobj; |
f6bcfd97 BP |
2043 | unsigned long _result; |
2044 | char *_kwnames[] = { NULL }; | |
8f17924e RD |
2045 | |
2046 | self = self; | |
f6bcfd97 | 2047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
8f17924e | 2048 | return NULL; |
8f17924e RD |
2049 | { |
2050 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2051 | _result = (unsigned long )wxSysErrorCode(); |
8f17924e RD |
2052 | |
2053 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2054 | } _resultobj = Py_BuildValue("l",_result); |
8f17924e RD |
2055 | return _resultobj; |
2056 | } | |
2057 | ||
f6bcfd97 | 2058 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 2059 | PyObject * _resultobj; |
f6bcfd97 BP |
2060 | char * _result; |
2061 | unsigned long _arg0 = (unsigned long ) 0; | |
2062 | char *_kwnames[] = { "nErrCode", NULL }; | |
8f17924e RD |
2063 | |
2064 | self = self; | |
f6bcfd97 | 2065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
8f17924e | 2066 | return NULL; |
8f17924e RD |
2067 | { |
2068 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2069 | _result = (char *)wxSysErrorMsg(_arg0); |
8f17924e RD |
2070 | |
2071 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2072 | } _resultobj = Py_BuildValue("s", _result); |
8f17924e RD |
2073 | return _resultobj; |
2074 | } | |
2075 | ||
f6bcfd97 | 2076 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 2077 | PyObject * _resultobj; |
f6bcfd97 BP |
2078 | char * _arg0; |
2079 | char *_kwnames[] = { "szFormat", NULL }; | |
8f17924e RD |
2080 | |
2081 | self = self; | |
f6bcfd97 | 2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogFatalError",_kwnames,&_arg0)) |
8f17924e | 2083 | return NULL; |
8f17924e RD |
2084 | { |
2085 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2086 | wxLogFatalError(_arg0); |
8f17924e RD |
2087 | |
2088 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2089 | } Py_INCREF(Py_None); |
2090 | _resultobj = Py_None; | |
8f17924e RD |
2091 | return _resultobj; |
2092 | } | |
2093 | ||
f6bcfd97 | 2094 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 2095 | PyObject * _resultobj; |
f6bcfd97 BP |
2096 | char * _arg0; |
2097 | char *_kwnames[] = { "szFormat", NULL }; | |
8f17924e RD |
2098 | |
2099 | self = self; | |
f6bcfd97 | 2100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogError",_kwnames,&_arg0)) |
8f17924e | 2101 | return NULL; |
8f17924e RD |
2102 | { |
2103 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2104 | wxLogError(_arg0); |
8f17924e RD |
2105 | |
2106 | wxPy_END_ALLOW_THREADS; | |
2107 | } Py_INCREF(Py_None); | |
2108 | _resultobj = Py_None; | |
8f17924e RD |
2109 | return _resultobj; |
2110 | } | |
2111 | ||
f6bcfd97 BP |
2112 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
2113 | PyObject * _resultobj; | |
2114 | char * _arg0; | |
2115 | char *_kwnames[] = { "szFormat", NULL }; | |
2116 | ||
2117 | self = self; | |
2118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogWarning",_kwnames,&_arg0)) | |
2119 | return NULL; | |
2120 | { | |
2121 | wxPy_BEGIN_ALLOW_THREADS; | |
2122 | wxLogWarning(_arg0); | |
2123 | ||
2124 | wxPy_END_ALLOW_THREADS; | |
2125 | } Py_INCREF(Py_None); | |
2126 | _resultobj = Py_None; | |
2127 | return _resultobj; | |
2128 | } | |
2129 | ||
2130 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2131 | PyObject * _resultobj; | |
2132 | char * _arg0; | |
2133 | char *_kwnames[] = { "szFormat", NULL }; | |
2134 | ||
2135 | self = self; | |
2136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogMessage",_kwnames,&_arg0)) | |
2137 | return NULL; | |
2138 | { | |
2139 | wxPy_BEGIN_ALLOW_THREADS; | |
2140 | wxLogMessage(_arg0); | |
2141 | ||
2142 | wxPy_END_ALLOW_THREADS; | |
2143 | } Py_INCREF(Py_None); | |
2144 | _resultobj = Py_None; | |
2145 | return _resultobj; | |
2146 | } | |
2147 | ||
2148 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2149 | PyObject * _resultobj; | |
2150 | char * _arg0; | |
2151 | char *_kwnames[] = { "szFormat", NULL }; | |
2152 | ||
2153 | self = self; | |
2154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogInfo",_kwnames,&_arg0)) | |
2155 | return NULL; | |
2156 | { | |
2157 | wxPy_BEGIN_ALLOW_THREADS; | |
2158 | wxLogInfo(_arg0); | |
2159 | ||
2160 | wxPy_END_ALLOW_THREADS; | |
2161 | } Py_INCREF(Py_None); | |
2162 | _resultobj = Py_None; | |
2163 | return _resultobj; | |
2164 | } | |
2165 | ||
2166 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2167 | PyObject * _resultobj; | |
2168 | char * _arg0; | |
2169 | char *_kwnames[] = { "szFormat", NULL }; | |
2170 | ||
2171 | self = self; | |
2172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogVerbose",_kwnames,&_arg0)) | |
2173 | return NULL; | |
2174 | { | |
2175 | wxPy_BEGIN_ALLOW_THREADS; | |
2176 | wxLogVerbose(_arg0); | |
2177 | ||
2178 | wxPy_END_ALLOW_THREADS; | |
2179 | } Py_INCREF(Py_None); | |
2180 | _resultobj = Py_None; | |
2181 | return _resultobj; | |
2182 | } | |
2183 | ||
2184 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2185 | PyObject * _resultobj; | |
2186 | char * _arg0; | |
2187 | char *_kwnames[] = { "szFormat", NULL }; | |
2188 | ||
2189 | self = self; | |
2190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogStatus",_kwnames,&_arg0)) | |
2191 | return NULL; | |
2192 | { | |
2193 | wxPy_BEGIN_ALLOW_THREADS; | |
2194 | wxLogStatus(_arg0); | |
2195 | ||
2196 | wxPy_END_ALLOW_THREADS; | |
2197 | } Py_INCREF(Py_None); | |
2198 | _resultobj = Py_None; | |
2199 | return _resultobj; | |
2200 | } | |
2201 | ||
2202 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2203 | PyObject * _resultobj; | |
2204 | wxFrame * _arg0; | |
2205 | char * _arg1; | |
2206 | PyObject * _argo0 = 0; | |
2207 | char *_kwnames[] = { "pFrame","szFormat", NULL }; | |
2208 | ||
2209 | self = self; | |
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxLogStatusFrame",_kwnames,&_argo0,&_arg1)) | |
2211 | return NULL; | |
2212 | if (_argo0) { | |
2213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2216 | return NULL; | |
2217 | } | |
2218 | } | |
2219 | { | |
2220 | wxPy_BEGIN_ALLOW_THREADS; | |
2221 | wxLogStatus(_arg0,_arg1); | |
2222 | ||
2223 | wxPy_END_ALLOW_THREADS; | |
2224 | } Py_INCREF(Py_None); | |
2225 | _resultobj = Py_None; | |
2226 | return _resultobj; | |
2227 | } | |
2228 | ||
2229 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2230 | PyObject * _resultobj; | |
2231 | char * _arg0; | |
2232 | char *_kwnames[] = { "szFormat", NULL }; | |
2233 | ||
2234 | self = self; | |
2235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogSysError",_kwnames,&_arg0)) | |
2236 | return NULL; | |
2237 | { | |
2238 | wxPy_BEGIN_ALLOW_THREADS; | |
2239 | wxLogSysError(_arg0); | |
2240 | ||
2241 | wxPy_END_ALLOW_THREADS; | |
2242 | } Py_INCREF(Py_None); | |
2243 | _resultobj = Py_None; | |
2244 | return _resultobj; | |
2245 | } | |
2246 | ||
c368d904 RD |
2247 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2248 | PyObject * _resultobj; | |
2249 | long _result; | |
2250 | wxString * _arg0; | |
2251 | int _arg1 = (int ) FALSE; | |
2252 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; | |
2253 | PyObject * _obj0 = 0; | |
2254 | PyObject * _argo2 = 0; | |
2255 | char *_kwnames[] = { "command","sync","process", NULL }; | |
2256 | ||
2257 | self = self; | |
2258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2259 | return NULL; | |
2260 | { | |
2cd2fac8 RD |
2261 | #if PYTHON_API_VERSION >= 1009 |
2262 | char* tmpPtr; int tmpSize; | |
2263 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2264 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2265 | return NULL; | |
2266 | } | |
2267 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2268 | return NULL; | |
2269 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2270 | #else | |
c368d904 RD |
2271 | if (!PyString_Check(_obj0)) { |
2272 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2273 | return NULL; | |
2274 | } | |
2cd2fac8 RD |
2275 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2276 | #endif | |
c368d904 RD |
2277 | } |
2278 | if (_argo2) { | |
2279 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2280 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2282 | return NULL; | |
2283 | } | |
2284 | } | |
2285 | { | |
2286 | wxPy_BEGIN_ALLOW_THREADS; | |
2287 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); | |
2288 | ||
2289 | wxPy_END_ALLOW_THREADS; | |
2290 | } _resultobj = Py_BuildValue("l",_result); | |
2291 | { | |
2292 | if (_obj0) | |
2293 | delete _arg0; | |
2294 | } | |
2295 | return _resultobj; | |
2296 | } | |
2297 | ||
f6bcfd97 BP |
2298 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2299 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2300 | PyObject * _resultobj; | |
2301 | wxToolTip * _result; | |
2302 | wxString * _arg0; | |
2303 | PyObject * _obj0 = 0; | |
2304 | char *_kwnames[] = { "tip", NULL }; | |
2305 | char _ptemp[128]; | |
2306 | ||
2307 | self = self; | |
2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2309 | return NULL; | |
2310 | { | |
2cd2fac8 RD |
2311 | #if PYTHON_API_VERSION >= 1009 |
2312 | char* tmpPtr; int tmpSize; | |
2313 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2314 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2315 | return NULL; | |
2316 | } | |
2317 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2318 | return NULL; | |
2319 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2320 | #else | |
f6bcfd97 BP |
2321 | if (!PyString_Check(_obj0)) { |
2322 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2323 | return NULL; | |
2324 | } | |
2cd2fac8 RD |
2325 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2326 | #endif | |
f6bcfd97 BP |
2327 | } |
2328 | { | |
2329 | wxPy_BEGIN_ALLOW_THREADS; | |
2330 | _result = (wxToolTip *)new_wxToolTip(*_arg0); | |
2331 | ||
2332 | wxPy_END_ALLOW_THREADS; | |
2333 | } if (_result) { | |
2334 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2335 | _resultobj = Py_BuildValue("s",_ptemp); | |
2336 | } else { | |
2337 | Py_INCREF(Py_None); | |
2338 | _resultobj = Py_None; | |
2339 | } | |
2340 | { | |
2341 | if (_obj0) | |
2342 | delete _arg0; | |
2343 | } | |
2344 | return _resultobj; | |
2345 | } | |
2346 | ||
2347 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2348 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2349 | PyObject * _resultobj; | |
2350 | wxToolTip * _arg0; | |
2351 | wxString * _arg1; | |
2352 | PyObject * _argo0 = 0; | |
2353 | PyObject * _obj1 = 0; | |
2354 | char *_kwnames[] = { "self","tip", NULL }; | |
2355 | ||
2356 | self = self; | |
2357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2358 | return NULL; | |
2359 | if (_argo0) { | |
2360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2363 | return NULL; | |
2364 | } | |
2365 | } | |
2366 | { | |
2cd2fac8 RD |
2367 | #if PYTHON_API_VERSION >= 1009 |
2368 | char* tmpPtr; int tmpSize; | |
2369 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2370 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
2371 | return NULL; | |
2372 | } | |
2373 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2374 | return NULL; | |
2375 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2376 | #else | |
f6bcfd97 BP |
2377 | if (!PyString_Check(_obj1)) { |
2378 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2379 | return NULL; | |
2380 | } | |
2cd2fac8 RD |
2381 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2382 | #endif | |
f6bcfd97 BP |
2383 | } |
2384 | { | |
2385 | wxPy_BEGIN_ALLOW_THREADS; | |
2386 | wxToolTip_SetTip(_arg0,*_arg1); | |
2387 | ||
2388 | wxPy_END_ALLOW_THREADS; | |
2389 | } Py_INCREF(Py_None); | |
2390 | _resultobj = Py_None; | |
2391 | { | |
2392 | if (_obj1) | |
2393 | delete _arg1; | |
2394 | } | |
2395 | return _resultobj; | |
2396 | } | |
2397 | ||
2398 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2399 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2400 | PyObject * _resultobj; | |
2401 | wxString * _result; | |
2402 | wxToolTip * _arg0; | |
2403 | PyObject * _argo0 = 0; | |
2404 | char *_kwnames[] = { "self", NULL }; | |
2405 | ||
2406 | self = self; | |
2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2408 | return NULL; | |
2409 | if (_argo0) { | |
2410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2413 | return NULL; | |
2414 | } | |
2415 | } | |
2416 | { | |
2417 | wxPy_BEGIN_ALLOW_THREADS; | |
2418 | _result = new wxString (wxToolTip_GetTip(_arg0)); | |
2419 | ||
2420 | wxPy_END_ALLOW_THREADS; | |
2421 | }{ | |
2422 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2423 | } | |
2424 | { | |
2425 | delete _result; | |
2426 | } | |
2427 | return _resultobj; | |
2428 | } | |
2429 | ||
2430 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2431 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2432 | PyObject * _resultobj; | |
2433 | wxWindow * _result; | |
2434 | wxToolTip * _arg0; | |
2435 | PyObject * _argo0 = 0; | |
2436 | char *_kwnames[] = { "self", NULL }; | |
2437 | char _ptemp[128]; | |
2438 | ||
2439 | self = self; | |
2440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2441 | return NULL; | |
2442 | if (_argo0) { | |
2443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2446 | return NULL; | |
2447 | } | |
2448 | } | |
2449 | { | |
2450 | wxPy_BEGIN_ALLOW_THREADS; | |
2451 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); | |
2452 | ||
2453 | wxPy_END_ALLOW_THREADS; | |
2454 | } if (_result) { | |
2455 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2456 | _resultobj = Py_BuildValue("s",_ptemp); | |
2457 | } else { | |
2458 | Py_INCREF(Py_None); | |
2459 | _resultobj = Py_None; | |
2460 | } | |
2461 | return _resultobj; | |
2462 | } | |
2463 | ||
2464 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) | |
2465 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2466 | PyObject * _resultobj; | |
2467 | wxCaret * _result; | |
2468 | wxWindow * _arg0; | |
2469 | wxSize * _arg1; | |
2470 | PyObject * _argo0 = 0; | |
2471 | wxSize temp; | |
2472 | PyObject * _obj1 = 0; | |
2473 | char *_kwnames[] = { "window","size", NULL }; | |
2474 | char _ptemp[128]; | |
2475 | ||
2476 | self = self; | |
2477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2478 | return NULL; | |
2479 | if (_argo0) { | |
2480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2483 | return NULL; | |
2484 | } | |
2485 | } | |
2486 | { | |
2487 | _arg1 = &temp; | |
2488 | if (! wxSize_helper(_obj1, &_arg1)) | |
2489 | return NULL; | |
2490 | } | |
2491 | { | |
2492 | wxPy_BEGIN_ALLOW_THREADS; | |
2493 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); | |
2494 | ||
2495 | wxPy_END_ALLOW_THREADS; | |
2496 | } if (_result) { | |
2497 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2498 | _resultobj = Py_BuildValue("s",_ptemp); | |
2499 | } else { | |
2500 | Py_INCREF(Py_None); | |
2501 | _resultobj = Py_None; | |
2502 | } | |
2503 | return _resultobj; | |
2504 | } | |
2505 | ||
2506 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2507 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2508 | PyObject * _resultobj; | |
2509 | wxCaret * _arg0; | |
2510 | PyObject * _argo0 = 0; | |
2511 | char *_kwnames[] = { "self", NULL }; | |
2512 | ||
2513 | self = self; | |
2514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2515 | return NULL; | |
2516 | if (_argo0) { | |
2517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2520 | return NULL; | |
2521 | } | |
2522 | } | |
2523 | { | |
2524 | wxPy_BEGIN_ALLOW_THREADS; | |
2525 | delete_wxCaret(_arg0); | |
2526 | ||
2527 | wxPy_END_ALLOW_THREADS; | |
2528 | } Py_INCREF(Py_None); | |
2529 | _resultobj = Py_None; | |
2530 | return _resultobj; | |
2531 | } | |
2532 | ||
2533 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2534 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2535 | PyObject * _resultobj; | |
2536 | bool _result; | |
2537 | wxCaret * _arg0; | |
2538 | PyObject * _argo0 = 0; | |
2539 | char *_kwnames[] = { "self", NULL }; | |
2540 | ||
2541 | self = self; | |
2542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2543 | return NULL; | |
2544 | if (_argo0) { | |
2545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2548 | return NULL; | |
2549 | } | |
2550 | } | |
2551 | { | |
2552 | wxPy_BEGIN_ALLOW_THREADS; | |
2553 | _result = (bool )wxCaret_IsOk(_arg0); | |
2554 | ||
2555 | wxPy_END_ALLOW_THREADS; | |
2556 | } _resultobj = Py_BuildValue("i",_result); | |
2557 | return _resultobj; | |
2558 | } | |
2559 | ||
2560 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2561 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2562 | PyObject * _resultobj; | |
2563 | bool _result; | |
2564 | wxCaret * _arg0; | |
2565 | PyObject * _argo0 = 0; | |
2566 | char *_kwnames[] = { "self", NULL }; | |
2567 | ||
2568 | self = self; | |
2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2570 | return NULL; | |
2571 | if (_argo0) { | |
2572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2575 | return NULL; | |
2576 | } | |
2577 | } | |
2578 | { | |
2579 | wxPy_BEGIN_ALLOW_THREADS; | |
2580 | _result = (bool )wxCaret_IsVisible(_arg0); | |
2581 | ||
2582 | wxPy_END_ALLOW_THREADS; | |
2583 | } _resultobj = Py_BuildValue("i",_result); | |
2584 | return _resultobj; | |
2585 | } | |
2586 | ||
2587 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2588 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2589 | PyObject * _resultobj; | |
2590 | wxCaret * _arg0; | |
2591 | int * _arg1; | |
2592 | int temp; | |
2593 | int * _arg2; | |
2594 | int temp0; | |
2595 | PyObject * _argo0 = 0; | |
2596 | char *_kwnames[] = { "self", NULL }; | |
2597 | ||
2598 | self = self; | |
2599 | { | |
2600 | _arg1 = &temp; | |
2601 | } | |
2602 | { | |
2603 | _arg2 = &temp0; | |
2604 | } | |
2605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2606 | return NULL; | |
2607 | if (_argo0) { | |
2608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2611 | return NULL; | |
2612 | } | |
2613 | } | |
2614 | { | |
2615 | wxPy_BEGIN_ALLOW_THREADS; | |
2616 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); | |
2617 | ||
2618 | wxPy_END_ALLOW_THREADS; | |
2619 | } Py_INCREF(Py_None); | |
2620 | _resultobj = Py_None; | |
2621 | { | |
2622 | PyObject *o; | |
2623 | o = PyInt_FromLong((long) (*_arg1)); | |
2624 | _resultobj = t_output_helper(_resultobj, o); | |
2625 | } | |
2626 | { | |
2627 | PyObject *o; | |
2628 | o = PyInt_FromLong((long) (*_arg2)); | |
2629 | _resultobj = t_output_helper(_resultobj, o); | |
2630 | } | |
2631 | return _resultobj; | |
2632 | } | |
2633 | ||
2634 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
8f17924e RD |
2635 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
2636 | PyObject * _resultobj; | |
f6bcfd97 BP |
2637 | wxPoint * _result; |
2638 | wxCaret * _arg0; | |
2639 | PyObject * _argo0 = 0; | |
2640 | char *_kwnames[] = { "self", NULL }; | |
2641 | char _ptemp[128]; | |
2642 | ||
2643 | self = self; | |
2644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2645 | return NULL; | |
2646 | if (_argo0) { | |
2647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2650 | return NULL; | |
2651 | } | |
2652 | } | |
2653 | { | |
2654 | wxPy_BEGIN_ALLOW_THREADS; | |
2655 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); | |
2656 | ||
2657 | wxPy_END_ALLOW_THREADS; | |
2658 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2659 | _resultobj = Py_BuildValue("s",_ptemp); | |
2660 | return _resultobj; | |
2661 | } | |
2662 | ||
2663 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2664 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2665 | PyObject * _resultobj; | |
2666 | wxCaret * _arg0; | |
2667 | int * _arg1; | |
2668 | int temp; | |
2669 | int * _arg2; | |
2670 | int temp0; | |
2671 | PyObject * _argo0 = 0; | |
2672 | char *_kwnames[] = { "self", NULL }; | |
2673 | ||
2674 | self = self; | |
2675 | { | |
2676 | _arg1 = &temp; | |
2677 | } | |
2678 | { | |
2679 | _arg2 = &temp0; | |
2680 | } | |
2681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2682 | return NULL; | |
2683 | if (_argo0) { | |
2684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2687 | return NULL; | |
2688 | } | |
2689 | } | |
2690 | { | |
2691 | wxPy_BEGIN_ALLOW_THREADS; | |
2692 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); | |
2693 | ||
2694 | wxPy_END_ALLOW_THREADS; | |
2695 | } Py_INCREF(Py_None); | |
2696 | _resultobj = Py_None; | |
2697 | { | |
2698 | PyObject *o; | |
2699 | o = PyInt_FromLong((long) (*_arg1)); | |
2700 | _resultobj = t_output_helper(_resultobj, o); | |
2701 | } | |
2702 | { | |
2703 | PyObject *o; | |
2704 | o = PyInt_FromLong((long) (*_arg2)); | |
2705 | _resultobj = t_output_helper(_resultobj, o); | |
2706 | } | |
2707 | return _resultobj; | |
2708 | } | |
2709 | ||
2710 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2711 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2712 | PyObject * _resultobj; | |
2713 | wxSize * _result; | |
2714 | wxCaret * _arg0; | |
2715 | PyObject * _argo0 = 0; | |
2716 | char *_kwnames[] = { "self", NULL }; | |
2717 | char _ptemp[128]; | |
2718 | ||
2719 | self = self; | |
2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2721 | return NULL; | |
2722 | if (_argo0) { | |
2723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
2726 | return NULL; | |
2727 | } | |
2728 | } | |
2729 | { | |
2730 | wxPy_BEGIN_ALLOW_THREADS; | |
2731 | _result = new wxSize (wxCaret_GetSize(_arg0)); | |
2732 | ||
2733 | wxPy_END_ALLOW_THREADS; | |
2734 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2735 | _resultobj = Py_BuildValue("s",_ptemp); | |
2736 | return _resultobj; | |
2737 | } | |
2738 | ||
2739 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2740 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2741 | PyObject * _resultobj; | |
2742 | wxWindow * _result; | |
2743 | wxCaret * _arg0; | |
2744 | PyObject * _argo0 = 0; | |
2745 | char *_kwnames[] = { "self", NULL }; | |
2746 | char _ptemp[128]; | |
2747 | ||
2748 | self = self; | |
2749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
2750 | return NULL; | |
2751 | if (_argo0) { | |
2752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
2755 | return NULL; | |
2756 | } | |
2757 | } | |
2758 | { | |
2759 | wxPy_BEGIN_ALLOW_THREADS; | |
2760 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); | |
2761 | ||
2762 | wxPy_END_ALLOW_THREADS; | |
2763 | } if (_result) { | |
2764 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2765 | _resultobj = Py_BuildValue("s",_ptemp); | |
2766 | } else { | |
2767 | Py_INCREF(Py_None); | |
2768 | _resultobj = Py_None; | |
2769 | } | |
2770 | return _resultobj; | |
2771 | } | |
2772 | ||
2773 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2774 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2775 | PyObject * _resultobj; | |
2776 | wxCaret * _arg0; | |
2777 | int _arg1; | |
2778 | int _arg2; | |
2779 | PyObject * _argo0 = 0; | |
2780 | char *_kwnames[] = { "self","x","y", NULL }; | |
2781 | ||
2782 | self = self; | |
2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2784 | return NULL; | |
2785 | if (_argo0) { | |
2786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
2789 | return NULL; | |
2790 | } | |
2791 | } | |
2792 | { | |
2793 | wxPy_BEGIN_ALLOW_THREADS; | |
2794 | wxCaret_MoveXY(_arg0,_arg1,_arg2); | |
2795 | ||
2796 | wxPy_END_ALLOW_THREADS; | |
2797 | } Py_INCREF(Py_None); | |
2798 | _resultobj = Py_None; | |
2799 | return _resultobj; | |
2800 | } | |
2801 | ||
2802 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2803 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2804 | PyObject * _resultobj; | |
2805 | wxCaret * _arg0; | |
2806 | wxPoint * _arg1; | |
2807 | PyObject * _argo0 = 0; | |
2808 | wxPoint temp; | |
2809 | PyObject * _obj1 = 0; | |
2810 | char *_kwnames[] = { "self","pt", NULL }; | |
2811 | ||
2812 | self = self; | |
2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
2814 | return NULL; | |
2815 | if (_argo0) { | |
2816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
2819 | return NULL; | |
2820 | } | |
2821 | } | |
2822 | { | |
2823 | _arg1 = &temp; | |
2824 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2825 | return NULL; | |
2826 | } | |
2827 | { | |
2828 | wxPy_BEGIN_ALLOW_THREADS; | |
2829 | wxCaret_Move(_arg0,*_arg1); | |
2830 | ||
2831 | wxPy_END_ALLOW_THREADS; | |
2832 | } Py_INCREF(Py_None); | |
2833 | _resultobj = Py_None; | |
2834 | return _resultobj; | |
2835 | } | |
2836 | ||
2837 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
2838 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2839 | PyObject * _resultobj; | |
2840 | wxCaret * _arg0; | |
2841 | int _arg1; | |
2842 | int _arg2; | |
2843 | PyObject * _argo0 = 0; | |
2844 | char *_kwnames[] = { "self","width","height", NULL }; | |
2845 | ||
2846 | self = self; | |
2847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2848 | return NULL; | |
2849 | if (_argo0) { | |
2850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
2853 | return NULL; | |
2854 | } | |
2855 | } | |
2856 | { | |
2857 | wxPy_BEGIN_ALLOW_THREADS; | |
2858 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); | |
2859 | ||
2860 | wxPy_END_ALLOW_THREADS; | |
2861 | } Py_INCREF(Py_None); | |
2862 | _resultobj = Py_None; | |
2863 | return _resultobj; | |
2864 | } | |
2865 | ||
2866 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2867 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2868 | PyObject * _resultobj; | |
2869 | wxCaret * _arg0; | |
2870 | wxSize * _arg1; | |
2871 | PyObject * _argo0 = 0; | |
2872 | wxSize temp; | |
2873 | PyObject * _obj1 = 0; | |
2874 | char *_kwnames[] = { "self","size", NULL }; | |
2875 | ||
2876 | self = self; | |
2877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
2878 | return NULL; | |
2879 | if (_argo0) { | |
2880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
2883 | return NULL; | |
2884 | } | |
2885 | } | |
2886 | { | |
2887 | _arg1 = &temp; | |
2888 | if (! wxSize_helper(_obj1, &_arg1)) | |
2889 | return NULL; | |
2890 | } | |
2891 | { | |
2892 | wxPy_BEGIN_ALLOW_THREADS; | |
2893 | wxCaret_SetSize(_arg0,*_arg1); | |
2894 | ||
2895 | wxPy_END_ALLOW_THREADS; | |
2896 | } Py_INCREF(Py_None); | |
2897 | _resultobj = Py_None; | |
2898 | return _resultobj; | |
2899 | } | |
2900 | ||
2901 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
2902 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2903 | PyObject * _resultobj; | |
2904 | wxCaret * _arg0; | |
2905 | int _arg1 = (int ) TRUE; | |
2906 | PyObject * _argo0 = 0; | |
2907 | char *_kwnames[] = { "self","show", NULL }; | |
2908 | ||
2909 | self = self; | |
2910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
2911 | return NULL; | |
2912 | if (_argo0) { | |
2913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
2916 | return NULL; | |
2917 | } | |
2918 | } | |
2919 | { | |
2920 | wxPy_BEGIN_ALLOW_THREADS; | |
2921 | wxCaret_Show(_arg0,_arg1); | |
2922 | ||
2923 | wxPy_END_ALLOW_THREADS; | |
2924 | } Py_INCREF(Py_None); | |
2925 | _resultobj = Py_None; | |
2926 | return _resultobj; | |
2927 | } | |
2928 | ||
2929 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
2930 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject * _resultobj; | |
2932 | wxCaret * _arg0; | |
2933 | PyObject * _argo0 = 0; | |
2934 | char *_kwnames[] = { "self", NULL }; | |
2935 | ||
2936 | self = self; | |
2937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
2938 | return NULL; | |
2939 | if (_argo0) { | |
2940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
2943 | return NULL; | |
2944 | } | |
2945 | } | |
2946 | { | |
2947 | wxPy_BEGIN_ALLOW_THREADS; | |
2948 | wxCaret_Hide(_arg0); | |
2949 | ||
2950 | wxPy_END_ALLOW_THREADS; | |
2951 | } Py_INCREF(Py_None); | |
2952 | _resultobj = Py_None; | |
2953 | return _resultobj; | |
2954 | } | |
2955 | ||
2956 | #define new_wxFontEnumerator() (new wxPyFontEnumerator()) | |
2957 | static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2958 | PyObject * _resultobj; | |
2959 | wxPyFontEnumerator * _result; | |
2960 | char *_kwnames[] = { NULL }; | |
2961 | char _ptemp[128]; | |
2962 | ||
2963 | self = self; | |
2964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames)) | |
2965 | return NULL; | |
2966 | { | |
2967 | wxPy_BEGIN_ALLOW_THREADS; | |
2968 | _result = (wxPyFontEnumerator *)new_wxFontEnumerator(); | |
2969 | ||
2970 | wxPy_END_ALLOW_THREADS; | |
2971 | } if (_result) { | |
2972 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p"); | |
2973 | _resultobj = Py_BuildValue("s",_ptemp); | |
2974 | } else { | |
2975 | Py_INCREF(Py_None); | |
2976 | _resultobj = Py_None; | |
2977 | } | |
2978 | return _resultobj; | |
2979 | } | |
2980 | ||
2981 | #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj) | |
2982 | static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2983 | PyObject * _resultobj; | |
2984 | wxPyFontEnumerator * _arg0; | |
2985 | PyObject * _argo0 = 0; | |
2986 | char *_kwnames[] = { "self", NULL }; | |
2987 | ||
2988 | self = self; | |
2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0)) | |
2990 | return NULL; | |
2991 | if (_argo0) { | |
2992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p."); | |
2995 | return NULL; | |
2996 | } | |
2997 | } | |
2998 | { | |
2999 | wxPy_BEGIN_ALLOW_THREADS; | |
3000 | delete_wxPyFontEnumerator(_arg0); | |
3001 | ||
3002 | wxPy_END_ALLOW_THREADS; | |
3003 | } Py_INCREF(Py_None); | |
3004 | _resultobj = Py_None; | |
3005 | return _resultobj; | |
3006 | } | |
3007 | ||
3008 | #define wxFontEnumerator__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) | |
3009 | static PyObject *_wrap_wxFontEnumerator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3010 | PyObject * _resultobj; | |
3011 | wxPyFontEnumerator * _arg0; | |
3012 | PyObject * _arg1; | |
3013 | PyObject * _arg2; | |
3014 | PyObject * _argo0 = 0; | |
3015 | PyObject * _obj1 = 0; | |
3016 | PyObject * _obj2 = 0; | |
3017 | char *_kwnames[] = { "self","self","_class", NULL }; | |
3018 | ||
3019 | self = self; | |
3020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFontEnumerator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3021 | return NULL; | |
3022 | if (_argo0) { | |
3023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setSelf. Expected _wxPyFontEnumerator_p."); | |
3026 | return NULL; | |
3027 | } | |
3028 | } | |
3029 | { | |
3030 | _arg1 = _obj1; | |
3031 | } | |
3032 | { | |
3033 | _arg2 = _obj2; | |
3034 | } | |
3035 | { | |
3036 | wxPy_BEGIN_ALLOW_THREADS; | |
3037 | wxFontEnumerator__setSelf(_arg0,_arg1,_arg2); | |
3038 | ||
3039 | wxPy_END_ALLOW_THREADS; | |
3040 | } Py_INCREF(Py_None); | |
3041 | _resultobj = Py_None; | |
3042 | return _resultobj; | |
3043 | } | |
3044 | ||
3045 | #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1)) | |
3046 | static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3047 | PyObject * _resultobj; | |
3048 | bool _result; | |
3049 | wxPyFontEnumerator * _arg0; | |
3050 | wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM; | |
3051 | bool _arg2 = (bool ) FALSE; | |
3052 | PyObject * _argo0 = 0; | |
3053 | int tempbool2 = (int) FALSE; | |
3054 | char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL }; | |
3055 | ||
3056 | self = self; | |
3057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3058 | return NULL; | |
3059 | if (_argo0) { | |
3060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p."); | |
3063 | return NULL; | |
3064 | } | |
3065 | } | |
3066 | _arg2 = (bool ) tempbool2; | |
3067 | { | |
3068 | wxPy_BEGIN_ALLOW_THREADS; | |
3069 | _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2); | |
3070 | ||
3071 | wxPy_END_ALLOW_THREADS; | |
3072 | } _resultobj = Py_BuildValue("i",_result); | |
3073 | return _resultobj; | |
3074 | } | |
3075 | ||
3076 | #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0)) | |
3077 | static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3078 | PyObject * _resultobj; | |
3079 | bool _result; | |
3080 | wxPyFontEnumerator * _arg0; | |
3081 | char * _arg1 = (char *) ""; | |
3082 | PyObject * _argo0 = 0; | |
3083 | char *_kwnames[] = { "self","facename", NULL }; | |
3084 | ||
3085 | self = self; | |
3086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1)) | |
3087 | return NULL; | |
3088 | if (_argo0) { | |
3089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p."); | |
3092 | return NULL; | |
3093 | } | |
3094 | } | |
3095 | { | |
3096 | wxPy_BEGIN_ALLOW_THREADS; | |
3097 | _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1); | |
3098 | ||
3099 | wxPy_END_ALLOW_THREADS; | |
3100 | } _resultobj = Py_BuildValue("i",_result); | |
3101 | return _resultobj; | |
3102 | } | |
3103 | ||
3104 | static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) { | |
3105 | wxArrayString* arr = self->GetEncodings(); | |
3106 | PyObject* list = PyList_New(0); | |
3107 | for (size_t x=0; x<arr->GetCount(); x++) | |
3108 | PyList_Append(list, PyString_FromString((*arr)[x])); | |
3109 | return list; | |
3110 | } | |
3111 | static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3112 | PyObject * _resultobj; | |
3113 | PyObject * _result; | |
3114 | wxPyFontEnumerator * _arg0; | |
3115 | PyObject * _argo0 = 0; | |
3116 | char *_kwnames[] = { "self", NULL }; | |
3117 | ||
3118 | self = self; | |
3119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0)) | |
3120 | return NULL; | |
3121 | if (_argo0) { | |
3122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p."); | |
3125 | return NULL; | |
3126 | } | |
3127 | } | |
3128 | { | |
3129 | wxPy_BEGIN_ALLOW_THREADS; | |
3130 | _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0); | |
3131 | ||
3132 | wxPy_END_ALLOW_THREADS; | |
3133 | }{ | |
3134 | _resultobj = _result; | |
3135 | } | |
3136 | return _resultobj; | |
3137 | } | |
3138 | ||
3139 | static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) { | |
3140 | wxArrayString* arr = self->GetFacenames(); | |
3141 | PyObject* list = PyList_New(0); | |
3142 | for (size_t x=0; x<arr->GetCount(); x++) | |
3143 | PyList_Append(list, PyString_FromString((*arr)[x])); | |
3144 | return list; | |
3145 | } | |
3146 | static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3147 | PyObject * _resultobj; | |
3148 | PyObject * _result; | |
3149 | wxPyFontEnumerator * _arg0; | |
3150 | PyObject * _argo0 = 0; | |
3151 | char *_kwnames[] = { "self", NULL }; | |
3152 | ||
3153 | self = self; | |
3154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0)) | |
3155 | return NULL; | |
3156 | if (_argo0) { | |
3157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p."); | |
3160 | return NULL; | |
3161 | } | |
3162 | } | |
3163 | { | |
3164 | wxPy_BEGIN_ALLOW_THREADS; | |
3165 | _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0); | |
3166 | ||
3167 | wxPy_END_ALLOW_THREADS; | |
3168 | }{ | |
3169 | _resultobj = _result; | |
3170 | } | |
3171 | return _resultobj; | |
3172 | } | |
3173 | ||
3174 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) | |
3175 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3176 | PyObject * _resultobj; | |
3177 | wxBusyCursor * _result; | |
3178 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3179 | PyObject * _argo0 = 0; | |
3180 | char *_kwnames[] = { "cursor", NULL }; | |
3181 | char _ptemp[128]; | |
3182 | ||
3183 | self = self; | |
3184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3185 | return NULL; | |
3186 | if (_argo0) { | |
3187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3190 | return NULL; | |
3191 | } | |
3192 | } | |
3193 | { | |
3194 | wxPy_BEGIN_ALLOW_THREADS; | |
3195 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); | |
3196 | ||
3197 | wxPy_END_ALLOW_THREADS; | |
3198 | } if (_result) { | |
3199 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3200 | _resultobj = Py_BuildValue("s",_ptemp); | |
3201 | } else { | |
3202 | Py_INCREF(Py_None); | |
3203 | _resultobj = Py_None; | |
3204 | } | |
3205 | return _resultobj; | |
3206 | } | |
3207 | ||
3208 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3209 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3210 | PyObject * _resultobj; | |
3211 | wxBusyCursor * _arg0; | |
3212 | PyObject * _argo0 = 0; | |
3213 | char *_kwnames[] = { "self", NULL }; | |
3214 | ||
3215 | self = self; | |
3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3217 | return NULL; | |
3218 | if (_argo0) { | |
3219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3222 | return NULL; | |
3223 | } | |
3224 | } | |
3225 | { | |
3226 | wxPy_BEGIN_ALLOW_THREADS; | |
3227 | delete_wxBusyCursor(_arg0); | |
3228 | ||
3229 | wxPy_END_ALLOW_THREADS; | |
3230 | } Py_INCREF(Py_None); | |
3231 | _resultobj = Py_None; | |
3232 | return _resultobj; | |
3233 | } | |
3234 | ||
c368d904 RD |
3235 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3236 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3237 | PyObject * _resultobj; | |
3238 | wxWindowDisabler * _result; | |
3239 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3240 | PyObject * _argo0 = 0; | |
3241 | char *_kwnames[] = { "winToSkip", NULL }; | |
3242 | char _ptemp[128]; | |
3243 | ||
3244 | self = self; | |
3245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3246 | return NULL; | |
3247 | if (_argo0) { | |
3248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3251 | return NULL; | |
3252 | } | |
3253 | } | |
3254 | { | |
3255 | wxPy_BEGIN_ALLOW_THREADS; | |
3256 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); | |
3257 | ||
3258 | wxPy_END_ALLOW_THREADS; | |
3259 | } if (_result) { | |
3260 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3261 | _resultobj = Py_BuildValue("s",_ptemp); | |
3262 | } else { | |
3263 | Py_INCREF(Py_None); | |
3264 | _resultobj = Py_None; | |
3265 | } | |
3266 | return _resultobj; | |
3267 | } | |
3268 | ||
3269 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3270 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3271 | PyObject * _resultobj; | |
3272 | wxWindowDisabler * _arg0; | |
3273 | PyObject * _argo0 = 0; | |
3274 | char *_kwnames[] = { "self", NULL }; | |
3275 | ||
3276 | self = self; | |
3277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3278 | return NULL; | |
3279 | if (_argo0) { | |
3280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3283 | return NULL; | |
3284 | } | |
3285 | } | |
3286 | { | |
3287 | wxPy_BEGIN_ALLOW_THREADS; | |
3288 | delete_wxWindowDisabler(_arg0); | |
3289 | ||
3290 | wxPy_END_ALLOW_THREADS; | |
3291 | } Py_INCREF(Py_None); | |
3292 | _resultobj = Py_None; | |
3293 | return _resultobj; | |
3294 | } | |
3295 | ||
4662be59 RD |
3296 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3297 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3298 | PyObject * _resultobj; | |
3299 | wxMutexGuiLocker * _result; | |
3300 | char *_kwnames[] = { NULL }; | |
3301 | char _ptemp[128]; | |
3302 | ||
3303 | self = self; | |
3304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3305 | return NULL; | |
3306 | { | |
3307 | wxPy_BEGIN_ALLOW_THREADS; | |
3308 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); | |
3309 | ||
3310 | wxPy_END_ALLOW_THREADS; | |
3311 | } if (_result) { | |
3312 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3313 | _resultobj = Py_BuildValue("s",_ptemp); | |
3314 | } else { | |
3315 | Py_INCREF(Py_None); | |
3316 | _resultobj = Py_None; | |
3317 | } | |
3318 | return _resultobj; | |
3319 | } | |
3320 | ||
3321 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3322 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3323 | PyObject * _resultobj; | |
3324 | wxMutexGuiLocker * _arg0; | |
3325 | PyObject * _argo0 = 0; | |
3326 | char *_kwnames[] = { "self", NULL }; | |
3327 | ||
3328 | self = self; | |
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3330 | return NULL; | |
3331 | if (_argo0) { | |
3332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3335 | return NULL; | |
3336 | } | |
3337 | } | |
3338 | { | |
3339 | wxPy_BEGIN_ALLOW_THREADS; | |
3340 | delete_wxMutexGuiLocker(_arg0); | |
3341 | ||
3342 | wxPy_END_ALLOW_THREADS; | |
3343 | } Py_INCREF(Py_None); | |
3344 | _resultobj = Py_None; | |
3345 | return _resultobj; | |
3346 | } | |
3347 | ||
f6bcfd97 BP |
3348 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3349 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3350 | PyObject * _resultobj; | |
3351 | wxTipProvider * _arg0; | |
3352 | PyObject * _argo0 = 0; | |
3353 | char *_kwnames[] = { "self", NULL }; | |
3354 | ||
3355 | self = self; | |
3356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3357 | return NULL; | |
3358 | if (_argo0) { | |
3359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3362 | return NULL; | |
3363 | } | |
3364 | } | |
3365 | { | |
3366 | wxPy_BEGIN_ALLOW_THREADS; | |
3367 | delete_wxTipProvider(_arg0); | |
3368 | ||
3369 | wxPy_END_ALLOW_THREADS; | |
3370 | } Py_INCREF(Py_None); | |
3371 | _resultobj = Py_None; | |
3372 | return _resultobj; | |
3373 | } | |
3374 | ||
3375 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3376 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3377 | PyObject * _resultobj; | |
3378 | wxString * _result; | |
3379 | wxTipProvider * _arg0; | |
3380 | PyObject * _argo0 = 0; | |
3381 | char *_kwnames[] = { "self", NULL }; | |
3382 | ||
3383 | self = self; | |
3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3385 | return NULL; | |
3386 | if (_argo0) { | |
3387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3390 | return NULL; | |
3391 | } | |
3392 | } | |
3393 | { | |
3394 | wxPy_BEGIN_ALLOW_THREADS; | |
3395 | _result = new wxString (wxTipProvider_GetTip(_arg0)); | |
3396 | ||
3397 | wxPy_END_ALLOW_THREADS; | |
3398 | }{ | |
3399 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3400 | } | |
3401 | { | |
3402 | delete _result; | |
3403 | } | |
3404 | return _resultobj; | |
3405 | } | |
3406 | ||
3407 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3408 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3409 | PyObject * _resultobj; | |
3410 | size_t _result; | |
3411 | wxTipProvider * _arg0; | |
3412 | PyObject * _argo0 = 0; | |
3413 | char *_kwnames[] = { "self", NULL }; | |
3414 | ||
3415 | self = self; | |
3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3417 | return NULL; | |
3418 | if (_argo0) { | |
3419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3422 | return NULL; | |
3423 | } | |
3424 | } | |
3425 | { | |
3426 | wxPy_BEGIN_ALLOW_THREADS; | |
3427 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); | |
3428 | ||
3429 | wxPy_END_ALLOW_THREADS; | |
3430 | } _resultobj = Py_BuildValue("i",_result); | |
3431 | return _resultobj; | |
3432 | } | |
3433 | ||
3434 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3435 | wxPyTipProvider *src; | |
3436 | wxTipProvider *dest; | |
3437 | src = (wxPyTipProvider *) ptr; | |
3438 | dest = (wxTipProvider *) src; | |
3439 | return (void *) dest; | |
3440 | } | |
3441 | ||
3442 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3443 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3444 | PyObject * _resultobj; | |
3445 | wxPyTipProvider * _result; | |
3446 | size_t _arg0; | |
3447 | char *_kwnames[] = { "currentTip", NULL }; | |
3448 | char _ptemp[128]; | |
3449 | ||
3450 | self = self; | |
3451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3452 | return NULL; | |
3453 | { | |
3454 | wxPy_BEGIN_ALLOW_THREADS; | |
3455 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); | |
3456 | ||
3457 | wxPy_END_ALLOW_THREADS; | |
3458 | } if (_result) { | |
3459 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3460 | _resultobj = Py_BuildValue("s",_ptemp); | |
3461 | } else { | |
3462 | Py_INCREF(Py_None); | |
3463 | _resultobj = Py_None; | |
3464 | } | |
3465 | return _resultobj; | |
3466 | } | |
3467 | ||
3468 | #define new_wxDragImage(_swigarg0,_swigarg1,_swigarg2) (new wxGenericDragImage(_swigarg0,_swigarg1,_swigarg2)) | |
3469 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3470 | PyObject * _resultobj; | |
3471 | wxGenericDragImage * _result; | |
3472 | wxBitmap * _arg0; | |
3473 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3474 | wxPoint * _arg2 = (wxPoint *) &wxPyNullPoint; | |
3475 | PyObject * _argo0 = 0; | |
3476 | PyObject * _argo1 = 0; | |
3477 | wxPoint temp; | |
3478 | PyObject * _obj2 = 0; | |
3479 | char *_kwnames[] = { "image","cursor","hotspot", NULL }; | |
3480 | char _ptemp[128]; | |
3481 | ||
3482 | self = self; | |
3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:new_wxDragImage",_kwnames,&_argo0,&_argo1,&_obj2)) | |
3484 | return NULL; | |
3485 | if (_argo0) { | |
3486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3489 | return NULL; | |
3490 | } | |
3491 | } | |
3492 | if (_argo1) { | |
3493 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3494 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3496 | return NULL; | |
3497 | } | |
3498 | } | |
3499 | if (_obj2) | |
3500 | { | |
3501 | _arg2 = &temp; | |
3502 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3503 | return NULL; | |
3504 | } | |
3505 | { | |
3506 | wxPy_BEGIN_ALLOW_THREADS; | |
3507 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1,*_arg2); | |
3508 | ||
3509 | wxPy_END_ALLOW_THREADS; | |
3510 | } if (_result) { | |
3511 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3512 | _resultobj = Py_BuildValue("s",_ptemp); | |
3513 | } else { | |
3514 | Py_INCREF(Py_None); | |
3515 | _resultobj = Py_None; | |
3516 | } | |
3517 | return _resultobj; | |
3518 | } | |
3519 | ||
3520 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) | |
3521 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3522 | PyObject * _resultobj; | |
3523 | wxGenericDragImage * _arg0; | |
3524 | PyObject * _argo0 = 0; | |
3525 | char *_kwnames[] = { "self", NULL }; | |
3526 | ||
3527 | self = self; | |
3528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3529 | return NULL; | |
3530 | if (_argo0) { | |
3531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3534 | return NULL; | |
3535 | } | |
3536 | } | |
3537 | { | |
3538 | wxPy_BEGIN_ALLOW_THREADS; | |
3539 | delete_wxGenericDragImage(_arg0); | |
3540 | ||
3541 | wxPy_END_ALLOW_THREADS; | |
3542 | } Py_INCREF(Py_None); | |
3543 | _resultobj = Py_None; | |
3544 | return _resultobj; | |
3545 | } | |
3546 | ||
3547 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3548 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3549 | PyObject * _resultobj; | |
3550 | bool _result; | |
3551 | wxGenericDragImage * _arg0; | |
3552 | wxPoint * _arg1; | |
3553 | wxWindow * _arg2; | |
3554 | bool _arg3 = (bool ) FALSE; | |
3555 | wxRect * _arg4 = (wxRect *) NULL; | |
3556 | PyObject * _argo0 = 0; | |
3557 | wxPoint temp; | |
3558 | PyObject * _obj1 = 0; | |
3559 | PyObject * _argo2 = 0; | |
3560 | int tempbool3 = (int) FALSE; | |
3561 | wxRect temp0; | |
3562 | PyObject * _obj4 = 0; | |
3563 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3564 | ||
3565 | self = self; | |
3566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3567 | return NULL; | |
3568 | if (_argo0) { | |
3569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3572 | return NULL; | |
3573 | } | |
3574 | } | |
3575 | { | |
3576 | _arg1 = &temp; | |
3577 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3578 | return NULL; | |
3579 | } | |
3580 | if (_argo2) { | |
3581 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3582 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3584 | return NULL; | |
3585 | } | |
3586 | } | |
3587 | _arg3 = (bool ) tempbool3; | |
3588 | if (_obj4) | |
3589 | { | |
3590 | _arg4 = &temp0; | |
3591 | if (! wxRect_helper(_obj4, &_arg4)) | |
3592 | return NULL; | |
3593 | } | |
3594 | { | |
3595 | wxPy_BEGIN_ALLOW_THREADS; | |
3596 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
3597 | ||
3598 | wxPy_END_ALLOW_THREADS; | |
3599 | } _resultobj = Py_BuildValue("i",_result); | |
3600 | return _resultobj; | |
3601 | } | |
3602 | ||
3603 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3604 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3605 | PyObject * _resultobj; | |
3606 | bool _result; | |
3607 | wxGenericDragImage * _arg0; | |
3608 | wxPoint * _arg1; | |
3609 | wxWindow * _arg2; | |
3610 | wxWindow * _arg3; | |
3611 | PyObject * _argo0 = 0; | |
3612 | wxPoint temp; | |
3613 | PyObject * _obj1 = 0; | |
3614 | PyObject * _argo2 = 0; | |
3615 | PyObject * _argo3 = 0; | |
3616 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3617 | ||
3618 | self = self; | |
3619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3620 | return NULL; | |
3621 | if (_argo0) { | |
3622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
3625 | return NULL; | |
3626 | } | |
3627 | } | |
3628 | { | |
3629 | _arg1 = &temp; | |
3630 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3631 | return NULL; | |
3632 | } | |
3633 | if (_argo2) { | |
3634 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3635 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3637 | return NULL; | |
3638 | } | |
3639 | } | |
3640 | if (_argo3) { | |
3641 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3642 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3644 | return NULL; | |
3645 | } | |
3646 | } | |
3647 | { | |
3648 | wxPy_BEGIN_ALLOW_THREADS; | |
3649 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); | |
3650 | ||
3651 | wxPy_END_ALLOW_THREADS; | |
3652 | } _resultobj = Py_BuildValue("i",_result); | |
3653 | return _resultobj; | |
3654 | } | |
3655 | ||
3656 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
3657 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3658 | PyObject * _resultobj; | |
3659 | bool _result; | |
3660 | wxGenericDragImage * _arg0; | |
3661 | PyObject * _argo0 = 0; | |
3662 | char *_kwnames[] = { "self", NULL }; | |
3663 | ||
3664 | self = self; | |
3665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
3666 | return NULL; | |
3667 | if (_argo0) { | |
3668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
3671 | return NULL; | |
3672 | } | |
3673 | } | |
3674 | { | |
3675 | wxPy_BEGIN_ALLOW_THREADS; | |
3676 | _result = (bool )wxDragImage_EndDrag(_arg0); | |
3677 | ||
3678 | wxPy_END_ALLOW_THREADS; | |
3679 | } _resultobj = Py_BuildValue("i",_result); | |
3680 | return _resultobj; | |
3681 | } | |
3682 | ||
3683 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3684 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3685 | PyObject * _resultobj; | |
3686 | bool _result; | |
3687 | wxGenericDragImage * _arg0; | |
3688 | wxPoint * _arg1; | |
3689 | PyObject * _argo0 = 0; | |
3690 | wxPoint temp; | |
3691 | PyObject * _obj1 = 0; | |
3692 | char *_kwnames[] = { "self","pt", NULL }; | |
3693 | ||
3694 | self = self; | |
3695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
3696 | return NULL; | |
3697 | if (_argo0) { | |
3698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
3701 | return NULL; | |
3702 | } | |
3703 | } | |
3704 | { | |
3705 | _arg1 = &temp; | |
3706 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3707 | return NULL; | |
3708 | } | |
3709 | { | |
3710 | wxPy_BEGIN_ALLOW_THREADS; | |
3711 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); | |
3712 | ||
3713 | wxPy_END_ALLOW_THREADS; | |
3714 | } _resultobj = Py_BuildValue("i",_result); | |
3715 | return _resultobj; | |
3716 | } | |
3717 | ||
3718 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
3719 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3720 | PyObject * _resultobj; | |
3721 | bool _result; | |
3722 | wxGenericDragImage * _arg0; | |
3723 | PyObject * _argo0 = 0; | |
3724 | char *_kwnames[] = { "self", NULL }; | |
3725 | ||
3726 | self = self; | |
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
3728 | return NULL; | |
3729 | if (_argo0) { | |
3730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
3736 | { | |
3737 | wxPy_BEGIN_ALLOW_THREADS; | |
3738 | _result = (bool )wxDragImage_Show(_arg0); | |
3739 | ||
3740 | wxPy_END_ALLOW_THREADS; | |
3741 | } _resultobj = Py_BuildValue("i",_result); | |
3742 | return _resultobj; | |
3743 | } | |
3744 | ||
3745 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
3746 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3747 | PyObject * _resultobj; | |
3748 | bool _result; | |
3749 | wxGenericDragImage * _arg0; | |
3750 | PyObject * _argo0 = 0; | |
3751 | char *_kwnames[] = { "self", NULL }; | |
3752 | ||
3753 | self = self; | |
3754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
3755 | return NULL; | |
3756 | if (_argo0) { | |
3757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
3760 | return NULL; | |
3761 | } | |
3762 | } | |
3763 | { | |
3764 | wxPy_BEGIN_ALLOW_THREADS; | |
3765 | _result = (bool )wxDragImage_Hide(_arg0); | |
3766 | ||
3767 | wxPy_END_ALLOW_THREADS; | |
3768 | } _resultobj = Py_BuildValue("i",_result); | |
3769 | return _resultobj; | |
3770 | } | |
3771 | ||
3772 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
3773 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3774 | PyObject * _resultobj; | |
3775 | wxRect * _result; | |
3776 | wxGenericDragImage * _arg0; | |
3777 | wxPoint * _arg1; | |
3778 | PyObject * _argo0 = 0; | |
3779 | wxPoint temp; | |
3780 | PyObject * _obj1 = 0; | |
3781 | char *_kwnames[] = { "self","pos", NULL }; | |
3782 | char _ptemp[128]; | |
3783 | ||
3784 | self = self; | |
3785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
3786 | return NULL; | |
3787 | if (_argo0) { | |
3788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
3791 | return NULL; | |
3792 | } | |
3793 | } | |
3794 | { | |
3795 | _arg1 = &temp; | |
3796 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3797 | return NULL; | |
3798 | } | |
3799 | { | |
3800 | wxPy_BEGIN_ALLOW_THREADS; | |
3801 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); | |
3802 | ||
3803 | wxPy_END_ALLOW_THREADS; | |
3804 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
3805 | _resultobj = Py_BuildValue("s",_ptemp); | |
3806 | return _resultobj; | |
3807 | } | |
3808 | ||
3809 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3810 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3811 | PyObject * _resultobj; | |
3812 | bool _result; | |
3813 | wxGenericDragImage * _arg0; | |
3814 | wxPoint * _arg1; | |
3815 | wxPoint * _arg2; | |
3816 | bool _arg3; | |
3817 | bool _arg4; | |
3818 | PyObject * _argo0 = 0; | |
3819 | wxPoint temp; | |
3820 | PyObject * _obj1 = 0; | |
3821 | wxPoint temp0; | |
3822 | PyObject * _obj2 = 0; | |
3823 | int tempbool3; | |
3824 | int tempbool4; | |
3825 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
3826 | ||
3827 | self = self; | |
3828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
3829 | return NULL; | |
3830 | if (_argo0) { | |
3831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
3834 | return NULL; | |
3835 | } | |
3836 | } | |
3837 | { | |
3838 | _arg1 = &temp; | |
3839 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3840 | return NULL; | |
3841 | } | |
3842 | { | |
3843 | _arg2 = &temp0; | |
3844 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3845 | return NULL; | |
3846 | } | |
3847 | _arg3 = (bool ) tempbool3; | |
3848 | _arg4 = (bool ) tempbool4; | |
3849 | { | |
3850 | wxPy_BEGIN_ALLOW_THREADS; | |
3851 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
3852 | ||
3853 | wxPy_END_ALLOW_THREADS; | |
3854 | } _resultobj = Py_BuildValue("i",_result); | |
3855 | return _resultobj; | |
3856 | } | |
3857 | ||
3858 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) | |
3859 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3860 | PyObject * _resultobj; | |
3861 | wxPyTimer * _result; | |
3862 | PyObject * _arg0; | |
3863 | PyObject * _obj0 = 0; | |
3864 | char *_kwnames[] = { "notify", NULL }; | |
3865 | char _ptemp[128]; | |
3866 | ||
3867 | self = self; | |
3868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
3869 | return NULL; | |
3870 | { | |
3871 | _arg0 = _obj0; | |
3872 | } | |
3873 | { | |
3874 | wxPy_BEGIN_ALLOW_THREADS; | |
3875 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); | |
3876 | ||
3877 | wxPy_END_ALLOW_THREADS; | |
3878 | } if (_result) { | |
3879 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
3880 | _resultobj = Py_BuildValue("s",_ptemp); | |
3881 | } else { | |
3882 | Py_INCREF(Py_None); | |
3883 | _resultobj = Py_None; | |
3884 | } | |
3885 | return _resultobj; | |
3886 | } | |
3887 | ||
3888 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
3889 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3890 | PyObject * _resultobj; | |
3891 | wxPyTimer * _arg0; | |
3892 | PyObject * _argo0 = 0; | |
3893 | char *_kwnames[] = { "self", NULL }; | |
3894 | ||
3895 | self = self; | |
3896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
3897 | return NULL; | |
3898 | if (_argo0) { | |
3899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
3902 | return NULL; | |
3903 | } | |
3904 | } | |
3905 | { | |
3906 | wxPy_BEGIN_ALLOW_THREADS; | |
3907 | delete_wxPyTimer(_arg0); | |
3908 | ||
3909 | wxPy_END_ALLOW_THREADS; | |
3910 | } Py_INCREF(Py_None); | |
3911 | _resultobj = Py_None; | |
3912 | return _resultobj; | |
3913 | } | |
3914 | ||
3915 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
3916 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3917 | PyObject * _resultobj; | |
3918 | int _result; | |
3919 | wxPyTimer * _arg0; | |
3920 | PyObject * _argo0 = 0; | |
3921 | char *_kwnames[] = { "self", NULL }; | |
3922 | ||
3923 | self = self; | |
3924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
3925 | return NULL; | |
3926 | if (_argo0) { | |
3927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
3930 | return NULL; | |
3931 | } | |
3932 | } | |
3933 | { | |
3934 | wxPy_BEGIN_ALLOW_THREADS; | |
3935 | _result = (int )wxPyTimer_GetInterval(_arg0); | |
3936 | ||
3937 | wxPy_END_ALLOW_THREADS; | |
3938 | } _resultobj = Py_BuildValue("i",_result); | |
3939 | return _resultobj; | |
3940 | } | |
3941 | ||
3942 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
3943 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3944 | PyObject * _resultobj; | |
3945 | bool _result; | |
3946 | wxPyTimer * _arg0; | |
3947 | PyObject * _argo0 = 0; | |
3948 | char *_kwnames[] = { "self", NULL }; | |
3949 | ||
3950 | self = self; | |
3951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
3952 | return NULL; | |
3953 | if (_argo0) { | |
3954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
3957 | return NULL; | |
3958 | } | |
3959 | } | |
3960 | { | |
3961 | wxPy_BEGIN_ALLOW_THREADS; | |
3962 | _result = (bool )wxPyTimer_IsOneShot(_arg0); | |
3963 | ||
3964 | wxPy_END_ALLOW_THREADS; | |
3965 | } _resultobj = Py_BuildValue("i",_result); | |
3966 | return _resultobj; | |
3967 | } | |
3968 | ||
3969 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
3970 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3971 | PyObject * _resultobj; | |
3972 | bool _result; | |
3973 | wxPyTimer * _arg0; | |
3974 | PyObject * _argo0 = 0; | |
3975 | char *_kwnames[] = { "self", NULL }; | |
3976 | ||
3977 | self = self; | |
3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
3979 | return NULL; | |
3980 | if (_argo0) { | |
3981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
3984 | return NULL; | |
3985 | } | |
3986 | } | |
3987 | { | |
3988 | wxPy_BEGIN_ALLOW_THREADS; | |
3989 | _result = (bool )wxPyTimer_IsRunning(_arg0); | |
3990 | ||
3991 | wxPy_END_ALLOW_THREADS; | |
3992 | } _resultobj = Py_BuildValue("i",_result); | |
3993 | return _resultobj; | |
3994 | } | |
3995 | ||
3996 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
3997 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3998 | PyObject * _resultobj; | |
3999 | wxPyTimer * _arg0; | |
4000 | wxEvtHandler * _arg1; | |
4001 | int _arg2 = (int ) -1; | |
4002 | PyObject * _argo0 = 0; | |
4003 | PyObject * _argo1 = 0; | |
4004 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4005 | ||
4006 | self = self; | |
4007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4008 | return NULL; | |
4009 | if (_argo0) { | |
4010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4013 | return NULL; | |
4014 | } | |
4015 | } | |
4016 | if (_argo1) { | |
4017 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4018 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4020 | return NULL; | |
4021 | } | |
4022 | } | |
4023 | { | |
4024 | wxPy_BEGIN_ALLOW_THREADS; | |
4025 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); | |
4026 | ||
4027 | wxPy_END_ALLOW_THREADS; | |
4028 | } Py_INCREF(Py_None); | |
4029 | _resultobj = Py_None; | |
4030 | return _resultobj; | |
4031 | } | |
4032 | ||
4033 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4034 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4035 | PyObject * _resultobj; | |
4036 | wxPyTimer * _arg0; | |
4037 | int _arg1 = (int ) -1; | |
4038 | int _arg2 = (int ) FALSE; | |
4039 | PyObject * _argo0 = 0; | |
4040 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4041 | ||
4042 | self = self; | |
4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4044 | return NULL; | |
4045 | if (_argo0) { | |
4046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4049 | return NULL; | |
4050 | } | |
4051 | } | |
4052 | { | |
4053 | wxPy_BEGIN_ALLOW_THREADS; | |
4054 | wxPyTimer_Start(_arg0,_arg1,_arg2); | |
4055 | ||
4056 | wxPy_END_ALLOW_THREADS; | |
4057 | } Py_INCREF(Py_None); | |
4058 | _resultobj = Py_None; | |
4059 | return _resultobj; | |
4060 | } | |
4061 | ||
4062 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4063 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4064 | PyObject * _resultobj; | |
4065 | wxPyTimer * _arg0; | |
8f17924e RD |
4066 | PyObject * _argo0 = 0; |
4067 | char *_kwnames[] = { "self", NULL }; | |
8f17924e RD |
4068 | |
4069 | self = self; | |
f6bcfd97 | 4070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
8f17924e RD |
4071 | return NULL; |
4072 | if (_argo0) { | |
4073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
8f17924e RD |
4076 | return NULL; |
4077 | } | |
4078 | } | |
4079 | { | |
4080 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4081 | wxPyTimer_Stop(_arg0); |
8f17924e RD |
4082 | |
4083 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4084 | } Py_INCREF(Py_None); |
4085 | _resultobj = Py_None; | |
8f17924e RD |
4086 | return _resultobj; |
4087 | } | |
4088 | ||
f6bcfd97 BP |
4089 | #define new_wxLog() (new wxLog()) |
4090 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8f17924e | 4091 | PyObject * _resultobj; |
f6bcfd97 BP |
4092 | wxLog * _result; |
4093 | char *_kwnames[] = { NULL }; | |
4094 | char _ptemp[128]; | |
8f17924e RD |
4095 | |
4096 | self = self; | |
f6bcfd97 BP |
4097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4098 | return NULL; | |
8f17924e | 4099 | { |
f6bcfd97 BP |
4100 | wxPy_BEGIN_ALLOW_THREADS; |
4101 | _result = (wxLog *)new_wxLog(); | |
4102 | ||
4103 | wxPy_END_ALLOW_THREADS; | |
4104 | } if (_result) { | |
4105 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4106 | _resultobj = Py_BuildValue("s",_ptemp); | |
4107 | } else { | |
4108 | Py_INCREF(Py_None); | |
4109 | _resultobj = Py_None; | |
4110 | } | |
4111 | return _resultobj; | |
8f17924e | 4112 | } |
f6bcfd97 BP |
4113 | |
4114 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4115 | PyObject * _resultobj; | |
4116 | bool _result; | |
4117 | char *_kwnames[] = { NULL }; | |
4118 | ||
4119 | self = self; | |
4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4121 | return NULL; | |
8f17924e | 4122 | { |
f6bcfd97 BP |
4123 | wxPy_BEGIN_ALLOW_THREADS; |
4124 | _result = (bool )wxLog::IsEnabled(); | |
4125 | ||
4126 | wxPy_END_ALLOW_THREADS; | |
4127 | } _resultobj = Py_BuildValue("i",_result); | |
4128 | return _resultobj; | |
8f17924e | 4129 | } |
f6bcfd97 BP |
4130 | |
4131 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4132 | PyObject * _resultobj; | |
4133 | bool _result; | |
4134 | bool _arg0 = (bool ) TRUE; | |
4135 | int tempbool0 = (int) TRUE; | |
4136 | char *_kwnames[] = { "doIt", NULL }; | |
4137 | ||
4138 | self = self; | |
4139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4140 | return NULL; | |
4141 | _arg0 = (bool ) tempbool0; | |
4142 | { | |
4143 | wxPy_BEGIN_ALLOW_THREADS; | |
4144 | _result = (bool )wxLog::EnableLogging(_arg0); | |
4145 | ||
4146 | wxPy_END_ALLOW_THREADS; | |
4147 | } _resultobj = Py_BuildValue("i",_result); | |
4148 | return _resultobj; | |
4149 | } | |
4150 | ||
4151 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4152 | PyObject * _resultobj; | |
4153 | wxLogLevel * _arg0; | |
4154 | char * _arg1; | |
4155 | int _arg2 = (int ) 0; | |
4156 | PyObject * _argo0 = 0; | |
4157 | char *_kwnames[] = { "level","szString","t", NULL }; | |
4158 | ||
4159 | self = self; | |
4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|i:wxLog_OnLog",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8f17924e RD |
4161 | return NULL; |
4162 | if (_argo0) { | |
4163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { |
4165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
8f17924e RD |
4166 | return NULL; |
4167 | } | |
4168 | } | |
4169 | { | |
4170 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4171 | wxLog::OnLog(*_arg0,_arg1,_arg2); |
8f17924e RD |
4172 | |
4173 | wxPy_END_ALLOW_THREADS; | |
4174 | } Py_INCREF(Py_None); | |
4175 | _resultobj = Py_None; | |
f6bcfd97 | 4176 | return _resultobj; |
8f17924e | 4177 | } |
f6bcfd97 BP |
4178 | |
4179 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4180 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4181 | PyObject * _resultobj; | |
4182 | wxLog * _arg0; | |
4183 | PyObject * _argo0 = 0; | |
4184 | char *_kwnames[] = { "self", NULL }; | |
4185 | ||
4186 | self = self; | |
4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4188 | return NULL; | |
4189 | if (_argo0) { | |
4190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4193 | return NULL; | |
4194 | } | |
4195 | } | |
8f17924e | 4196 | { |
f6bcfd97 BP |
4197 | wxPy_BEGIN_ALLOW_THREADS; |
4198 | wxLog_Flush(_arg0); | |
4199 | ||
4200 | wxPy_END_ALLOW_THREADS; | |
4201 | } Py_INCREF(Py_None); | |
4202 | _resultobj = Py_None; | |
8f17924e RD |
4203 | return _resultobj; |
4204 | } | |
4205 | ||
f6bcfd97 BP |
4206 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4207 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8f17924e | 4208 | PyObject * _resultobj; |
f6bcfd97 BP |
4209 | bool _result; |
4210 | wxLog * _arg0; | |
8f17924e RD |
4211 | PyObject * _argo0 = 0; |
4212 | char *_kwnames[] = { "self", NULL }; | |
8f17924e RD |
4213 | |
4214 | self = self; | |
f6bcfd97 | 4215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
8f17924e RD |
4216 | return NULL; |
4217 | if (_argo0) { | |
4218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
8f17924e RD |
4221 | return NULL; |
4222 | } | |
4223 | } | |
4224 | { | |
4225 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4226 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
8f17924e RD |
4227 | |
4228 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4229 | } _resultobj = Py_BuildValue("i",_result); |
8f17924e RD |
4230 | return _resultobj; |
4231 | } | |
4232 | ||
f6bcfd97 | 4233 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 4234 | PyObject * _resultobj; |
f6bcfd97 BP |
4235 | char *_kwnames[] = { NULL }; |
4236 | ||
4237 | self = self; | |
4238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4239 | return NULL; | |
4240 | { | |
4241 | wxPy_BEGIN_ALLOW_THREADS; | |
4242 | wxLog::FlushActive(); | |
4243 | ||
4244 | wxPy_END_ALLOW_THREADS; | |
4245 | } Py_INCREF(Py_None); | |
4246 | _resultobj = Py_None; | |
4247 | return _resultobj; | |
4248 | } | |
4249 | ||
4250 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4251 | PyObject * _resultobj; | |
4252 | wxLog * _result; | |
4253 | char *_kwnames[] = { NULL }; | |
4254 | char _ptemp[128]; | |
4255 | ||
4256 | self = self; | |
4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4258 | return NULL; | |
4259 | { | |
4260 | wxPy_BEGIN_ALLOW_THREADS; | |
4261 | _result = (wxLog *)wxLog::GetActiveTarget(); | |
4262 | ||
4263 | wxPy_END_ALLOW_THREADS; | |
4264 | } if (_result) { | |
4265 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4266 | _resultobj = Py_BuildValue("s",_ptemp); | |
4267 | } else { | |
4268 | Py_INCREF(Py_None); | |
4269 | _resultobj = Py_None; | |
4270 | } | |
4271 | return _resultobj; | |
4272 | } | |
4273 | ||
4274 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4275 | PyObject * _resultobj; | |
4276 | wxLog * _result; | |
4277 | wxLog * _arg0; | |
8f17924e | 4278 | PyObject * _argo0 = 0; |
f6bcfd97 | 4279 | char *_kwnames[] = { "pLogger", NULL }; |
8f17924e RD |
4280 | char _ptemp[128]; |
4281 | ||
4282 | self = self; | |
f6bcfd97 | 4283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
8f17924e RD |
4284 | return NULL; |
4285 | if (_argo0) { | |
4286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
8f17924e RD |
4289 | return NULL; |
4290 | } | |
4291 | } | |
4292 | { | |
4293 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4294 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
8f17924e RD |
4295 | |
4296 | wxPy_END_ALLOW_THREADS; | |
4297 | } if (_result) { | |
f6bcfd97 | 4298 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
8f17924e RD |
4299 | _resultobj = Py_BuildValue("s",_ptemp); |
4300 | } else { | |
4301 | Py_INCREF(Py_None); | |
4302 | _resultobj = Py_None; | |
4303 | } | |
4304 | return _resultobj; | |
4305 | } | |
4306 | ||
f6bcfd97 | 4307 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 4308 | PyObject * _resultobj; |
f6bcfd97 BP |
4309 | char *_kwnames[] = { NULL }; |
4310 | ||
4311 | self = self; | |
4312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4313 | return NULL; | |
4314 | { | |
4315 | wxPy_BEGIN_ALLOW_THREADS; | |
4316 | wxLog::Suspend(); | |
4317 | ||
4318 | wxPy_END_ALLOW_THREADS; | |
4319 | } Py_INCREF(Py_None); | |
4320 | _resultobj = Py_None; | |
4321 | return _resultobj; | |
4322 | } | |
4323 | ||
4324 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4325 | PyObject * _resultobj; | |
4326 | char *_kwnames[] = { NULL }; | |
4327 | ||
4328 | self = self; | |
4329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4330 | return NULL; | |
4331 | { | |
4332 | wxPy_BEGIN_ALLOW_THREADS; | |
4333 | wxLog::Resume(); | |
4334 | ||
4335 | wxPy_END_ALLOW_THREADS; | |
4336 | } Py_INCREF(Py_None); | |
4337 | _resultobj = Py_None; | |
4338 | return _resultobj; | |
4339 | } | |
4340 | ||
4341 | #define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0)) | |
4342 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4343 | PyObject * _resultobj; | |
4344 | wxLog * _arg0; | |
4345 | bool _arg1 = (bool ) TRUE; | |
8f17924e | 4346 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4347 | int tempbool1 = (int) TRUE; |
4348 | char *_kwnames[] = { "self","bVerbose", NULL }; | |
8f17924e RD |
4349 | |
4350 | self = self; | |
f6bcfd97 | 4351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1)) |
8f17924e RD |
4352 | return NULL; |
4353 | if (_argo0) { | |
4354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p."); | |
8f17924e RD |
4357 | return NULL; |
4358 | } | |
4359 | } | |
f6bcfd97 | 4360 | _arg1 = (bool ) tempbool1; |
8f17924e RD |
4361 | { |
4362 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4363 | wxLog_SetVerbose(_arg0,_arg1); |
8f17924e RD |
4364 | |
4365 | wxPy_END_ALLOW_THREADS; | |
4366 | } Py_INCREF(Py_None); | |
4367 | _resultobj = Py_None; | |
4368 | return _resultobj; | |
4369 | } | |
4370 | ||
f6bcfd97 | 4371 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 4372 | PyObject * _resultobj; |
f6bcfd97 BP |
4373 | char *_kwnames[] = { NULL }; |
4374 | ||
4375 | self = self; | |
4376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4377 | return NULL; | |
4378 | { | |
4379 | wxPy_BEGIN_ALLOW_THREADS; | |
4380 | wxLog::DontCreateOnDemand(); | |
4381 | ||
4382 | wxPy_END_ALLOW_THREADS; | |
4383 | } Py_INCREF(Py_None); | |
4384 | _resultobj = Py_None; | |
4385 | return _resultobj; | |
4386 | } | |
4387 | ||
4388 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4389 | PyObject * _resultobj; | |
4390 | wxTraceMask * _arg0; | |
8f17924e | 4391 | PyObject * _argo0 = 0; |
f6bcfd97 | 4392 | char *_kwnames[] = { "ulMask", NULL }; |
8f17924e RD |
4393 | |
4394 | self = self; | |
f6bcfd97 | 4395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) |
8f17924e RD |
4396 | return NULL; |
4397 | if (_argo0) { | |
4398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { |
4400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
4401 | return NULL; | |
4402 | } | |
4403 | } | |
4404 | { | |
4405 | wxPy_BEGIN_ALLOW_THREADS; | |
4406 | wxLog::SetTraceMask(*_arg0); | |
4407 | ||
4408 | wxPy_END_ALLOW_THREADS; | |
4409 | } Py_INCREF(Py_None); | |
4410 | _resultobj = Py_None; | |
4411 | return _resultobj; | |
4412 | } | |
4413 | ||
4414 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4415 | PyObject * _resultobj; | |
4416 | wxString * _arg0; | |
4417 | PyObject * _obj0 = 0; | |
4418 | char *_kwnames[] = { "str", NULL }; | |
4419 | ||
4420 | self = self; | |
4421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4422 | return NULL; | |
4423 | { | |
2cd2fac8 RD |
4424 | #if PYTHON_API_VERSION >= 1009 |
4425 | char* tmpPtr; int tmpSize; | |
4426 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
4427 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4428 | return NULL; | |
4429 | } | |
4430 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4431 | return NULL; | |
4432 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4433 | #else | |
f6bcfd97 BP |
4434 | if (!PyString_Check(_obj0)) { |
4435 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4436 | return NULL; | |
4437 | } | |
2cd2fac8 RD |
4438 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
4439 | #endif | |
f6bcfd97 BP |
4440 | } |
4441 | { | |
4442 | wxPy_BEGIN_ALLOW_THREADS; | |
4443 | wxLog::AddTraceMask(*_arg0); | |
4444 | ||
4445 | wxPy_END_ALLOW_THREADS; | |
4446 | } Py_INCREF(Py_None); | |
4447 | _resultobj = Py_None; | |
4448 | { | |
4449 | if (_obj0) | |
4450 | delete _arg0; | |
4451 | } | |
4452 | return _resultobj; | |
4453 | } | |
4454 | ||
4455 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4456 | PyObject * _resultobj; | |
4457 | wxString * _arg0; | |
4458 | PyObject * _obj0 = 0; | |
4459 | char *_kwnames[] = { "str", NULL }; | |
4460 | ||
4461 | self = self; | |
4462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
8f17924e | 4463 | return NULL; |
8f17924e | 4464 | { |
2cd2fac8 RD |
4465 | #if PYTHON_API_VERSION >= 1009 |
4466 | char* tmpPtr; int tmpSize; | |
4467 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
4468 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4469 | return NULL; | |
4470 | } | |
4471 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4472 | return NULL; | |
4473 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4474 | #else | |
f6bcfd97 BP |
4475 | if (!PyString_Check(_obj0)) { |
4476 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8f17924e | 4477 | return NULL; |
f6bcfd97 | 4478 | } |
2cd2fac8 RD |
4479 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
4480 | #endif | |
8f17924e RD |
4481 | } |
4482 | { | |
4483 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4484 | wxLog::RemoveTraceMask(*_arg0); |
8f17924e RD |
4485 | |
4486 | wxPy_END_ALLOW_THREADS; | |
4487 | } Py_INCREF(Py_None); | |
4488 | _resultobj = Py_None; | |
f6bcfd97 BP |
4489 | { |
4490 | if (_obj0) | |
4491 | delete _arg0; | |
4492 | } | |
8f17924e RD |
4493 | return _resultobj; |
4494 | } | |
4495 | ||
f6bcfd97 BP |
4496 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
4497 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8f17924e | 4498 | PyObject * _resultobj; |
f6bcfd97 BP |
4499 | bool _result; |
4500 | wxLog * _arg0; | |
8f17924e | 4501 | PyObject * _argo0 = 0; |
f6bcfd97 | 4502 | char *_kwnames[] = { "self", NULL }; |
8f17924e RD |
4503 | |
4504 | self = self; | |
f6bcfd97 | 4505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
8f17924e RD |
4506 | return NULL; |
4507 | if (_argo0) { | |
4508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
8f17924e RD |
4511 | return NULL; |
4512 | } | |
4513 | } | |
4514 | { | |
4515 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4516 | _result = (bool )wxLog_GetVerbose(_arg0); |
8f17924e RD |
4517 | |
4518 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4519 | } _resultobj = Py_BuildValue("i",_result); |
8f17924e RD |
4520 | return _resultobj; |
4521 | } | |
4522 | ||
f6bcfd97 | 4523 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 4524 | PyObject * _resultobj; |
f6bcfd97 BP |
4525 | wxTraceMask * _result; |
4526 | char *_kwnames[] = { NULL }; | |
4527 | char _ptemp[128]; | |
8f17924e RD |
4528 | |
4529 | self = self; | |
f6bcfd97 | 4530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
8f17924e | 4531 | return NULL; |
e02c03a4 | 4532 | { |
f6bcfd97 BP |
4533 | wxPy_BEGIN_ALLOW_THREADS; |
4534 | _result = new wxTraceMask (wxLog::GetTraceMask()); | |
4535 | ||
4536 | wxPy_END_ALLOW_THREADS; | |
4537 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); | |
4538 | _resultobj = Py_BuildValue("s",_ptemp); | |
4539 | return _resultobj; | |
e02c03a4 | 4540 | } |
f6bcfd97 BP |
4541 | |
4542 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4543 | PyObject * _resultobj; | |
4544 | bool _result; | |
4545 | char * _arg0; | |
4546 | char *_kwnames[] = { "mask", NULL }; | |
4547 | ||
4548 | self = self; | |
4549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_IsAllowedTraceMask",_kwnames,&_arg0)) | |
4550 | return NULL; | |
8f17924e RD |
4551 | { |
4552 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4553 | _result = (bool )wxLog::IsAllowedTraceMask(_arg0); |
8f17924e RD |
4554 | |
4555 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4556 | } _resultobj = Py_BuildValue("i",_result); |
8f17924e RD |
4557 | return _resultobj; |
4558 | } | |
4559 | ||
f6bcfd97 BP |
4560 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
4561 | wxLogStderr *src; | |
4562 | wxLog *dest; | |
4563 | src = (wxLogStderr *) ptr; | |
4564 | dest = (wxLog *) src; | |
4565 | return (void *) dest; | |
4566 | } | |
4567 | ||
4568 | #define new_wxLogStderr() (new wxLogStderr()) | |
4569 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8f17924e | 4570 | PyObject * _resultobj; |
f6bcfd97 BP |
4571 | wxLogStderr * _result; |
4572 | char *_kwnames[] = { NULL }; | |
4573 | char _ptemp[128]; | |
8f17924e RD |
4574 | |
4575 | self = self; | |
f6bcfd97 | 4576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
8f17924e | 4577 | return NULL; |
8f17924e RD |
4578 | { |
4579 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4580 | _result = (wxLogStderr *)new_wxLogStderr(); |
8f17924e RD |
4581 | |
4582 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4583 | } if (_result) { |
4584 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
4585 | _resultobj = Py_BuildValue("s",_ptemp); | |
4586 | } else { | |
4587 | Py_INCREF(Py_None); | |
4588 | _resultobj = Py_None; | |
4589 | } | |
8f17924e RD |
4590 | return _resultobj; |
4591 | } | |
4592 | ||
f6bcfd97 BP |
4593 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
4594 | wxLogTextCtrl *src; | |
4595 | wxLog *dest; | |
4596 | src = (wxLogTextCtrl *) ptr; | |
4597 | dest = (wxLog *) src; | |
4598 | return (void *) dest; | |
4599 | } | |
4600 | ||
4601 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
4602 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8f17924e | 4603 | PyObject * _resultobj; |
f6bcfd97 BP |
4604 | wxLogTextCtrl * _result; |
4605 | wxTextCtrl * _arg0; | |
8f17924e | 4606 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4607 | char *_kwnames[] = { "pTextCtrl", NULL }; |
4608 | char _ptemp[128]; | |
8f17924e RD |
4609 | |
4610 | self = self; | |
f6bcfd97 | 4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
8f17924e RD |
4612 | return NULL; |
4613 | if (_argo0) { | |
4614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
4616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
8f17924e RD |
4617 | return NULL; |
4618 | } | |
4619 | } | |
4620 | { | |
4621 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4622 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
8f17924e RD |
4623 | |
4624 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4625 | } if (_result) { |
4626 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
4627 | _resultobj = Py_BuildValue("s",_ptemp); | |
4628 | } else { | |
4629 | Py_INCREF(Py_None); | |
4630 | _resultobj = Py_None; | |
4631 | } | |
8f17924e RD |
4632 | return _resultobj; |
4633 | } | |
4634 | ||
f6bcfd97 BP |
4635 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
4636 | wxLogGui *src; | |
4637 | wxLog *dest; | |
4638 | src = (wxLogGui *) ptr; | |
4639 | dest = (wxLog *) src; | |
4640 | return (void *) dest; | |
4641 | } | |
4642 | ||
4643 | #define new_wxLogGui() (new wxLogGui()) | |
4644 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 4645 | PyObject * _resultobj; |
f6bcfd97 | 4646 | wxLogGui * _result; |
4120ef2b RD |
4647 | char *_kwnames[] = { NULL }; |
4648 | char _ptemp[128]; | |
4649 | ||
4650 | self = self; | |
f6bcfd97 | 4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
4120ef2b RD |
4652 | return NULL; |
4653 | { | |
4654 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4655 | _result = (wxLogGui *)new_wxLogGui(); |
4120ef2b RD |
4656 | |
4657 | wxPy_END_ALLOW_THREADS; | |
4658 | } if (_result) { | |
f6bcfd97 | 4659 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
4120ef2b RD |
4660 | _resultobj = Py_BuildValue("s",_ptemp); |
4661 | } else { | |
4662 | Py_INCREF(Py_None); | |
4663 | _resultobj = Py_None; | |
4664 | } | |
4665 | return _resultobj; | |
4666 | } | |
4667 | ||
f6bcfd97 BP |
4668 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
4669 | wxLogWindow *src; | |
4670 | wxLog *dest; | |
4671 | src = (wxLogWindow *) ptr; | |
4672 | dest = (wxLog *) src; | |
4673 | return (void *) dest; | |
4674 | } | |
4675 | ||
4676 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4677 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 4678 | PyObject * _resultobj; |
f6bcfd97 BP |
4679 | wxLogWindow * _result; |
4680 | wxFrame * _arg0; | |
4681 | char * _arg1; | |
4682 | bool _arg2 = (bool ) TRUE; | |
4683 | bool _arg3 = (bool ) TRUE; | |
4120ef2b | 4684 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4685 | int tempbool2 = (int) TRUE; |
4686 | int tempbool3 = (int) TRUE; | |
4687 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
4688 | char _ptemp[128]; | |
4120ef2b RD |
4689 | |
4690 | self = self; | |
f6bcfd97 | 4691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|ii:new_wxLogWindow",_kwnames,&_argo0,&_arg1,&tempbool2,&tempbool3)) |
4120ef2b RD |
4692 | return NULL; |
4693 | if (_argo0) { | |
4694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
4696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
4120ef2b RD |
4697 | return NULL; |
4698 | } | |
4699 | } | |
f6bcfd97 BP |
4700 | _arg2 = (bool ) tempbool2; |
4701 | _arg3 = (bool ) tempbool3; | |
4120ef2b RD |
4702 | { |
4703 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4704 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,_arg1,_arg2,_arg3); |
4120ef2b RD |
4705 | |
4706 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4707 | } if (_result) { |
4708 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
4709 | _resultobj = Py_BuildValue("s",_ptemp); | |
4710 | } else { | |
4711 | Py_INCREF(Py_None); | |
4712 | _resultobj = Py_None; | |
4713 | } | |
4120ef2b RD |
4714 | return _resultobj; |
4715 | } | |
4716 | ||
f6bcfd97 BP |
4717 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
4718 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 4719 | PyObject * _resultobj; |
f6bcfd97 BP |
4720 | wxLogWindow * _arg0; |
4721 | bool _arg1 = (bool ) TRUE; | |
4120ef2b | 4722 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4723 | int tempbool1 = (int) TRUE; |
4724 | char *_kwnames[] = { "self","bShow", NULL }; | |
4120ef2b RD |
4725 | |
4726 | self = self; | |
f6bcfd97 | 4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
4120ef2b RD |
4728 | return NULL; |
4729 | if (_argo0) { | |
4730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
4732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
4120ef2b RD |
4733 | return NULL; |
4734 | } | |
4735 | } | |
f6bcfd97 | 4736 | _arg1 = (bool ) tempbool1; |
4120ef2b RD |
4737 | { |
4738 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4739 | wxLogWindow_Show(_arg0,_arg1); |
4120ef2b RD |
4740 | |
4741 | wxPy_END_ALLOW_THREADS; | |
4742 | } Py_INCREF(Py_None); | |
4743 | _resultobj = Py_None; | |
4744 | return _resultobj; | |
4745 | } | |
4746 | ||
f6bcfd97 BP |
4747 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
4748 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 4749 | PyObject * _resultobj; |
f6bcfd97 BP |
4750 | wxFrame * _result; |
4751 | wxLogWindow * _arg0; | |
4120ef2b | 4752 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4753 | char *_kwnames[] = { "self", NULL }; |
4754 | char _ptemp[128]; | |
4120ef2b RD |
4755 | |
4756 | self = self; | |
f6bcfd97 | 4757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
4120ef2b RD |
4758 | return NULL; |
4759 | if (_argo0) { | |
4760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
4762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
4120ef2b RD |
4763 | return NULL; |
4764 | } | |
4765 | } | |
4120ef2b RD |
4766 | { |
4767 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4768 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
4120ef2b RD |
4769 | |
4770 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4771 | } if (_result) { |
4772 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p"); | |
4773 | _resultobj = Py_BuildValue("s",_ptemp); | |
4774 | } else { | |
4775 | Py_INCREF(Py_None); | |
4776 | _resultobj = Py_None; | |
4777 | } | |
4120ef2b RD |
4778 | return _resultobj; |
4779 | } | |
4780 | ||
f6bcfd97 BP |
4781 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
4782 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 4783 | PyObject * _resultobj; |
f6bcfd97 BP |
4784 | wxLog * _result; |
4785 | wxLogWindow * _arg0; | |
4120ef2b | 4786 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4787 | char *_kwnames[] = { "self", NULL }; |
4788 | char _ptemp[128]; | |
4120ef2b RD |
4789 | |
4790 | self = self; | |
f6bcfd97 | 4791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
4120ef2b RD |
4792 | return NULL; |
4793 | if (_argo0) { | |
4794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
4796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
4120ef2b RD |
4797 | return NULL; |
4798 | } | |
4799 | } | |
4800 | { | |
4801 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4802 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
4120ef2b RD |
4803 | |
4804 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4805 | } if (_result) { |
4806 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4807 | _resultobj = Py_BuildValue("s",_ptemp); | |
4808 | } else { | |
4809 | Py_INCREF(Py_None); | |
4810 | _resultobj = Py_None; | |
4811 | } | |
4120ef2b RD |
4812 | return _resultobj; |
4813 | } | |
4814 | ||
f6bcfd97 BP |
4815 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
4816 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 4817 | PyObject * _resultobj; |
f6bcfd97 BP |
4818 | bool _result; |
4819 | wxLogWindow * _arg0; | |
4120ef2b RD |
4820 | PyObject * _argo0 = 0; |
4821 | char *_kwnames[] = { "self", NULL }; | |
4822 | ||
4823 | self = self; | |
f6bcfd97 | 4824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
4120ef2b RD |
4825 | return NULL; |
4826 | if (_argo0) { | |
4827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
4829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
4120ef2b RD |
4830 | return NULL; |
4831 | } | |
4832 | } | |
4833 | { | |
4834 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4835 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
4120ef2b RD |
4836 | |
4837 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4838 | } _resultobj = Py_BuildValue("i",_result); |
4120ef2b RD |
4839 | return _resultobj; |
4840 | } | |
4841 | ||
f6bcfd97 BP |
4842 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
4843 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 4844 | PyObject * _resultobj; |
f6bcfd97 BP |
4845 | wxLogWindow * _arg0; |
4846 | bool _arg1; | |
4120ef2b | 4847 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4848 | int tempbool1; |
4849 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
4120ef2b RD |
4850 | |
4851 | self = self; | |
f6bcfd97 | 4852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
4120ef2b RD |
4853 | return NULL; |
4854 | if (_argo0) { | |
4855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
4857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
4120ef2b RD |
4858 | return NULL; |
4859 | } | |
4860 | } | |
f6bcfd97 | 4861 | _arg1 = (bool ) tempbool1; |
4120ef2b RD |
4862 | { |
4863 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4864 | wxLogWindow_PassMessages(_arg0,_arg1); |
4120ef2b RD |
4865 | |
4866 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4867 | } Py_INCREF(Py_None); |
4868 | _resultobj = Py_None; | |
4120ef2b RD |
4869 | return _resultobj; |
4870 | } | |
4871 | ||
f6bcfd97 BP |
4872 | #define new_wxLogNull() (new wxLogNull()) |
4873 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 4874 | PyObject * _resultobj; |
f6bcfd97 BP |
4875 | wxLogNull * _result; |
4876 | char *_kwnames[] = { NULL }; | |
4120ef2b RD |
4877 | char _ptemp[128]; |
4878 | ||
4879 | self = self; | |
f6bcfd97 | 4880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) |
4120ef2b | 4881 | return NULL; |
4120ef2b RD |
4882 | { |
4883 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4884 | _result = (wxLogNull *)new_wxLogNull(); |
4120ef2b RD |
4885 | |
4886 | wxPy_END_ALLOW_THREADS; | |
4887 | } if (_result) { | |
f6bcfd97 | 4888 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); |
4120ef2b RD |
4889 | _resultobj = Py_BuildValue("s",_ptemp); |
4890 | } else { | |
4891 | Py_INCREF(Py_None); | |
4892 | _resultobj = Py_None; | |
4893 | } | |
4894 | return _resultobj; | |
4895 | } | |
4896 | ||
f6bcfd97 BP |
4897 | #define delete_wxLogNull(_swigobj) (delete _swigobj) |
4898 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 4899 | PyObject * _resultobj; |
f6bcfd97 | 4900 | wxLogNull * _arg0; |
4120ef2b RD |
4901 | PyObject * _argo0 = 0; |
4902 | char *_kwnames[] = { "self", NULL }; | |
4903 | ||
4904 | self = self; | |
f6bcfd97 | 4905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) |
4120ef2b RD |
4906 | return NULL; |
4907 | if (_argo0) { | |
4908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { |
4910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
4120ef2b RD |
4911 | return NULL; |
4912 | } | |
4913 | } | |
4914 | { | |
4915 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4916 | delete_wxLogNull(_arg0); |
4120ef2b RD |
4917 | |
4918 | wxPy_END_ALLOW_THREADS; | |
4919 | } Py_INCREF(Py_None); | |
4920 | _resultobj = Py_None; | |
4921 | return _resultobj; | |
4922 | } | |
4923 | ||
c368d904 RD |
4924 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
4925 | wxProcessEvent *src; | |
4926 | wxEvent *dest; | |
4927 | src = (wxProcessEvent *) ptr; | |
4928 | dest = (wxEvent *) src; | |
4929 | return (void *) dest; | |
4930 | } | |
4931 | ||
4932 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) | |
4933 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4934 | PyObject * _resultobj; | |
4935 | wxProcessEvent * _result; | |
4936 | int _arg0 = (int ) 0; | |
4937 | int _arg1 = (int ) 0; | |
4938 | int _arg2 = (int ) 0; | |
4939 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
4940 | char _ptemp[128]; | |
4941 | ||
4942 | self = self; | |
4943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
4944 | return NULL; | |
4945 | { | |
4946 | wxPy_BEGIN_ALLOW_THREADS; | |
4947 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); | |
4948 | ||
4949 | wxPy_END_ALLOW_THREADS; | |
4950 | } if (_result) { | |
4951 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
4952 | _resultobj = Py_BuildValue("s",_ptemp); | |
4953 | } else { | |
4954 | Py_INCREF(Py_None); | |
4955 | _resultobj = Py_None; | |
4956 | } | |
4957 | return _resultobj; | |
4958 | } | |
4959 | ||
4960 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
4961 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4962 | PyObject * _resultobj; | |
4963 | int _result; | |
4964 | wxProcessEvent * _arg0; | |
4965 | PyObject * _argo0 = 0; | |
4966 | char *_kwnames[] = { "self", NULL }; | |
4967 | ||
4968 | self = self; | |
4969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
4970 | return NULL; | |
4971 | if (_argo0) { | |
4972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
4974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
4975 | return NULL; | |
4976 | } | |
4977 | } | |
4978 | { | |
4979 | wxPy_BEGIN_ALLOW_THREADS; | |
4980 | _result = (int )wxProcessEvent_GetPid(_arg0); | |
4981 | ||
4982 | wxPy_END_ALLOW_THREADS; | |
4983 | } _resultobj = Py_BuildValue("i",_result); | |
4984 | return _resultobj; | |
4985 | } | |
4986 | ||
4987 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
4988 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4989 | PyObject * _resultobj; | |
4990 | int _result; | |
4991 | wxProcessEvent * _arg0; | |
4992 | PyObject * _argo0 = 0; | |
4993 | char *_kwnames[] = { "self", NULL }; | |
4994 | ||
4995 | self = self; | |
4996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
4997 | return NULL; | |
4998 | if (_argo0) { | |
4999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5002 | return NULL; | |
5003 | } | |
5004 | } | |
5005 | { | |
5006 | wxPy_BEGIN_ALLOW_THREADS; | |
5007 | _result = (int )wxProcessEvent_GetExitCode(_arg0); | |
5008 | ||
5009 | wxPy_END_ALLOW_THREADS; | |
5010 | } _resultobj = Py_BuildValue("i",_result); | |
5011 | return _resultobj; | |
5012 | } | |
5013 | ||
5014 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5015 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5016 | PyObject * _resultobj; | |
5017 | int _result; | |
5018 | wxProcessEvent * _arg0; | |
5019 | int _arg1; | |
5020 | PyObject * _argo0 = 0; | |
5021 | char *_kwnames[] = { "self","m_pid", NULL }; | |
5022 | ||
5023 | self = self; | |
5024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
5025 | return NULL; | |
5026 | if (_argo0) { | |
5027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
5030 | return NULL; | |
5031 | } | |
5032 | } | |
5033 | { | |
5034 | wxPy_BEGIN_ALLOW_THREADS; | |
5035 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); | |
5036 | ||
5037 | wxPy_END_ALLOW_THREADS; | |
5038 | } _resultobj = Py_BuildValue("i",_result); | |
5039 | return _resultobj; | |
5040 | } | |
5041 | ||
5042 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
5043 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5044 | PyObject * _resultobj; | |
5045 | int _result; | |
5046 | wxProcessEvent * _arg0; | |
5047 | PyObject * _argo0 = 0; | |
5048 | char *_kwnames[] = { "self", NULL }; | |
5049 | ||
5050 | self = self; | |
5051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
5052 | return NULL; | |
5053 | if (_argo0) { | |
5054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
5057 | return NULL; | |
5058 | } | |
5059 | } | |
5060 | { | |
5061 | wxPy_BEGIN_ALLOW_THREADS; | |
5062 | _result = (int )wxProcessEvent_m_pid_get(_arg0); | |
5063 | ||
5064 | wxPy_END_ALLOW_THREADS; | |
5065 | } _resultobj = Py_BuildValue("i",_result); | |
5066 | return _resultobj; | |
5067 | } | |
5068 | ||
5069 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
5070 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5071 | PyObject * _resultobj; | |
5072 | int _result; | |
5073 | wxProcessEvent * _arg0; | |
5074 | int _arg1; | |
5075 | PyObject * _argo0 = 0; | |
5076 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
5077 | ||
5078 | self = self; | |
5079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
5080 | return NULL; | |
5081 | if (_argo0) { | |
5082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
5085 | return NULL; | |
5086 | } | |
5087 | } | |
5088 | { | |
5089 | wxPy_BEGIN_ALLOW_THREADS; | |
5090 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); | |
5091 | ||
5092 | wxPy_END_ALLOW_THREADS; | |
5093 | } _resultobj = Py_BuildValue("i",_result); | |
5094 | return _resultobj; | |
5095 | } | |
5096 | ||
5097 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
5098 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5099 | PyObject * _resultobj; | |
5100 | int _result; | |
5101 | wxProcessEvent * _arg0; | |
5102 | PyObject * _argo0 = 0; | |
5103 | char *_kwnames[] = { "self", NULL }; | |
5104 | ||
5105 | self = self; | |
5106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
5107 | return NULL; | |
5108 | if (_argo0) { | |
5109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
5112 | return NULL; | |
5113 | } | |
5114 | } | |
5115 | { | |
5116 | wxPy_BEGIN_ALLOW_THREADS; | |
5117 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); | |
5118 | ||
5119 | wxPy_END_ALLOW_THREADS; | |
5120 | } _resultobj = Py_BuildValue("i",_result); | |
5121 | return _resultobj; | |
5122 | } | |
5123 | ||
5124 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
5125 | wxPyProcess *src; | |
5126 | wxEvtHandler *dest; | |
5127 | src = (wxPyProcess *) ptr; | |
5128 | dest = (wxEvtHandler *) src; | |
5129 | return (void *) dest; | |
5130 | } | |
5131 | ||
5132 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) | |
5133 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5134 | PyObject * _resultobj; | |
5135 | wxPyProcess * _result; | |
5136 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
5137 | int _arg1 = (int ) -1; | |
5138 | PyObject * _argo0 = 0; | |
5139 | char *_kwnames[] = { "parent","id", NULL }; | |
5140 | char _ptemp[128]; | |
5141 | ||
5142 | self = self; | |
5143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
5144 | return NULL; | |
5145 | if (_argo0) { | |
5146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
5148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
5149 | return NULL; | |
5150 | } | |
5151 | } | |
5152 | { | |
5153 | wxPy_BEGIN_ALLOW_THREADS; | |
5154 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); | |
5155 | ||
5156 | wxPy_END_ALLOW_THREADS; | |
5157 | } if (_result) { | |
5158 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
5159 | _resultobj = Py_BuildValue("s",_ptemp); | |
5160 | } else { | |
5161 | Py_INCREF(Py_None); | |
5162 | _resultobj = Py_None; | |
5163 | } | |
5164 | return _resultobj; | |
5165 | } | |
5166 | ||
5167 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
5168 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5169 | PyObject * _resultobj; | |
5170 | wxPyProcess * _arg0; | |
5171 | PyObject * _argo0 = 0; | |
5172 | char *_kwnames[] = { "self", NULL }; | |
5173 | ||
5174 | self = self; | |
5175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
5176 | return NULL; | |
5177 | if (_argo0) { | |
5178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
5181 | return NULL; | |
5182 | } | |
5183 | } | |
5184 | { | |
5185 | wxPy_BEGIN_ALLOW_THREADS; | |
5186 | wxPyProcess_Destroy(_arg0); | |
5187 | ||
5188 | wxPy_END_ALLOW_THREADS; | |
5189 | } Py_INCREF(Py_None); | |
5190 | _resultobj = Py_None; | |
5191 | return _resultobj; | |
5192 | } | |
5193 | ||
5194 | #define wxProcess__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) | |
5195 | static PyObject *_wrap_wxProcess__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5196 | PyObject * _resultobj; | |
5197 | wxPyProcess * _arg0; | |
5198 | PyObject * _arg1; | |
5199 | PyObject * _arg2; | |
5200 | PyObject * _argo0 = 0; | |
5201 | PyObject * _obj1 = 0; | |
5202 | PyObject * _obj2 = 0; | |
5203 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5204 | ||
5205 | self = self; | |
5206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5207 | return NULL; | |
5208 | if (_argo0) { | |
5209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setSelf. Expected _wxPyProcess_p."); | |
5212 | return NULL; | |
5213 | } | |
5214 | } | |
5215 | { | |
5216 | _arg1 = _obj1; | |
5217 | } | |
5218 | { | |
5219 | _arg2 = _obj2; | |
5220 | } | |
5221 | { | |
5222 | wxPy_BEGIN_ALLOW_THREADS; | |
5223 | wxProcess__setSelf(_arg0,_arg1,_arg2); | |
5224 | ||
5225 | wxPy_END_ALLOW_THREADS; | |
5226 | } Py_INCREF(Py_None); | |
5227 | _resultobj = Py_None; | |
5228 | return _resultobj; | |
5229 | } | |
5230 | ||
5231 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
5232 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5233 | PyObject * _resultobj; | |
5234 | wxPyProcess * _arg0; | |
5235 | int _arg1; | |
5236 | int _arg2; | |
5237 | PyObject * _argo0 = 0; | |
5238 | char *_kwnames[] = { "self","pid","status", NULL }; | |
5239 | ||
5240 | self = self; | |
5241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5242 | return NULL; | |
5243 | if (_argo0) { | |
5244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
5247 | return NULL; | |
5248 | } | |
5249 | } | |
5250 | { | |
5251 | wxPy_BEGIN_ALLOW_THREADS; | |
5252 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); | |
5253 | ||
5254 | wxPy_END_ALLOW_THREADS; | |
5255 | } Py_INCREF(Py_None); | |
5256 | _resultobj = Py_None; | |
5257 | return _resultobj; | |
5258 | } | |
5259 | ||
5260 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
5261 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5262 | PyObject * _resultobj; | |
5263 | wxPyProcess * _arg0; | |
5264 | PyObject * _argo0 = 0; | |
5265 | char *_kwnames[] = { "self", NULL }; | |
5266 | ||
5267 | self = self; | |
5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
5269 | return NULL; | |
5270 | if (_argo0) { | |
5271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
5274 | return NULL; | |
5275 | } | |
5276 | } | |
5277 | { | |
5278 | wxPy_BEGIN_ALLOW_THREADS; | |
5279 | wxProcess_Redirect(_arg0); | |
5280 | ||
5281 | wxPy_END_ALLOW_THREADS; | |
5282 | } Py_INCREF(Py_None); | |
5283 | _resultobj = Py_None; | |
5284 | return _resultobj; | |
5285 | } | |
5286 | ||
5287 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
5288 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5289 | PyObject * _resultobj; | |
5290 | bool _result; | |
5291 | wxPyProcess * _arg0; | |
5292 | PyObject * _argo0 = 0; | |
5293 | char *_kwnames[] = { "self", NULL }; | |
5294 | ||
5295 | self = self; | |
5296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
5297 | return NULL; | |
5298 | if (_argo0) { | |
5299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
5302 | return NULL; | |
5303 | } | |
5304 | } | |
5305 | { | |
5306 | wxPy_BEGIN_ALLOW_THREADS; | |
5307 | _result = (bool )wxProcess_IsRedirected(_arg0); | |
5308 | ||
5309 | wxPy_END_ALLOW_THREADS; | |
5310 | } _resultobj = Py_BuildValue("i",_result); | |
5311 | return _resultobj; | |
5312 | } | |
5313 | ||
5314 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
5315 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5316 | PyObject * _resultobj; | |
5317 | wxPyProcess * _arg0; | |
5318 | PyObject * _argo0 = 0; | |
5319 | char *_kwnames[] = { "self", NULL }; | |
5320 | ||
5321 | self = self; | |
5322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
5323 | return NULL; | |
5324 | if (_argo0) { | |
5325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
5328 | return NULL; | |
5329 | } | |
5330 | } | |
5331 | { | |
5332 | wxPy_BEGIN_ALLOW_THREADS; | |
5333 | wxProcess_Detach(_arg0); | |
5334 | ||
5335 | wxPy_END_ALLOW_THREADS; | |
5336 | } Py_INCREF(Py_None); | |
5337 | _resultobj = Py_None; | |
5338 | return _resultobj; | |
5339 | } | |
5340 | ||
5341 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
5342 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5343 | PyObject * _resultobj; | |
5344 | wxInputStream * _result; | |
5345 | wxPyProcess * _arg0; | |
5346 | PyObject * _argo0 = 0; | |
5347 | char *_kwnames[] = { "self", NULL }; | |
5348 | ||
5349 | self = self; | |
5350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
5351 | return NULL; | |
5352 | if (_argo0) { | |
5353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
5356 | return NULL; | |
5357 | } | |
5358 | } | |
5359 | { | |
5360 | wxPy_BEGIN_ALLOW_THREADS; | |
5361 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); | |
5362 | ||
5363 | wxPy_END_ALLOW_THREADS; | |
5364 | }{ | |
5365 | wxPyInputStream * _ptr = NULL; | |
5366 | ||
5367 | if (_result) { | |
5368 | _ptr = new wxPyInputStream(_result); | |
5369 | } | |
5370 | if (_ptr) { | |
5371 | char swigptr[64]; | |
5372 | SWIG_MakePtr(swigptr, _ptr, "_wxPyInputStream_p"); | |
5373 | ||
5374 | PyObject* classobj = PyDict_GetItemString(wxPython_dict, "wxInputStreamPtr"); | |
5375 | if (! classobj) { | |
5376 | Py_INCREF(Py_None); | |
5377 | _resultobj = Py_None; | |
5378 | } else { | |
5379 | PyObject* arg = Py_BuildValue("(s)", swigptr); | |
5380 | _resultobj = PyInstance_New(classobj, arg, NULL); | |
5381 | Py_DECREF(arg); | |
5382 | ||
5383 | // set ThisOwn | |
2cd2fac8 RD |
5384 | PyObject* one = PyInt_FromLong(1); |
5385 | PyObject_SetAttrString(_resultobj, "thisown", one); | |
5386 | Py_DECREF(one); | |
c368d904 RD |
5387 | } |
5388 | } else { | |
5389 | Py_INCREF(Py_None); | |
5390 | _resultobj = Py_None; | |
5391 | } | |
5392 | } | |
5393 | return _resultobj; | |
5394 | } | |
5395 | ||
5396 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
5397 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5398 | PyObject * _resultobj; | |
5399 | wxInputStream * _result; | |
5400 | wxPyProcess * _arg0; | |
5401 | PyObject * _argo0 = 0; | |
5402 | char *_kwnames[] = { "self", NULL }; | |
5403 | ||
5404 | self = self; | |
5405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
5406 | return NULL; | |
5407 | if (_argo0) { | |
5408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
5411 | return NULL; | |
5412 | } | |
5413 | } | |
5414 | { | |
5415 | wxPy_BEGIN_ALLOW_THREADS; | |
5416 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); | |
5417 | ||
5418 | wxPy_END_ALLOW_THREADS; | |
5419 | }{ | |
5420 | wxPyInputStream * _ptr = NULL; | |
5421 | ||
5422 | if (_result) { | |
5423 | _ptr = new wxPyInputStream(_result); | |
5424 | } | |
5425 | if (_ptr) { | |
5426 | char swigptr[64]; | |
5427 | SWIG_MakePtr(swigptr, _ptr, "_wxPyInputStream_p"); | |
5428 | ||
5429 | PyObject* classobj = PyDict_GetItemString(wxPython_dict, "wxInputStreamPtr"); | |
5430 | if (! classobj) { | |
5431 | Py_INCREF(Py_None); | |
5432 | _resultobj = Py_None; | |
5433 | } else { | |
5434 | PyObject* arg = Py_BuildValue("(s)", swigptr); | |
5435 | _resultobj = PyInstance_New(classobj, arg, NULL); | |
5436 | Py_DECREF(arg); | |
5437 | ||
5438 | // set ThisOwn | |
2cd2fac8 RD |
5439 | PyObject* one = PyInt_FromLong(1); |
5440 | PyObject_SetAttrString(_resultobj, "thisown", one); | |
5441 | Py_DECREF(one); | |
c368d904 RD |
5442 | } |
5443 | } else { | |
5444 | Py_INCREF(Py_None); | |
5445 | _resultobj = Py_None; | |
5446 | } | |
5447 | } | |
5448 | return _resultobj; | |
5449 | } | |
5450 | ||
5451 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
5452 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5453 | PyObject * _resultobj; | |
5454 | wxOutputStream * _result; | |
5455 | wxPyProcess * _arg0; | |
5456 | PyObject * _argo0 = 0; | |
5457 | char *_kwnames[] = { "self", NULL }; | |
5458 | char _ptemp[128]; | |
5459 | ||
5460 | self = self; | |
5461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
5462 | return NULL; | |
5463 | if (_argo0) { | |
5464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
5467 | return NULL; | |
5468 | } | |
5469 | } | |
5470 | { | |
5471 | wxPy_BEGIN_ALLOW_THREADS; | |
5472 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); | |
5473 | ||
5474 | wxPy_END_ALLOW_THREADS; | |
5475 | } if (_result) { | |
5476 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
5477 | _resultobj = Py_BuildValue("s",_ptemp); | |
5478 | } else { | |
5479 | Py_INCREF(Py_None); | |
5480 | _resultobj = Py_None; | |
5481 | } | |
5482 | return _resultobj; | |
5483 | } | |
5484 | ||
5485 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
5486 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5487 | PyObject * _resultobj; | |
5488 | wxPyProcess * _arg0; | |
5489 | PyObject * _argo0 = 0; | |
5490 | char *_kwnames[] = { "self", NULL }; | |
5491 | ||
5492 | self = self; | |
5493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
5494 | return NULL; | |
5495 | if (_argo0) { | |
5496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
5499 | return NULL; | |
5500 | } | |
5501 | } | |
5502 | { | |
5503 | wxPy_BEGIN_ALLOW_THREADS; | |
5504 | wxProcess_CloseOutput(_arg0); | |
5505 | ||
5506 | wxPy_END_ALLOW_THREADS; | |
5507 | } Py_INCREF(Py_None); | |
5508 | _resultobj = Py_None; | |
5509 | return _resultobj; | |
5510 | } | |
5511 | ||
d24a34bb | 5512 | static PyMethodDef misc2cMethods[] = { |
c368d904 RD |
5513 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
5514 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
5515 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
5516 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
5517 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
5518 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
5519 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
5520 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
5521 | { "wxProcess__setSelf", (PyCFunction) _wrap_wxProcess__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
5522 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
5523 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
5524 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
5525 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
5526 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
5527 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
5528 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
5529 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
5530 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
5531 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
5532 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
5533 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
5534 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
5535 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
5536 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
5537 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
5538 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
5539 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
5540 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
5541 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
5542 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
5543 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
5544 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
5545 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
5546 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
5547 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
5548 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
5549 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
5550 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
5551 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
5552 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
5553 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
5554 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
5555 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
5556 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
5557 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
5558 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
5559 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
5560 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
5561 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
5562 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
5563 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
5564 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
5565 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
5566 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
5567 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
5568 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
5569 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
5570 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
5571 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
5572 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
5573 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
5574 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
5575 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
5576 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
5577 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
5578 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
5579 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
5580 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
5581 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
5582 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
4662be59 RD |
5583 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
5584 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
5585 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
5586 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
4120ef2b RD |
5587 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
5588 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
5589 | { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
5590 | { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
5591 | { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
5592 | { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
5593 | { "wxFontEnumerator__setSelf", (PyCFunction) _wrap_wxFontEnumerator__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
5594 | { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
5595 | { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
8f17924e RD |
5596 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
5597 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 RD |
5598 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
5599 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
8f17924e RD |
5600 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
5601 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
5602 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
5603 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
5604 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
5605 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
5606 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
5607 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
5608 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
5609 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
5610 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
5611 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
5612 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
5613 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
5614 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 | 5615 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
5616 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
5617 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
5618 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
5619 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
5620 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
5621 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
5622 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
5623 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
5624 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
5625 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
5626 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
5627 | { "wxDragListItem", (PyCFunction) _wrap_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, | |
5628 | { "wxDragTreeItem", (PyCFunction) _wrap_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
5629 | { "wxDragString", (PyCFunction) _wrap_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
5630 | { "wxDragIcon", (PyCFunction) _wrap_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
5631 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
5632 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
4662be59 RD |
5633 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
5634 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
5635 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
d29aba2f | 5636 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
4120ef2b | 5637 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
4662be59 | 5638 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
8f17924e RD |
5639 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
5640 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
5641 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
5642 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
bc29c5e0 RD |
5643 | { "wxSystemSettings_GetSystemMetric", (PyCFunction) _wrap_wxSystemSettings_GetSystemMetric, METH_VARARGS | METH_KEYWORDS }, |
5644 | { "wxSystemSettings_GetSystemFont", (PyCFunction) _wrap_wxSystemSettings_GetSystemFont, METH_VARARGS | METH_KEYWORDS }, | |
5645 | { "wxSystemSettings_GetSystemColour", (PyCFunction) _wrap_wxSystemSettings_GetSystemColour, METH_VARARGS | METH_KEYWORDS }, | |
5646 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, | |
5647 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
5648 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
5649 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
5650 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
5651 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
5652 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
5653 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
5654 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
5655 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
5656 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
5657 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, |
5658 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
bc29c5e0 | 5659 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
9e689c06 RD |
5660 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
5661 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
9c4165ad RD |
5662 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
5663 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
b68dc582 RD |
5664 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, |
5665 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
5666 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
bc29c5e0 RD |
5667 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
5668 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
5669 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
5670 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
5671 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
5672 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 5673 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
bc29c5e0 RD |
5674 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
5675 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
d24a34bb RD |
5676 | { NULL, NULL } |
5677 | }; | |
2d091820 RD |
5678 | #ifdef __cplusplus |
5679 | } | |
5680 | #endif | |
5681 | /* | |
5682 | * This table is used by the pointer type-checker | |
5683 | */ | |
5684 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
5685 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
c368d904 RD |
5686 | { "_wxEvent","_class_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
5687 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, | |
4120ef2b RD |
5688 | { "_wxEvent","_class_wxEvent",0}, |
5689 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
2d091820 | 5690 | { "_signed_long","_long",0}, |
4120ef2b | 5691 | { "_wxMenuEvent","_class_wxMenuEvent",0}, |
c368d904 | 5692 | { "_class_wxProcessEvent","_wxProcessEvent",0}, |
4120ef2b RD |
5693 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
5694 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, | |
5695 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, | |
c368d904 | 5696 | { "_wxWindowDisabler","_class_wxWindowDisabler",0}, |
4120ef2b | 5697 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
5698 | { "_wxPrintQuality","_int",0}, |
5699 | { "_wxPrintQuality","_signed_int",0}, | |
5700 | { "_wxPrintQuality","_unsigned_int",0}, | |
5701 | { "_wxPrintQuality","_wxWindowID",0}, | |
5702 | { "_wxPrintQuality","_uint",0}, | |
5703 | { "_wxPrintQuality","_EBool",0}, | |
5704 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 5705 | { "_wxPrintQuality","_time_t",0}, |
4120ef2b | 5706 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
2d091820 | 5707 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
4120ef2b | 5708 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
2d091820 | 5709 | { "_class_wxMenuBar","_wxMenuBar",0}, |
c368d904 RD |
5710 | { "_class_wxEvtHandler","_class_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
5711 | { "_class_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, | |
2d091820 | 5712 | { "_class_wxEvtHandler","_wxEvtHandler",0}, |
4120ef2b | 5713 | { "_wxPaintEvent","_class_wxPaintEvent",0}, |
2d091820 RD |
5714 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, |
5715 | { "_wxCursor","_class_wxCursor",0}, | |
4120ef2b | 5716 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, |
c368d904 | 5717 | { "_wxPyProcess","_class_wxPyProcess",0}, |
4662be59 | 5718 | { "_wxMutexGuiLocker","_class_wxMutexGuiLocker",0}, |
f6bcfd97 BP |
5719 | { "_wxLog","_class_wxLogWindow",SwigwxLogWindowTowxLog}, |
5720 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, | |
5721 | { "_wxLog","_class_wxLogGui",SwigwxLogGuiTowxLog}, | |
5722 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, | |
5723 | { "_wxLog","_class_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
5724 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
5725 | { "_wxLog","_class_wxLogStderr",SwigwxLogStderrTowxLog}, | |
5726 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, | |
5727 | { "_wxLog","_class_wxLog",0}, | |
2d091820 RD |
5728 | { "_wxMask","_class_wxMask",0}, |
5729 | { "_wxToolTip","_class_wxToolTip",0}, | |
5730 | { "_wxPen","_class_wxPen",0}, | |
4120ef2b | 5731 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, |
2d091820 | 5732 | { "_byte","_unsigned_char",0}, |
4120ef2b RD |
5733 | { "_wxDataObject","_class_wxDataObject",0}, |
5734 | { "_class_wxPyFontEnumerator","_wxPyFontEnumerator",0}, | |
4662be59 | 5735 | { "_wxColourDatabase","_class_wxColourDatabase",0}, |
4120ef2b RD |
5736 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
5737 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
2d091820 RD |
5738 | { "_long","_unsigned_long",0}, |
5739 | { "_long","_signed_long",0}, | |
5740 | { "_wxImageList","_class_wxImageList",0}, | |
4120ef2b RD |
5741 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
5742 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, | |
2d091820 | 5743 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, |
4120ef2b | 5744 | { "_class_wxClipboard","_wxClipboard",0}, |
2d091820 | 5745 | { "_wxDC","_class_wxDC",0}, |
4120ef2b RD |
5746 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
5747 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
5748 | { "_size_t","_wxCoord",0}, | |
2d091820 | 5749 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 5750 | { "_size_t","_time_t",0}, |
2d091820 RD |
5751 | { "_size_t","_unsigned_int",0}, |
5752 | { "_size_t","_int",0}, | |
5753 | { "_size_t","_wxWindowID",0}, | |
5754 | { "_size_t","_uint",0}, | |
5755 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
4120ef2b RD |
5756 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
5757 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, | |
f6bcfd97 | 5758 | { "_wxLogGui","_class_wxLogGui",0}, |
2d091820 | 5759 | { "_class_wxMenuItem","_wxMenuItem",0}, |
4120ef2b RD |
5760 | { "_class_wxPaintEvent","_wxPaintEvent",0}, |
5761 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
2d091820 RD |
5762 | { "_class_wxPostScriptDC","_wxPostScriptDC",0}, |
5763 | { "_wxPanel","_class_wxPanel",0}, | |
4120ef2b RD |
5764 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, |
5765 | { "_wxPyEvent","_class_wxPyEvent",0}, | |
2d091820 | 5766 | { "_class_wxMask","_wxMask",0}, |
4120ef2b RD |
5767 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
5768 | { "_class_wxKeyEvent","_wxKeyEvent",0}, | |
2d091820 RD |
5769 | { "_class_wxToolTip","_wxToolTip",0}, |
5770 | { "_wxColour","_class_wxColour",0}, | |
5771 | { "_class_wxDialog","_wxDialog",0}, | |
4120ef2b RD |
5772 | { "_wxBusyCursor","_class_wxBusyCursor",0}, |
5773 | { "_class_wxFileDataObject","_wxFileDataObject",0}, | |
5774 | { "_wxIdleEvent","_class_wxIdleEvent",0}, | |
5775 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
5776 | { "_class_wxDataObject","_wxDataObject",0}, | |
8f17924e | 5777 | { "_wxCaret","_class_wxCaret",0}, |
2d091820 | 5778 | { "_wxBrush","_class_wxBrush",0}, |
4120ef2b RD |
5779 | { "_wxDataFormat","_class_wxDataFormat",0}, |
5780 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
5781 | { "_wxShowEvent","_class_wxShowEvent",0}, | |
5782 | { "_uint","_wxCoord",0}, | |
2d091820 | 5783 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 5784 | { "_uint","_time_t",0}, |
2d091820 RD |
5785 | { "_uint","_size_t",0}, |
5786 | { "_uint","_unsigned_int",0}, | |
5787 | { "_uint","_int",0}, | |
5788 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 5789 | { "_wxChar","_char",0}, |
37f6a977 | 5790 | { "_wxPyValidator","_class_wxPyValidator",0}, |
c368d904 RD |
5791 | { "_class_wxEvent","_class_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
5792 | { "_class_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, | |
4120ef2b | 5793 | { "_class_wxEvent","_wxEvent",0}, |
2d091820 | 5794 | { "_wxRect","_class_wxRect",0}, |
4120ef2b RD |
5795 | { "_wxCommandEvent","_class_wxCommandEvent",0}, |
5796 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
f6bcfd97 | 5797 | { "_class_wxLogWindow","_wxLogWindow",0}, |
2d091820 | 5798 | { "_wxPoint","_class_wxPoint",0}, |
c368d904 | 5799 | { "_class_wxWindowDisabler","_wxWindowDisabler",0}, |
f6bcfd97 | 5800 | { "_char","_wxChar",0}, |
2d091820 | 5801 | { "_wxBitmap","_class_wxBitmap",0}, |
4662be59 | 5802 | { "_wxPenList","_class_wxPenList",0}, |
2d091820 | 5803 | { "_wxWindowDC","_class_wxWindowDC",0}, |
f6bcfd97 BP |
5804 | { "_wxTimerEvent","_class_wxTimerEvent",0}, |
5805 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
2d091820 | 5806 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, |
4120ef2b | 5807 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, |
37f6a977 | 5808 | { "_class_wxValidator","_wxValidator",0}, |
4120ef2b | 5809 | { "_class_wxPyEvent","_wxPyEvent",0}, |
4662be59 | 5810 | { "_class_wxMutexGuiLocker","_wxMutexGuiLocker",0}, |
4120ef2b RD |
5811 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, |
5812 | { "_class_wxBusyCursor","_wxBusyCursor",0}, | |
5813 | { "_wxDropTarget","_class_wxDropTarget",0}, | |
4662be59 | 5814 | { "_class_wxColourDatabase","_wxColourDatabase",0}, |
4120ef2b RD |
5815 | { "_wxScrollEvent","_class_wxScrollEvent",0}, |
5816 | { "_EBool","_wxCoord",0}, | |
2d091820 RD |
5817 | { "_EBool","_wxPrintQuality",0}, |
5818 | { "_EBool","_signed_int",0}, | |
5819 | { "_EBool","_int",0}, | |
5820 | { "_EBool","_wxWindowID",0}, | |
5821 | { "_class_wxRegion","_wxRegion",0}, | |
4120ef2b RD |
5822 | { "_class_wxDataFormat","_wxDataFormat",0}, |
5823 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, | |
5824 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, | |
2d091820 | 5825 | { "_wxFont","_class_wxFont",0}, |
4120ef2b RD |
5826 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
5827 | { "_wxCloseEvent","_class_wxCloseEvent",0}, | |
c368d904 | 5828 | { "_wxProcessEvent","_class_wxProcessEvent",0}, |
2d091820 RD |
5829 | { "_unsigned_long","_long",0}, |
5830 | { "_class_wxRect","_wxRect",0}, | |
5831 | { "_class_wxDC","_wxDC",0}, | |
4120ef2b | 5832 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
f6bcfd97 | 5833 | { "_wxGenericDragImage","_class_wxGenericDragImage",0}, |
4662be59 | 5834 | { "_class_wxBrushList","_wxBrushList",0}, |
4120ef2b | 5835 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, |
c368d904 | 5836 | { "_wxPyInputStream","_class_wxPyInputStream",0}, |
4662be59 | 5837 | { "_class_wxPenList","_wxPenList",0}, |
4120ef2b | 5838 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, |
c368d904 | 5839 | { "_class_wxOutputStream","_wxOutputStream",0}, |
f6bcfd97 | 5840 | { "_wxLogTextCtrl","_class_wxLogTextCtrl",0}, |
4120ef2b RD |
5841 | { "_wxFocusEvent","_class_wxFocusEvent",0}, |
5842 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
f6bcfd97 BP |
5843 | { "_class_wxTimerEvent","_wxTimerEvent",0}, |
5844 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
2d091820 RD |
5845 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
5846 | { "_class_wxPanel","_wxPanel",0}, | |
4120ef2b | 5847 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
5848 | { "_signed_int","_wxPrintQuality",0}, |
5849 | { "_signed_int","_EBool",0}, | |
5850 | { "_signed_int","_wxWindowID",0}, | |
5851 | { "_signed_int","_int",0}, | |
5852 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
4120ef2b | 5853 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
2d091820 | 5854 | { "_wxMenu","_class_wxMenu",0}, |
4120ef2b | 5855 | { "_class_wxMoveEvent","_wxMoveEvent",0}, |
2d091820 RD |
5856 | { "_wxScreenDC","_class_wxScreenDC",0}, |
5857 | { "_WXTYPE","_short",0}, | |
5858 | { "_WXTYPE","_signed_short",0}, | |
5859 | { "_WXTYPE","_unsigned_short",0}, | |
4120ef2b | 5860 | { "_class_wxDropTarget","_wxDropTarget",0}, |
8f17924e | 5861 | { "_class_wxCaret","_wxCaret",0}, |
2d091820 | 5862 | { "_class_wxBrush","_wxBrush",0}, |
f6bcfd97 BP |
5863 | { "_wxTipProvider","_class_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
5864 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
5865 | { "_wxTipProvider","_class_wxTipProvider",0}, | |
2d091820 RD |
5866 | { "_unsigned_short","_WXTYPE",0}, |
5867 | { "_unsigned_short","_short",0}, | |
5868 | { "_class_wxWindow","_wxWindow",0}, | |
f6bcfd97 | 5869 | { "_class_wxLogStderr","_wxLogStderr",0}, |
2d091820 | 5870 | { "_class_wxFont","_wxFont",0}, |
4120ef2b | 5871 | { "_wxClipboard","_class_wxClipboard",0}, |
37f6a977 | 5872 | { "_class_wxPyValidator","_wxPyValidator",0}, |
4120ef2b RD |
5873 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
5874 | { "_wxBusyInfo","_class_wxBusyInfo",0}, | |
4662be59 | 5875 | { "_wxFontList","_class_wxFontList",0}, |
4120ef2b RD |
5876 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
5877 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, | |
5878 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, | |
2d091820 | 5879 | { "_wxClientDC","_class_wxClientDC",0}, |
4120ef2b | 5880 | { "_wxMouseEvent","_class_wxMouseEvent",0}, |
f6bcfd97 | 5881 | { "_class_wxGenericDragImage","_wxGenericDragImage",0}, |
2d091820 | 5882 | { "_class_wxPoint","_wxPoint",0}, |
c368d904 | 5883 | { "_class_wxPyInputStream","_wxPyInputStream",0}, |
2d091820 RD |
5884 | { "_wxRealPoint","_class_wxRealPoint",0}, |
5885 | { "_signed_short","_WXTYPE",0}, | |
5886 | { "_signed_short","_short",0}, | |
5887 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
4120ef2b | 5888 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
2d091820 RD |
5889 | { "_wxPaintDC","_class_wxPaintDC",0}, |
5890 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
4120ef2b RD |
5891 | { "_class_wxFocusEvent","_wxFocusEvent",0}, |
5892 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
2d091820 RD |
5893 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, |
5894 | { "_class_wxCursor","_wxCursor",0}, | |
5895 | { "_wxPostScriptDC","_class_wxPostScriptDC",0}, | |
4120ef2b | 5896 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
c368d904 | 5897 | { "_class_wxPyProcess","_wxPyProcess",0}, |
2d091820 | 5898 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
f6bcfd97 BP |
5899 | { "_class_wxLog","_class_wxLogWindow",SwigwxLogWindowTowxLog}, |
5900 | { "_class_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, | |
5901 | { "_class_wxLog","_class_wxLogGui",SwigwxLogGuiTowxLog}, | |
5902 | { "_class_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, | |
5903 | { "_class_wxLog","_class_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
5904 | { "_class_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
5905 | { "_class_wxLog","_class_wxLogStderr",SwigwxLogStderrTowxLog}, | |
5906 | { "_class_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, | |
5907 | { "_class_wxLog","_wxLog",0}, | |
2d091820 RD |
5908 | { "_unsigned_char","_byte",0}, |
5909 | { "_class_wxMenu","_wxMenu",0}, | |
4120ef2b | 5910 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 5911 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 5912 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
5913 | { "_unsigned_int","_size_t",0}, |
5914 | { "_unsigned_int","_uint",0}, | |
5915 | { "_unsigned_int","_wxWindowID",0}, | |
5916 | { "_unsigned_int","_int",0}, | |
5917 | { "_wxIcon","_class_wxIcon",0}, | |
5918 | { "_wxDialog","_class_wxDialog",0}, | |
5919 | { "_class_wxPen","_wxPen",0}, | |
5920 | { "_short","_WXTYPE",0}, | |
5921 | { "_short","_unsigned_short",0}, | |
5922 | { "_short","_signed_short",0}, | |
4120ef2b RD |
5923 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
5924 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
5925 | { "_class_wxScrollEvent","_wxScrollEvent",0}, | |
5926 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
2d091820 | 5927 | { "_class_wxImageList","_wxImageList",0}, |
f6bcfd97 | 5928 | { "_wxPyTipProvider","_class_wxPyTipProvider",0}, |
4120ef2b RD |
5929 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
5930 | { "_wxWindowID","_wxCoord",0}, | |
2d091820 | 5931 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 5932 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
5933 | { "_wxWindowID","_size_t",0}, |
5934 | { "_wxWindowID","_EBool",0}, | |
5935 | { "_wxWindowID","_uint",0}, | |
5936 | { "_wxWindowID","_int",0}, | |
5937 | { "_wxWindowID","_signed_int",0}, | |
5938 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b RD |
5939 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
5940 | { "_int","_wxCoord",0}, | |
2d091820 | 5941 | { "_int","_wxPrintQuality",0}, |
c368d904 | 5942 | { "_int","_time_t",0}, |
2d091820 RD |
5943 | { "_int","_size_t",0}, |
5944 | { "_int","_EBool",0}, | |
5945 | { "_int","_uint",0}, | |
5946 | { "_int","_wxWindowID",0}, | |
5947 | { "_int","_unsigned_int",0}, | |
5948 | { "_int","_signed_int",0}, | |
4120ef2b RD |
5949 | { "_class_wxMouseEvent","_wxMouseEvent",0}, |
5950 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, | |
f6bcfd97 | 5951 | { "_wxLogWindow","_class_wxLogWindow",0}, |
4120ef2b RD |
5952 | { "_class_wxSpinEvent","_wxSpinEvent",0}, |
5953 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, | |
c368d904 RD |
5954 | { "_time_t","_wxCoord",0}, |
5955 | { "_time_t","_wxPrintQuality",0}, | |
5956 | { "_time_t","_unsigned_int",0}, | |
5957 | { "_time_t","_int",0}, | |
5958 | { "_time_t","_wxWindowID",0}, | |
5959 | { "_time_t","_uint",0}, | |
5960 | { "_time_t","_size_t",0}, | |
4120ef2b | 5961 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, |
f6bcfd97 | 5962 | { "_wxLogNull","_class_wxLogNull",0}, |
2d091820 RD |
5963 | { "_wxSize","_class_wxSize",0}, |
5964 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
4120ef2b | 5965 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
f6bcfd97 BP |
5966 | { "_class_wxLogTextCtrl","_wxLogTextCtrl",0}, |
5967 | { "_class_wxLogGui","_wxLogGui",0}, | |
2d091820 | 5968 | { "_class_wxPaintDC","_wxPaintDC",0}, |
4120ef2b RD |
5969 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, |
5970 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, | |
5971 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, | |
37f6a977 | 5972 | { "_wxValidator","_class_wxValidator",0}, |
2d091820 | 5973 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
4120ef2b | 5974 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, |
2d091820 RD |
5975 | { "_class_wxIcon","_wxIcon",0}, |
5976 | { "_class_wxColour","_wxColour",0}, | |
5977 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
5978 | { "_wxPalette","_class_wxPalette",0}, | |
4120ef2b RD |
5979 | { "_class_wxIdleEvent","_wxIdleEvent",0}, |
5980 | { "_wxCoord","_int",0}, | |
5981 | { "_wxCoord","_signed_int",0}, | |
5982 | { "_wxCoord","_unsigned_int",0}, | |
5983 | { "_wxCoord","_wxWindowID",0}, | |
5984 | { "_wxCoord","_uint",0}, | |
5985 | { "_wxCoord","_EBool",0}, | |
5986 | { "_wxCoord","_size_t",0}, | |
c368d904 | 5987 | { "_wxCoord","_time_t",0}, |
4120ef2b RD |
5988 | { "_wxCoord","_wxPrintQuality",0}, |
5989 | { "_wxEraseEvent","_class_wxEraseEvent",0}, | |
5990 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
5991 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, | |
f6bcfd97 BP |
5992 | { "_class_wxTipProvider","_class_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
5993 | { "_class_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
5994 | { "_class_wxTipProvider","_wxTipProvider",0}, | |
2d091820 | 5995 | { "_wxRegion","_class_wxRegion",0}, |
4120ef2b | 5996 | { "_class_wxShowEvent","_wxShowEvent",0}, |
f6bcfd97 | 5997 | { "_class_wxPyTipProvider","_wxPyTipProvider",0}, |
4120ef2b RD |
5998 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
5999 | { "_wxActivateEvent","_class_wxActivateEvent",0}, | |
6000 | { "_class_wxBusyInfo","_wxBusyInfo",0}, | |
4662be59 | 6001 | { "_class_wxFontList","_wxFontList",0}, |
4120ef2b | 6002 | { "_class_wxCommandEvent","_wxCommandEvent",0}, |
2d091820 | 6003 | { "_class_wxClientDC","_wxClientDC",0}, |
4120ef2b | 6004 | { "_class_wxSizeEvent","_wxSizeEvent",0}, |
4662be59 | 6005 | { "_wxBrushList","_class_wxBrushList",0}, |
4120ef2b | 6006 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
f6bcfd97 | 6007 | { "_class_wxLogNull","_wxLogNull",0}, |
2d091820 RD |
6008 | { "_class_wxSize","_wxSize",0}, |
6009 | { "_class_wxBitmap","_wxBitmap",0}, | |
6010 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
4120ef2b | 6011 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
2d091820 | 6012 | { "_wxMenuBar","_class_wxMenuBar",0}, |
c368d904 RD |
6013 | { "_wxOutputStream","_class_wxOutputStream",0}, |
6014 | { "_wxEvtHandler","_class_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, | |
6015 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, | |
2d091820 RD |
6016 | { "_wxEvtHandler","_class_wxEvtHandler",0}, |
6017 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
2d091820 | 6018 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
4120ef2b RD |
6019 | { "_wxKeyEvent","_class_wxKeyEvent",0}, |
6020 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
2d091820 | 6021 | { "_class_wxPalette","_wxPalette",0}, |
4120ef2b RD |
6022 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
6023 | { "_class_wxEraseEvent","_wxEraseEvent",0}, | |
6024 | { "_wxPyFontEnumerator","_class_wxPyFontEnumerator",0}, | |
6025 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
2d091820 | 6026 | { "_wxWindow","_class_wxWindow",0}, |
4120ef2b | 6027 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
f6bcfd97 | 6028 | { "_wxLogStderr","_class_wxLogStderr",0}, |
2d091820 RD |
6029 | {0,0,0}}; |
6030 | ||
d24a34bb RD |
6031 | static PyObject *SWIG_globals; |
6032 | #ifdef __cplusplus | |
6033 | extern "C" | |
6034 | #endif | |
2d091820 | 6035 | SWIGEXPORT(void) initmisc2c() { |
d24a34bb RD |
6036 | PyObject *m, *d; |
6037 | SWIG_globals = SWIG_newvarlink(); | |
6038 | m = Py_InitModule("misc2c", misc2cMethods); | |
6039 | d = PyModule_GetDict(m); | |
bc29c5e0 RD |
6040 | PyDict_SetItemString(d,"wxSYS_WHITE_BRUSH", PyInt_FromLong((long) wxSYS_WHITE_BRUSH)); |
6041 | PyDict_SetItemString(d,"wxSYS_LTGRAY_BRUSH", PyInt_FromLong((long) wxSYS_LTGRAY_BRUSH)); | |
6042 | PyDict_SetItemString(d,"wxSYS_GRAY_BRUSH", PyInt_FromLong((long) wxSYS_GRAY_BRUSH)); | |
6043 | PyDict_SetItemString(d,"wxSYS_DKGRAY_BRUSH", PyInt_FromLong((long) wxSYS_DKGRAY_BRUSH)); | |
6044 | PyDict_SetItemString(d,"wxSYS_BLACK_BRUSH", PyInt_FromLong((long) wxSYS_BLACK_BRUSH)); | |
6045 | PyDict_SetItemString(d,"wxSYS_NULL_BRUSH", PyInt_FromLong((long) wxSYS_NULL_BRUSH)); | |
6046 | PyDict_SetItemString(d,"wxSYS_HOLLOW_BRUSH", PyInt_FromLong((long) wxSYS_HOLLOW_BRUSH)); | |
6047 | PyDict_SetItemString(d,"wxSYS_WHITE_PEN", PyInt_FromLong((long) wxSYS_WHITE_PEN)); | |
6048 | PyDict_SetItemString(d,"wxSYS_BLACK_PEN", PyInt_FromLong((long) wxSYS_BLACK_PEN)); | |
6049 | PyDict_SetItemString(d,"wxSYS_NULL_PEN", PyInt_FromLong((long) wxSYS_NULL_PEN)); | |
6050 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); | |
6051 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
6052 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
6053 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
6054 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
6055 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
6056 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
6057 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
6058 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
6059 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
6060 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); | |
6061 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
6062 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
6063 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
6064 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
6065 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
6066 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
6067 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
6068 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
6069 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
6070 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
6071 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
6072 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
6073 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
6074 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); | |
6075 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); | |
6076 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
6077 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
6078 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
6079 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); | |
6080 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
6081 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
6082 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
6083 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); | |
6084 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); | |
6085 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); | |
6086 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
6087 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
6088 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); | |
6089 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); | |
6090 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
6091 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
6092 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
6093 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
6094 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
6095 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
6096 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
6097 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
6098 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
6099 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
6100 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
6101 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
6102 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
6103 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
6104 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
6105 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
6106 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
6107 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
6108 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
6109 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
6110 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
6111 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
6112 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
6113 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
6114 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
6115 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
6116 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
6117 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
6118 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
6119 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
6120 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
6121 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
6122 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
6123 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
6124 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
6125 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
f6bcfd97 BP |
6126 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
6127 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
6128 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
6129 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
6130 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
6131 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
6132 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
6133 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
6134 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
6135 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
9c4165ad | 6136 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); |
2d091820 RD |
6137 | { |
6138 | int i; | |
6139 | for (i = 0; _swig_mapping[i].n1; i++) | |
6140 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
6141 | } | |
d24a34bb | 6142 | } |