]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : gtk/misc2.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 810) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
52 | #define SWIG_init initmisc2c | |
53 | ||
54 | #define SWIG_name "misc2c" | |
55 | ||
56 | #include "helpers.h" | |
57 | #include <wx/resource.h> | |
58 | #include <wx/tooltip.h> | |
59 | #include <wx/caret.h> | |
60 | #include <wx/fontenum.h> | |
61 | #include <wx/tipdlg.h> | |
62 | ||
63 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | if (!target) { | |
67 | target = o; | |
68 | } else if (target == Py_None) { | |
69 | Py_DECREF(Py_None); | |
70 | target = o; | |
71 | } else { | |
72 | if (!PyList_Check(target)) { | |
73 | o2 = target; | |
74 | target = PyList_New(0); | |
75 | PyList_Append(target, o2); | |
76 | Py_XDECREF(o2); | |
77 | } | |
78 | PyList_Append(target,o); | |
79 | Py_XDECREF(o); | |
80 | } | |
81 | return target; | |
82 | } | |
83 | ||
84 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
85 | PyObject* o2; | |
86 | PyObject* o3; | |
87 | ||
88 | if (!target) { | |
89 | target = o; | |
90 | } else if (target == Py_None) { | |
91 | Py_DECREF(Py_None); | |
92 | target = o; | |
93 | } else { | |
94 | if (!PyTuple_Check(target)) { | |
95 | o2 = target; | |
96 | target = PyTuple_New(1); | |
97 | PyTuple_SetItem(target, 0, o2); | |
98 | } | |
99 | o3 = PyTuple_New(1); | |
100 | PyTuple_SetItem(o3, 0, o); | |
101 | ||
102 | o2 = target; | |
103 | target = PySequence_Concat(o2, o3); | |
104 | Py_DECREF(o2); | |
105 | Py_DECREF(o3); | |
106 | } | |
107 | return target; | |
108 | } | |
109 | ||
110 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
111 | ||
112 | ||
113 | wxColour wxSystemSettings_GetSystemColour(int index) { | |
114 | return wxSystemSettings::GetSystemColour(index); | |
115 | } | |
116 | ||
117 | wxFont wxSystemSettings_GetSystemFont(int index) { | |
118 | return wxSystemSettings::GetSystemFont(index); | |
119 | } | |
120 | ||
121 | int wxSystemSettings_GetSystemMetric(int index) { | |
122 | return wxSystemSettings::GetSystemMetric(index); | |
123 | } | |
124 | ||
125 | void wxToolTip_Enable(bool flag) { | |
126 | wxToolTip::Enable(flag); | |
127 | } | |
128 | ||
129 | void wxToolTip_SetDelay(long milliseconds) { | |
130 | wxToolTip::SetDelay(milliseconds); | |
131 | } | |
132 | ||
133 | int wxCaret_GetBlinkTime() { | |
134 | return wxCaret::GetBlinkTime(); | |
135 | } | |
136 | ||
137 | void wxCaret_SetBlinkTime(int milliseconds) { | |
138 | wxCaret::SetBlinkTime(milliseconds); | |
139 | } | |
140 | ||
141 | class wxPyFontEnumerator : public wxFontEnumerator { | |
142 | public: | |
143 | wxPyFontEnumerator() {} | |
144 | ~wxPyFontEnumerator() {} | |
145 | ||
146 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
147 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
148 | ||
149 | PYPRIVATE; | |
150 | }; | |
151 | ||
152 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
153 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
154 | ||
155 | ||
156 | class wxPyTipProvider : public wxTipProvider { | |
157 | public: | |
158 | wxPyTipProvider(size_t currentTip) | |
159 | : wxTipProvider(currentTip) {} | |
160 | ||
161 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
162 | ||
163 | PYPRIVATE; | |
164 | }; | |
165 | ||
166 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
167 | ||
168 | ||
169 | #include <wx/generic/dragimgg.h> | |
170 | static wxPoint wxPyNullPoint; | |
171 | ||
172 | ||
173 | wxGenericDragImage* wxDragIcon(const wxIcon& image, | |
174 | const wxCursor& cursor, | |
175 | const wxPoint& hotspot) { | |
176 | return new wxGenericDragImage(image, cursor, hotspot); | |
177 | } | |
178 | ||
179 | wxGenericDragImage* wxDragString(const wxString& str, | |
180 | const wxCursor& cursor, | |
181 | const wxPoint& hotspot) { | |
182 | return new wxGenericDragImage(str, cursor, hotspot); | |
183 | } | |
184 | ||
185 | wxGenericDragImage* wxDragTreeItem(const wxTreeCtrl& treeCtrl, wxTreeItemId& id) { | |
186 | return new wxGenericDragImage(treeCtrl, id); | |
187 | } | |
188 | ||
189 | wxGenericDragImage* wxDragListItem(const wxListCtrl& listCtrl, long id) { | |
190 | return new wxGenericDragImage(listCtrl, id); | |
191 | } | |
192 | ||
193 | #ifdef __cplusplus | |
194 | extern "C" { | |
195 | #endif | |
196 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
197 | PyObject * _resultobj; | |
198 | wxString * _result; | |
199 | char * _arg0; | |
200 | char * _arg1 = (char *) NULL; | |
201 | char * _arg2 = (char *) NULL; | |
202 | char * _arg3 = (char *) NULL; | |
203 | char * _arg4 = (char *) "*.*"; | |
204 | int _arg5 = (int ) 0; | |
205 | wxWindow * _arg6 = (wxWindow *) NULL; | |
206 | int _arg7 = (int ) -1; | |
207 | int _arg8 = (int ) -1; | |
208 | PyObject * _argo6 = 0; | |
209 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
210 | ||
211 | self = self; | |
212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8)) | |
213 | return NULL; | |
214 | if (_argo6) { | |
215 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
216 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
218 | return NULL; | |
219 | } | |
220 | } | |
221 | { | |
222 | wxPy_BEGIN_ALLOW_THREADS; | |
223 | _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)); | |
224 | ||
225 | wxPy_END_ALLOW_THREADS; | |
226 | }{ | |
227 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
228 | } | |
229 | { | |
230 | delete _result; | |
231 | } | |
232 | return _resultobj; | |
233 | } | |
234 | ||
235 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
236 | PyObject * _resultobj; | |
237 | wxString * _result; | |
238 | wxString * _arg0; | |
239 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
240 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
241 | wxWindow * _arg3 = (wxWindow *) NULL; | |
242 | int _arg4 = (int ) -1; | |
243 | int _arg5 = (int ) -1; | |
244 | bool _arg6 = (bool ) TRUE; | |
245 | PyObject * _obj0 = 0; | |
246 | PyObject * _obj1 = 0; | |
247 | PyObject * _obj2 = 0; | |
248 | PyObject * _argo3 = 0; | |
249 | int tempbool6 = (int) TRUE; | |
250 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
251 | ||
252 | self = self; | |
253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
254 | return NULL; | |
255 | { | |
256 | if (!PyString_Check(_obj0)) { | |
257 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
258 | return NULL; | |
259 | } | |
260 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
261 | } | |
262 | if (_obj1) | |
263 | { | |
264 | if (!PyString_Check(_obj1)) { | |
265 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
266 | return NULL; | |
267 | } | |
268 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
269 | } | |
270 | if (_obj2) | |
271 | { | |
272 | if (!PyString_Check(_obj2)) { | |
273 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
274 | return NULL; | |
275 | } | |
276 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
277 | } | |
278 | if (_argo3) { | |
279 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
280 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
282 | return NULL; | |
283 | } | |
284 | } | |
285 | _arg6 = (bool ) tempbool6; | |
286 | { | |
287 | wxPy_BEGIN_ALLOW_THREADS; | |
288 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); | |
289 | ||
290 | wxPy_END_ALLOW_THREADS; | |
291 | }{ | |
292 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
293 | } | |
294 | { | |
295 | if (_obj0) | |
296 | delete _arg0; | |
297 | } | |
298 | { | |
299 | if (_obj1) | |
300 | delete _arg1; | |
301 | } | |
302 | { | |
303 | if (_obj2) | |
304 | delete _arg2; | |
305 | } | |
306 | { | |
307 | delete _result; | |
308 | } | |
309 | return _resultobj; | |
310 | } | |
311 | ||
312 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
313 | PyObject * _resultobj; | |
314 | wxString * _result; | |
315 | wxString * _arg0; | |
316 | wxString * _arg1; | |
317 | int _arg2; | |
318 | wxString * _arg3; | |
319 | wxWindow * _arg4 = (wxWindow *) NULL; | |
320 | int _arg5 = (int ) -1; | |
321 | int _arg6 = (int ) -1; | |
322 | bool _arg7 = (bool ) TRUE; | |
323 | int _arg8 = (int ) 150; | |
324 | int _arg9 = (int ) 200; | |
325 | PyObject * _obj0 = 0; | |
326 | PyObject * _obj1 = 0; | |
327 | PyObject * _obj3 = 0; | |
328 | PyObject * _argo4 = 0; | |
329 | int tempbool7 = (int) TRUE; | |
330 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; | |
331 | ||
332 | self = self; | |
333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
334 | return NULL; | |
335 | { | |
336 | if (!PyString_Check(_obj0)) { | |
337 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
338 | return NULL; | |
339 | } | |
340 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
341 | } | |
342 | { | |
343 | if (!PyString_Check(_obj1)) { | |
344 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
345 | return NULL; | |
346 | } | |
347 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
348 | } | |
349 | if (_obj3) | |
350 | { | |
351 | _arg3 = wxString_LIST_helper(_obj3); | |
352 | if (_arg3 == NULL) { | |
353 | return NULL; | |
354 | } | |
355 | } | |
356 | if (_argo4) { | |
357 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
358 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
360 | return NULL; | |
361 | } | |
362 | } | |
363 | _arg7 = (bool ) tempbool7; | |
364 | { | |
365 | if (_obj3) { | |
366 | _arg2 = PyList_Size(_obj3); | |
367 | } | |
368 | else { | |
369 | _arg2 = 0; | |
370 | } | |
371 | } | |
372 | { | |
373 | wxPy_BEGIN_ALLOW_THREADS; | |
374 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); | |
375 | ||
376 | wxPy_END_ALLOW_THREADS; | |
377 | }{ | |
378 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
379 | } | |
380 | { | |
381 | if (_obj0) | |
382 | delete _arg0; | |
383 | } | |
384 | { | |
385 | if (_obj1) | |
386 | delete _arg1; | |
387 | } | |
388 | { | |
389 | delete [] _arg3; | |
390 | } | |
391 | { | |
392 | delete _result; | |
393 | } | |
394 | return _resultobj; | |
395 | } | |
396 | ||
397 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
398 | PyObject * _resultobj; | |
399 | int _result; | |
400 | wxString * _arg0; | |
401 | wxString * _arg1; | |
402 | int _arg2; | |
403 | wxString * _arg3; | |
404 | wxWindow * _arg4 = (wxWindow *) NULL; | |
405 | int _arg5 = (int ) -1; | |
406 | int _arg6 = (int ) -1; | |
407 | bool _arg7 = (bool ) TRUE; | |
408 | int _arg8 = (int ) 150; | |
409 | int _arg9 = (int ) 200; | |
410 | PyObject * _obj0 = 0; | |
411 | PyObject * _obj1 = 0; | |
412 | PyObject * _obj3 = 0; | |
413 | PyObject * _argo4 = 0; | |
414 | int tempbool7 = (int) TRUE; | |
415 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; | |
416 | ||
417 | self = self; | |
418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
419 | return NULL; | |
420 | { | |
421 | if (!PyString_Check(_obj0)) { | |
422 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
423 | return NULL; | |
424 | } | |
425 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
426 | } | |
427 | { | |
428 | if (!PyString_Check(_obj1)) { | |
429 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
430 | return NULL; | |
431 | } | |
432 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
433 | } | |
434 | if (_obj3) | |
435 | { | |
436 | _arg3 = wxString_LIST_helper(_obj3); | |
437 | if (_arg3 == NULL) { | |
438 | return NULL; | |
439 | } | |
440 | } | |
441 | if (_argo4) { | |
442 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
443 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
445 | return NULL; | |
446 | } | |
447 | } | |
448 | _arg7 = (bool ) tempbool7; | |
449 | { | |
450 | if (_obj3) { | |
451 | _arg2 = PyList_Size(_obj3); | |
452 | } | |
453 | else { | |
454 | _arg2 = 0; | |
455 | } | |
456 | } | |
457 | { | |
458 | wxPy_BEGIN_ALLOW_THREADS; | |
459 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
460 | ||
461 | wxPy_END_ALLOW_THREADS; | |
462 | } _resultobj = Py_BuildValue("i",_result); | |
463 | { | |
464 | if (_obj0) | |
465 | delete _arg0; | |
466 | } | |
467 | { | |
468 | if (_obj1) | |
469 | delete _arg1; | |
470 | } | |
471 | { | |
472 | delete [] _arg3; | |
473 | } | |
474 | return _resultobj; | |
475 | } | |
476 | ||
477 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
478 | PyObject * _resultobj; | |
479 | int _result; | |
480 | wxString * _arg0; | |
481 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
482 | int _arg2 = (int ) wxOK|wxCENTRE; | |
483 | wxWindow * _arg3 = (wxWindow *) NULL; | |
484 | int _arg4 = (int ) -1; | |
485 | int _arg5 = (int ) -1; | |
486 | PyObject * _obj0 = 0; | |
487 | PyObject * _obj1 = 0; | |
488 | PyObject * _argo3 = 0; | |
489 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
490 | ||
491 | self = self; | |
492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
493 | return NULL; | |
494 | { | |
495 | if (!PyString_Check(_obj0)) { | |
496 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
497 | return NULL; | |
498 | } | |
499 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
500 | } | |
501 | if (_obj1) | |
502 | { | |
503 | if (!PyString_Check(_obj1)) { | |
504 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
505 | return NULL; | |
506 | } | |
507 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
508 | } | |
509 | if (_argo3) { | |
510 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
511 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
513 | return NULL; | |
514 | } | |
515 | } | |
516 | { | |
517 | wxPy_BEGIN_ALLOW_THREADS; | |
518 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
519 | ||
520 | wxPy_END_ALLOW_THREADS; | |
521 | } _resultobj = Py_BuildValue("i",_result); | |
522 | { | |
523 | if (_obj0) | |
524 | delete _arg0; | |
525 | } | |
526 | { | |
527 | if (_obj1) | |
528 | delete _arg1; | |
529 | } | |
530 | return _resultobj; | |
531 | } | |
532 | ||
533 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
534 | PyObject * _resultobj; | |
535 | long _result; | |
536 | wxString * _arg0; | |
537 | wxString * _arg1; | |
538 | wxString * _arg2; | |
539 | long _arg3; | |
540 | long _arg4 = (long ) 0; | |
541 | long _arg5 = (long ) 100; | |
542 | wxWindow * _arg6 = (wxWindow *) NULL; | |
543 | wxPoint * _arg7 = (wxPoint *) &wxPyDefaultPosition; | |
544 | PyObject * _obj0 = 0; | |
545 | PyObject * _obj1 = 0; | |
546 | PyObject * _obj2 = 0; | |
547 | PyObject * _argo6 = 0; | |
548 | wxPoint temp; | |
549 | PyObject * _obj7 = 0; | |
550 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
551 | ||
552 | self = self; | |
553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
554 | return NULL; | |
555 | { | |
556 | if (!PyString_Check(_obj0)) { | |
557 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
558 | return NULL; | |
559 | } | |
560 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
561 | } | |
562 | { | |
563 | if (!PyString_Check(_obj1)) { | |
564 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
565 | return NULL; | |
566 | } | |
567 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
568 | } | |
569 | { | |
570 | if (!PyString_Check(_obj2)) { | |
571 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
572 | return NULL; | |
573 | } | |
574 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
575 | } | |
576 | if (_argo6) { | |
577 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
578 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
580 | return NULL; | |
581 | } | |
582 | } | |
583 | if (_obj7) | |
584 | { | |
585 | _arg7 = &temp; | |
586 | if (! wxPoint_helper(_obj7, &_arg7)) | |
587 | return NULL; | |
588 | } | |
589 | { | |
590 | wxPy_BEGIN_ALLOW_THREADS; | |
591 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); | |
592 | ||
593 | wxPy_END_ALLOW_THREADS; | |
594 | } _resultobj = Py_BuildValue("l",_result); | |
595 | { | |
596 | if (_obj0) | |
597 | delete _arg0; | |
598 | } | |
599 | { | |
600 | if (_obj1) | |
601 | delete _arg1; | |
602 | } | |
603 | { | |
604 | if (_obj2) | |
605 | delete _arg2; | |
606 | } | |
607 | return _resultobj; | |
608 | } | |
609 | ||
610 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
611 | PyObject * _resultobj; | |
612 | bool _result; | |
613 | char *_kwnames[] = { NULL }; | |
614 | ||
615 | self = self; | |
616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
617 | return NULL; | |
618 | { | |
619 | wxPy_BEGIN_ALLOW_THREADS; | |
620 | _result = (bool )wxColourDisplay(); | |
621 | ||
622 | wxPy_END_ALLOW_THREADS; | |
623 | } _resultobj = Py_BuildValue("i",_result); | |
624 | return _resultobj; | |
625 | } | |
626 | ||
627 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
628 | PyObject * _resultobj; | |
629 | int _result; | |
630 | char *_kwnames[] = { NULL }; | |
631 | ||
632 | self = self; | |
633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
634 | return NULL; | |
635 | { | |
636 | wxPy_BEGIN_ALLOW_THREADS; | |
637 | _result = (int )wxDisplayDepth(); | |
638 | ||
639 | wxPy_END_ALLOW_THREADS; | |
640 | } _resultobj = Py_BuildValue("i",_result); | |
641 | return _resultobj; | |
642 | } | |
643 | ||
644 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
645 | PyObject * _resultobj; | |
646 | wxCursor * _arg0; | |
647 | PyObject * _argo0 = 0; | |
648 | char *_kwnames[] = { "cursor", NULL }; | |
649 | ||
650 | self = self; | |
651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
652 | return NULL; | |
653 | if (_argo0) { | |
654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
657 | return NULL; | |
658 | } | |
659 | } | |
660 | { | |
661 | wxPy_BEGIN_ALLOW_THREADS; | |
662 | wxSetCursor(*_arg0); | |
663 | ||
664 | wxPy_END_ALLOW_THREADS; | |
665 | } Py_INCREF(Py_None); | |
666 | _resultobj = Py_None; | |
667 | return _resultobj; | |
668 | } | |
669 | ||
670 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
671 | PyObject * _resultobj; | |
672 | wxWindow * _result; | |
673 | wxString * _arg0; | |
674 | wxWindow * _arg1 = (wxWindow *) NULL; | |
675 | PyObject * _obj0 = 0; | |
676 | PyObject * _argo1 = 0; | |
677 | char *_kwnames[] = { "label","parent", NULL }; | |
678 | char _ptemp[128]; | |
679 | ||
680 | self = self; | |
681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) | |
682 | return NULL; | |
683 | { | |
684 | if (!PyString_Check(_obj0)) { | |
685 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
686 | return NULL; | |
687 | } | |
688 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
689 | } | |
690 | if (_argo1) { | |
691 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
692 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); | |
694 | return NULL; | |
695 | } | |
696 | } | |
697 | { | |
698 | wxPy_BEGIN_ALLOW_THREADS; | |
699 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
700 | ||
701 | wxPy_END_ALLOW_THREADS; | |
702 | } if (_result) { | |
703 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
704 | _resultobj = Py_BuildValue("s",_ptemp); | |
705 | } else { | |
706 | Py_INCREF(Py_None); | |
707 | _resultobj = Py_None; | |
708 | } | |
709 | { | |
710 | if (_obj0) | |
711 | delete _arg0; | |
712 | } | |
713 | return _resultobj; | |
714 | } | |
715 | ||
716 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
717 | PyObject * _resultobj; | |
718 | wxWindow * _result; | |
719 | wxString * _arg0; | |
720 | wxWindow * _arg1 = (wxWindow *) NULL; | |
721 | PyObject * _obj0 = 0; | |
722 | PyObject * _argo1 = 0; | |
723 | char *_kwnames[] = { "name","parent", NULL }; | |
724 | char _ptemp[128]; | |
725 | ||
726 | self = self; | |
727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) | |
728 | return NULL; | |
729 | { | |
730 | if (!PyString_Check(_obj0)) { | |
731 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
732 | return NULL; | |
733 | } | |
734 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
735 | } | |
736 | if (_argo1) { | |
737 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
738 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); | |
740 | return NULL; | |
741 | } | |
742 | } | |
743 | { | |
744 | wxPy_BEGIN_ALLOW_THREADS; | |
745 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
746 | ||
747 | wxPy_END_ALLOW_THREADS; | |
748 | } if (_result) { | |
749 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
750 | _resultobj = Py_BuildValue("s",_ptemp); | |
751 | } else { | |
752 | Py_INCREF(Py_None); | |
753 | _resultobj = Py_None; | |
754 | } | |
755 | { | |
756 | if (_obj0) | |
757 | delete _arg0; | |
758 | } | |
759 | return _resultobj; | |
760 | } | |
761 | ||
762 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
763 | PyObject * _resultobj; | |
764 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
765 | PyObject * _argo0 = 0; | |
766 | char *_kwnames[] = { "cursor", NULL }; | |
767 | ||
768 | self = self; | |
769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
770 | return NULL; | |
771 | if (_argo0) { | |
772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
775 | return NULL; | |
776 | } | |
777 | } | |
778 | { | |
779 | wxPy_BEGIN_ALLOW_THREADS; | |
780 | wxBeginBusyCursor(_arg0); | |
781 | ||
782 | wxPy_END_ALLOW_THREADS; | |
783 | } Py_INCREF(Py_None); | |
784 | _resultobj = Py_None; | |
785 | return _resultobj; | |
786 | } | |
787 | ||
788 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
789 | PyObject * _resultobj; | |
790 | wxWindow * _result; | |
791 | char *_kwnames[] = { NULL }; | |
792 | char _ptemp[128]; | |
793 | ||
794 | self = self; | |
795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
796 | return NULL; | |
797 | { | |
798 | wxPy_BEGIN_ALLOW_THREADS; | |
799 | _result = (wxWindow *)wxGetActiveWindow(); | |
800 | ||
801 | wxPy_END_ALLOW_THREADS; | |
802 | } if (_result) { | |
803 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
804 | _resultobj = Py_BuildValue("s",_ptemp); | |
805 | } else { | |
806 | Py_INCREF(Py_None); | |
807 | _resultobj = Py_None; | |
808 | } | |
809 | return _resultobj; | |
810 | } | |
811 | ||
812 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
813 | PyObject * _resultobj; | |
814 | bool _result; | |
815 | char * _arg0; | |
816 | int _arg1; | |
817 | char *_kwnames[] = { "name","value", NULL }; | |
818 | ||
819 | self = self; | |
820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
821 | return NULL; | |
822 | { | |
823 | wxPy_BEGIN_ALLOW_THREADS; | |
824 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); | |
825 | ||
826 | wxPy_END_ALLOW_THREADS; | |
827 | } _resultobj = Py_BuildValue("i",_result); | |
828 | return _resultobj; | |
829 | } | |
830 | ||
831 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
832 | PyObject * _resultobj; | |
833 | char *_kwnames[] = { NULL }; | |
834 | ||
835 | self = self; | |
836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
837 | return NULL; | |
838 | { | |
839 | wxPy_BEGIN_ALLOW_THREADS; | |
840 | wxResourceClear(); | |
841 | ||
842 | wxPy_END_ALLOW_THREADS; | |
843 | } Py_INCREF(Py_None); | |
844 | _resultobj = Py_None; | |
845 | return _resultobj; | |
846 | } | |
847 | ||
848 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
849 | PyObject * _resultobj; | |
850 | wxBitmap * _result; | |
851 | char * _arg0; | |
852 | char *_kwnames[] = { "resource", NULL }; | |
853 | char _ptemp[128]; | |
854 | ||
855 | self = self; | |
856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
857 | return NULL; | |
858 | { | |
859 | wxPy_BEGIN_ALLOW_THREADS; | |
860 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); | |
861 | ||
862 | wxPy_END_ALLOW_THREADS; | |
863 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
864 | _resultobj = Py_BuildValue("s",_ptemp); | |
865 | return _resultobj; | |
866 | } | |
867 | ||
868 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
869 | PyObject * _resultobj; | |
870 | wxIcon * _result; | |
871 | char * _arg0; | |
872 | char *_kwnames[] = { "resource", NULL }; | |
873 | char _ptemp[128]; | |
874 | ||
875 | self = self; | |
876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
877 | return NULL; | |
878 | { | |
879 | wxPy_BEGIN_ALLOW_THREADS; | |
880 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); | |
881 | ||
882 | wxPy_END_ALLOW_THREADS; | |
883 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
884 | _resultobj = Py_BuildValue("s",_ptemp); | |
885 | return _resultobj; | |
886 | } | |
887 | ||
888 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
889 | PyObject * _resultobj; | |
890 | wxMenuBar * _result; | |
891 | char * _arg0; | |
892 | char *_kwnames[] = { "resource", NULL }; | |
893 | char _ptemp[128]; | |
894 | ||
895 | self = self; | |
896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
897 | return NULL; | |
898 | { | |
899 | wxPy_BEGIN_ALLOW_THREADS; | |
900 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); | |
901 | ||
902 | wxPy_END_ALLOW_THREADS; | |
903 | } if (_result) { | |
904 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
905 | _resultobj = Py_BuildValue("s",_ptemp); | |
906 | } else { | |
907 | Py_INCREF(Py_None); | |
908 | _resultobj = Py_None; | |
909 | } | |
910 | return _resultobj; | |
911 | } | |
912 | ||
913 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
914 | PyObject * _resultobj; | |
915 | int _result; | |
916 | char * _arg0; | |
917 | char *_kwnames[] = { "name", NULL }; | |
918 | ||
919 | self = self; | |
920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
921 | return NULL; | |
922 | { | |
923 | wxPy_BEGIN_ALLOW_THREADS; | |
924 | _result = (int )wxResourceGetIdentifier(_arg0); | |
925 | ||
926 | wxPy_END_ALLOW_THREADS; | |
927 | } _resultobj = Py_BuildValue("i",_result); | |
928 | return _resultobj; | |
929 | } | |
930 | ||
931 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
932 | PyObject * _resultobj; | |
933 | bool _result; | |
934 | char * _arg0; | |
935 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
936 | PyObject * _argo1 = 0; | |
937 | char *_kwnames[] = { "resource","table", NULL }; | |
938 | ||
939 | self = self; | |
940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
941 | return NULL; | |
942 | if (_argo1) { | |
943 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
944 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
946 | return NULL; | |
947 | } | |
948 | } | |
949 | { | |
950 | wxPy_BEGIN_ALLOW_THREADS; | |
951 | _result = (bool )wxResourceParseData(_arg0,_arg1); | |
952 | ||
953 | wxPy_END_ALLOW_THREADS; | |
954 | } _resultobj = Py_BuildValue("i",_result); | |
955 | return _resultobj; | |
956 | } | |
957 | ||
958 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
959 | PyObject * _resultobj; | |
960 | bool _result; | |
961 | char * _arg0; | |
962 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
963 | PyObject * _argo1 = 0; | |
964 | char *_kwnames[] = { "filename","table", NULL }; | |
965 | ||
966 | self = self; | |
967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
968 | return NULL; | |
969 | if (_argo1) { | |
970 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
971 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
973 | return NULL; | |
974 | } | |
975 | } | |
976 | { | |
977 | wxPy_BEGIN_ALLOW_THREADS; | |
978 | _result = (bool )wxResourceParseFile(_arg0,_arg1); | |
979 | ||
980 | wxPy_END_ALLOW_THREADS; | |
981 | } _resultobj = Py_BuildValue("i",_result); | |
982 | return _resultobj; | |
983 | } | |
984 | ||
985 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
986 | PyObject * _resultobj; | |
987 | bool _result; | |
988 | char * _arg0; | |
989 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
990 | PyObject * _argo1 = 0; | |
991 | char *_kwnames[] = { "resource","table", NULL }; | |
992 | ||
993 | self = self; | |
994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
995 | return NULL; | |
996 | if (_argo1) { | |
997 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
998 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1000 | return NULL; | |
1001 | } | |
1002 | } | |
1003 | { | |
1004 | wxPy_BEGIN_ALLOW_THREADS; | |
1005 | _result = (bool )wxResourceParseString(_arg0,_arg1); | |
1006 | ||
1007 | wxPy_END_ALLOW_THREADS; | |
1008 | } _resultobj = Py_BuildValue("i",_result); | |
1009 | return _resultobj; | |
1010 | } | |
1011 | ||
1012 | static PyObject *_wrap_wxSystemSettings_GetSystemColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1013 | PyObject * _resultobj; | |
1014 | wxColour * _result; | |
1015 | int _arg0; | |
1016 | char *_kwnames[] = { "index", NULL }; | |
1017 | char _ptemp[128]; | |
1018 | ||
1019 | self = self; | |
1020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemColour",_kwnames,&_arg0)) | |
1021 | return NULL; | |
1022 | { | |
1023 | wxPy_BEGIN_ALLOW_THREADS; | |
1024 | _result = new wxColour (wxSystemSettings_GetSystemColour(_arg0)); | |
1025 | ||
1026 | wxPy_END_ALLOW_THREADS; | |
1027 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1028 | _resultobj = Py_BuildValue("s",_ptemp); | |
1029 | return _resultobj; | |
1030 | } | |
1031 | ||
1032 | static PyObject *_wrap_wxSystemSettings_GetSystemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1033 | PyObject * _resultobj; | |
1034 | wxFont * _result; | |
1035 | int _arg0; | |
1036 | char *_kwnames[] = { "index", NULL }; | |
1037 | char _ptemp[128]; | |
1038 | ||
1039 | self = self; | |
1040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemFont",_kwnames,&_arg0)) | |
1041 | return NULL; | |
1042 | { | |
1043 | wxPy_BEGIN_ALLOW_THREADS; | |
1044 | _result = new wxFont (wxSystemSettings_GetSystemFont(_arg0)); | |
1045 | ||
1046 | wxPy_END_ALLOW_THREADS; | |
1047 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1048 | _resultobj = Py_BuildValue("s",_ptemp); | |
1049 | return _resultobj; | |
1050 | } | |
1051 | ||
1052 | static PyObject *_wrap_wxSystemSettings_GetSystemMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1053 | PyObject * _resultobj; | |
1054 | int _result; | |
1055 | int _arg0; | |
1056 | char *_kwnames[] = { "index", NULL }; | |
1057 | ||
1058 | self = self; | |
1059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemMetric",_kwnames,&_arg0)) | |
1060 | return NULL; | |
1061 | { | |
1062 | wxPy_BEGIN_ALLOW_THREADS; | |
1063 | _result = (int )wxSystemSettings_GetSystemMetric(_arg0); | |
1064 | ||
1065 | wxPy_END_ALLOW_THREADS; | |
1066 | } _resultobj = Py_BuildValue("i",_result); | |
1067 | return _resultobj; | |
1068 | } | |
1069 | ||
1070 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1071 | PyObject * _resultobj; | |
1072 | bool _arg0; | |
1073 | int tempbool0; | |
1074 | char *_kwnames[] = { "flag", NULL }; | |
1075 | ||
1076 | self = self; | |
1077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
1078 | return NULL; | |
1079 | _arg0 = (bool ) tempbool0; | |
1080 | { | |
1081 | wxPy_BEGIN_ALLOW_THREADS; | |
1082 | wxToolTip_Enable(_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_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1091 | PyObject * _resultobj; | |
1092 | long _arg0; | |
1093 | char *_kwnames[] = { "milliseconds", NULL }; | |
1094 | ||
1095 | self = self; | |
1096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
1097 | return NULL; | |
1098 | { | |
1099 | wxPy_BEGIN_ALLOW_THREADS; | |
1100 | wxToolTip_SetDelay(_arg0); | |
1101 | ||
1102 | wxPy_END_ALLOW_THREADS; | |
1103 | } Py_INCREF(Py_None); | |
1104 | _resultobj = Py_None; | |
1105 | return _resultobj; | |
1106 | } | |
1107 | ||
1108 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1109 | PyObject * _resultobj; | |
1110 | int _result; | |
1111 | char *_kwnames[] = { NULL }; | |
1112 | ||
1113 | self = self; | |
1114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1115 | return NULL; | |
1116 | { | |
1117 | wxPy_BEGIN_ALLOW_THREADS; | |
1118 | _result = (int )wxCaret_GetBlinkTime(); | |
1119 | ||
1120 | wxPy_END_ALLOW_THREADS; | |
1121 | } _resultobj = Py_BuildValue("i",_result); | |
1122 | return _resultobj; | |
1123 | } | |
1124 | ||
1125 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1126 | PyObject * _resultobj; | |
1127 | int _arg0; | |
1128 | char *_kwnames[] = { "milliseconds", NULL }; | |
1129 | ||
1130 | self = self; | |
1131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1132 | return NULL; | |
1133 | { | |
1134 | wxPy_BEGIN_ALLOW_THREADS; | |
1135 | wxCaret_SetBlinkTime(_arg0); | |
1136 | ||
1137 | wxPy_END_ALLOW_THREADS; | |
1138 | } Py_INCREF(Py_None); | |
1139 | _resultobj = Py_None; | |
1140 | return _resultobj; | |
1141 | } | |
1142 | ||
1143 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1144 | PyObject * _resultobj; | |
1145 | wxEvtHandler * _arg0; | |
1146 | wxEvent * _arg1; | |
1147 | PyObject * _argo0 = 0; | |
1148 | PyObject * _argo1 = 0; | |
1149 | char *_kwnames[] = { "dest","event", NULL }; | |
1150 | ||
1151 | self = self; | |
1152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1153 | return NULL; | |
1154 | if (_argo0) { | |
1155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1158 | return NULL; | |
1159 | } | |
1160 | } | |
1161 | if (_argo1) { | |
1162 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1163 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1164 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1165 | return NULL; | |
1166 | } | |
1167 | } | |
1168 | { | |
1169 | wxPy_BEGIN_ALLOW_THREADS; | |
1170 | wxPostEvent(_arg0,*_arg1); | |
1171 | ||
1172 | wxPy_END_ALLOW_THREADS; | |
1173 | } Py_INCREF(Py_None); | |
1174 | _resultobj = Py_None; | |
1175 | return _resultobj; | |
1176 | } | |
1177 | ||
1178 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1179 | PyObject * _resultobj; | |
1180 | char *_kwnames[] = { NULL }; | |
1181 | ||
1182 | self = self; | |
1183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1184 | return NULL; | |
1185 | { | |
1186 | wxPy_BEGIN_ALLOW_THREADS; | |
1187 | wxWakeUpIdle(); | |
1188 | ||
1189 | wxPy_END_ALLOW_THREADS; | |
1190 | } Py_INCREF(Py_None); | |
1191 | _resultobj = Py_None; | |
1192 | return _resultobj; | |
1193 | } | |
1194 | ||
1195 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1196 | PyObject * _resultobj; | |
1197 | bool _result; | |
1198 | wxWindow * _arg0; | |
1199 | wxTipProvider * _arg1; | |
1200 | bool _arg2 = (bool ) TRUE; | |
1201 | PyObject * _argo0 = 0; | |
1202 | PyObject * _argo1 = 0; | |
1203 | int tempbool2 = (int) TRUE; | |
1204 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1205 | ||
1206 | self = self; | |
1207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1208 | return NULL; | |
1209 | if (_argo0) { | |
1210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1213 | return NULL; | |
1214 | } | |
1215 | } | |
1216 | if (_argo1) { | |
1217 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1218 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1220 | return NULL; | |
1221 | } | |
1222 | } | |
1223 | _arg2 = (bool ) tempbool2; | |
1224 | { | |
1225 | wxPy_BEGIN_ALLOW_THREADS; | |
1226 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); | |
1227 | ||
1228 | wxPy_END_ALLOW_THREADS; | |
1229 | } _resultobj = Py_BuildValue("i",_result); | |
1230 | return _resultobj; | |
1231 | } | |
1232 | ||
1233 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1234 | PyObject * _resultobj; | |
1235 | wxTipProvider * _result; | |
1236 | wxString * _arg0; | |
1237 | size_t _arg1; | |
1238 | PyObject * _obj0 = 0; | |
1239 | char *_kwnames[] = { "filename","currentTip", NULL }; | |
1240 | char _ptemp[128]; | |
1241 | ||
1242 | self = self; | |
1243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) | |
1244 | return NULL; | |
1245 | { | |
1246 | if (!PyString_Check(_obj0)) { | |
1247 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1248 | return NULL; | |
1249 | } | |
1250 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
1251 | } | |
1252 | { | |
1253 | wxPy_BEGIN_ALLOW_THREADS; | |
1254 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); | |
1255 | ||
1256 | wxPy_END_ALLOW_THREADS; | |
1257 | } if (_result) { | |
1258 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); | |
1259 | _resultobj = Py_BuildValue("s",_ptemp); | |
1260 | } else { | |
1261 | Py_INCREF(Py_None); | |
1262 | _resultobj = Py_None; | |
1263 | } | |
1264 | { | |
1265 | if (_obj0) | |
1266 | delete _arg0; | |
1267 | } | |
1268 | return _resultobj; | |
1269 | } | |
1270 | ||
1271 | static PyObject *_wrap_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1272 | PyObject * _resultobj; | |
1273 | wxGenericDragImage * _result; | |
1274 | wxIcon * _arg0; | |
1275 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
1276 | wxPoint * _arg2 = (wxPoint *) &wxPyNullPoint; | |
1277 | PyObject * _argo0 = 0; | |
1278 | PyObject * _argo1 = 0; | |
1279 | wxPoint temp; | |
1280 | PyObject * _obj2 = 0; | |
1281 | char *_kwnames[] = { "image","cursor","hotspot", NULL }; | |
1282 | char _ptemp[128]; | |
1283 | ||
1284 | self = self; | |
1285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxDragIcon",_kwnames,&_argo0,&_argo1,&_obj2)) | |
1286 | return NULL; | |
1287 | if (_argo0) { | |
1288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
1290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragIcon. Expected _wxIcon_p."); | |
1291 | return NULL; | |
1292 | } | |
1293 | } | |
1294 | if (_argo1) { | |
1295 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1296 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
1297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragIcon. Expected _wxCursor_p."); | |
1298 | return NULL; | |
1299 | } | |
1300 | } | |
1301 | if (_obj2) | |
1302 | { | |
1303 | _arg2 = &temp; | |
1304 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1305 | return NULL; | |
1306 | } | |
1307 | { | |
1308 | wxPy_BEGIN_ALLOW_THREADS; | |
1309 | _result = (wxGenericDragImage *)wxDragIcon(*_arg0,*_arg1,*_arg2); | |
1310 | ||
1311 | wxPy_END_ALLOW_THREADS; | |
1312 | } if (_result) { | |
1313 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
1314 | _resultobj = Py_BuildValue("s",_ptemp); | |
1315 | } else { | |
1316 | Py_INCREF(Py_None); | |
1317 | _resultobj = Py_None; | |
1318 | } | |
1319 | return _resultobj; | |
1320 | } | |
1321 | ||
1322 | static PyObject *_wrap_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1323 | PyObject * _resultobj; | |
1324 | wxGenericDragImage * _result; | |
1325 | wxString * _arg0; | |
1326 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
1327 | wxPoint * _arg2 = (wxPoint *) &wxPyNullPoint; | |
1328 | PyObject * _obj0 = 0; | |
1329 | PyObject * _argo1 = 0; | |
1330 | wxPoint temp; | |
1331 | PyObject * _obj2 = 0; | |
1332 | char *_kwnames[] = { "str","cursor","hotspot", NULL }; | |
1333 | char _ptemp[128]; | |
1334 | ||
1335 | self = self; | |
1336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxDragString",_kwnames,&_obj0,&_argo1,&_obj2)) | |
1337 | return NULL; | |
1338 | { | |
1339 | if (!PyString_Check(_obj0)) { | |
1340 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1341 | return NULL; | |
1342 | } | |
1343 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
1344 | } | |
1345 | if (_argo1) { | |
1346 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1347 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
1348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragString. Expected _wxCursor_p."); | |
1349 | return NULL; | |
1350 | } | |
1351 | } | |
1352 | if (_obj2) | |
1353 | { | |
1354 | _arg2 = &temp; | |
1355 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1356 | return NULL; | |
1357 | } | |
1358 | { | |
1359 | wxPy_BEGIN_ALLOW_THREADS; | |
1360 | _result = (wxGenericDragImage *)wxDragString(*_arg0,*_arg1,*_arg2); | |
1361 | ||
1362 | wxPy_END_ALLOW_THREADS; | |
1363 | } if (_result) { | |
1364 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
1365 | _resultobj = Py_BuildValue("s",_ptemp); | |
1366 | } else { | |
1367 | Py_INCREF(Py_None); | |
1368 | _resultobj = Py_None; | |
1369 | } | |
1370 | { | |
1371 | if (_obj0) | |
1372 | delete _arg0; | |
1373 | } | |
1374 | return _resultobj; | |
1375 | } | |
1376 | ||
1377 | static PyObject *_wrap_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1378 | PyObject * _resultobj; | |
1379 | wxGenericDragImage * _result; | |
1380 | wxTreeCtrl * _arg0; | |
1381 | wxTreeItemId * _arg1; | |
1382 | PyObject * _argo0 = 0; | |
1383 | PyObject * _argo1 = 0; | |
1384 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
1385 | char _ptemp[128]; | |
1386 | ||
1387 | self = self; | |
1388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
1389 | return NULL; | |
1390 | if (_argo0) { | |
1391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
1393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
1394 | return NULL; | |
1395 | } | |
1396 | } | |
1397 | if (_argo1) { | |
1398 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1399 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
1400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragTreeItem. Expected _wxTreeItemId_p."); | |
1401 | return NULL; | |
1402 | } | |
1403 | } | |
1404 | { | |
1405 | wxPy_BEGIN_ALLOW_THREADS; | |
1406 | _result = (wxGenericDragImage *)wxDragTreeItem(*_arg0,*_arg1); | |
1407 | ||
1408 | wxPy_END_ALLOW_THREADS; | |
1409 | } if (_result) { | |
1410 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
1411 | _resultobj = Py_BuildValue("s",_ptemp); | |
1412 | } else { | |
1413 | Py_INCREF(Py_None); | |
1414 | _resultobj = Py_None; | |
1415 | } | |
1416 | return _resultobj; | |
1417 | } | |
1418 | ||
1419 | static PyObject *_wrap_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1420 | PyObject * _resultobj; | |
1421 | wxGenericDragImage * _result; | |
1422 | wxListCtrl * _arg0; | |
1423 | long _arg1; | |
1424 | PyObject * _argo0 = 0; | |
1425 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
1426 | char _ptemp[128]; | |
1427 | ||
1428 | self = self; | |
1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
1430 | return NULL; | |
1431 | if (_argo0) { | |
1432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
1434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragListItem. Expected _wxListCtrl_p."); | |
1435 | return NULL; | |
1436 | } | |
1437 | } | |
1438 | { | |
1439 | wxPy_BEGIN_ALLOW_THREADS; | |
1440 | _result = (wxGenericDragImage *)wxDragListItem(*_arg0,_arg1); | |
1441 | ||
1442 | wxPy_END_ALLOW_THREADS; | |
1443 | } if (_result) { | |
1444 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
1445 | _resultobj = Py_BuildValue("s",_ptemp); | |
1446 | } else { | |
1447 | Py_INCREF(Py_None); | |
1448 | _resultobj = Py_None; | |
1449 | } | |
1450 | return _resultobj; | |
1451 | } | |
1452 | ||
1453 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1454 | PyObject * _resultobj; | |
1455 | unsigned long _result; | |
1456 | char *_kwnames[] = { NULL }; | |
1457 | ||
1458 | self = self; | |
1459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) | |
1460 | return NULL; | |
1461 | { | |
1462 | wxPy_BEGIN_ALLOW_THREADS; | |
1463 | _result = (unsigned long )wxSysErrorCode(); | |
1464 | ||
1465 | wxPy_END_ALLOW_THREADS; | |
1466 | } _resultobj = Py_BuildValue("l",_result); | |
1467 | return _resultobj; | |
1468 | } | |
1469 | ||
1470 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1471 | PyObject * _resultobj; | |
1472 | char * _result; | |
1473 | unsigned long _arg0 = (unsigned long ) 0; | |
1474 | char *_kwnames[] = { "nErrCode", NULL }; | |
1475 | ||
1476 | self = self; | |
1477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) | |
1478 | return NULL; | |
1479 | { | |
1480 | wxPy_BEGIN_ALLOW_THREADS; | |
1481 | _result = (char *)wxSysErrorMsg(_arg0); | |
1482 | ||
1483 | wxPy_END_ALLOW_THREADS; | |
1484 | } _resultobj = Py_BuildValue("s", _result); | |
1485 | return _resultobj; | |
1486 | } | |
1487 | ||
1488 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1489 | PyObject * _resultobj; | |
1490 | char * _arg0; | |
1491 | char *_kwnames[] = { "szFormat", NULL }; | |
1492 | ||
1493 | self = self; | |
1494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogFatalError",_kwnames,&_arg0)) | |
1495 | return NULL; | |
1496 | { | |
1497 | wxPy_BEGIN_ALLOW_THREADS; | |
1498 | wxLogFatalError(_arg0); | |
1499 | ||
1500 | wxPy_END_ALLOW_THREADS; | |
1501 | } Py_INCREF(Py_None); | |
1502 | _resultobj = Py_None; | |
1503 | return _resultobj; | |
1504 | } | |
1505 | ||
1506 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1507 | PyObject * _resultobj; | |
1508 | char * _arg0; | |
1509 | char *_kwnames[] = { "szFormat", NULL }; | |
1510 | ||
1511 | self = self; | |
1512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogError",_kwnames,&_arg0)) | |
1513 | return NULL; | |
1514 | { | |
1515 | wxPy_BEGIN_ALLOW_THREADS; | |
1516 | wxLogError(_arg0); | |
1517 | ||
1518 | wxPy_END_ALLOW_THREADS; | |
1519 | } Py_INCREF(Py_None); | |
1520 | _resultobj = Py_None; | |
1521 | return _resultobj; | |
1522 | } | |
1523 | ||
1524 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1525 | PyObject * _resultobj; | |
1526 | char * _arg0; | |
1527 | char *_kwnames[] = { "szFormat", NULL }; | |
1528 | ||
1529 | self = self; | |
1530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogWarning",_kwnames,&_arg0)) | |
1531 | return NULL; | |
1532 | { | |
1533 | wxPy_BEGIN_ALLOW_THREADS; | |
1534 | wxLogWarning(_arg0); | |
1535 | ||
1536 | wxPy_END_ALLOW_THREADS; | |
1537 | } Py_INCREF(Py_None); | |
1538 | _resultobj = Py_None; | |
1539 | return _resultobj; | |
1540 | } | |
1541 | ||
1542 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1543 | PyObject * _resultobj; | |
1544 | char * _arg0; | |
1545 | char *_kwnames[] = { "szFormat", NULL }; | |
1546 | ||
1547 | self = self; | |
1548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogMessage",_kwnames,&_arg0)) | |
1549 | return NULL; | |
1550 | { | |
1551 | wxPy_BEGIN_ALLOW_THREADS; | |
1552 | wxLogMessage(_arg0); | |
1553 | ||
1554 | wxPy_END_ALLOW_THREADS; | |
1555 | } Py_INCREF(Py_None); | |
1556 | _resultobj = Py_None; | |
1557 | return _resultobj; | |
1558 | } | |
1559 | ||
1560 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1561 | PyObject * _resultobj; | |
1562 | char * _arg0; | |
1563 | char *_kwnames[] = { "szFormat", NULL }; | |
1564 | ||
1565 | self = self; | |
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogInfo",_kwnames,&_arg0)) | |
1567 | return NULL; | |
1568 | { | |
1569 | wxPy_BEGIN_ALLOW_THREADS; | |
1570 | wxLogInfo(_arg0); | |
1571 | ||
1572 | wxPy_END_ALLOW_THREADS; | |
1573 | } Py_INCREF(Py_None); | |
1574 | _resultobj = Py_None; | |
1575 | return _resultobj; | |
1576 | } | |
1577 | ||
1578 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1579 | PyObject * _resultobj; | |
1580 | char * _arg0; | |
1581 | char *_kwnames[] = { "szFormat", NULL }; | |
1582 | ||
1583 | self = self; | |
1584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogVerbose",_kwnames,&_arg0)) | |
1585 | return NULL; | |
1586 | { | |
1587 | wxPy_BEGIN_ALLOW_THREADS; | |
1588 | wxLogVerbose(_arg0); | |
1589 | ||
1590 | wxPy_END_ALLOW_THREADS; | |
1591 | } Py_INCREF(Py_None); | |
1592 | _resultobj = Py_None; | |
1593 | return _resultobj; | |
1594 | } | |
1595 | ||
1596 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1597 | PyObject * _resultobj; | |
1598 | char * _arg0; | |
1599 | char *_kwnames[] = { "szFormat", NULL }; | |
1600 | ||
1601 | self = self; | |
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogStatus",_kwnames,&_arg0)) | |
1603 | return NULL; | |
1604 | { | |
1605 | wxPy_BEGIN_ALLOW_THREADS; | |
1606 | wxLogStatus(_arg0); | |
1607 | ||
1608 | wxPy_END_ALLOW_THREADS; | |
1609 | } Py_INCREF(Py_None); | |
1610 | _resultobj = Py_None; | |
1611 | return _resultobj; | |
1612 | } | |
1613 | ||
1614 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1615 | PyObject * _resultobj; | |
1616 | wxFrame * _arg0; | |
1617 | char * _arg1; | |
1618 | PyObject * _argo0 = 0; | |
1619 | char *_kwnames[] = { "pFrame","szFormat", NULL }; | |
1620 | ||
1621 | self = self; | |
1622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxLogStatusFrame",_kwnames,&_argo0,&_arg1)) | |
1623 | return NULL; | |
1624 | if (_argo0) { | |
1625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
1627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
1628 | return NULL; | |
1629 | } | |
1630 | } | |
1631 | { | |
1632 | wxPy_BEGIN_ALLOW_THREADS; | |
1633 | wxLogStatus(_arg0,_arg1); | |
1634 | ||
1635 | wxPy_END_ALLOW_THREADS; | |
1636 | } Py_INCREF(Py_None); | |
1637 | _resultobj = Py_None; | |
1638 | return _resultobj; | |
1639 | } | |
1640 | ||
1641 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1642 | PyObject * _resultobj; | |
1643 | char * _arg0; | |
1644 | char *_kwnames[] = { "szFormat", NULL }; | |
1645 | ||
1646 | self = self; | |
1647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogSysError",_kwnames,&_arg0)) | |
1648 | return NULL; | |
1649 | { | |
1650 | wxPy_BEGIN_ALLOW_THREADS; | |
1651 | wxLogSysError(_arg0); | |
1652 | ||
1653 | wxPy_END_ALLOW_THREADS; | |
1654 | } Py_INCREF(Py_None); | |
1655 | _resultobj = Py_None; | |
1656 | return _resultobj; | |
1657 | } | |
1658 | ||
1659 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) | |
1660 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1661 | PyObject * _resultobj; | |
1662 | wxToolTip * _result; | |
1663 | wxString * _arg0; | |
1664 | PyObject * _obj0 = 0; | |
1665 | char *_kwnames[] = { "tip", NULL }; | |
1666 | char _ptemp[128]; | |
1667 | ||
1668 | self = self; | |
1669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
1670 | return NULL; | |
1671 | { | |
1672 | if (!PyString_Check(_obj0)) { | |
1673 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1674 | return NULL; | |
1675 | } | |
1676 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
1677 | } | |
1678 | { | |
1679 | wxPy_BEGIN_ALLOW_THREADS; | |
1680 | _result = (wxToolTip *)new_wxToolTip(*_arg0); | |
1681 | ||
1682 | wxPy_END_ALLOW_THREADS; | |
1683 | } if (_result) { | |
1684 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
1685 | _resultobj = Py_BuildValue("s",_ptemp); | |
1686 | } else { | |
1687 | Py_INCREF(Py_None); | |
1688 | _resultobj = Py_None; | |
1689 | } | |
1690 | { | |
1691 | if (_obj0) | |
1692 | delete _arg0; | |
1693 | } | |
1694 | return _resultobj; | |
1695 | } | |
1696 | ||
1697 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
1698 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1699 | PyObject * _resultobj; | |
1700 | wxToolTip * _arg0; | |
1701 | wxString * _arg1; | |
1702 | PyObject * _argo0 = 0; | |
1703 | PyObject * _obj1 = 0; | |
1704 | char *_kwnames[] = { "self","tip", NULL }; | |
1705 | ||
1706 | self = self; | |
1707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
1708 | return NULL; | |
1709 | if (_argo0) { | |
1710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
1712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
1713 | return NULL; | |
1714 | } | |
1715 | } | |
1716 | { | |
1717 | if (!PyString_Check(_obj1)) { | |
1718 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1719 | return NULL; | |
1720 | } | |
1721 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1722 | } | |
1723 | { | |
1724 | wxPy_BEGIN_ALLOW_THREADS; | |
1725 | wxToolTip_SetTip(_arg0,*_arg1); | |
1726 | ||
1727 | wxPy_END_ALLOW_THREADS; | |
1728 | } Py_INCREF(Py_None); | |
1729 | _resultobj = Py_None; | |
1730 | { | |
1731 | if (_obj1) | |
1732 | delete _arg1; | |
1733 | } | |
1734 | return _resultobj; | |
1735 | } | |
1736 | ||
1737 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
1738 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1739 | PyObject * _resultobj; | |
1740 | wxString * _result; | |
1741 | wxToolTip * _arg0; | |
1742 | PyObject * _argo0 = 0; | |
1743 | char *_kwnames[] = { "self", NULL }; | |
1744 | ||
1745 | self = self; | |
1746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
1747 | return NULL; | |
1748 | if (_argo0) { | |
1749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
1751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
1752 | return NULL; | |
1753 | } | |
1754 | } | |
1755 | { | |
1756 | wxPy_BEGIN_ALLOW_THREADS; | |
1757 | _result = new wxString (wxToolTip_GetTip(_arg0)); | |
1758 | ||
1759 | wxPy_END_ALLOW_THREADS; | |
1760 | }{ | |
1761 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1762 | } | |
1763 | { | |
1764 | delete _result; | |
1765 | } | |
1766 | return _resultobj; | |
1767 | } | |
1768 | ||
1769 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
1770 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1771 | PyObject * _resultobj; | |
1772 | wxWindow * _result; | |
1773 | wxToolTip * _arg0; | |
1774 | PyObject * _argo0 = 0; | |
1775 | char *_kwnames[] = { "self", NULL }; | |
1776 | char _ptemp[128]; | |
1777 | ||
1778 | self = self; | |
1779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
1780 | return NULL; | |
1781 | if (_argo0) { | |
1782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
1784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
1785 | return NULL; | |
1786 | } | |
1787 | } | |
1788 | { | |
1789 | wxPy_BEGIN_ALLOW_THREADS; | |
1790 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); | |
1791 | ||
1792 | wxPy_END_ALLOW_THREADS; | |
1793 | } if (_result) { | |
1794 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1795 | _resultobj = Py_BuildValue("s",_ptemp); | |
1796 | } else { | |
1797 | Py_INCREF(Py_None); | |
1798 | _resultobj = Py_None; | |
1799 | } | |
1800 | return _resultobj; | |
1801 | } | |
1802 | ||
1803 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) | |
1804 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1805 | PyObject * _resultobj; | |
1806 | wxCaret * _result; | |
1807 | wxWindow * _arg0; | |
1808 | wxSize * _arg1; | |
1809 | PyObject * _argo0 = 0; | |
1810 | wxSize temp; | |
1811 | PyObject * _obj1 = 0; | |
1812 | char *_kwnames[] = { "window","size", NULL }; | |
1813 | char _ptemp[128]; | |
1814 | ||
1815 | self = self; | |
1816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
1817 | return NULL; | |
1818 | if (_argo0) { | |
1819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
1822 | return NULL; | |
1823 | } | |
1824 | } | |
1825 | { | |
1826 | _arg1 = &temp; | |
1827 | if (! wxSize_helper(_obj1, &_arg1)) | |
1828 | return NULL; | |
1829 | } | |
1830 | { | |
1831 | wxPy_BEGIN_ALLOW_THREADS; | |
1832 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); | |
1833 | ||
1834 | wxPy_END_ALLOW_THREADS; | |
1835 | } if (_result) { | |
1836 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
1837 | _resultobj = Py_BuildValue("s",_ptemp); | |
1838 | } else { | |
1839 | Py_INCREF(Py_None); | |
1840 | _resultobj = Py_None; | |
1841 | } | |
1842 | return _resultobj; | |
1843 | } | |
1844 | ||
1845 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
1846 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1847 | PyObject * _resultobj; | |
1848 | wxCaret * _arg0; | |
1849 | PyObject * _argo0 = 0; | |
1850 | char *_kwnames[] = { "self", NULL }; | |
1851 | ||
1852 | self = self; | |
1853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
1854 | return NULL; | |
1855 | if (_argo0) { | |
1856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
1859 | return NULL; | |
1860 | } | |
1861 | } | |
1862 | { | |
1863 | wxPy_BEGIN_ALLOW_THREADS; | |
1864 | delete_wxCaret(_arg0); | |
1865 | ||
1866 | wxPy_END_ALLOW_THREADS; | |
1867 | } Py_INCREF(Py_None); | |
1868 | _resultobj = Py_None; | |
1869 | return _resultobj; | |
1870 | } | |
1871 | ||
1872 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
1873 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1874 | PyObject * _resultobj; | |
1875 | bool _result; | |
1876 | wxCaret * _arg0; | |
1877 | PyObject * _argo0 = 0; | |
1878 | char *_kwnames[] = { "self", NULL }; | |
1879 | ||
1880 | self = self; | |
1881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
1882 | return NULL; | |
1883 | if (_argo0) { | |
1884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
1887 | return NULL; | |
1888 | } | |
1889 | } | |
1890 | { | |
1891 | wxPy_BEGIN_ALLOW_THREADS; | |
1892 | _result = (bool )wxCaret_IsOk(_arg0); | |
1893 | ||
1894 | wxPy_END_ALLOW_THREADS; | |
1895 | } _resultobj = Py_BuildValue("i",_result); | |
1896 | return _resultobj; | |
1897 | } | |
1898 | ||
1899 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
1900 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1901 | PyObject * _resultobj; | |
1902 | bool _result; | |
1903 | wxCaret * _arg0; | |
1904 | PyObject * _argo0 = 0; | |
1905 | char *_kwnames[] = { "self", NULL }; | |
1906 | ||
1907 | self = self; | |
1908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
1909 | return NULL; | |
1910 | if (_argo0) { | |
1911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
1914 | return NULL; | |
1915 | } | |
1916 | } | |
1917 | { | |
1918 | wxPy_BEGIN_ALLOW_THREADS; | |
1919 | _result = (bool )wxCaret_IsVisible(_arg0); | |
1920 | ||
1921 | wxPy_END_ALLOW_THREADS; | |
1922 | } _resultobj = Py_BuildValue("i",_result); | |
1923 | return _resultobj; | |
1924 | } | |
1925 | ||
1926 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
1927 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1928 | PyObject * _resultobj; | |
1929 | wxCaret * _arg0; | |
1930 | int * _arg1; | |
1931 | int temp; | |
1932 | int * _arg2; | |
1933 | int temp0; | |
1934 | PyObject * _argo0 = 0; | |
1935 | char *_kwnames[] = { "self", NULL }; | |
1936 | ||
1937 | self = self; | |
1938 | { | |
1939 | _arg1 = &temp; | |
1940 | } | |
1941 | { | |
1942 | _arg2 = &temp0; | |
1943 | } | |
1944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
1945 | return NULL; | |
1946 | if (_argo0) { | |
1947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
1950 | return NULL; | |
1951 | } | |
1952 | } | |
1953 | { | |
1954 | wxPy_BEGIN_ALLOW_THREADS; | |
1955 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); | |
1956 | ||
1957 | wxPy_END_ALLOW_THREADS; | |
1958 | } Py_INCREF(Py_None); | |
1959 | _resultobj = Py_None; | |
1960 | { | |
1961 | PyObject *o; | |
1962 | o = PyInt_FromLong((long) (*_arg1)); | |
1963 | _resultobj = t_output_helper(_resultobj, o); | |
1964 | } | |
1965 | { | |
1966 | PyObject *o; | |
1967 | o = PyInt_FromLong((long) (*_arg2)); | |
1968 | _resultobj = t_output_helper(_resultobj, o); | |
1969 | } | |
1970 | return _resultobj; | |
1971 | } | |
1972 | ||
1973 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
1974 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1975 | PyObject * _resultobj; | |
1976 | wxPoint * _result; | |
1977 | wxCaret * _arg0; | |
1978 | PyObject * _argo0 = 0; | |
1979 | char *_kwnames[] = { "self", NULL }; | |
1980 | char _ptemp[128]; | |
1981 | ||
1982 | self = self; | |
1983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
1984 | return NULL; | |
1985 | if (_argo0) { | |
1986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
1988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
1989 | return NULL; | |
1990 | } | |
1991 | } | |
1992 | { | |
1993 | wxPy_BEGIN_ALLOW_THREADS; | |
1994 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); | |
1995 | ||
1996 | wxPy_END_ALLOW_THREADS; | |
1997 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1998 | _resultobj = Py_BuildValue("s",_ptemp); | |
1999 | return _resultobj; | |
2000 | } | |
2001 | ||
2002 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2003 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2004 | PyObject * _resultobj; | |
2005 | wxCaret * _arg0; | |
2006 | int * _arg1; | |
2007 | int temp; | |
2008 | int * _arg2; | |
2009 | int temp0; | |
2010 | PyObject * _argo0 = 0; | |
2011 | char *_kwnames[] = { "self", NULL }; | |
2012 | ||
2013 | self = self; | |
2014 | { | |
2015 | _arg1 = &temp; | |
2016 | } | |
2017 | { | |
2018 | _arg2 = &temp0; | |
2019 | } | |
2020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2021 | return NULL; | |
2022 | if (_argo0) { | |
2023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2026 | return NULL; | |
2027 | } | |
2028 | } | |
2029 | { | |
2030 | wxPy_BEGIN_ALLOW_THREADS; | |
2031 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); | |
2032 | ||
2033 | wxPy_END_ALLOW_THREADS; | |
2034 | } Py_INCREF(Py_None); | |
2035 | _resultobj = Py_None; | |
2036 | { | |
2037 | PyObject *o; | |
2038 | o = PyInt_FromLong((long) (*_arg1)); | |
2039 | _resultobj = t_output_helper(_resultobj, o); | |
2040 | } | |
2041 | { | |
2042 | PyObject *o; | |
2043 | o = PyInt_FromLong((long) (*_arg2)); | |
2044 | _resultobj = t_output_helper(_resultobj, o); | |
2045 | } | |
2046 | return _resultobj; | |
2047 | } | |
2048 | ||
2049 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2050 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2051 | PyObject * _resultobj; | |
2052 | wxSize * _result; | |
2053 | wxCaret * _arg0; | |
2054 | PyObject * _argo0 = 0; | |
2055 | char *_kwnames[] = { "self", NULL }; | |
2056 | char _ptemp[128]; | |
2057 | ||
2058 | self = self; | |
2059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2060 | return NULL; | |
2061 | if (_argo0) { | |
2062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
2065 | return NULL; | |
2066 | } | |
2067 | } | |
2068 | { | |
2069 | wxPy_BEGIN_ALLOW_THREADS; | |
2070 | _result = new wxSize (wxCaret_GetSize(_arg0)); | |
2071 | ||
2072 | wxPy_END_ALLOW_THREADS; | |
2073 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2074 | _resultobj = Py_BuildValue("s",_ptemp); | |
2075 | return _resultobj; | |
2076 | } | |
2077 | ||
2078 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2079 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2080 | PyObject * _resultobj; | |
2081 | wxWindow * _result; | |
2082 | wxCaret * _arg0; | |
2083 | PyObject * _argo0 = 0; | |
2084 | char *_kwnames[] = { "self", NULL }; | |
2085 | char _ptemp[128]; | |
2086 | ||
2087 | self = self; | |
2088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
2089 | return NULL; | |
2090 | if (_argo0) { | |
2091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
2094 | return NULL; | |
2095 | } | |
2096 | } | |
2097 | { | |
2098 | wxPy_BEGIN_ALLOW_THREADS; | |
2099 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); | |
2100 | ||
2101 | wxPy_END_ALLOW_THREADS; | |
2102 | } if (_result) { | |
2103 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
2104 | _resultobj = Py_BuildValue("s",_ptemp); | |
2105 | } else { | |
2106 | Py_INCREF(Py_None); | |
2107 | _resultobj = Py_None; | |
2108 | } | |
2109 | return _resultobj; | |
2110 | } | |
2111 | ||
2112 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2113 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2114 | PyObject * _resultobj; | |
2115 | wxCaret * _arg0; | |
2116 | int _arg1; | |
2117 | int _arg2; | |
2118 | PyObject * _argo0 = 0; | |
2119 | char *_kwnames[] = { "self","x","y", NULL }; | |
2120 | ||
2121 | self = self; | |
2122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2123 | return NULL; | |
2124 | if (_argo0) { | |
2125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
2128 | return NULL; | |
2129 | } | |
2130 | } | |
2131 | { | |
2132 | wxPy_BEGIN_ALLOW_THREADS; | |
2133 | wxCaret_MoveXY(_arg0,_arg1,_arg2); | |
2134 | ||
2135 | wxPy_END_ALLOW_THREADS; | |
2136 | } Py_INCREF(Py_None); | |
2137 | _resultobj = Py_None; | |
2138 | return _resultobj; | |
2139 | } | |
2140 | ||
2141 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2142 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2143 | PyObject * _resultobj; | |
2144 | wxCaret * _arg0; | |
2145 | wxPoint * _arg1; | |
2146 | PyObject * _argo0 = 0; | |
2147 | wxPoint temp; | |
2148 | PyObject * _obj1 = 0; | |
2149 | char *_kwnames[] = { "self","pt", NULL }; | |
2150 | ||
2151 | self = self; | |
2152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
2153 | return NULL; | |
2154 | if (_argo0) { | |
2155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
2158 | return NULL; | |
2159 | } | |
2160 | } | |
2161 | { | |
2162 | _arg1 = &temp; | |
2163 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2164 | return NULL; | |
2165 | } | |
2166 | { | |
2167 | wxPy_BEGIN_ALLOW_THREADS; | |
2168 | wxCaret_Move(_arg0,*_arg1); | |
2169 | ||
2170 | wxPy_END_ALLOW_THREADS; | |
2171 | } Py_INCREF(Py_None); | |
2172 | _resultobj = Py_None; | |
2173 | return _resultobj; | |
2174 | } | |
2175 | ||
2176 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
2177 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2178 | PyObject * _resultobj; | |
2179 | wxCaret * _arg0; | |
2180 | int _arg1; | |
2181 | int _arg2; | |
2182 | PyObject * _argo0 = 0; | |
2183 | char *_kwnames[] = { "self","width","height", NULL }; | |
2184 | ||
2185 | self = self; | |
2186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2187 | return NULL; | |
2188 | if (_argo0) { | |
2189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
2192 | return NULL; | |
2193 | } | |
2194 | } | |
2195 | { | |
2196 | wxPy_BEGIN_ALLOW_THREADS; | |
2197 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); | |
2198 | ||
2199 | wxPy_END_ALLOW_THREADS; | |
2200 | } Py_INCREF(Py_None); | |
2201 | _resultobj = Py_None; | |
2202 | return _resultobj; | |
2203 | } | |
2204 | ||
2205 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2206 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2207 | PyObject * _resultobj; | |
2208 | wxCaret * _arg0; | |
2209 | wxSize * _arg1; | |
2210 | PyObject * _argo0 = 0; | |
2211 | wxSize temp; | |
2212 | PyObject * _obj1 = 0; | |
2213 | char *_kwnames[] = { "self","size", NULL }; | |
2214 | ||
2215 | self = self; | |
2216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
2217 | return NULL; | |
2218 | if (_argo0) { | |
2219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
2222 | return NULL; | |
2223 | } | |
2224 | } | |
2225 | { | |
2226 | _arg1 = &temp; | |
2227 | if (! wxSize_helper(_obj1, &_arg1)) | |
2228 | return NULL; | |
2229 | } | |
2230 | { | |
2231 | wxPy_BEGIN_ALLOW_THREADS; | |
2232 | wxCaret_SetSize(_arg0,*_arg1); | |
2233 | ||
2234 | wxPy_END_ALLOW_THREADS; | |
2235 | } Py_INCREF(Py_None); | |
2236 | _resultobj = Py_None; | |
2237 | return _resultobj; | |
2238 | } | |
2239 | ||
2240 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
2241 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2242 | PyObject * _resultobj; | |
2243 | wxCaret * _arg0; | |
2244 | int _arg1 = (int ) TRUE; | |
2245 | PyObject * _argo0 = 0; | |
2246 | char *_kwnames[] = { "self","show", NULL }; | |
2247 | ||
2248 | self = self; | |
2249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
2250 | return NULL; | |
2251 | if (_argo0) { | |
2252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
2255 | return NULL; | |
2256 | } | |
2257 | } | |
2258 | { | |
2259 | wxPy_BEGIN_ALLOW_THREADS; | |
2260 | wxCaret_Show(_arg0,_arg1); | |
2261 | ||
2262 | wxPy_END_ALLOW_THREADS; | |
2263 | } Py_INCREF(Py_None); | |
2264 | _resultobj = Py_None; | |
2265 | return _resultobj; | |
2266 | } | |
2267 | ||
2268 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
2269 | static PyObject *_wrap_wxCaret_Hide(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:wxCaret_Hide",_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 wxCaret_Hide. Expected _wxCaret_p."); | |
2282 | return NULL; | |
2283 | } | |
2284 | } | |
2285 | { | |
2286 | wxPy_BEGIN_ALLOW_THREADS; | |
2287 | wxCaret_Hide(_arg0); | |
2288 | ||
2289 | wxPy_END_ALLOW_THREADS; | |
2290 | } Py_INCREF(Py_None); | |
2291 | _resultobj = Py_None; | |
2292 | return _resultobj; | |
2293 | } | |
2294 | ||
2295 | #define new_wxFontEnumerator() (new wxPyFontEnumerator()) | |
2296 | static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2297 | PyObject * _resultobj; | |
2298 | wxPyFontEnumerator * _result; | |
2299 | char *_kwnames[] = { NULL }; | |
2300 | char _ptemp[128]; | |
2301 | ||
2302 | self = self; | |
2303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames)) | |
2304 | return NULL; | |
2305 | { | |
2306 | wxPy_BEGIN_ALLOW_THREADS; | |
2307 | _result = (wxPyFontEnumerator *)new_wxFontEnumerator(); | |
2308 | ||
2309 | wxPy_END_ALLOW_THREADS; | |
2310 | } if (_result) { | |
2311 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p"); | |
2312 | _resultobj = Py_BuildValue("s",_ptemp); | |
2313 | } else { | |
2314 | Py_INCREF(Py_None); | |
2315 | _resultobj = Py_None; | |
2316 | } | |
2317 | return _resultobj; | |
2318 | } | |
2319 | ||
2320 | #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj) | |
2321 | static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2322 | PyObject * _resultobj; | |
2323 | wxPyFontEnumerator * _arg0; | |
2324 | PyObject * _argo0 = 0; | |
2325 | char *_kwnames[] = { "self", NULL }; | |
2326 | ||
2327 | self = self; | |
2328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0)) | |
2329 | return NULL; | |
2330 | if (_argo0) { | |
2331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p."); | |
2334 | return NULL; | |
2335 | } | |
2336 | } | |
2337 | { | |
2338 | wxPy_BEGIN_ALLOW_THREADS; | |
2339 | delete_wxPyFontEnumerator(_arg0); | |
2340 | ||
2341 | wxPy_END_ALLOW_THREADS; | |
2342 | } Py_INCREF(Py_None); | |
2343 | _resultobj = Py_None; | |
2344 | return _resultobj; | |
2345 | } | |
2346 | ||
2347 | #define wxFontEnumerator__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) | |
2348 | static PyObject *_wrap_wxFontEnumerator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2349 | PyObject * _resultobj; | |
2350 | wxPyFontEnumerator * _arg0; | |
2351 | PyObject * _arg1; | |
2352 | PyObject * _arg2; | |
2353 | PyObject * _argo0 = 0; | |
2354 | PyObject * _obj1 = 0; | |
2355 | PyObject * _obj2 = 0; | |
2356 | char *_kwnames[] = { "self","self","_class", NULL }; | |
2357 | ||
2358 | self = self; | |
2359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFontEnumerator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
2360 | return NULL; | |
2361 | if (_argo0) { | |
2362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setSelf. Expected _wxPyFontEnumerator_p."); | |
2365 | return NULL; | |
2366 | } | |
2367 | } | |
2368 | { | |
2369 | _arg1 = _obj1; | |
2370 | } | |
2371 | { | |
2372 | _arg2 = _obj2; | |
2373 | } | |
2374 | { | |
2375 | wxPy_BEGIN_ALLOW_THREADS; | |
2376 | wxFontEnumerator__setSelf(_arg0,_arg1,_arg2); | |
2377 | ||
2378 | wxPy_END_ALLOW_THREADS; | |
2379 | } Py_INCREF(Py_None); | |
2380 | _resultobj = Py_None; | |
2381 | return _resultobj; | |
2382 | } | |
2383 | ||
2384 | #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1)) | |
2385 | static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2386 | PyObject * _resultobj; | |
2387 | bool _result; | |
2388 | wxPyFontEnumerator * _arg0; | |
2389 | wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM; | |
2390 | bool _arg2 = (bool ) FALSE; | |
2391 | PyObject * _argo0 = 0; | |
2392 | int tempbool2 = (int) FALSE; | |
2393 | char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL }; | |
2394 | ||
2395 | self = self; | |
2396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
2397 | return NULL; | |
2398 | if (_argo0) { | |
2399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p."); | |
2402 | return NULL; | |
2403 | } | |
2404 | } | |
2405 | _arg2 = (bool ) tempbool2; | |
2406 | { | |
2407 | wxPy_BEGIN_ALLOW_THREADS; | |
2408 | _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2); | |
2409 | ||
2410 | wxPy_END_ALLOW_THREADS; | |
2411 | } _resultobj = Py_BuildValue("i",_result); | |
2412 | return _resultobj; | |
2413 | } | |
2414 | ||
2415 | #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0)) | |
2416 | static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2417 | PyObject * _resultobj; | |
2418 | bool _result; | |
2419 | wxPyFontEnumerator * _arg0; | |
2420 | char * _arg1 = (char *) ""; | |
2421 | PyObject * _argo0 = 0; | |
2422 | char *_kwnames[] = { "self","facename", NULL }; | |
2423 | ||
2424 | self = self; | |
2425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1)) | |
2426 | return NULL; | |
2427 | if (_argo0) { | |
2428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p."); | |
2431 | return NULL; | |
2432 | } | |
2433 | } | |
2434 | { | |
2435 | wxPy_BEGIN_ALLOW_THREADS; | |
2436 | _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1); | |
2437 | ||
2438 | wxPy_END_ALLOW_THREADS; | |
2439 | } _resultobj = Py_BuildValue("i",_result); | |
2440 | return _resultobj; | |
2441 | } | |
2442 | ||
2443 | static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) { | |
2444 | wxArrayString* arr = self->GetEncodings(); | |
2445 | PyObject* list = PyList_New(0); | |
2446 | for (size_t x=0; x<arr->GetCount(); x++) | |
2447 | PyList_Append(list, PyString_FromString((*arr)[x])); | |
2448 | return list; | |
2449 | } | |
2450 | static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2451 | PyObject * _resultobj; | |
2452 | PyObject * _result; | |
2453 | wxPyFontEnumerator * _arg0; | |
2454 | PyObject * _argo0 = 0; | |
2455 | char *_kwnames[] = { "self", NULL }; | |
2456 | ||
2457 | self = self; | |
2458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0)) | |
2459 | return NULL; | |
2460 | if (_argo0) { | |
2461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p."); | |
2464 | return NULL; | |
2465 | } | |
2466 | } | |
2467 | { | |
2468 | wxPy_BEGIN_ALLOW_THREADS; | |
2469 | _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0); | |
2470 | ||
2471 | wxPy_END_ALLOW_THREADS; | |
2472 | }{ | |
2473 | _resultobj = _result; | |
2474 | } | |
2475 | return _resultobj; | |
2476 | } | |
2477 | ||
2478 | static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) { | |
2479 | wxArrayString* arr = self->GetFacenames(); | |
2480 | PyObject* list = PyList_New(0); | |
2481 | for (size_t x=0; x<arr->GetCount(); x++) | |
2482 | PyList_Append(list, PyString_FromString((*arr)[x])); | |
2483 | return list; | |
2484 | } | |
2485 | static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2486 | PyObject * _resultobj; | |
2487 | PyObject * _result; | |
2488 | wxPyFontEnumerator * _arg0; | |
2489 | PyObject * _argo0 = 0; | |
2490 | char *_kwnames[] = { "self", NULL }; | |
2491 | ||
2492 | self = self; | |
2493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0)) | |
2494 | return NULL; | |
2495 | if (_argo0) { | |
2496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p."); | |
2499 | return NULL; | |
2500 | } | |
2501 | } | |
2502 | { | |
2503 | wxPy_BEGIN_ALLOW_THREADS; | |
2504 | _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0); | |
2505 | ||
2506 | wxPy_END_ALLOW_THREADS; | |
2507 | }{ | |
2508 | _resultobj = _result; | |
2509 | } | |
2510 | return _resultobj; | |
2511 | } | |
2512 | ||
2513 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) | |
2514 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2515 | PyObject * _resultobj; | |
2516 | wxBusyCursor * _result; | |
2517 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
2518 | PyObject * _argo0 = 0; | |
2519 | char *_kwnames[] = { "cursor", NULL }; | |
2520 | char _ptemp[128]; | |
2521 | ||
2522 | self = self; | |
2523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
2524 | return NULL; | |
2525 | if (_argo0) { | |
2526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
2529 | return NULL; | |
2530 | } | |
2531 | } | |
2532 | { | |
2533 | wxPy_BEGIN_ALLOW_THREADS; | |
2534 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); | |
2535 | ||
2536 | wxPy_END_ALLOW_THREADS; | |
2537 | } if (_result) { | |
2538 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
2539 | _resultobj = Py_BuildValue("s",_ptemp); | |
2540 | } else { | |
2541 | Py_INCREF(Py_None); | |
2542 | _resultobj = Py_None; | |
2543 | } | |
2544 | return _resultobj; | |
2545 | } | |
2546 | ||
2547 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
2548 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2549 | PyObject * _resultobj; | |
2550 | wxBusyCursor * _arg0; | |
2551 | PyObject * _argo0 = 0; | |
2552 | char *_kwnames[] = { "self", NULL }; | |
2553 | ||
2554 | self = self; | |
2555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
2556 | return NULL; | |
2557 | if (_argo0) { | |
2558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
2560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
2561 | return NULL; | |
2562 | } | |
2563 | } | |
2564 | { | |
2565 | wxPy_BEGIN_ALLOW_THREADS; | |
2566 | delete_wxBusyCursor(_arg0); | |
2567 | ||
2568 | wxPy_END_ALLOW_THREADS; | |
2569 | } Py_INCREF(Py_None); | |
2570 | _resultobj = Py_None; | |
2571 | return _resultobj; | |
2572 | } | |
2573 | ||
2574 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) | |
2575 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2576 | PyObject * _resultobj; | |
2577 | wxTipProvider * _arg0; | |
2578 | PyObject * _argo0 = 0; | |
2579 | char *_kwnames[] = { "self", NULL }; | |
2580 | ||
2581 | self = self; | |
2582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
2583 | return NULL; | |
2584 | if (_argo0) { | |
2585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
2587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
2588 | return NULL; | |
2589 | } | |
2590 | } | |
2591 | { | |
2592 | wxPy_BEGIN_ALLOW_THREADS; | |
2593 | delete_wxTipProvider(_arg0); | |
2594 | ||
2595 | wxPy_END_ALLOW_THREADS; | |
2596 | } Py_INCREF(Py_None); | |
2597 | _resultobj = Py_None; | |
2598 | return _resultobj; | |
2599 | } | |
2600 | ||
2601 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
2602 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2603 | PyObject * _resultobj; | |
2604 | wxString * _result; | |
2605 | wxTipProvider * _arg0; | |
2606 | PyObject * _argo0 = 0; | |
2607 | char *_kwnames[] = { "self", NULL }; | |
2608 | ||
2609 | self = self; | |
2610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
2611 | return NULL; | |
2612 | if (_argo0) { | |
2613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
2615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
2616 | return NULL; | |
2617 | } | |
2618 | } | |
2619 | { | |
2620 | wxPy_BEGIN_ALLOW_THREADS; | |
2621 | _result = new wxString (wxTipProvider_GetTip(_arg0)); | |
2622 | ||
2623 | wxPy_END_ALLOW_THREADS; | |
2624 | }{ | |
2625 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2626 | } | |
2627 | { | |
2628 | delete _result; | |
2629 | } | |
2630 | return _resultobj; | |
2631 | } | |
2632 | ||
2633 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
2634 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2635 | PyObject * _resultobj; | |
2636 | size_t _result; | |
2637 | wxTipProvider * _arg0; | |
2638 | PyObject * _argo0 = 0; | |
2639 | char *_kwnames[] = { "self", NULL }; | |
2640 | ||
2641 | self = self; | |
2642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
2643 | return NULL; | |
2644 | if (_argo0) { | |
2645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
2647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
2648 | return NULL; | |
2649 | } | |
2650 | } | |
2651 | { | |
2652 | wxPy_BEGIN_ALLOW_THREADS; | |
2653 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); | |
2654 | ||
2655 | wxPy_END_ALLOW_THREADS; | |
2656 | } _resultobj = Py_BuildValue("i",_result); | |
2657 | return _resultobj; | |
2658 | } | |
2659 | ||
2660 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
2661 | wxPyTipProvider *src; | |
2662 | wxTipProvider *dest; | |
2663 | src = (wxPyTipProvider *) ptr; | |
2664 | dest = (wxTipProvider *) src; | |
2665 | return (void *) dest; | |
2666 | } | |
2667 | ||
2668 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
2669 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2670 | PyObject * _resultobj; | |
2671 | wxPyTipProvider * _result; | |
2672 | size_t _arg0; | |
2673 | char *_kwnames[] = { "currentTip", NULL }; | |
2674 | char _ptemp[128]; | |
2675 | ||
2676 | self = self; | |
2677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
2678 | return NULL; | |
2679 | { | |
2680 | wxPy_BEGIN_ALLOW_THREADS; | |
2681 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); | |
2682 | ||
2683 | wxPy_END_ALLOW_THREADS; | |
2684 | } if (_result) { | |
2685 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
2686 | _resultobj = Py_BuildValue("s",_ptemp); | |
2687 | } else { | |
2688 | Py_INCREF(Py_None); | |
2689 | _resultobj = Py_None; | |
2690 | } | |
2691 | return _resultobj; | |
2692 | } | |
2693 | ||
2694 | #define new_wxDragImage(_swigarg0,_swigarg1,_swigarg2) (new wxGenericDragImage(_swigarg0,_swigarg1,_swigarg2)) | |
2695 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2696 | PyObject * _resultobj; | |
2697 | wxGenericDragImage * _result; | |
2698 | wxBitmap * _arg0; | |
2699 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
2700 | wxPoint * _arg2 = (wxPoint *) &wxPyNullPoint; | |
2701 | PyObject * _argo0 = 0; | |
2702 | PyObject * _argo1 = 0; | |
2703 | wxPoint temp; | |
2704 | PyObject * _obj2 = 0; | |
2705 | char *_kwnames[] = { "image","cursor","hotspot", NULL }; | |
2706 | char _ptemp[128]; | |
2707 | ||
2708 | self = self; | |
2709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:new_wxDragImage",_kwnames,&_argo0,&_argo1,&_obj2)) | |
2710 | return NULL; | |
2711 | if (_argo0) { | |
2712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
2715 | return NULL; | |
2716 | } | |
2717 | } | |
2718 | if (_argo1) { | |
2719 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2720 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
2721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
2722 | return NULL; | |
2723 | } | |
2724 | } | |
2725 | if (_obj2) | |
2726 | { | |
2727 | _arg2 = &temp; | |
2728 | if (! wxPoint_helper(_obj2, &_arg2)) | |
2729 | return NULL; | |
2730 | } | |
2731 | { | |
2732 | wxPy_BEGIN_ALLOW_THREADS; | |
2733 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1,*_arg2); | |
2734 | ||
2735 | wxPy_END_ALLOW_THREADS; | |
2736 | } if (_result) { | |
2737 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
2738 | _resultobj = Py_BuildValue("s",_ptemp); | |
2739 | } else { | |
2740 | Py_INCREF(Py_None); | |
2741 | _resultobj = Py_None; | |
2742 | } | |
2743 | return _resultobj; | |
2744 | } | |
2745 | ||
2746 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) | |
2747 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2748 | PyObject * _resultobj; | |
2749 | wxGenericDragImage * _arg0; | |
2750 | PyObject * _argo0 = 0; | |
2751 | char *_kwnames[] = { "self", NULL }; | |
2752 | ||
2753 | self = self; | |
2754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
2755 | return NULL; | |
2756 | if (_argo0) { | |
2757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
2759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
2760 | return NULL; | |
2761 | } | |
2762 | } | |
2763 | { | |
2764 | wxPy_BEGIN_ALLOW_THREADS; | |
2765 | delete_wxGenericDragImage(_arg0); | |
2766 | ||
2767 | wxPy_END_ALLOW_THREADS; | |
2768 | } Py_INCREF(Py_None); | |
2769 | _resultobj = Py_None; | |
2770 | return _resultobj; | |
2771 | } | |
2772 | ||
2773 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2774 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2775 | PyObject * _resultobj; | |
2776 | bool _result; | |
2777 | wxGenericDragImage * _arg0; | |
2778 | wxPoint * _arg1; | |
2779 | wxWindow * _arg2; | |
2780 | bool _arg3 = (bool ) FALSE; | |
2781 | wxRect * _arg4 = (wxRect *) NULL; | |
2782 | PyObject * _argo0 = 0; | |
2783 | wxPoint temp; | |
2784 | PyObject * _obj1 = 0; | |
2785 | PyObject * _argo2 = 0; | |
2786 | int tempbool3 = (int) FALSE; | |
2787 | wxRect temp0; | |
2788 | PyObject * _obj4 = 0; | |
2789 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
2790 | ||
2791 | self = self; | |
2792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
2793 | return NULL; | |
2794 | if (_argo0) { | |
2795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
2797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
2798 | return NULL; | |
2799 | } | |
2800 | } | |
2801 | { | |
2802 | _arg1 = &temp; | |
2803 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2804 | return NULL; | |
2805 | } | |
2806 | if (_argo2) { | |
2807 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2808 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
2809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
2810 | return NULL; | |
2811 | } | |
2812 | } | |
2813 | _arg3 = (bool ) tempbool3; | |
2814 | if (_obj4) | |
2815 | { | |
2816 | _arg4 = &temp0; | |
2817 | if (! wxRect_helper(_obj4, &_arg4)) | |
2818 | return NULL; | |
2819 | } | |
2820 | { | |
2821 | wxPy_BEGIN_ALLOW_THREADS; | |
2822 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
2823 | ||
2824 | wxPy_END_ALLOW_THREADS; | |
2825 | } _resultobj = Py_BuildValue("i",_result); | |
2826 | return _resultobj; | |
2827 | } | |
2828 | ||
2829 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
2830 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2831 | PyObject * _resultobj; | |
2832 | bool _result; | |
2833 | wxGenericDragImage * _arg0; | |
2834 | wxPoint * _arg1; | |
2835 | wxWindow * _arg2; | |
2836 | wxWindow * _arg3; | |
2837 | PyObject * _argo0 = 0; | |
2838 | wxPoint temp; | |
2839 | PyObject * _obj1 = 0; | |
2840 | PyObject * _argo2 = 0; | |
2841 | PyObject * _argo3 = 0; | |
2842 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
2843 | ||
2844 | self = self; | |
2845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
2846 | return NULL; | |
2847 | if (_argo0) { | |
2848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
2850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
2851 | return NULL; | |
2852 | } | |
2853 | } | |
2854 | { | |
2855 | _arg1 = &temp; | |
2856 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2857 | return NULL; | |
2858 | } | |
2859 | if (_argo2) { | |
2860 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2861 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
2862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
2863 | return NULL; | |
2864 | } | |
2865 | } | |
2866 | if (_argo3) { | |
2867 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
2868 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
2869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
2870 | return NULL; | |
2871 | } | |
2872 | } | |
2873 | { | |
2874 | wxPy_BEGIN_ALLOW_THREADS; | |
2875 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); | |
2876 | ||
2877 | wxPy_END_ALLOW_THREADS; | |
2878 | } _resultobj = Py_BuildValue("i",_result); | |
2879 | return _resultobj; | |
2880 | } | |
2881 | ||
2882 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
2883 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2884 | PyObject * _resultobj; | |
2885 | bool _result; | |
2886 | wxGenericDragImage * _arg0; | |
2887 | PyObject * _argo0 = 0; | |
2888 | char *_kwnames[] = { "self", NULL }; | |
2889 | ||
2890 | self = self; | |
2891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
2892 | return NULL; | |
2893 | if (_argo0) { | |
2894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
2896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
2897 | return NULL; | |
2898 | } | |
2899 | } | |
2900 | { | |
2901 | wxPy_BEGIN_ALLOW_THREADS; | |
2902 | _result = (bool )wxDragImage_EndDrag(_arg0); | |
2903 | ||
2904 | wxPy_END_ALLOW_THREADS; | |
2905 | } _resultobj = Py_BuildValue("i",_result); | |
2906 | return _resultobj; | |
2907 | } | |
2908 | ||
2909 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2910 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2911 | PyObject * _resultobj; | |
2912 | bool _result; | |
2913 | wxGenericDragImage * _arg0; | |
2914 | wxPoint * _arg1; | |
2915 | PyObject * _argo0 = 0; | |
2916 | wxPoint temp; | |
2917 | PyObject * _obj1 = 0; | |
2918 | char *_kwnames[] = { "self","pt", NULL }; | |
2919 | ||
2920 | self = self; | |
2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
2922 | return NULL; | |
2923 | if (_argo0) { | |
2924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
2926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
2927 | return NULL; | |
2928 | } | |
2929 | } | |
2930 | { | |
2931 | _arg1 = &temp; | |
2932 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2933 | return NULL; | |
2934 | } | |
2935 | { | |
2936 | wxPy_BEGIN_ALLOW_THREADS; | |
2937 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); | |
2938 | ||
2939 | wxPy_END_ALLOW_THREADS; | |
2940 | } _resultobj = Py_BuildValue("i",_result); | |
2941 | return _resultobj; | |
2942 | } | |
2943 | ||
2944 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
2945 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2946 | PyObject * _resultobj; | |
2947 | bool _result; | |
2948 | wxGenericDragImage * _arg0; | |
2949 | PyObject * _argo0 = 0; | |
2950 | char *_kwnames[] = { "self", NULL }; | |
2951 | ||
2952 | self = self; | |
2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
2954 | return NULL; | |
2955 | if (_argo0) { | |
2956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
2958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
2959 | return NULL; | |
2960 | } | |
2961 | } | |
2962 | { | |
2963 | wxPy_BEGIN_ALLOW_THREADS; | |
2964 | _result = (bool )wxDragImage_Show(_arg0); | |
2965 | ||
2966 | wxPy_END_ALLOW_THREADS; | |
2967 | } _resultobj = Py_BuildValue("i",_result); | |
2968 | return _resultobj; | |
2969 | } | |
2970 | ||
2971 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
2972 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2973 | PyObject * _resultobj; | |
2974 | bool _result; | |
2975 | wxGenericDragImage * _arg0; | |
2976 | PyObject * _argo0 = 0; | |
2977 | char *_kwnames[] = { "self", NULL }; | |
2978 | ||
2979 | self = self; | |
2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
2981 | return NULL; | |
2982 | if (_argo0) { | |
2983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
2985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
2986 | return NULL; | |
2987 | } | |
2988 | } | |
2989 | { | |
2990 | wxPy_BEGIN_ALLOW_THREADS; | |
2991 | _result = (bool )wxDragImage_Hide(_arg0); | |
2992 | ||
2993 | wxPy_END_ALLOW_THREADS; | |
2994 | } _resultobj = Py_BuildValue("i",_result); | |
2995 | return _resultobj; | |
2996 | } | |
2997 | ||
2998 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
2999 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3000 | PyObject * _resultobj; | |
3001 | wxRect * _result; | |
3002 | wxGenericDragImage * _arg0; | |
3003 | wxPoint * _arg1; | |
3004 | PyObject * _argo0 = 0; | |
3005 | wxPoint temp; | |
3006 | PyObject * _obj1 = 0; | |
3007 | char *_kwnames[] = { "self","pos", NULL }; | |
3008 | char _ptemp[128]; | |
3009 | ||
3010 | self = self; | |
3011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
3012 | return NULL; | |
3013 | if (_argo0) { | |
3014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
3017 | return NULL; | |
3018 | } | |
3019 | } | |
3020 | { | |
3021 | _arg1 = &temp; | |
3022 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3023 | return NULL; | |
3024 | } | |
3025 | { | |
3026 | wxPy_BEGIN_ALLOW_THREADS; | |
3027 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); | |
3028 | ||
3029 | wxPy_END_ALLOW_THREADS; | |
3030 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
3031 | _resultobj = Py_BuildValue("s",_ptemp); | |
3032 | return _resultobj; | |
3033 | } | |
3034 | ||
3035 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3036 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3037 | PyObject * _resultobj; | |
3038 | bool _result; | |
3039 | wxGenericDragImage * _arg0; | |
3040 | wxPoint * _arg1; | |
3041 | wxPoint * _arg2; | |
3042 | bool _arg3; | |
3043 | bool _arg4; | |
3044 | PyObject * _argo0 = 0; | |
3045 | wxPoint temp; | |
3046 | PyObject * _obj1 = 0; | |
3047 | wxPoint temp0; | |
3048 | PyObject * _obj2 = 0; | |
3049 | int tempbool3; | |
3050 | int tempbool4; | |
3051 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
3052 | ||
3053 | self = self; | |
3054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
3055 | return NULL; | |
3056 | if (_argo0) { | |
3057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
3060 | return NULL; | |
3061 | } | |
3062 | } | |
3063 | { | |
3064 | _arg1 = &temp; | |
3065 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3066 | return NULL; | |
3067 | } | |
3068 | { | |
3069 | _arg2 = &temp0; | |
3070 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3071 | return NULL; | |
3072 | } | |
3073 | _arg3 = (bool ) tempbool3; | |
3074 | _arg4 = (bool ) tempbool4; | |
3075 | { | |
3076 | wxPy_BEGIN_ALLOW_THREADS; | |
3077 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
3078 | ||
3079 | wxPy_END_ALLOW_THREADS; | |
3080 | } _resultobj = Py_BuildValue("i",_result); | |
3081 | return _resultobj; | |
3082 | } | |
3083 | ||
3084 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) | |
3085 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3086 | PyObject * _resultobj; | |
3087 | wxPyTimer * _result; | |
3088 | PyObject * _arg0; | |
3089 | PyObject * _obj0 = 0; | |
3090 | char *_kwnames[] = { "notify", NULL }; | |
3091 | char _ptemp[128]; | |
3092 | ||
3093 | self = self; | |
3094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
3095 | return NULL; | |
3096 | { | |
3097 | _arg0 = _obj0; | |
3098 | } | |
3099 | { | |
3100 | wxPy_BEGIN_ALLOW_THREADS; | |
3101 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); | |
3102 | ||
3103 | wxPy_END_ALLOW_THREADS; | |
3104 | } if (_result) { | |
3105 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
3106 | _resultobj = Py_BuildValue("s",_ptemp); | |
3107 | } else { | |
3108 | Py_INCREF(Py_None); | |
3109 | _resultobj = Py_None; | |
3110 | } | |
3111 | return _resultobj; | |
3112 | } | |
3113 | ||
3114 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
3115 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3116 | PyObject * _resultobj; | |
3117 | wxPyTimer * _arg0; | |
3118 | PyObject * _argo0 = 0; | |
3119 | char *_kwnames[] = { "self", NULL }; | |
3120 | ||
3121 | self = self; | |
3122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
3123 | return NULL; | |
3124 | if (_argo0) { | |
3125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
3128 | return NULL; | |
3129 | } | |
3130 | } | |
3131 | { | |
3132 | wxPy_BEGIN_ALLOW_THREADS; | |
3133 | delete_wxPyTimer(_arg0); | |
3134 | ||
3135 | wxPy_END_ALLOW_THREADS; | |
3136 | } Py_INCREF(Py_None); | |
3137 | _resultobj = Py_None; | |
3138 | return _resultobj; | |
3139 | } | |
3140 | ||
3141 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
3142 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3143 | PyObject * _resultobj; | |
3144 | int _result; | |
3145 | wxPyTimer * _arg0; | |
3146 | PyObject * _argo0 = 0; | |
3147 | char *_kwnames[] = { "self", NULL }; | |
3148 | ||
3149 | self = self; | |
3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
3151 | return NULL; | |
3152 | if (_argo0) { | |
3153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
3156 | return NULL; | |
3157 | } | |
3158 | } | |
3159 | { | |
3160 | wxPy_BEGIN_ALLOW_THREADS; | |
3161 | _result = (int )wxPyTimer_GetInterval(_arg0); | |
3162 | ||
3163 | wxPy_END_ALLOW_THREADS; | |
3164 | } _resultobj = Py_BuildValue("i",_result); | |
3165 | return _resultobj; | |
3166 | } | |
3167 | ||
3168 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
3169 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject * _resultobj; | |
3171 | bool _result; | |
3172 | wxPyTimer * _arg0; | |
3173 | PyObject * _argo0 = 0; | |
3174 | char *_kwnames[] = { "self", NULL }; | |
3175 | ||
3176 | self = self; | |
3177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
3178 | return NULL; | |
3179 | if (_argo0) { | |
3180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
3183 | return NULL; | |
3184 | } | |
3185 | } | |
3186 | { | |
3187 | wxPy_BEGIN_ALLOW_THREADS; | |
3188 | _result = (bool )wxPyTimer_IsOneShot(_arg0); | |
3189 | ||
3190 | wxPy_END_ALLOW_THREADS; | |
3191 | } _resultobj = Py_BuildValue("i",_result); | |
3192 | return _resultobj; | |
3193 | } | |
3194 | ||
3195 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
3196 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3197 | PyObject * _resultobj; | |
3198 | bool _result; | |
3199 | wxPyTimer * _arg0; | |
3200 | PyObject * _argo0 = 0; | |
3201 | char *_kwnames[] = { "self", NULL }; | |
3202 | ||
3203 | self = self; | |
3204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
3205 | return NULL; | |
3206 | if (_argo0) { | |
3207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
3210 | return NULL; | |
3211 | } | |
3212 | } | |
3213 | { | |
3214 | wxPy_BEGIN_ALLOW_THREADS; | |
3215 | _result = (bool )wxPyTimer_IsRunning(_arg0); | |
3216 | ||
3217 | wxPy_END_ALLOW_THREADS; | |
3218 | } _resultobj = Py_BuildValue("i",_result); | |
3219 | return _resultobj; | |
3220 | } | |
3221 | ||
3222 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
3223 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3224 | PyObject * _resultobj; | |
3225 | wxPyTimer * _arg0; | |
3226 | wxEvtHandler * _arg1; | |
3227 | int _arg2 = (int ) -1; | |
3228 | PyObject * _argo0 = 0; | |
3229 | PyObject * _argo1 = 0; | |
3230 | char *_kwnames[] = { "self","owner","id", NULL }; | |
3231 | ||
3232 | self = self; | |
3233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
3234 | return NULL; | |
3235 | if (_argo0) { | |
3236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
3239 | return NULL; | |
3240 | } | |
3241 | } | |
3242 | if (_argo1) { | |
3243 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3244 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
3246 | return NULL; | |
3247 | } | |
3248 | } | |
3249 | { | |
3250 | wxPy_BEGIN_ALLOW_THREADS; | |
3251 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); | |
3252 | ||
3253 | wxPy_END_ALLOW_THREADS; | |
3254 | } Py_INCREF(Py_None); | |
3255 | _resultobj = Py_None; | |
3256 | return _resultobj; | |
3257 | } | |
3258 | ||
3259 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
3260 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3261 | PyObject * _resultobj; | |
3262 | wxPyTimer * _arg0; | |
3263 | int _arg1 = (int ) -1; | |
3264 | int _arg2 = (int ) FALSE; | |
3265 | PyObject * _argo0 = 0; | |
3266 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
3267 | ||
3268 | self = self; | |
3269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3270 | return NULL; | |
3271 | if (_argo0) { | |
3272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
3275 | return NULL; | |
3276 | } | |
3277 | } | |
3278 | { | |
3279 | wxPy_BEGIN_ALLOW_THREADS; | |
3280 | wxPyTimer_Start(_arg0,_arg1,_arg2); | |
3281 | ||
3282 | wxPy_END_ALLOW_THREADS; | |
3283 | } Py_INCREF(Py_None); | |
3284 | _resultobj = Py_None; | |
3285 | return _resultobj; | |
3286 | } | |
3287 | ||
3288 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
3289 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3290 | PyObject * _resultobj; | |
3291 | wxPyTimer * _arg0; | |
3292 | PyObject * _argo0 = 0; | |
3293 | char *_kwnames[] = { "self", NULL }; | |
3294 | ||
3295 | self = self; | |
3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) | |
3297 | return NULL; | |
3298 | if (_argo0) { | |
3299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
3301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
3302 | return NULL; | |
3303 | } | |
3304 | } | |
3305 | { | |
3306 | wxPy_BEGIN_ALLOW_THREADS; | |
3307 | wxPyTimer_Stop(_arg0); | |
3308 | ||
3309 | wxPy_END_ALLOW_THREADS; | |
3310 | } Py_INCREF(Py_None); | |
3311 | _resultobj = Py_None; | |
3312 | return _resultobj; | |
3313 | } | |
3314 | ||
3315 | #define new_wxLog() (new wxLog()) | |
3316 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject * _resultobj; | |
3318 | wxLog * _result; | |
3319 | char *_kwnames[] = { NULL }; | |
3320 | char _ptemp[128]; | |
3321 | ||
3322 | self = self; | |
3323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) | |
3324 | return NULL; | |
3325 | { | |
3326 | wxPy_BEGIN_ALLOW_THREADS; | |
3327 | _result = (wxLog *)new_wxLog(); | |
3328 | ||
3329 | wxPy_END_ALLOW_THREADS; | |
3330 | } if (_result) { | |
3331 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
3332 | _resultobj = Py_BuildValue("s",_ptemp); | |
3333 | } else { | |
3334 | Py_INCREF(Py_None); | |
3335 | _resultobj = Py_None; | |
3336 | } | |
3337 | return _resultobj; | |
3338 | } | |
3339 | ||
3340 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3341 | PyObject * _resultobj; | |
3342 | bool _result; | |
3343 | char *_kwnames[] = { NULL }; | |
3344 | ||
3345 | self = self; | |
3346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
3347 | return NULL; | |
3348 | { | |
3349 | wxPy_BEGIN_ALLOW_THREADS; | |
3350 | _result = (bool )wxLog::IsEnabled(); | |
3351 | ||
3352 | wxPy_END_ALLOW_THREADS; | |
3353 | } _resultobj = Py_BuildValue("i",_result); | |
3354 | return _resultobj; | |
3355 | } | |
3356 | ||
3357 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3358 | PyObject * _resultobj; | |
3359 | bool _result; | |
3360 | bool _arg0 = (bool ) TRUE; | |
3361 | int tempbool0 = (int) TRUE; | |
3362 | char *_kwnames[] = { "doIt", NULL }; | |
3363 | ||
3364 | self = self; | |
3365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
3366 | return NULL; | |
3367 | _arg0 = (bool ) tempbool0; | |
3368 | { | |
3369 | wxPy_BEGIN_ALLOW_THREADS; | |
3370 | _result = (bool )wxLog::EnableLogging(_arg0); | |
3371 | ||
3372 | wxPy_END_ALLOW_THREADS; | |
3373 | } _resultobj = Py_BuildValue("i",_result); | |
3374 | return _resultobj; | |
3375 | } | |
3376 | ||
3377 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3378 | PyObject * _resultobj; | |
3379 | wxLogLevel * _arg0; | |
3380 | char * _arg1; | |
3381 | int _arg2 = (int ) 0; | |
3382 | PyObject * _argo0 = 0; | |
3383 | char *_kwnames[] = { "level","szString","t", NULL }; | |
3384 | ||
3385 | self = self; | |
3386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|i:wxLog_OnLog",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3387 | return NULL; | |
3388 | if (_argo0) { | |
3389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { | |
3391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
3392 | return NULL; | |
3393 | } | |
3394 | } | |
3395 | { | |
3396 | wxPy_BEGIN_ALLOW_THREADS; | |
3397 | wxLog::OnLog(*_arg0,_arg1,_arg2); | |
3398 | ||
3399 | wxPy_END_ALLOW_THREADS; | |
3400 | } Py_INCREF(Py_None); | |
3401 | _resultobj = Py_None; | |
3402 | return _resultobj; | |
3403 | } | |
3404 | ||
3405 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
3406 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3407 | PyObject * _resultobj; | |
3408 | wxLog * _arg0; | |
3409 | PyObject * _argo0 = 0; | |
3410 | char *_kwnames[] = { "self", NULL }; | |
3411 | ||
3412 | self = self; | |
3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
3414 | return NULL; | |
3415 | if (_argo0) { | |
3416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
3418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
3419 | return NULL; | |
3420 | } | |
3421 | } | |
3422 | { | |
3423 | wxPy_BEGIN_ALLOW_THREADS; | |
3424 | wxLog_Flush(_arg0); | |
3425 | ||
3426 | wxPy_END_ALLOW_THREADS; | |
3427 | } Py_INCREF(Py_None); | |
3428 | _resultobj = Py_None; | |
3429 | return _resultobj; | |
3430 | } | |
3431 | ||
3432 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) | |
3433 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject * _resultobj; | |
3435 | bool _result; | |
3436 | wxLog * _arg0; | |
3437 | PyObject * _argo0 = 0; | |
3438 | char *_kwnames[] = { "self", NULL }; | |
3439 | ||
3440 | self = self; | |
3441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) | |
3442 | return NULL; | |
3443 | if (_argo0) { | |
3444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
3446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
3447 | return NULL; | |
3448 | } | |
3449 | } | |
3450 | { | |
3451 | wxPy_BEGIN_ALLOW_THREADS; | |
3452 | _result = (bool )wxLog_HasPendingMessages(_arg0); | |
3453 | ||
3454 | wxPy_END_ALLOW_THREADS; | |
3455 | } _resultobj = Py_BuildValue("i",_result); | |
3456 | return _resultobj; | |
3457 | } | |
3458 | ||
3459 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3460 | PyObject * _resultobj; | |
3461 | char *_kwnames[] = { NULL }; | |
3462 | ||
3463 | self = self; | |
3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
3465 | return NULL; | |
3466 | { | |
3467 | wxPy_BEGIN_ALLOW_THREADS; | |
3468 | wxLog::FlushActive(); | |
3469 | ||
3470 | wxPy_END_ALLOW_THREADS; | |
3471 | } Py_INCREF(Py_None); | |
3472 | _resultobj = Py_None; | |
3473 | return _resultobj; | |
3474 | } | |
3475 | ||
3476 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3477 | PyObject * _resultobj; | |
3478 | wxLog * _result; | |
3479 | char *_kwnames[] = { NULL }; | |
3480 | char _ptemp[128]; | |
3481 | ||
3482 | self = self; | |
3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
3484 | return NULL; | |
3485 | { | |
3486 | wxPy_BEGIN_ALLOW_THREADS; | |
3487 | _result = (wxLog *)wxLog::GetActiveTarget(); | |
3488 | ||
3489 | wxPy_END_ALLOW_THREADS; | |
3490 | } if (_result) { | |
3491 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
3492 | _resultobj = Py_BuildValue("s",_ptemp); | |
3493 | } else { | |
3494 | Py_INCREF(Py_None); | |
3495 | _resultobj = Py_None; | |
3496 | } | |
3497 | return _resultobj; | |
3498 | } | |
3499 | ||
3500 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3501 | PyObject * _resultobj; | |
3502 | wxLog * _result; | |
3503 | wxLog * _arg0; | |
3504 | PyObject * _argo0 = 0; | |
3505 | char *_kwnames[] = { "pLogger", NULL }; | |
3506 | char _ptemp[128]; | |
3507 | ||
3508 | self = self; | |
3509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) | |
3510 | return NULL; | |
3511 | if (_argo0) { | |
3512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
3514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
3515 | return NULL; | |
3516 | } | |
3517 | } | |
3518 | { | |
3519 | wxPy_BEGIN_ALLOW_THREADS; | |
3520 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); | |
3521 | ||
3522 | wxPy_END_ALLOW_THREADS; | |
3523 | } if (_result) { | |
3524 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
3525 | _resultobj = Py_BuildValue("s",_ptemp); | |
3526 | } else { | |
3527 | Py_INCREF(Py_None); | |
3528 | _resultobj = Py_None; | |
3529 | } | |
3530 | return _resultobj; | |
3531 | } | |
3532 | ||
3533 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3534 | PyObject * _resultobj; | |
3535 | char *_kwnames[] = { NULL }; | |
3536 | ||
3537 | self = self; | |
3538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
3539 | return NULL; | |
3540 | { | |
3541 | wxPy_BEGIN_ALLOW_THREADS; | |
3542 | wxLog::Suspend(); | |
3543 | ||
3544 | wxPy_END_ALLOW_THREADS; | |
3545 | } Py_INCREF(Py_None); | |
3546 | _resultobj = Py_None; | |
3547 | return _resultobj; | |
3548 | } | |
3549 | ||
3550 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3551 | PyObject * _resultobj; | |
3552 | char *_kwnames[] = { NULL }; | |
3553 | ||
3554 | self = self; | |
3555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
3556 | return NULL; | |
3557 | { | |
3558 | wxPy_BEGIN_ALLOW_THREADS; | |
3559 | wxLog::Resume(); | |
3560 | ||
3561 | wxPy_END_ALLOW_THREADS; | |
3562 | } Py_INCREF(Py_None); | |
3563 | _resultobj = Py_None; | |
3564 | return _resultobj; | |
3565 | } | |
3566 | ||
3567 | #define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0)) | |
3568 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3569 | PyObject * _resultobj; | |
3570 | wxLog * _arg0; | |
3571 | bool _arg1 = (bool ) TRUE; | |
3572 | PyObject * _argo0 = 0; | |
3573 | int tempbool1 = (int) TRUE; | |
3574 | char *_kwnames[] = { "self","bVerbose", NULL }; | |
3575 | ||
3576 | self = self; | |
3577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1)) | |
3578 | return NULL; | |
3579 | if (_argo0) { | |
3580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
3582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p."); | |
3583 | return NULL; | |
3584 | } | |
3585 | } | |
3586 | _arg1 = (bool ) tempbool1; | |
3587 | { | |
3588 | wxPy_BEGIN_ALLOW_THREADS; | |
3589 | wxLog_SetVerbose(_arg0,_arg1); | |
3590 | ||
3591 | wxPy_END_ALLOW_THREADS; | |
3592 | } Py_INCREF(Py_None); | |
3593 | _resultobj = Py_None; | |
3594 | return _resultobj; | |
3595 | } | |
3596 | ||
3597 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3598 | PyObject * _resultobj; | |
3599 | char *_kwnames[] = { NULL }; | |
3600 | ||
3601 | self = self; | |
3602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
3603 | return NULL; | |
3604 | { | |
3605 | wxPy_BEGIN_ALLOW_THREADS; | |
3606 | wxLog::DontCreateOnDemand(); | |
3607 | ||
3608 | wxPy_END_ALLOW_THREADS; | |
3609 | } Py_INCREF(Py_None); | |
3610 | _resultobj = Py_None; | |
3611 | return _resultobj; | |
3612 | } | |
3613 | ||
3614 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3615 | PyObject * _resultobj; | |
3616 | wxTraceMask * _arg0; | |
3617 | PyObject * _argo0 = 0; | |
3618 | char *_kwnames[] = { "ulMask", NULL }; | |
3619 | ||
3620 | self = self; | |
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) | |
3622 | return NULL; | |
3623 | if (_argo0) { | |
3624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { | |
3626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
3627 | return NULL; | |
3628 | } | |
3629 | } | |
3630 | { | |
3631 | wxPy_BEGIN_ALLOW_THREADS; | |
3632 | wxLog::SetTraceMask(*_arg0); | |
3633 | ||
3634 | wxPy_END_ALLOW_THREADS; | |
3635 | } Py_INCREF(Py_None); | |
3636 | _resultobj = Py_None; | |
3637 | return _resultobj; | |
3638 | } | |
3639 | ||
3640 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3641 | PyObject * _resultobj; | |
3642 | wxString * _arg0; | |
3643 | PyObject * _obj0 = 0; | |
3644 | char *_kwnames[] = { "str", NULL }; | |
3645 | ||
3646 | self = self; | |
3647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
3648 | return NULL; | |
3649 | { | |
3650 | if (!PyString_Check(_obj0)) { | |
3651 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3652 | return NULL; | |
3653 | } | |
3654 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
3655 | } | |
3656 | { | |
3657 | wxPy_BEGIN_ALLOW_THREADS; | |
3658 | wxLog::AddTraceMask(*_arg0); | |
3659 | ||
3660 | wxPy_END_ALLOW_THREADS; | |
3661 | } Py_INCREF(Py_None); | |
3662 | _resultobj = Py_None; | |
3663 | { | |
3664 | if (_obj0) | |
3665 | delete _arg0; | |
3666 | } | |
3667 | return _resultobj; | |
3668 | } | |
3669 | ||
3670 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3671 | PyObject * _resultobj; | |
3672 | wxString * _arg0; | |
3673 | PyObject * _obj0 = 0; | |
3674 | char *_kwnames[] = { "str", NULL }; | |
3675 | ||
3676 | self = self; | |
3677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
3678 | return NULL; | |
3679 | { | |
3680 | if (!PyString_Check(_obj0)) { | |
3681 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3682 | return NULL; | |
3683 | } | |
3684 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
3685 | } | |
3686 | { | |
3687 | wxPy_BEGIN_ALLOW_THREADS; | |
3688 | wxLog::RemoveTraceMask(*_arg0); | |
3689 | ||
3690 | wxPy_END_ALLOW_THREADS; | |
3691 | } Py_INCREF(Py_None); | |
3692 | _resultobj = Py_None; | |
3693 | { | |
3694 | if (_obj0) | |
3695 | delete _arg0; | |
3696 | } | |
3697 | return _resultobj; | |
3698 | } | |
3699 | ||
3700 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) | |
3701 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3702 | PyObject * _resultobj; | |
3703 | bool _result; | |
3704 | wxLog * _arg0; | |
3705 | PyObject * _argo0 = 0; | |
3706 | char *_kwnames[] = { "self", NULL }; | |
3707 | ||
3708 | self = self; | |
3709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) | |
3710 | return NULL; | |
3711 | if (_argo0) { | |
3712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
3714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
3715 | return NULL; | |
3716 | } | |
3717 | } | |
3718 | { | |
3719 | wxPy_BEGIN_ALLOW_THREADS; | |
3720 | _result = (bool )wxLog_GetVerbose(_arg0); | |
3721 | ||
3722 | wxPy_END_ALLOW_THREADS; | |
3723 | } _resultobj = Py_BuildValue("i",_result); | |
3724 | return _resultobj; | |
3725 | } | |
3726 | ||
3727 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3728 | PyObject * _resultobj; | |
3729 | wxTraceMask * _result; | |
3730 | char *_kwnames[] = { NULL }; | |
3731 | char _ptemp[128]; | |
3732 | ||
3733 | self = self; | |
3734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) | |
3735 | return NULL; | |
3736 | { | |
3737 | wxPy_BEGIN_ALLOW_THREADS; | |
3738 | _result = new wxTraceMask (wxLog::GetTraceMask()); | |
3739 | ||
3740 | wxPy_END_ALLOW_THREADS; | |
3741 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); | |
3742 | _resultobj = Py_BuildValue("s",_ptemp); | |
3743 | return _resultobj; | |
3744 | } | |
3745 | ||
3746 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3747 | PyObject * _resultobj; | |
3748 | bool _result; | |
3749 | char * _arg0; | |
3750 | char *_kwnames[] = { "mask", NULL }; | |
3751 | ||
3752 | self = self; | |
3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_IsAllowedTraceMask",_kwnames,&_arg0)) | |
3754 | return NULL; | |
3755 | { | |
3756 | wxPy_BEGIN_ALLOW_THREADS; | |
3757 | _result = (bool )wxLog::IsAllowedTraceMask(_arg0); | |
3758 | ||
3759 | wxPy_END_ALLOW_THREADS; | |
3760 | } _resultobj = Py_BuildValue("i",_result); | |
3761 | return _resultobj; | |
3762 | } | |
3763 | ||
3764 | static void *SwigwxLogStderrTowxLog(void *ptr) { | |
3765 | wxLogStderr *src; | |
3766 | wxLog *dest; | |
3767 | src = (wxLogStderr *) ptr; | |
3768 | dest = (wxLog *) src; | |
3769 | return (void *) dest; | |
3770 | } | |
3771 | ||
3772 | #define new_wxLogStderr() (new wxLogStderr()) | |
3773 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3774 | PyObject * _resultobj; | |
3775 | wxLogStderr * _result; | |
3776 | char *_kwnames[] = { NULL }; | |
3777 | char _ptemp[128]; | |
3778 | ||
3779 | self = self; | |
3780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) | |
3781 | return NULL; | |
3782 | { | |
3783 | wxPy_BEGIN_ALLOW_THREADS; | |
3784 | _result = (wxLogStderr *)new_wxLogStderr(); | |
3785 | ||
3786 | wxPy_END_ALLOW_THREADS; | |
3787 | } if (_result) { | |
3788 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
3789 | _resultobj = Py_BuildValue("s",_ptemp); | |
3790 | } else { | |
3791 | Py_INCREF(Py_None); | |
3792 | _resultobj = Py_None; | |
3793 | } | |
3794 | return _resultobj; | |
3795 | } | |
3796 | ||
3797 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { | |
3798 | wxLogTextCtrl *src; | |
3799 | wxLog *dest; | |
3800 | src = (wxLogTextCtrl *) ptr; | |
3801 | dest = (wxLog *) src; | |
3802 | return (void *) dest; | |
3803 | } | |
3804 | ||
3805 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
3806 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3807 | PyObject * _resultobj; | |
3808 | wxLogTextCtrl * _result; | |
3809 | wxTextCtrl * _arg0; | |
3810 | PyObject * _argo0 = 0; | |
3811 | char *_kwnames[] = { "pTextCtrl", NULL }; | |
3812 | char _ptemp[128]; | |
3813 | ||
3814 | self = self; | |
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) | |
3816 | return NULL; | |
3817 | if (_argo0) { | |
3818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
3820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
3821 | return NULL; | |
3822 | } | |
3823 | } | |
3824 | { | |
3825 | wxPy_BEGIN_ALLOW_THREADS; | |
3826 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); | |
3827 | ||
3828 | wxPy_END_ALLOW_THREADS; | |
3829 | } if (_result) { | |
3830 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
3831 | _resultobj = Py_BuildValue("s",_ptemp); | |
3832 | } else { | |
3833 | Py_INCREF(Py_None); | |
3834 | _resultobj = Py_None; | |
3835 | } | |
3836 | return _resultobj; | |
3837 | } | |
3838 | ||
3839 | static void *SwigwxLogGuiTowxLog(void *ptr) { | |
3840 | wxLogGui *src; | |
3841 | wxLog *dest; | |
3842 | src = (wxLogGui *) ptr; | |
3843 | dest = (wxLog *) src; | |
3844 | return (void *) dest; | |
3845 | } | |
3846 | ||
3847 | #define new_wxLogGui() (new wxLogGui()) | |
3848 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3849 | PyObject * _resultobj; | |
3850 | wxLogGui * _result; | |
3851 | char *_kwnames[] = { NULL }; | |
3852 | char _ptemp[128]; | |
3853 | ||
3854 | self = self; | |
3855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) | |
3856 | return NULL; | |
3857 | { | |
3858 | wxPy_BEGIN_ALLOW_THREADS; | |
3859 | _result = (wxLogGui *)new_wxLogGui(); | |
3860 | ||
3861 | wxPy_END_ALLOW_THREADS; | |
3862 | } if (_result) { | |
3863 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); | |
3864 | _resultobj = Py_BuildValue("s",_ptemp); | |
3865 | } else { | |
3866 | Py_INCREF(Py_None); | |
3867 | _resultobj = Py_None; | |
3868 | } | |
3869 | return _resultobj; | |
3870 | } | |
3871 | ||
3872 | static void *SwigwxLogWindowTowxLog(void *ptr) { | |
3873 | wxLogWindow *src; | |
3874 | wxLog *dest; | |
3875 | src = (wxLogWindow *) ptr; | |
3876 | dest = (wxLog *) src; | |
3877 | return (void *) dest; | |
3878 | } | |
3879 | ||
3880 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3881 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3882 | PyObject * _resultobj; | |
3883 | wxLogWindow * _result; | |
3884 | wxFrame * _arg0; | |
3885 | char * _arg1; | |
3886 | bool _arg2 = (bool ) TRUE; | |
3887 | bool _arg3 = (bool ) TRUE; | |
3888 | PyObject * _argo0 = 0; | |
3889 | int tempbool2 = (int) TRUE; | |
3890 | int tempbool3 = (int) TRUE; | |
3891 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
3892 | char _ptemp[128]; | |
3893 | ||
3894 | self = self; | |
3895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|ii:new_wxLogWindow",_kwnames,&_argo0,&_arg1,&tempbool2,&tempbool3)) | |
3896 | return NULL; | |
3897 | if (_argo0) { | |
3898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
3900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
3901 | return NULL; | |
3902 | } | |
3903 | } | |
3904 | _arg2 = (bool ) tempbool2; | |
3905 | _arg3 = (bool ) tempbool3; | |
3906 | { | |
3907 | wxPy_BEGIN_ALLOW_THREADS; | |
3908 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,_arg1,_arg2,_arg3); | |
3909 | ||
3910 | wxPy_END_ALLOW_THREADS; | |
3911 | } if (_result) { | |
3912 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
3913 | _resultobj = Py_BuildValue("s",_ptemp); | |
3914 | } else { | |
3915 | Py_INCREF(Py_None); | |
3916 | _resultobj = Py_None; | |
3917 | } | |
3918 | return _resultobj; | |
3919 | } | |
3920 | ||
3921 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3922 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3923 | PyObject * _resultobj; | |
3924 | wxLogWindow * _arg0; | |
3925 | bool _arg1 = (bool ) TRUE; | |
3926 | PyObject * _argo0 = 0; | |
3927 | int tempbool1 = (int) TRUE; | |
3928 | char *_kwnames[] = { "self","bShow", NULL }; | |
3929 | ||
3930 | self = self; | |
3931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) | |
3932 | return NULL; | |
3933 | if (_argo0) { | |
3934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
3936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
3937 | return NULL; | |
3938 | } | |
3939 | } | |
3940 | _arg1 = (bool ) tempbool1; | |
3941 | { | |
3942 | wxPy_BEGIN_ALLOW_THREADS; | |
3943 | wxLogWindow_Show(_arg0,_arg1); | |
3944 | ||
3945 | wxPy_END_ALLOW_THREADS; | |
3946 | } Py_INCREF(Py_None); | |
3947 | _resultobj = Py_None; | |
3948 | return _resultobj; | |
3949 | } | |
3950 | ||
3951 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) | |
3952 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3953 | PyObject * _resultobj; | |
3954 | wxFrame * _result; | |
3955 | wxLogWindow * _arg0; | |
3956 | PyObject * _argo0 = 0; | |
3957 | char *_kwnames[] = { "self", NULL }; | |
3958 | char _ptemp[128]; | |
3959 | ||
3960 | self = self; | |
3961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) | |
3962 | return NULL; | |
3963 | if (_argo0) { | |
3964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
3966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
3967 | return NULL; | |
3968 | } | |
3969 | } | |
3970 | { | |
3971 | wxPy_BEGIN_ALLOW_THREADS; | |
3972 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); | |
3973 | ||
3974 | wxPy_END_ALLOW_THREADS; | |
3975 | } if (_result) { | |
3976 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p"); | |
3977 | _resultobj = Py_BuildValue("s",_ptemp); | |
3978 | } else { | |
3979 | Py_INCREF(Py_None); | |
3980 | _resultobj = Py_None; | |
3981 | } | |
3982 | return _resultobj; | |
3983 | } | |
3984 | ||
3985 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
3986 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3987 | PyObject * _resultobj; | |
3988 | wxLog * _result; | |
3989 | wxLogWindow * _arg0; | |
3990 | PyObject * _argo0 = 0; | |
3991 | char *_kwnames[] = { "self", NULL }; | |
3992 | char _ptemp[128]; | |
3993 | ||
3994 | self = self; | |
3995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) | |
3996 | return NULL; | |
3997 | if (_argo0) { | |
3998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
4000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
4001 | return NULL; | |
4002 | } | |
4003 | } | |
4004 | { | |
4005 | wxPy_BEGIN_ALLOW_THREADS; | |
4006 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); | |
4007 | ||
4008 | wxPy_END_ALLOW_THREADS; | |
4009 | } if (_result) { | |
4010 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4011 | _resultobj = Py_BuildValue("s",_ptemp); | |
4012 | } else { | |
4013 | Py_INCREF(Py_None); | |
4014 | _resultobj = Py_None; | |
4015 | } | |
4016 | return _resultobj; | |
4017 | } | |
4018 | ||
4019 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
4020 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4021 | PyObject * _resultobj; | |
4022 | bool _result; | |
4023 | wxLogWindow * _arg0; | |
4024 | PyObject * _argo0 = 0; | |
4025 | char *_kwnames[] = { "self", NULL }; | |
4026 | ||
4027 | self = self; | |
4028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) | |
4029 | return NULL; | |
4030 | if (_argo0) { | |
4031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
4033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
4034 | return NULL; | |
4035 | } | |
4036 | } | |
4037 | { | |
4038 | wxPy_BEGIN_ALLOW_THREADS; | |
4039 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); | |
4040 | ||
4041 | wxPy_END_ALLOW_THREADS; | |
4042 | } _resultobj = Py_BuildValue("i",_result); | |
4043 | return _resultobj; | |
4044 | } | |
4045 | ||
4046 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
4047 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4048 | PyObject * _resultobj; | |
4049 | wxLogWindow * _arg0; | |
4050 | bool _arg1; | |
4051 | PyObject * _argo0 = 0; | |
4052 | int tempbool1; | |
4053 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
4054 | ||
4055 | self = self; | |
4056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
4057 | return NULL; | |
4058 | if (_argo0) { | |
4059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
4061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
4062 | return NULL; | |
4063 | } | |
4064 | } | |
4065 | _arg1 = (bool ) tempbool1; | |
4066 | { | |
4067 | wxPy_BEGIN_ALLOW_THREADS; | |
4068 | wxLogWindow_PassMessages(_arg0,_arg1); | |
4069 | ||
4070 | wxPy_END_ALLOW_THREADS; | |
4071 | } Py_INCREF(Py_None); | |
4072 | _resultobj = Py_None; | |
4073 | return _resultobj; | |
4074 | } | |
4075 | ||
4076 | #define new_wxLogNull() (new wxLogNull()) | |
4077 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4078 | PyObject * _resultobj; | |
4079 | wxLogNull * _result; | |
4080 | char *_kwnames[] = { NULL }; | |
4081 | char _ptemp[128]; | |
4082 | ||
4083 | self = self; | |
4084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
4085 | return NULL; | |
4086 | { | |
4087 | wxPy_BEGIN_ALLOW_THREADS; | |
4088 | _result = (wxLogNull *)new_wxLogNull(); | |
4089 | ||
4090 | wxPy_END_ALLOW_THREADS; | |
4091 | } if (_result) { | |
4092 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
4093 | _resultobj = Py_BuildValue("s",_ptemp); | |
4094 | } else { | |
4095 | Py_INCREF(Py_None); | |
4096 | _resultobj = Py_None; | |
4097 | } | |
4098 | return _resultobj; | |
4099 | } | |
4100 | ||
4101 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
4102 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4103 | PyObject * _resultobj; | |
4104 | wxLogNull * _arg0; | |
4105 | PyObject * _argo0 = 0; | |
4106 | char *_kwnames[] = { "self", NULL }; | |
4107 | ||
4108 | self = self; | |
4109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
4110 | return NULL; | |
4111 | if (_argo0) { | |
4112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
4114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
4115 | return NULL; | |
4116 | } | |
4117 | } | |
4118 | { | |
4119 | wxPy_BEGIN_ALLOW_THREADS; | |
4120 | delete_wxLogNull(_arg0); | |
4121 | ||
4122 | wxPy_END_ALLOW_THREADS; | |
4123 | } Py_INCREF(Py_None); | |
4124 | _resultobj = Py_None; | |
4125 | return _resultobj; | |
4126 | } | |
4127 | ||
4128 | static PyMethodDef misc2cMethods[] = { | |
4129 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
4130 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
4131 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
4132 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
4133 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
4134 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
4135 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
4136 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
4137 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
4138 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
4139 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
4140 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
4141 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
4142 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
4143 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
4144 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
4145 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
4146 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
4147 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
4148 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
4149 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
4150 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
4151 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
4152 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
4153 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
4154 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
4155 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
4156 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
4157 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
4158 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
4159 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
4160 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
4161 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
4162 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
4163 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
4164 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
4165 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
4166 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
4167 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
4168 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
4169 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
4170 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
4171 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
4172 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
4173 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
4174 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
4175 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
4176 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
4177 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
4178 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
4179 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
4180 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
4181 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
4182 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
4183 | { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
4184 | { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
4185 | { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
4186 | { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
4187 | { "wxFontEnumerator__setSelf", (PyCFunction) _wrap_wxFontEnumerator__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
4188 | { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
4189 | { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
4190 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
4191 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
4192 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
4193 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
4194 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, | |
4195 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
4196 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
4197 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
4198 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
4199 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
4200 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
4201 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
4202 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
4203 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
4204 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
4205 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
4206 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
4207 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
4208 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
4209 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, | |
4210 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
4211 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
4212 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
4213 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
4214 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
4215 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
4216 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
4217 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
4218 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
4219 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
4220 | { "wxDragListItem", (PyCFunction) _wrap_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, | |
4221 | { "wxDragTreeItem", (PyCFunction) _wrap_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
4222 | { "wxDragString", (PyCFunction) _wrap_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
4223 | { "wxDragIcon", (PyCFunction) _wrap_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
4224 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
4225 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
4226 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
4227 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, | |
4228 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
4229 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
4230 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
4231 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
4232 | { "wxSystemSettings_GetSystemMetric", (PyCFunction) _wrap_wxSystemSettings_GetSystemMetric, METH_VARARGS | METH_KEYWORDS }, | |
4233 | { "wxSystemSettings_GetSystemFont", (PyCFunction) _wrap_wxSystemSettings_GetSystemFont, METH_VARARGS | METH_KEYWORDS }, | |
4234 | { "wxSystemSettings_GetSystemColour", (PyCFunction) _wrap_wxSystemSettings_GetSystemColour, METH_VARARGS | METH_KEYWORDS }, | |
4235 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, | |
4236 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
4237 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
4238 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
4239 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
4240 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
4241 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
4242 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
4243 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
4244 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
4245 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
4246 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
4247 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
4248 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, | |
4249 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
4250 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
4251 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
4252 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
4253 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
4254 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
4255 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
4256 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
4257 | { NULL, NULL } | |
4258 | }; | |
4259 | #ifdef __cplusplus | |
4260 | } | |
4261 | #endif | |
4262 | /* | |
4263 | * This table is used by the pointer type-checker | |
4264 | */ | |
4265 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
4266 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
4267 | { "_wxEvent","_class_wxEvent",0}, | |
4268 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
4269 | { "_signed_long","_long",0}, | |
4270 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
4271 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, | |
4272 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, | |
4273 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, | |
4274 | { "_wxPrintQuality","_wxCoord",0}, | |
4275 | { "_wxPrintQuality","_int",0}, | |
4276 | { "_wxPrintQuality","_signed_int",0}, | |
4277 | { "_wxPrintQuality","_unsigned_int",0}, | |
4278 | { "_wxPrintQuality","_wxWindowID",0}, | |
4279 | { "_wxPrintQuality","_uint",0}, | |
4280 | { "_wxPrintQuality","_EBool",0}, | |
4281 | { "_wxPrintQuality","_size_t",0}, | |
4282 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, | |
4283 | { "_class_wxRegionIterator","_wxRegionIterator",0}, | |
4284 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, | |
4285 | { "_class_wxMenuBar","_wxMenuBar",0}, | |
4286 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
4287 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
4288 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
4289 | { "_wxCursor","_class_wxCursor",0}, | |
4290 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, | |
4291 | { "_wxLog","_class_wxLogWindow",SwigwxLogWindowTowxLog}, | |
4292 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, | |
4293 | { "_wxLog","_class_wxLogGui",SwigwxLogGuiTowxLog}, | |
4294 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, | |
4295 | { "_wxLog","_class_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
4296 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
4297 | { "_wxLog","_class_wxLogStderr",SwigwxLogStderrTowxLog}, | |
4298 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, | |
4299 | { "_wxLog","_class_wxLog",0}, | |
4300 | { "_wxMask","_class_wxMask",0}, | |
4301 | { "_wxToolTip","_class_wxToolTip",0}, | |
4302 | { "_wxPen","_class_wxPen",0}, | |
4303 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
4304 | { "_byte","_unsigned_char",0}, | |
4305 | { "_wxDataObject","_class_wxDataObject",0}, | |
4306 | { "_class_wxPyFontEnumerator","_wxPyFontEnumerator",0}, | |
4307 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, | |
4308 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
4309 | { "_long","_unsigned_long",0}, | |
4310 | { "_long","_signed_long",0}, | |
4311 | { "_wxImageList","_class_wxImageList",0}, | |
4312 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, | |
4313 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, | |
4314 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
4315 | { "_class_wxClipboard","_wxClipboard",0}, | |
4316 | { "_wxDC","_class_wxDC",0}, | |
4317 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, | |
4318 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
4319 | { "_size_t","_wxCoord",0}, | |
4320 | { "_size_t","_wxPrintQuality",0}, | |
4321 | { "_size_t","_unsigned_int",0}, | |
4322 | { "_size_t","_int",0}, | |
4323 | { "_size_t","_wxWindowID",0}, | |
4324 | { "_size_t","_uint",0}, | |
4325 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
4326 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, | |
4327 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, | |
4328 | { "_wxLogGui","_class_wxLogGui",0}, | |
4329 | { "_class_wxMenuItem","_wxMenuItem",0}, | |
4330 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
4331 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
4332 | { "_class_wxPostScriptDC","_wxPostScriptDC",0}, | |
4333 | { "_wxPanel","_class_wxPanel",0}, | |
4334 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
4335 | { "_wxPyEvent","_class_wxPyEvent",0}, | |
4336 | { "_class_wxMask","_wxMask",0}, | |
4337 | { "_wxTextDataObject","_class_wxTextDataObject",0}, | |
4338 | { "_class_wxKeyEvent","_wxKeyEvent",0}, | |
4339 | { "_class_wxToolTip","_wxToolTip",0}, | |
4340 | { "_wxColour","_class_wxColour",0}, | |
4341 | { "_class_wxDialog","_wxDialog",0}, | |
4342 | { "_wxBusyCursor","_class_wxBusyCursor",0}, | |
4343 | { "_class_wxFileDataObject","_wxFileDataObject",0}, | |
4344 | { "_wxIdleEvent","_class_wxIdleEvent",0}, | |
4345 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
4346 | { "_class_wxDataObject","_wxDataObject",0}, | |
4347 | { "_wxCaret","_class_wxCaret",0}, | |
4348 | { "_wxBrush","_class_wxBrush",0}, | |
4349 | { "_wxDataFormat","_class_wxDataFormat",0}, | |
4350 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
4351 | { "_wxShowEvent","_class_wxShowEvent",0}, | |
4352 | { "_uint","_wxCoord",0}, | |
4353 | { "_uint","_wxPrintQuality",0}, | |
4354 | { "_uint","_size_t",0}, | |
4355 | { "_uint","_unsigned_int",0}, | |
4356 | { "_uint","_int",0}, | |
4357 | { "_uint","_wxWindowID",0}, | |
4358 | { "_wxChar","_char",0}, | |
4359 | { "_wxPyValidator","_class_wxPyValidator",0}, | |
4360 | { "_class_wxEvent","_wxEvent",0}, | |
4361 | { "_wxRect","_class_wxRect",0}, | |
4362 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
4363 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
4364 | { "_class_wxLogWindow","_wxLogWindow",0}, | |
4365 | { "_wxPoint","_class_wxPoint",0}, | |
4366 | { "_char","_wxChar",0}, | |
4367 | { "_wxBitmap","_class_wxBitmap",0}, | |
4368 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
4369 | { "_wxTimerEvent","_class_wxTimerEvent",0}, | |
4370 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
4371 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
4372 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, | |
4373 | { "_class_wxValidator","_wxValidator",0}, | |
4374 | { "_class_wxPyEvent","_wxPyEvent",0}, | |
4375 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
4376 | { "_class_wxBusyCursor","_wxBusyCursor",0}, | |
4377 | { "_wxDropTarget","_class_wxDropTarget",0}, | |
4378 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
4379 | { "_EBool","_wxCoord",0}, | |
4380 | { "_EBool","_wxPrintQuality",0}, | |
4381 | { "_EBool","_signed_int",0}, | |
4382 | { "_EBool","_int",0}, | |
4383 | { "_EBool","_wxWindowID",0}, | |
4384 | { "_class_wxRegion","_wxRegion",0}, | |
4385 | { "_class_wxDataFormat","_wxDataFormat",0}, | |
4386 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, | |
4387 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, | |
4388 | { "_wxFont","_class_wxFont",0}, | |
4389 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, | |
4390 | { "_wxCloseEvent","_class_wxCloseEvent",0}, | |
4391 | { "_unsigned_long","_long",0}, | |
4392 | { "_class_wxRect","_wxRect",0}, | |
4393 | { "_class_wxDC","_wxDC",0}, | |
4394 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, | |
4395 | { "_wxGenericDragImage","_class_wxGenericDragImage",0}, | |
4396 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, | |
4397 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, | |
4398 | { "_wxLogTextCtrl","_class_wxLogTextCtrl",0}, | |
4399 | { "_wxFocusEvent","_class_wxFocusEvent",0}, | |
4400 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
4401 | { "_class_wxTimerEvent","_wxTimerEvent",0}, | |
4402 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
4403 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
4404 | { "_class_wxPanel","_wxPanel",0}, | |
4405 | { "_signed_int","_wxCoord",0}, | |
4406 | { "_signed_int","_wxPrintQuality",0}, | |
4407 | { "_signed_int","_EBool",0}, | |
4408 | { "_signed_int","_wxWindowID",0}, | |
4409 | { "_signed_int","_int",0}, | |
4410 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
4411 | { "_class_wxTextDataObject","_wxTextDataObject",0}, | |
4412 | { "_wxMenu","_class_wxMenu",0}, | |
4413 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
4414 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
4415 | { "_WXTYPE","_short",0}, | |
4416 | { "_WXTYPE","_signed_short",0}, | |
4417 | { "_WXTYPE","_unsigned_short",0}, | |
4418 | { "_class_wxDropTarget","_wxDropTarget",0}, | |
4419 | { "_class_wxCaret","_wxCaret",0}, | |
4420 | { "_class_wxBrush","_wxBrush",0}, | |
4421 | { "_wxTipProvider","_class_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
4422 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
4423 | { "_wxTipProvider","_class_wxTipProvider",0}, | |
4424 | { "_unsigned_short","_WXTYPE",0}, | |
4425 | { "_unsigned_short","_short",0}, | |
4426 | { "_class_wxWindow","_wxWindow",0}, | |
4427 | { "_class_wxLogStderr","_wxLogStderr",0}, | |
4428 | { "_class_wxFont","_wxFont",0}, | |
4429 | { "_wxClipboard","_class_wxClipboard",0}, | |
4430 | { "_class_wxPyValidator","_wxPyValidator",0}, | |
4431 | { "_class_wxCloseEvent","_wxCloseEvent",0}, | |
4432 | { "_wxBusyInfo","_class_wxBusyInfo",0}, | |
4433 | { "_class_wxMenuEvent","_wxMenuEvent",0}, | |
4434 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, | |
4435 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, | |
4436 | { "_wxClientDC","_class_wxClientDC",0}, | |
4437 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
4438 | { "_class_wxGenericDragImage","_wxGenericDragImage",0}, | |
4439 | { "_class_wxPoint","_wxPoint",0}, | |
4440 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
4441 | { "_signed_short","_WXTYPE",0}, | |
4442 | { "_signed_short","_short",0}, | |
4443 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
4444 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, | |
4445 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
4446 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
4447 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
4448 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
4449 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
4450 | { "_class_wxCursor","_wxCursor",0}, | |
4451 | { "_wxPostScriptDC","_class_wxPostScriptDC",0}, | |
4452 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, | |
4453 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, | |
4454 | { "_class_wxLog","_class_wxLogWindow",SwigwxLogWindowTowxLog}, | |
4455 | { "_class_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, | |
4456 | { "_class_wxLog","_class_wxLogGui",SwigwxLogGuiTowxLog}, | |
4457 | { "_class_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, | |
4458 | { "_class_wxLog","_class_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
4459 | { "_class_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
4460 | { "_class_wxLog","_class_wxLogStderr",SwigwxLogStderrTowxLog}, | |
4461 | { "_class_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, | |
4462 | { "_class_wxLog","_wxLog",0}, | |
4463 | { "_unsigned_char","_byte",0}, | |
4464 | { "_class_wxMenu","_wxMenu",0}, | |
4465 | { "_unsigned_int","_wxCoord",0}, | |
4466 | { "_unsigned_int","_wxPrintQuality",0}, | |
4467 | { "_unsigned_int","_size_t",0}, | |
4468 | { "_unsigned_int","_uint",0}, | |
4469 | { "_unsigned_int","_wxWindowID",0}, | |
4470 | { "_unsigned_int","_int",0}, | |
4471 | { "_wxIcon","_class_wxIcon",0}, | |
4472 | { "_wxDialog","_class_wxDialog",0}, | |
4473 | { "_class_wxPen","_wxPen",0}, | |
4474 | { "_short","_WXTYPE",0}, | |
4475 | { "_short","_unsigned_short",0}, | |
4476 | { "_short","_signed_short",0}, | |
4477 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, | |
4478 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
4479 | { "_class_wxScrollEvent","_wxScrollEvent",0}, | |
4480 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
4481 | { "_class_wxImageList","_wxImageList",0}, | |
4482 | { "_wxPyTipProvider","_class_wxPyTipProvider",0}, | |
4483 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, | |
4484 | { "_wxWindowID","_wxCoord",0}, | |
4485 | { "_wxWindowID","_wxPrintQuality",0}, | |
4486 | { "_wxWindowID","_size_t",0}, | |
4487 | { "_wxWindowID","_EBool",0}, | |
4488 | { "_wxWindowID","_uint",0}, | |
4489 | { "_wxWindowID","_int",0}, | |
4490 | { "_wxWindowID","_signed_int",0}, | |
4491 | { "_wxWindowID","_unsigned_int",0}, | |
4492 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, | |
4493 | { "_int","_wxCoord",0}, | |
4494 | { "_int","_wxPrintQuality",0}, | |
4495 | { "_int","_size_t",0}, | |
4496 | { "_int","_EBool",0}, | |
4497 | { "_int","_uint",0}, | |
4498 | { "_int","_wxWindowID",0}, | |
4499 | { "_int","_unsigned_int",0}, | |
4500 | { "_int","_signed_int",0}, | |
4501 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
4502 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, | |
4503 | { "_wxLogWindow","_class_wxLogWindow",0}, | |
4504 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
4505 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, | |
4506 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, | |
4507 | { "_wxLogNull","_class_wxLogNull",0}, | |
4508 | { "_wxSize","_class_wxSize",0}, | |
4509 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
4510 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, | |
4511 | { "_class_wxLogTextCtrl","_wxLogTextCtrl",0}, | |
4512 | { "_class_wxLogGui","_wxLogGui",0}, | |
4513 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
4514 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
4515 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, | |
4516 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, | |
4517 | { "_wxValidator","_class_wxValidator",0}, | |
4518 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
4519 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
4520 | { "_class_wxIcon","_wxIcon",0}, | |
4521 | { "_class_wxColour","_wxColour",0}, | |
4522 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
4523 | { "_wxPalette","_class_wxPalette",0}, | |
4524 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
4525 | { "_wxCoord","_int",0}, | |
4526 | { "_wxCoord","_signed_int",0}, | |
4527 | { "_wxCoord","_unsigned_int",0}, | |
4528 | { "_wxCoord","_wxWindowID",0}, | |
4529 | { "_wxCoord","_uint",0}, | |
4530 | { "_wxCoord","_EBool",0}, | |
4531 | { "_wxCoord","_size_t",0}, | |
4532 | { "_wxCoord","_wxPrintQuality",0}, | |
4533 | { "_wxEraseEvent","_class_wxEraseEvent",0}, | |
4534 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, | |
4535 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, | |
4536 | { "_class_wxTipProvider","_class_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
4537 | { "_class_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
4538 | { "_class_wxTipProvider","_wxTipProvider",0}, | |
4539 | { "_wxRegion","_class_wxRegion",0}, | |
4540 | { "_class_wxShowEvent","_wxShowEvent",0}, | |
4541 | { "_class_wxPyTipProvider","_wxPyTipProvider",0}, | |
4542 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, | |
4543 | { "_wxActivateEvent","_class_wxActivateEvent",0}, | |
4544 | { "_class_wxBusyInfo","_wxBusyInfo",0}, | |
4545 | { "_class_wxCommandEvent","_wxCommandEvent",0}, | |
4546 | { "_class_wxClientDC","_wxClientDC",0}, | |
4547 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
4548 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, | |
4549 | { "_class_wxLogNull","_wxLogNull",0}, | |
4550 | { "_class_wxSize","_wxSize",0}, | |
4551 | { "_class_wxBitmap","_wxBitmap",0}, | |
4552 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
4553 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, | |
4554 | { "_wxMenuBar","_class_wxMenuBar",0}, | |
4555 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
4556 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
4557 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
4558 | { "_wxKeyEvent","_class_wxKeyEvent",0}, | |
4559 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
4560 | { "_class_wxPalette","_wxPalette",0}, | |
4561 | { "_wxFileDataObject","_class_wxFileDataObject",0}, | |
4562 | { "_class_wxEraseEvent","_wxEraseEvent",0}, | |
4563 | { "_wxPyFontEnumerator","_class_wxPyFontEnumerator",0}, | |
4564 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, | |
4565 | { "_wxWindow","_class_wxWindow",0}, | |
4566 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, | |
4567 | { "_wxLogStderr","_class_wxLogStderr",0}, | |
4568 | {0,0,0}}; | |
4569 | ||
4570 | static PyObject *SWIG_globals; | |
4571 | #ifdef __cplusplus | |
4572 | extern "C" | |
4573 | #endif | |
4574 | SWIGEXPORT(void) initmisc2c() { | |
4575 | PyObject *m, *d; | |
4576 | SWIG_globals = SWIG_newvarlink(); | |
4577 | m = Py_InitModule("misc2c", misc2cMethods); | |
4578 | d = PyModule_GetDict(m); | |
4579 | PyDict_SetItemString(d,"wxSYS_WHITE_BRUSH", PyInt_FromLong((long) wxSYS_WHITE_BRUSH)); | |
4580 | PyDict_SetItemString(d,"wxSYS_LTGRAY_BRUSH", PyInt_FromLong((long) wxSYS_LTGRAY_BRUSH)); | |
4581 | PyDict_SetItemString(d,"wxSYS_GRAY_BRUSH", PyInt_FromLong((long) wxSYS_GRAY_BRUSH)); | |
4582 | PyDict_SetItemString(d,"wxSYS_DKGRAY_BRUSH", PyInt_FromLong((long) wxSYS_DKGRAY_BRUSH)); | |
4583 | PyDict_SetItemString(d,"wxSYS_BLACK_BRUSH", PyInt_FromLong((long) wxSYS_BLACK_BRUSH)); | |
4584 | PyDict_SetItemString(d,"wxSYS_NULL_BRUSH", PyInt_FromLong((long) wxSYS_NULL_BRUSH)); | |
4585 | PyDict_SetItemString(d,"wxSYS_HOLLOW_BRUSH", PyInt_FromLong((long) wxSYS_HOLLOW_BRUSH)); | |
4586 | PyDict_SetItemString(d,"wxSYS_WHITE_PEN", PyInt_FromLong((long) wxSYS_WHITE_PEN)); | |
4587 | PyDict_SetItemString(d,"wxSYS_BLACK_PEN", PyInt_FromLong((long) wxSYS_BLACK_PEN)); | |
4588 | PyDict_SetItemString(d,"wxSYS_NULL_PEN", PyInt_FromLong((long) wxSYS_NULL_PEN)); | |
4589 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); | |
4590 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
4591 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
4592 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
4593 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
4594 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
4595 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
4596 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
4597 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
4598 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
4599 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); | |
4600 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
4601 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
4602 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
4603 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
4604 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
4605 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
4606 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
4607 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
4608 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
4609 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
4610 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
4611 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
4612 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
4613 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); | |
4614 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); | |
4615 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
4616 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
4617 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
4618 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); | |
4619 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
4620 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
4621 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
4622 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); | |
4623 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); | |
4624 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); | |
4625 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
4626 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
4627 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); | |
4628 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); | |
4629 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
4630 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
4631 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
4632 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
4633 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
4634 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
4635 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
4636 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
4637 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
4638 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
4639 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
4640 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
4641 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
4642 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
4643 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
4644 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
4645 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
4646 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
4647 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
4648 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
4649 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
4650 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
4651 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
4652 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
4653 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
4654 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
4655 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
4656 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
4657 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
4658 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
4659 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
4660 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
4661 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
4662 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
4663 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
4664 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
4665 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); | |
4666 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
4667 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
4668 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
4669 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
4670 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
4671 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
4672 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
4673 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
4674 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
4675 | { | |
4676 | int i; | |
4677 | for (i = 0; _swig_mapping[i].n1; i++) | |
4678 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
4679 | } | |
4680 | } |