4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 5)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a,b) __declspec(dllexport) a b
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a,b) a _export b
32 # define SWIGEXPORT(a,b) a b
36 # define SWIGEXPORT(a,b) a b
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 void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
47 extern PyObject
*SWIG_newvarlink(void);
52 #define SWIG_init initmisc2c
54 #define SWIG_name "misc2c"
57 #include <wx/resource.h>
58 #include <wx/tooltip.h>
60 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
64 } else if (target
== Py_None
) {
68 if (!PyList_Check(target
)) {
70 target
= PyList_New(0);
71 PyList_Append(target
, o2
);
74 PyList_Append(target
,o
);
80 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
86 } else if (target
== Py_None
) {
90 if (!PyTuple_Check(target
)) {
92 target
= PyTuple_New(1);
93 PyTuple_SetItem(target
, 0, o2
);
96 PyTuple_SetItem(o3
, 0, o
);
99 target
= PySequence_Concat(o2
, o3
);
107 extern byte
* byte_LIST_helper(PyObject
* source
);
108 extern int* int_LIST_helper(PyObject
* source
);
109 extern long* long_LIST_helper(PyObject
* source
);
110 extern char** string_LIST_helper(PyObject
* source
);
111 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
112 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
113 extern wxString
* wxString_LIST_helper(PyObject
* source
);
114 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
117 static char* wxStringErrorMsg
= "string type is required for parameter";
119 void wxToolTip_Enable(bool flag
) {
120 wxToolTip::Enable(flag
);
123 void wxToolTip_SetDelay(long milliseconds
) {
124 wxToolTip::SetDelay(milliseconds
);
126 static PyObject
*_wrap_wxFindWindowByLabel(PyObject
*self
, PyObject
*args
) {
127 PyObject
* _resultobj
;
130 wxWindow
* _arg1
= NULL
;
131 PyObject
* _obj0
= 0;
136 if(!PyArg_ParseTuple(args
,"O|s:wxFindWindowByLabel",&_obj0
,&_argc1
))
139 if (!PyString_Check(_obj0
)) {
140 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
143 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
146 if (SWIG_GetPtr(_argc1
,(void **) &_arg1
,"_wxWindow_p")) {
147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p.");
152 wxPy_BEGIN_ALLOW_THREADS
;
153 _result
= (wxWindow
*)wxFindWindowByLabel(*_arg0
,_arg1
);
155 wxPy_END_ALLOW_THREADS
;
156 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
157 _resultobj
= Py_BuildValue("s",_ptemp
);
165 static PyObject
*_wrap_wxFindWindowByName(PyObject
*self
, PyObject
*args
) {
166 PyObject
* _resultobj
;
169 wxWindow
* _arg1
= NULL
;
170 PyObject
* _obj0
= 0;
175 if(!PyArg_ParseTuple(args
,"O|s:wxFindWindowByName",&_obj0
,&_argc1
))
178 if (!PyString_Check(_obj0
)) {
179 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
182 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
185 if (SWIG_GetPtr(_argc1
,(void **) &_arg1
,"_wxWindow_p")) {
186 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p.");
191 wxPy_BEGIN_ALLOW_THREADS
;
192 _result
= (wxWindow
*)wxFindWindowByName(*_arg0
,_arg1
);
194 wxPy_END_ALLOW_THREADS
;
195 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
196 _resultobj
= Py_BuildValue("s",_ptemp
);
204 static PyObject
*_wrap_wxToolTip_Enable(PyObject
*self
, PyObject
*args
) {
205 PyObject
* _resultobj
;
210 if(!PyArg_ParseTuple(args
,"i:wxToolTip_Enable",&tempbool0
))
212 _arg0
= (bool ) tempbool0
;
214 wxPy_BEGIN_ALLOW_THREADS
;
215 wxToolTip_Enable(_arg0
);
217 wxPy_END_ALLOW_THREADS
;
218 } Py_INCREF(Py_None
);
219 _resultobj
= Py_None
;
223 static PyObject
*_wrap_wxToolTip_SetDelay(PyObject
*self
, PyObject
*args
) {
224 PyObject
* _resultobj
;
228 if(!PyArg_ParseTuple(args
,"l:wxToolTip_SetDelay",&_arg0
))
231 wxPy_BEGIN_ALLOW_THREADS
;
232 wxToolTip_SetDelay(_arg0
);
234 wxPy_END_ALLOW_THREADS
;
235 } Py_INCREF(Py_None
);
236 _resultobj
= Py_None
;
240 #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0))
241 static PyObject
*_wrap_new_wxToolTip(PyObject
*self
, PyObject
*args
) {
242 PyObject
* _resultobj
;
245 PyObject
* _obj0
= 0;
249 if(!PyArg_ParseTuple(args
,"O:new_wxToolTip",&_obj0
))
252 if (!PyString_Check(_obj0
)) {
253 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
256 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
259 wxPy_BEGIN_ALLOW_THREADS
;
260 _result
= (wxToolTip
*)new_wxToolTip(*_arg0
);
262 wxPy_END_ALLOW_THREADS
;
263 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxToolTip_p");
264 _resultobj
= Py_BuildValue("s",_ptemp
);
272 #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0))
273 static PyObject
*_wrap_wxToolTip_SetTip(PyObject
*self
, PyObject
*args
) {
274 PyObject
* _resultobj
;
278 PyObject
* _obj1
= 0;
281 if(!PyArg_ParseTuple(args
,"sO:wxToolTip_SetTip",&_argc0
,&_obj1
))
284 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxToolTip_p")) {
285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p.");
290 if (!PyString_Check(_obj1
)) {
291 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
294 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
297 wxPy_BEGIN_ALLOW_THREADS
;
298 wxToolTip_SetTip(_arg0
,*_arg1
);
300 wxPy_END_ALLOW_THREADS
;
301 } Py_INCREF(Py_None
);
302 _resultobj
= Py_None
;
310 #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip())
311 static PyObject
*_wrap_wxToolTip_GetTip(PyObject
*self
, PyObject
*args
) {
312 PyObject
* _resultobj
;
318 if(!PyArg_ParseTuple(args
,"s:wxToolTip_GetTip",&_argc0
))
321 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxToolTip_p")) {
322 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p.");
327 wxPy_BEGIN_ALLOW_THREADS
;
328 _result
= new wxString (wxToolTip_GetTip(_arg0
));
330 wxPy_END_ALLOW_THREADS
;
332 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
340 #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow())
341 static PyObject
*_wrap_wxToolTip_GetWindow(PyObject
*self
, PyObject
*args
) {
342 PyObject
* _resultobj
;
349 if(!PyArg_ParseTuple(args
,"s:wxToolTip_GetWindow",&_argc0
))
352 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxToolTip_p")) {
353 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p.");
358 wxPy_BEGIN_ALLOW_THREADS
;
359 _result
= (wxWindow
*)wxToolTip_GetWindow(_arg0
);
361 wxPy_END_ALLOW_THREADS
;
362 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxWindow_p");
363 _resultobj
= Py_BuildValue("s",_ptemp
);
367 static PyMethodDef misc2cMethods
[] = {
368 { "wxToolTip_GetWindow", _wrap_wxToolTip_GetWindow
, 1 },
369 { "wxToolTip_GetTip", _wrap_wxToolTip_GetTip
, 1 },
370 { "wxToolTip_SetTip", _wrap_wxToolTip_SetTip
, 1 },
371 { "new_wxToolTip", _wrap_new_wxToolTip
, 1 },
372 { "wxToolTip_SetDelay", _wrap_wxToolTip_SetDelay
, 1 },
373 { "wxToolTip_Enable", _wrap_wxToolTip_Enable
, 1 },
374 { "wxFindWindowByName", _wrap_wxFindWindowByName
, 1 },
375 { "wxFindWindowByLabel", _wrap_wxFindWindowByLabel
, 1 },
378 static PyObject
*SWIG_globals
;
382 SWIGEXPORT(void,initmisc2c
)() {
384 SWIG_globals
= SWIG_newvarlink();
385 m
= Py_InitModule("misc2c", misc2cMethods
);
386 d
= PyModule_GetDict(m
);
388 * These are the pointer type-equivalency mappings.
389 * (Used by the SWIG pointer type-checker).
391 SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0);
392 SWIG_RegisterMapping("_signed_long","_long",0);
393 SWIG_RegisterMapping("_wxPrintQuality","_int",0);
394 SWIG_RegisterMapping("_wxPrintQuality","_signed_int",0);
395 SWIG_RegisterMapping("_wxPrintQuality","_unsigned_int",0);
396 SWIG_RegisterMapping("_wxPrintQuality","_wxWindowID",0);
397 SWIG_RegisterMapping("_wxPrintQuality","_uint",0);
398 SWIG_RegisterMapping("_wxPrintQuality","_EBool",0);
399 SWIG_RegisterMapping("_wxPrintQuality","_size_t",0);
400 SWIG_RegisterMapping("_class_wxRegionIterator","_wxRegionIterator",0);
401 SWIG_RegisterMapping("_class_wxMenuBar","_wxMenuBar",0);
402 SWIG_RegisterMapping("_class_wxEvtHandler","_wxEvtHandler",0);
403 SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0);
404 SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0);
405 SWIG_RegisterMapping("_wxMask","_class_wxMask",0);
406 SWIG_RegisterMapping("_wxToolTip","_class_wxToolTip",0);
407 SWIG_RegisterMapping("_wxPyMenu","_class_wxPyMenu",0);
408 SWIG_RegisterMapping("_wxPen","_class_wxPen",0);
409 SWIG_RegisterMapping("_byte","_unsigned_char",0);
410 SWIG_RegisterMapping("_long","_wxDash",0);
411 SWIG_RegisterMapping("_long","_unsigned_long",0);
412 SWIG_RegisterMapping("_long","_signed_long",0);
413 SWIG_RegisterMapping("_wxImageList","_class_wxImageList",0);
414 SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0);
415 SWIG_RegisterMapping("_wxDC","_class_wxDC",0);
416 SWIG_RegisterMapping("_size_t","_wxPrintQuality",0);
417 SWIG_RegisterMapping("_size_t","_unsigned_int",0);
418 SWIG_RegisterMapping("_size_t","_int",0);
419 SWIG_RegisterMapping("_size_t","_wxWindowID",0);
420 SWIG_RegisterMapping("_size_t","_uint",0);
421 SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0);
422 SWIG_RegisterMapping("_wxPrinterDC","_class_wxPrinterDC",0);
423 SWIG_RegisterMapping("_class_wxMenuItem","_wxMenuItem",0);
424 SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0);
425 SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
426 SWIG_RegisterMapping("_class_wxToolTip","_wxToolTip",0);
427 SWIG_RegisterMapping("_wxColour","_class_wxColour",0);
428 SWIG_RegisterMapping("_class_wxDialog","_wxDialog",0);
429 SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0);
430 SWIG_RegisterMapping("_uint","_wxPrintQuality",0);
431 SWIG_RegisterMapping("_uint","_size_t",0);
432 SWIG_RegisterMapping("_uint","_unsigned_int",0);
433 SWIG_RegisterMapping("_uint","_int",0);
434 SWIG_RegisterMapping("_uint","_wxWindowID",0);
435 SWIG_RegisterMapping("_wxRect","_class_wxRect",0);
436 SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0);
437 SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0);
438 SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0);
439 SWIG_RegisterMapping("_wxWindowDC","_class_wxWindowDC",0);
440 SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
441 SWIG_RegisterMapping("_EBool","_wxPrintQuality",0);
442 SWIG_RegisterMapping("_EBool","_signed_int",0);
443 SWIG_RegisterMapping("_EBool","_int",0);
444 SWIG_RegisterMapping("_EBool","_wxWindowID",0);
445 SWIG_RegisterMapping("_class_wxRegion","_wxRegion",0);
446 SWIG_RegisterMapping("_wxFont","_class_wxFont",0);
447 SWIG_RegisterMapping("_unsigned_long","_wxDash",0);
448 SWIG_RegisterMapping("_unsigned_long","_long",0);
449 SWIG_RegisterMapping("_class_wxRect","_wxRect",0);
450 SWIG_RegisterMapping("_class_wxDC","_wxDC",0);
451 SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0);
452 SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0);
453 SWIG_RegisterMapping("_class_wxPanel","_wxPanel",0);
454 SWIG_RegisterMapping("_signed_int","_wxPrintQuality",0);
455 SWIG_RegisterMapping("_signed_int","_EBool",0);
456 SWIG_RegisterMapping("_signed_int","_wxWindowID",0);
457 SWIG_RegisterMapping("_signed_int","_int",0);
458 SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0);
459 SWIG_RegisterMapping("_wxMetaFileDC","_class_wxMetaFileDC",0);
460 SWIG_RegisterMapping("_wxMenu","_class_wxMenu",0);
461 SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0);
462 SWIG_RegisterMapping("_WXTYPE","_short",0);
463 SWIG_RegisterMapping("_WXTYPE","_signed_short",0);
464 SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0);
465 SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0);
466 SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0);
467 SWIG_RegisterMapping("_unsigned_short","_short",0);
468 SWIG_RegisterMapping("_class_wxWindow","_wxWindow",0);
469 SWIG_RegisterMapping("_class_wxFont","_wxFont",0);
470 SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0);
471 SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0);
472 SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0);
473 SWIG_RegisterMapping("_signed_short","_WXTYPE",0);
474 SWIG_RegisterMapping("_signed_short","_short",0);
475 SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0);
476 SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0);
477 SWIG_RegisterMapping("_class_wxWindowDC","_wxWindowDC",0);
478 SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0);
479 SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0);
480 SWIG_RegisterMapping("_wxScrolledWindow","_class_wxScrolledWindow",0);
481 SWIG_RegisterMapping("_unsigned_char","_byte",0);
482 SWIG_RegisterMapping("_class_wxMetaFileDC","_wxMetaFileDC",0);
483 SWIG_RegisterMapping("_class_wxMenu","_wxMenu",0);
484 SWIG_RegisterMapping("_unsigned_int","_wxPrintQuality",0);
485 SWIG_RegisterMapping("_unsigned_int","_size_t",0);
486 SWIG_RegisterMapping("_unsigned_int","_uint",0);
487 SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0);
488 SWIG_RegisterMapping("_unsigned_int","_int",0);
489 SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0);
490 SWIG_RegisterMapping("_wxDialog","_class_wxDialog",0);
491 SWIG_RegisterMapping("_class_wxPyMenu","_wxPyMenu",0);
492 SWIG_RegisterMapping("_class_wxPen","_wxPen",0);
493 SWIG_RegisterMapping("_short","_WXTYPE",0);
494 SWIG_RegisterMapping("_short","_unsigned_short",0);
495 SWIG_RegisterMapping("_short","_signed_short",0);
496 SWIG_RegisterMapping("_class_wxImageList","_wxImageList",0);
497 SWIG_RegisterMapping("_wxWindowID","_wxPrintQuality",0);
498 SWIG_RegisterMapping("_wxWindowID","_size_t",0);
499 SWIG_RegisterMapping("_wxWindowID","_EBool",0);
500 SWIG_RegisterMapping("_wxWindowID","_uint",0);
501 SWIG_RegisterMapping("_wxWindowID","_int",0);
502 SWIG_RegisterMapping("_wxWindowID","_signed_int",0);
503 SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0);
504 SWIG_RegisterMapping("_int","_wxPrintQuality",0);
505 SWIG_RegisterMapping("_int","_size_t",0);
506 SWIG_RegisterMapping("_int","_EBool",0);
507 SWIG_RegisterMapping("_int","_uint",0);
508 SWIG_RegisterMapping("_int","_wxWindowID",0);
509 SWIG_RegisterMapping("_int","_unsigned_int",0);
510 SWIG_RegisterMapping("_int","_signed_int",0);
511 SWIG_RegisterMapping("_wxSize","_class_wxSize",0);
512 SWIG_RegisterMapping("_wxRegionIterator","_class_wxRegionIterator",0);
513 SWIG_RegisterMapping("_class_wxPrinterDC","_wxPrinterDC",0);
514 SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0);
515 SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0);
516 SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0);
517 SWIG_RegisterMapping("_class_wxColour","_wxColour",0);
518 SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0);
519 SWIG_RegisterMapping("_wxPalette","_class_wxPalette",0);
520 SWIG_RegisterMapping("_wxRegion","_class_wxRegion",0);
521 SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0);
522 SWIG_RegisterMapping("_class_wxSize","_wxSize",0);
523 SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0);
524 SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0);
525 SWIG_RegisterMapping("_wxMenuBar","_class_wxMenuBar",0);
526 SWIG_RegisterMapping("_wxEvtHandler","_class_wxEvtHandler",0);
527 SWIG_RegisterMapping("_wxMenuItem","_class_wxMenuItem",0);
528 SWIG_RegisterMapping("_wxDash","_unsigned_long",0);
529 SWIG_RegisterMapping("_wxDash","_long",0);
530 SWIG_RegisterMapping("_class_wxScrolledWindow","_wxScrolledWindow",0);
531 SWIG_RegisterMapping("_class_wxPalette","_wxPalette",0);
532 SWIG_RegisterMapping("_wxWindow","_class_wxWindow",0);