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