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