/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.20
+ * Version 1.3.22
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
#include "Python.h"
+#include <limits.h>
+#include <float.h>
+
+#ifdef __cplusplus
+#define SWIG_STATIC_INLINE static inline
+#else
+#define SWIG_STATIC_INLINE static
+#endif
+
+SWIG_STATIC_INLINE long
+SPyObj_AsLong(PyObject * obj)
+{
+ return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
+}
+
+SWIG_STATIC_INLINE unsigned long
+SPyObj_AsUnsignedLong(PyObject * obj)
+{
+ if (PyLong_Check(obj)) {
+ return PyLong_AsUnsignedLong(obj);
+ } else {
+ long i = PyInt_AsLong(obj);
+ if ( !PyErr_Occurred() && (i < 0)) {
+ PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
+ }
+ return i;
+ }
+}
+
+#if !defined(_MSC_VER)
+SWIG_STATIC_INLINE PyObject*
+SPyObj_FromLongLong(long long value)
+{
+ return (value > (long)(LONG_MAX)) ?
+ PyLong_FromLongLong(value) : PyInt_FromLong((long)value);
+}
+#endif
+
+SWIG_STATIC_INLINE PyObject*
+SPyObj_FromUnsignedLong(unsigned long value)
+{
+ return (value > (unsigned long)(LONG_MAX)) ?
+ PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
+}
+
+#if !defined(_MSC_VER)
+SWIG_STATIC_INLINE PyObject*
+SPyObj_FromUnsignedLongLong(unsigned long long value)
+{
+ return (value > (unsigned long long)(LONG_MAX)) ?
+ PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)value);
+}
+#endif
+
+SWIG_STATIC_INLINE long
+SPyObj_AsLongInRange(PyObject * obj, long min_value, long max_value)
+{
+ long value = SPyObj_AsLong(obj);
+ if (!PyErr_Occurred()) {
+ if (value < min_value) {
+ PyErr_SetString(PyExc_OverflowError,"value is smaller than type minimum");
+ } else if (value > max_value) {
+ PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum");
+ }
+ }
+ return value;
+}
+
+SWIG_STATIC_INLINE unsigned long
+SPyObj_AsUnsignedLongInRange(PyObject *obj, unsigned long max_value)
+{
+ unsigned long value = SPyObj_AsUnsignedLong(obj);
+ if (!PyErr_Occurred()) {
+ if (value > max_value) {
+ PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum");
+ }
+ }
+ return value;
+}
+
+SWIG_STATIC_INLINE signed char
+SPyObj_AsSignedChar(PyObject *obj) {
+ return (signed char)SPyObj_AsLongInRange(obj, SCHAR_MIN, SCHAR_MAX);
+}
+
+SWIG_STATIC_INLINE short
+SPyObj_AsShort(PyObject *obj) {
+ return (short)SPyObj_AsLongInRange(obj, SHRT_MIN, SHRT_MAX);
+}
+
+SWIG_STATIC_INLINE int
+SPyObj_AsInt(PyObject *obj) {
+ return SPyObj_AsLongInRange(obj, INT_MIN, INT_MAX);
+}
+
+SWIG_STATIC_INLINE unsigned char
+SPyObj_AsUnsignedChar(PyObject *obj) {
+ return (unsigned char)SPyObj_AsUnsignedLongInRange(obj, UCHAR_MAX);
+}
+
+SWIG_STATIC_INLINE unsigned short
+SPyObj_AsUnsignedShort(PyObject *obj) {
+ return (unsigned short)SPyObj_AsUnsignedLongInRange(obj, USHRT_MAX);
+}
+
+SWIG_STATIC_INLINE unsigned int
+SPyObj_AsUnsignedInt(PyObject *obj) {
+ return SPyObj_AsUnsignedLongInRange(obj, UINT_MAX);
+}
+
+#if !defined(_MSC_VER)
+SWIG_STATIC_INLINE long long
+SPyObj_AsLongLong(PyObject *obj) {
+ return PyInt_Check(obj) ?
+ PyInt_AsLong(obj) : PyLong_AsLongLong(obj);
+}
+
+SWIG_STATIC_INLINE unsigned long long
+SPyObj_AsUnsignedLongLong(PyObject *obj) {
+ return PyLong_Check(obj) ?
+ PyLong_AsUnsignedLongLong(obj) : SPyObj_AsUnsignedLong(obj);
+}
+#endif
+
+SWIG_STATIC_INLINE double
+SPyObj_AsDouble(PyObject *obj) {
+ return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
+ (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
+}
+
+SWIG_STATIC_INLINE float
+SPyObj_AsFloat(PyObject *obj) {
+ double value = SPyObj_AsDouble(obj);
+ if (!PyErr_Occurred()) {
+ if (value < FLT_MIN) {
+ PyErr_SetString(PyExc_OverflowError,"float is smaller than flt_min");
+ } else if (value > FLT_MAX) {
+ PyErr_SetString(PyExc_OverflowError,"float is greater than flt_max");
+ }
+ }
+ return (float) value;
+}
+
+SWIG_STATIC_INLINE char
+SPyObj_AsChar(PyObject *obj) {
+ char c = (PyString_Check(obj) && PyString_Size(obj) == 1) ?
+ PyString_AsString(obj)[0]
+ : (char) SPyObj_AsLongInRange(obj, CHAR_MIN, CHAR_MAX);
+ if (PyErr_Occurred()) {
+ PyErr_Clear();
+ PyErr_SetString(PyExc_TypeError, "a char is required");
+ }
+ return c;
+}
+
+SWIG_STATIC_INLINE PyObject *
+SPyObj_FromChar(char c) {
+ return PyString_FromStringAndSize(&c,1);
+}
+
+SWIG_STATIC_INLINE PyObject *
+SPyObj_FromCharPtr(const char* cptr) {
+ return cptr ? PyString_FromString(cptr) : Py_BuildValue((char*)"");
+}
+
+SWIG_STATIC_INLINE int
+SPyObj_AsBool(PyObject *obj) {
+ return SPyObj_AsLong/*Long*/(obj) ? 1 : 0;
+}
+
+
+
#ifdef __cplusplus
extern "C" {
#endif
SWIG_Python_NewPointerObj(p, type, flags)
#define SWIG_MustGetPtr(p, type, argnum, flags) \
SWIG_Python_MustGetPtr(p, type, argnum, flags)
-
+
/* Python-specific SWIG API */
#define SWIG_newvarlink() \
SWIG_Python_newvarlink()
self->GetFieldRect(i, r);
return r;
}
- static const wxString wxPySplitterNameStr(wxT(wxT("splitter")));
- static const wxString wxPySashNameStr(wxT(wxT("sashWindow")));
- static const wxString wxPySashLayoutNameStr(wxT(wxT("layoutWindow")));
+ static const wxString wxPySplitterNameStr(wxT("splitter"));
+ static const wxString wxPySashNameStr(wxT("sashWindow"));
+ static const wxString wxPySashLayoutNameStr(wxT("layoutWindow"));
#include <wx/popupwin.h>
#include "wx/wxPython/printfw.h"
- static const wxString wxPyPrintoutTitleStr(wxT(wxT("Printout")));
- static const wxString wxPyPreviewCanvasNameStr(wxT(wxT("previewcanvas")));
+ static const wxString wxPyPrintoutTitleStr(wxT("Printout"));
+ static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas"));
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|iiO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7,&obj7)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (obj7) {
- arg8 = PyInt_AsLong(obj7) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg8 = (bool) SPyObj_AsBool(obj7);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = PyInt_AsLong(obj2) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ arg3 = (bool) SPyObj_AsBool(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnableScrolling(arg2,arg3);
}
if (_v) {
{
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
+ SPyObj_AsInt(argv[1]);
+ if (PyErr_Occurred()) {
+ _v = 0;
+ PyErr_Clear();
+ } else {
+ _v = 1;
+ }
}
if (_v) {
{
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
+ SPyObj_AsInt(argv[2]);
+ if (PyErr_Occurred()) {
+ _v = 0;
+ PyErr_Clear();
+ } else {
+ _v = 1;
+ }
}
if (_v) {
return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args);
}
if (_v) {
{
- _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
+ SPyObj_AsInt(argv[1]);
+ if (PyErr_Occurred()) {
+ _v = 0;
+ PyErr_Clear();
+ } else {
+ _v = 1;
+ }
}
if (_v) {
{
- _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0;
+ SPyObj_AsInt(argv[2]);
+ if (PyErr_Occurred()) {
+ _v = 0;
+ PyErr_Clear();
+ } else {
+ _v = 1;
+ }
}
if (_v) {
return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (obj1) {
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (obj1) {
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&arg3)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)(arg1)->ShowFullScreen(arg2,arg3);
if (arg2 == NULL) SWIG_fail;
temp2 = True;
}
- arg3 = PyInt_AsLong(obj2) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg3 = (bool) SPyObj_AsBool(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->DoGiveHelp((wxString const &)*arg2,arg3);
}
-static PyObject *_wrap_Dialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject *resultobj;
- wxDialog *arg1 = (wxDialog *) 0 ;
- bool arg2 ;
- PyObject * obj0 = 0 ;
- PyObject * obj1 = 0 ;
- char *kwnames[] = {
- (char *) "self",(char *) "flag", NULL
- };
-
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetModal",kwnames,&obj0,&obj1)) goto fail;
- if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
- {
- PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->SetModal(arg2);
-
- wxPyEndAllowThreads(__tstate);
- if (PyErr_Occurred()) SWIG_fail;
- }
- Py_INCREF(Py_None); resultobj = Py_None;
- return resultobj;
- fail:
- return NULL;
-}
-
-
static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxDialog *arg1 = (wxDialog *) 0 ;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&arg2,&obj2)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (obj2) {
- arg3 = PyInt_AsLong(obj2) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg3 = (bool) SPyObj_AsBool(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetNeedUpdating(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:SashWindow_SetSashVisible",kwnames,&obj0,&arg2,&obj2)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg3 = PyInt_AsLong(obj2) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg3 = (bool) SPyObj_AsBool(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:SashWindow_SetSashBorder",kwnames,&obj0,&arg2,&obj2)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg3 = PyInt_AsLong(obj2) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg3 = (bool) SPyObj_AsBool(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetLineCount(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)(arg1)->ScrollToLine(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->RefreshLine(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (size_t) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->RefreshLines(arg2,arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = PyInt_FromLong((long)result);
+ resultobj = SPyObj_FromUnsignedLong((unsigned long)result);
return resultobj;
fail:
return NULL;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = PyInt_FromLong((long)result);
+ resultobj = SPyObj_FromUnsignedLong((unsigned long)result);
return resultobj;
fail:
return NULL;
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = PyInt_FromLong((long)result);
+ resultobj = SPyObj_FromUnsignedLong((unsigned long)result);
return resultobj;
fail:
return NULL;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = PyInt_FromLong((long)result);
+ resultobj = SPyObj_FromUnsignedLong((unsigned long)result);
return resultobj;
fail:
return NULL;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = PyInt_FromLong((long)result);
+ resultobj = SPyObj_FromUnsignedLong((unsigned long)result);
return resultobj;
fail:
return NULL;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetItemCount(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- if (obj2) {
- arg3 = PyInt_AsLong(obj2) ? true : false;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
if (PyErr_Occurred()) SWIG_fail;
}
+ if (obj2) {
+ {
+ arg3 = (bool) SPyObj_AsBool(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)(arg1)->Select(arg2,arg3);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
- arg3 = (size_t) PyInt_AsLong(obj2);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)(arg1)->SelectRange(arg2,arg3);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->Toggle(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = (size_t) PyInt_AsLong(obj1);
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetItemCount(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnableEffects(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetAllowSymbols(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetShowHelp(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIChildFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->Maximize(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetCollate(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetColour(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnableHelp(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnableMargins(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnableOrientation(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnablePaper(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnablePrinter(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetDefaultInfo(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetDefaultMinMargins(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetAllPages(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetSelection(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetCollate(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetPrintToFile(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetSetupDialog(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnablePrintToFile(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnableSelection(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnablePageNumbers(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->EnableHelp(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetIsPreview(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->SetOk(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)(arg1)->Print(arg2);
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- arg2 = PyInt_AsLong(obj1) ? true : false;
- if (PyErr_Occurred()) SWIG_fail;
+ {
+ arg2 = (bool) SPyObj_AsBool(obj1);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)(arg1)->base_Print(arg2);
{ (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS },
{ (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS },
{ (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS },
- { (char *)"Dialog_SetModal", (PyCFunction) _wrap_Dialog_SetModal, METH_VARARGS | METH_KEYWORDS },
{ (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS },
{ (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
{ (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS },