mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-23 14:45:04 +08:00
reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1634,20 +1635,20 @@ static wxString CLSID_GetProgIDString(CLSID *self){
|
||||
return str;
|
||||
}
|
||||
|
||||
/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
/*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
#define SWIG_From_unsigned_SS_short PyInt_FromLong
|
||||
/*@@*/
|
||||
|
||||
static wxString wxParamX_vt_type_get(wxParamX *self){ return _VARTYPEname(self->vt); }
|
||||
|
||||
/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
/*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
#define SWIG_From_long PyInt_FromLong
|
||||
/*@@*/
|
||||
|
||||
static bool wxParamXArray___nonzero__(wxParamXArray *self){ return self->size() > 0; }
|
||||
static int wxParamXArray___len__(wxParamXArray *self){ return self->size(); }
|
||||
|
||||
/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
/*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
#define SWIG_From_int PyInt_FromLong
|
||||
/*@@*/
|
||||
|
||||
@@ -1686,7 +1687,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1590,7 +1591,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1590,7 +1591,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1551,7 +1552,7 @@ static swig_module_info swig_module = {swig_types, 98, 0, 0, 0, 0};
|
||||
static const wxString wxPyAnimationControlNameStr(wxT("animationControl"));
|
||||
static const wxString wxPyEmptyString(wxEmptyString);
|
||||
|
||||
/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
/*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
#define SWIG_From_int PyInt_FromLong
|
||||
/*@@*/
|
||||
|
||||
@@ -1590,7 +1591,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1580,7 +1581,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1580,7 +1581,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1580,7 +1581,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1662,7 +1663,7 @@ SWIG_Check_bool(PyObject* obj)
|
||||
}
|
||||
|
||||
|
||||
/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
/*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
#define SWIG_From_int PyInt_FromLong
|
||||
/*@@*/
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1601,7 +1602,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1725,31 +1726,30 @@ SWIG_Check_bool(PyObject* obj)
|
||||
}
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1601,7 +1602,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1725,31 +1726,30 @@ SWIG_Check_bool(PyObject* obj)
|
||||
}
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1562,7 +1563,7 @@ static swig_module_info swig_module = {swig_types, 109, 0, 0, 0, 0};
|
||||
|
||||
static const wxString wxPySTCNameStr(wxSTCNameStr);
|
||||
|
||||
/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
/*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
#define SWIG_From_int PyInt_FromLong
|
||||
/*@@*/
|
||||
|
||||
@@ -1601,7 +1602,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1725,31 +1726,30 @@ SWIG_Check_bool(PyObject* obj)
|
||||
}
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1797,7 +1797,7 @@ SWIG_AsCharPtr(PyObject *obj, char **val)
|
||||
}
|
||||
|
||||
|
||||
/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
/*@c:\\PROJECTS\\SWIG-1.3.27\\Lib\\python\\pymacros.swg,72,SWIG_define@*/
|
||||
#define SWIG_From_long PyInt_FromLong
|
||||
/*@@*/
|
||||
|
||||
|
||||
+238
-11
@@ -2954,6 +2954,12 @@ def ToggleButton_GetClassDefaultAttributes(*args, **kwargs):
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
BK_DEFAULT = _controls_.BK_DEFAULT
|
||||
BK_TOP = _controls_.BK_TOP
|
||||
BK_BOTTOM = _controls_.BK_BOTTOM
|
||||
BK_LEFT = _controls_.BK_LEFT
|
||||
BK_RIGHT = _controls_.BK_RIGHT
|
||||
BK_ALIGN_MASK = _controls_.BK_ALIGN_MASK
|
||||
class BookCtrlBase(_core.Control):
|
||||
"""Proxy of C++ BookCtrlBase class"""
|
||||
def __init__(self): raise RuntimeError, "No constructor defined"
|
||||
@@ -3011,6 +3017,26 @@ class BookCtrlBase(_core.Control):
|
||||
"""CalcSizeFromPage(self, Size sizePage) -> Size"""
|
||||
return _controls_.BookCtrlBase_CalcSizeFromPage(*args, **kwargs)
|
||||
|
||||
def GetInternalBorder(*args, **kwargs):
|
||||
"""GetInternalBorder(self) -> unsigned int"""
|
||||
return _controls_.BookCtrlBase_GetInternalBorder(*args, **kwargs)
|
||||
|
||||
def SetInternalBorder(*args, **kwargs):
|
||||
"""SetInternalBorder(self, unsigned int internalBorder)"""
|
||||
return _controls_.BookCtrlBase_SetInternalBorder(*args, **kwargs)
|
||||
|
||||
def IsVertical(*args, **kwargs):
|
||||
"""IsVertical(self) -> bool"""
|
||||
return _controls_.BookCtrlBase_IsVertical(*args, **kwargs)
|
||||
|
||||
def SetShrinkMode(*args, **kwargs):
|
||||
"""SetShrinkMode(self, bool shrink)"""
|
||||
return _controls_.BookCtrlBase_SetShrinkMode(*args, **kwargs)
|
||||
|
||||
def GetShrinkMode(*args, **kwargs):
|
||||
"""GetShrinkMode(self) -> bool"""
|
||||
return _controls_.BookCtrlBase_GetShrinkMode(*args, **kwargs)
|
||||
|
||||
def DeletePage(*args, **kwargs):
|
||||
"""DeletePage(self, size_t n) -> bool"""
|
||||
return _controls_.BookCtrlBase_DeletePage(*args, **kwargs)
|
||||
@@ -3328,10 +3354,6 @@ class Listbook(BookCtrlBase):
|
||||
"""
|
||||
return _controls_.Listbook_Create(*args, **kwargs)
|
||||
|
||||
def IsVertical(*args, **kwargs):
|
||||
"""IsVertical(self) -> bool"""
|
||||
return _controls_.Listbook_IsVertical(*args, **kwargs)
|
||||
|
||||
def GetListView(*args, **kwargs):
|
||||
"""GetListView(self) -> ListView"""
|
||||
return _controls_.Listbook_GetListView(*args, **kwargs)
|
||||
@@ -3404,10 +3426,6 @@ class Choicebook(BookCtrlBase):
|
||||
"""
|
||||
return _controls_.Choicebook_Create(*args, **kwargs)
|
||||
|
||||
def IsVertical(*args, **kwargs):
|
||||
"""IsVertical(self) -> bool"""
|
||||
return _controls_.Choicebook_IsVertical(*args, **kwargs)
|
||||
|
||||
def GetChoiceCtrl(*args, **kwargs):
|
||||
"""GetChoiceCtrl(self) -> Choice"""
|
||||
return _controls_.Choicebook_GetChoiceCtrl(*args, **kwargs)
|
||||
@@ -3458,6 +3476,193 @@ EVT_CHOICEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_C
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class Treebook(BookCtrlBase):
|
||||
"""Proxy of C++ Treebook class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxTreebook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=BK_DEFAULT,
|
||||
String name=EmptyString) -> Treebook
|
||||
"""
|
||||
newobj = _controls_.new_Treebook(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=BK_DEFAULT,
|
||||
String name=EmptyString) -> bool
|
||||
"""
|
||||
return _controls_.Treebook_Create(*args, **kwargs)
|
||||
|
||||
def InsertPage(*args, **kwargs):
|
||||
"""
|
||||
InsertPage(self, size_t pos, Window page, String text, bool select=False,
|
||||
int imageId=NOT_FOUND) -> bool
|
||||
"""
|
||||
return _controls_.Treebook_InsertPage(*args, **kwargs)
|
||||
|
||||
def InsertSubPage(*args, **kwargs):
|
||||
"""
|
||||
InsertSubPage(self, size_t pos, Window page, String text, bool select=False,
|
||||
int imageId=NOT_FOUND) -> bool
|
||||
"""
|
||||
return _controls_.Treebook_InsertSubPage(*args, **kwargs)
|
||||
|
||||
def AddPage(*args, **kwargs):
|
||||
"""AddPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
|
||||
return _controls_.Treebook_AddPage(*args, **kwargs)
|
||||
|
||||
def AddSubPage(*args, **kwargs):
|
||||
"""AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
|
||||
return _controls_.Treebook_AddSubPage(*args, **kwargs)
|
||||
|
||||
def DeletePage(*args, **kwargs):
|
||||
"""DeletePage(self, size_t pos) -> bool"""
|
||||
return _controls_.Treebook_DeletePage(*args, **kwargs)
|
||||
|
||||
def IsNodeExpanded(*args, **kwargs):
|
||||
"""IsNodeExpanded(self, size_t pos) -> bool"""
|
||||
return _controls_.Treebook_IsNodeExpanded(*args, **kwargs)
|
||||
|
||||
def ExpandNode(*args, **kwargs):
|
||||
"""ExpandNode(self, size_t pos, bool expand=True) -> bool"""
|
||||
return _controls_.Treebook_ExpandNode(*args, **kwargs)
|
||||
|
||||
def CollapseNode(*args, **kwargs):
|
||||
"""CollapseNode(self, size_t pos) -> bool"""
|
||||
return _controls_.Treebook_CollapseNode(*args, **kwargs)
|
||||
|
||||
def GetPageParent(*args, **kwargs):
|
||||
"""GetPageParent(self, size_t pos) -> int"""
|
||||
return _controls_.Treebook_GetPageParent(*args, **kwargs)
|
||||
|
||||
def GetTreeCtrl(*args, **kwargs):
|
||||
"""GetTreeCtrl(self) -> wxTreeCtrl"""
|
||||
return _controls_.Treebook_GetTreeCtrl(*args, **kwargs)
|
||||
|
||||
|
||||
class TreebookPtr(Treebook):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = Treebook
|
||||
_controls_.Treebook_swigregister(TreebookPtr)
|
||||
|
||||
def PreTreebook(*args, **kwargs):
|
||||
"""PreTreebook() -> Treebook"""
|
||||
val = _controls_.new_PreTreebook(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
class TreebookEvent(BookCtrlBaseEvent):
|
||||
"""Proxy of C++ TreebookEvent class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxTreebookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
|
||||
int nOldSel=NOT_FOUND) -> TreebookEvent
|
||||
"""
|
||||
newobj = _controls_.new_TreebookEvent(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
|
||||
class TreebookEventPtr(TreebookEvent):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = TreebookEvent
|
||||
_controls_.TreebookEvent_swigregister(TreebookEventPtr)
|
||||
|
||||
wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
|
||||
wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
|
||||
wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED = _controls_.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
|
||||
wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED = _controls_.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
|
||||
EVT_TREEBOOK_PAGE_CHANGED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED, 1 )
|
||||
EVT_TREEBOOK_PAGE_CHANGING= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING, 1)
|
||||
EVT_TREEBOOK_NODE_COLLAPSED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED, 1 )
|
||||
EVT_TREEBOOK_NODE_EXPANDED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED, 1 )
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class Toolbook(BookCtrlBase):
|
||||
"""Proxy of C++ Toolbook class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxToolbook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=BK_DEFAULT,
|
||||
String name=EmptyString) -> Toolbook
|
||||
"""
|
||||
newobj = _controls_.new_Toolbook(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=0, String name=wxEmptyString) -> bool
|
||||
"""
|
||||
return _controls_.Toolbook_Create(*args, **kwargs)
|
||||
|
||||
def GetToolBar(*args, **kwargs):
|
||||
"""GetToolBar(self) -> ToolBarBase"""
|
||||
return _controls_.Toolbook_GetToolBar(*args, **kwargs)
|
||||
|
||||
def Realize(*args, **kwargs):
|
||||
"""Realize(self)"""
|
||||
return _controls_.Toolbook_Realize(*args, **kwargs)
|
||||
|
||||
|
||||
class ToolbookPtr(Toolbook):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = Toolbook
|
||||
_controls_.Toolbook_swigregister(ToolbookPtr)
|
||||
|
||||
def PreToolbook(*args, **kwargs):
|
||||
"""PreToolbook() -> Toolbook"""
|
||||
val = _controls_.new_PreToolbook(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
class ToolbookEvent(BookCtrlBaseEvent):
|
||||
"""Proxy of C++ ToolbookEvent class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxToolbookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
|
||||
int nOldSel=NOT_FOUND) -> ToolbookEvent
|
||||
"""
|
||||
newobj = _controls_.new_ToolbookEvent(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
|
||||
class ToolbookEventPtr(ToolbookEvent):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = ToolbookEvent
|
||||
_controls_.ToolbookEvent_swigregister(ToolbookEventPtr)
|
||||
|
||||
wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
|
||||
wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
|
||||
EVT_TOOLBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED, 1)
|
||||
EVT_TOOLBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING, 1)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
TOOL_STYLE_BUTTON = _controls_.TOOL_STYLE_BUTTON
|
||||
@@ -4093,6 +4298,12 @@ class ListItemAttr(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_controls_.delete_ListItemAttr):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def SetTextColour(*args, **kwargs):
|
||||
"""SetTextColour(self, Colour colText)"""
|
||||
return _controls_.ListItemAttr_SetTextColour(*args, **kwargs)
|
||||
@@ -4129,9 +4340,15 @@ class ListItemAttr(object):
|
||||
"""GetFont(self) -> Font"""
|
||||
return _controls_.ListItemAttr_GetFont(*args, **kwargs)
|
||||
|
||||
def AssignFrom(*args, **kwargs):
|
||||
"""AssignFrom(self, ListItemAttr source)"""
|
||||
return _controls_.ListItemAttr_AssignFrom(*args, **kwargs)
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _controls_.ListItemAttr_Destroy(*args, **kwargs)
|
||||
val = _controls_.ListItemAttr_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class ListItemAttrPtr(ListItemAttr):
|
||||
@@ -5042,6 +5259,12 @@ class TreeItemData(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_controls_.delete_TreeItemData):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def GetData(*args, **kwargs):
|
||||
"""GetData(self) -> PyObject"""
|
||||
return _controls_.TreeItemData_GetData(*args, **kwargs)
|
||||
@@ -5060,7 +5283,9 @@ class TreeItemData(object):
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _controls_.TreeItemData_Destroy(*args, **kwargs)
|
||||
val = _controls_.TreeItemData_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class TreeItemDataPtr(TreeItemData):
|
||||
@@ -6167,7 +6392,9 @@ class HelpProvider(object):
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _controls_.HelpProvider_Destroy(*args, **kwargs)
|
||||
val = _controls_.HelpProvider_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class HelpProviderPtr(HelpProvider):
|
||||
|
||||
+1589
-238
File diff suppressed because one or more lines are too long
@@ -708,7 +708,9 @@ class Object(object):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _core_.Object_Destroy(*args, **kwargs)
|
||||
val = _core_.Object_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class ObjectPtr(Object):
|
||||
@@ -2415,7 +2417,9 @@ class Image(Object):
|
||||
|
||||
Destroys the image data.
|
||||
"""
|
||||
return _core_.Image_Destroy(*args, **kwargs)
|
||||
val = _core_.Image_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def Scale(*args, **kwargs):
|
||||
"""
|
||||
@@ -3596,7 +3600,9 @@ class EvtHandler(Object):
|
||||
|
||||
def _setOORInfo(*args, **kwargs):
|
||||
"""_setOORInfo(self, PyObject _self, bool incref=True)"""
|
||||
return _core_.EvtHandler__setOORInfo(*args, **kwargs)
|
||||
val = _core_.EvtHandler__setOORInfo(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY):
|
||||
"""
|
||||
@@ -8109,7 +8115,9 @@ class Window(EvtHandler):
|
||||
Returns True if the window has either been successfully deleted, or it
|
||||
has been added to the list of windows pending real deletion.
|
||||
"""
|
||||
return _core_.Window_Destroy(*args, **kwargs)
|
||||
val = _core_.Window_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def DestroyChildren(*args, **kwargs):
|
||||
"""
|
||||
@@ -10157,6 +10165,9 @@ class Window(EvtHandler):
|
||||
if hasattr(self, '_setCallbackInfo'):
|
||||
self._setCallbackInfo(self, self.__class__)
|
||||
|
||||
def SendSizeEvent(self):
|
||||
self.GetEventhandler().ProcessEvent(wx.SizeEvent((-1,-1)))
|
||||
|
||||
|
||||
class WindowPtr(Window):
|
||||
def __init__(self, this):
|
||||
@@ -10513,7 +10524,9 @@ class Menu(EvtHandler):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _core_.Menu_Destroy(*args, **kwargs)
|
||||
val = _core_.Menu_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def DestroyId(*args, **kwargs):
|
||||
"""
|
||||
@@ -10521,7 +10534,9 @@ class Menu(EvtHandler):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _core_.Menu_DestroyId(*args, **kwargs)
|
||||
val = _core_.Menu_DestroyId(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def DestroyItem(*args, **kwargs):
|
||||
"""
|
||||
@@ -10529,7 +10544,9 @@ class Menu(EvtHandler):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _core_.Menu_DestroyItem(*args, **kwargs)
|
||||
val = _core_.Menu_DestroyItem(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def GetMenuItemCount(*args, **kwargs):
|
||||
"""GetMenuItemCount(self) -> size_t"""
|
||||
@@ -11336,6 +11353,12 @@ class SizerItem(Object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_core_.delete_SizerItem):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def DeleteWindows(*args, **kwargs):
|
||||
"""
|
||||
DeleteWindows(self)
|
||||
@@ -11681,6 +11704,12 @@ class Sizer(Object):
|
||||
def __init__(self): raise RuntimeError, "No constructor defined"
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __del__(self, destroy=_core_.delete_Sizer):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def _setOORInfo(*args, **kwargs):
|
||||
"""_setOORInfo(self, PyObject _self)"""
|
||||
return _core_.Sizer__setOORInfo(*args, **kwargs)
|
||||
@@ -12604,6 +12633,12 @@ class GBPosition(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_core_.delete_GBPosition):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def GetRow(*args, **kwargs):
|
||||
"""GetRow(self) -> int"""
|
||||
return _core_.GBPosition_GetRow(*args, **kwargs)
|
||||
@@ -12683,6 +12718,12 @@ class GBSpan(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_core_.delete_GBSpan):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def GetRowspan(*args, **kwargs):
|
||||
"""GetRowspan(self) -> int"""
|
||||
return _core_.GBSpan_GetRowspan(*args, **kwargs)
|
||||
@@ -12763,6 +12804,12 @@ class GBSizerItem(SizerItem):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_core_.delete_GBSizerItem):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def GetPos(*args, **kwargs):
|
||||
"""
|
||||
GetPos(self) -> GBPosition
|
||||
|
||||
+246
-115
File diff suppressed because it is too large
Load Diff
@@ -4207,10 +4207,7 @@ class BufferedDC(MemoryDC):
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__(self, DC dc, Bitmap buffer=NullBitmap, int style=BUFFER_CLIENT_AREA) -> BufferedDC
|
||||
__init__(self, DC dc, Bitmap buffer=NullBitmap) -> BufferedDC
|
||||
__init__(self, DC dc) -> BufferedDC
|
||||
__init__(self, DC dc, Size area, int style=BUFFER_CLIENT_AREA) -> BufferedDC
|
||||
__init__(self, DC dc, Size area) -> BufferedDC
|
||||
|
||||
Constructs a buffered DC.
|
||||
"""
|
||||
|
||||
+83
-217
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1624,7 +1625,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1711,7 +1712,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
@@ -1863,31 +1864,30 @@ SWIG_Check_int(PyObject* obj)
|
||||
/*@@*/
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *wxPen_GetDashes(wxPen *self){
|
||||
@@ -2192,7 +2192,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -17483,27 +17483,32 @@ static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
|
||||
static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxDC *arg1 = (wxDC *) 0 ;
|
||||
wxBitmap *arg2 = 0 ;
|
||||
int arg3 ;
|
||||
wxBitmap const &arg2_defvalue = wxNullBitmap ;
|
||||
wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
|
||||
int arg3 = (int) wxBUFFER_CLIENT_AREA ;
|
||||
wxBufferedDC *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OOO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
SWIG_null_ref("wxBitmap");
|
||||
if (obj1) {
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
SWIG_null_ref("wxBitmap");
|
||||
}
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
}
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
arg3 = static_cast<int >(SWIG_As_int(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
if (obj2) {
|
||||
{
|
||||
arg3 = static_cast<int >(SWIG_As_int(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
@@ -17521,84 +17526,28 @@ static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxDC *arg1 = (wxDC *) 0 ;
|
||||
wxBitmap *arg2 = 0 ;
|
||||
wxBufferedDC *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
SWIG_null_ref("wxBitmap");
|
||||
}
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BufferedDC__SWIG_2(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxDC *arg1 = (wxDC *) 0 ;
|
||||
wxBufferedDC *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"O:new_BufferedDC",&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxBufferedDC *)new wxBufferedDC(arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BufferedDC__SWIG_3(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxDC *arg1 = (wxDC *) 0 ;
|
||||
wxSize *arg2 = 0 ;
|
||||
int arg3 ;
|
||||
int arg3 = (int) wxBUFFER_CLIENT_AREA ;
|
||||
wxBufferedDC *result;
|
||||
wxSize temp2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OOO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
arg3 = static_cast<int >(SWIG_As_int(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
if (obj2) {
|
||||
{
|
||||
arg3 = static_cast<int >(SWIG_As_int(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
@@ -17615,37 +17564,6 @@ static PyObject *_wrap_new_BufferedDC__SWIG_3(PyObject *, PyObject *args) {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BufferedDC__SWIG_4(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxDC *arg1 = (wxDC *) 0 ;
|
||||
wxSize *arg2 = 0 ;
|
||||
wxBufferedDC *result;
|
||||
wxSize temp2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[4];
|
||||
@@ -17655,7 +17573,7 @@ static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
|
||||
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
||||
argv[ii] = PyTuple_GetItem(args,ii);
|
||||
}
|
||||
if (argc == 1) {
|
||||
if ((argc >= 1) && (argc <= 3)) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
@@ -17667,21 +17585,9 @@ static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_2(self,args);
|
||||
}
|
||||
}
|
||||
if (argc == 2) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
if (argc <= 1) {
|
||||
return _wrap_new_BufferedDC__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr = 0;
|
||||
if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
|
||||
@@ -17692,75 +17598,9 @@ static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 2) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
_v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_4(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 3) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
_v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
|
||||
}
|
||||
if (_v) {
|
||||
_v = SWIG_Check_int(argv[2]);
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_3(self,args);
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_BufferedDC__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 3) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr = 0;
|
||||
if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = (ptr != 0);
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
_v = SWIG_Check_int(argv[2]);
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_0(self,args);
|
||||
@@ -17768,6 +17608,32 @@ static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((argc >= 2) && (argc <= 3)) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
_v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
|
||||
}
|
||||
if (_v) {
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_BufferedDC__SWIG_1(self,args);
|
||||
}
|
||||
_v = SWIG_Check_int(argv[2]);
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
|
||||
return NULL;
|
||||
@@ -18531,7 +18397,7 @@ static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwarg
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 1);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
|
||||
@@ -778,6 +778,12 @@ class ToolTip(_core.Object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_misc_.delete_ToolTip):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def SetTip(*args, **kwargs):
|
||||
"""SetTip(self, String tip)"""
|
||||
return _misc_.ToolTip_SetTip(*args, **kwargs)
|
||||
@@ -826,13 +832,21 @@ class Caret(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_misc_.delete_Caret):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""
|
||||
Destroy(self)
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _misc_.Caret_Destroy(*args, **kwargs)
|
||||
val = _misc_.Caret_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
@@ -1310,7 +1324,6 @@ class TimerRunner(object):
|
||||
"""
|
||||
__init__(self, wxTimer timer) -> TimerRunner
|
||||
__init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
|
||||
__init__(self, wxTimer timer, int milli) -> TimerRunner
|
||||
"""
|
||||
newobj = _misc_.new_TimerRunner(*args)
|
||||
self.this = newobj.this
|
||||
@@ -1367,6 +1380,12 @@ class Log(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_misc_.delete_Log):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def IsEnabled(*args, **kwargs):
|
||||
"""IsEnabled() -> bool"""
|
||||
return _misc_.Log_IsEnabled(*args, **kwargs)
|
||||
@@ -1488,7 +1507,9 @@ class Log(object):
|
||||
TimeStamp = staticmethod(TimeStamp)
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _misc_.Log_Destroy(*args, **kwargs)
|
||||
val = _misc_.Log_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class LogPtr(Log):
|
||||
@@ -2691,6 +2712,12 @@ class ArtProvider(object):
|
||||
del newobj.thisown
|
||||
self._setCallbackInfo(self, ArtProvider)
|
||||
|
||||
def __del__(self, destroy=_misc_.delete_ArtProvider):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def _setCallbackInfo(*args, **kwargs):
|
||||
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
|
||||
return _misc_.ArtProvider__setCallbackInfo(*args, **kwargs)
|
||||
@@ -2720,7 +2747,9 @@ class ArtProvider(object):
|
||||
Remove provider. The provider must have been added previously! The
|
||||
provider is _not_ deleted.
|
||||
"""
|
||||
return _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
|
||||
val = _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
|
||||
args[1].thisown = 1
|
||||
return val
|
||||
|
||||
RemoveProvider = staticmethod(RemoveProvider)
|
||||
def GetBitmap(*args, **kwargs):
|
||||
@@ -2755,7 +2784,9 @@ class ArtProvider(object):
|
||||
GetSizeHint = staticmethod(GetSizeHint)
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _misc_.ArtProvider_Destroy(*args, **kwargs)
|
||||
val = _misc_.ArtProvider_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class ArtProviderPtr(ArtProvider):
|
||||
@@ -2844,7 +2875,9 @@ def ArtProvider_RemoveProvider(*args, **kwargs):
|
||||
Remove provider. The provider must have been added previously! The
|
||||
provider is _not_ deleted.
|
||||
"""
|
||||
return _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
|
||||
val = _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
|
||||
args[1].thisown = 1
|
||||
return val
|
||||
|
||||
def ArtProvider_GetBitmap(*args, **kwargs):
|
||||
"""
|
||||
@@ -4840,7 +4873,6 @@ class DataObject(object):
|
||||
GetDataHere(self, DataFormat format) -> String
|
||||
|
||||
Get the data bytes in the specified format, returns None on failure.
|
||||
|
||||
"""
|
||||
return _misc_.DataObject_GetDataHere(*args, **kwargs)
|
||||
|
||||
|
||||
+152
-95
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1665,7 +1666,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1801,31 +1802,30 @@ SWIG_Check_bool(PyObject* obj)
|
||||
}
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1838,7 +1838,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
@@ -2140,7 +2140,7 @@ static wxString wxLog_TimeStamp(){
|
||||
return msg;
|
||||
}
|
||||
static void wxLog_Destroy(wxLog *self){ delete self; }
|
||||
// Make somce wrappers that double any % signs so they are 'escaped'
|
||||
// Make some wrappers that double any % signs so they are 'escaped'
|
||||
void wxPyLogFatalError(const wxString& msg)
|
||||
{
|
||||
wxString m(msg);
|
||||
@@ -2661,7 +2661,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -7014,9 +7014,7 @@ static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs)
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 1);
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolTip, 1);
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
@@ -7031,6 +7029,31 @@ static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs)
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxToolTip *arg1 = (wxToolTip *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ToolTip",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxToolTip *arg1 = (wxToolTip *) 0 ;
|
||||
@@ -7227,6 +7250,31 @@ static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxCaret *arg1 = (wxCaret *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Caret_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxCaret *arg1 = (wxCaret *) 0 ;
|
||||
@@ -9468,13 +9516,13 @@ static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxTimer *arg1 = 0 ;
|
||||
int arg2 ;
|
||||
bool arg3 ;
|
||||
bool arg3 = (bool) false ;
|
||||
wxTimerRunner *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OOO:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
@@ -9487,9 +9535,11 @@ static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
|
||||
arg2 = static_cast<int >(SWIG_As_int(obj1));
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
arg3 = static_cast<bool >(SWIG_As_bool(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
if (obj2) {
|
||||
{
|
||||
arg3 = static_cast<bool >(SWIG_As_bool(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
@@ -9506,42 +9556,6 @@ static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_TimerRunner__SWIG_2(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxTimer *arg1 = 0 ;
|
||||
int arg2 ;
|
||||
wxTimerRunner *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO:new_TimerRunner",&obj0,&obj1)) goto fail;
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
if (arg1 == NULL) {
|
||||
SWIG_null_ref("wxTimer");
|
||||
}
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
arg2 = static_cast<int >(SWIG_As_int(obj1));
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[4];
|
||||
@@ -9566,25 +9580,7 @@ static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
|
||||
return _wrap_new_TimerRunner__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
if (argc == 2) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr = 0;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = (ptr != 0);
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
_v = SWIG_Check_int(argv[1]);
|
||||
if (_v) {
|
||||
return _wrap_new_TimerRunner__SWIG_2(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 3) {
|
||||
if ((argc >= 2) && (argc <= 3)) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr = 0;
|
||||
@@ -9598,6 +9594,9 @@ static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
|
||||
if (_v) {
|
||||
_v = SWIG_Check_int(argv[1]);
|
||||
if (_v) {
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_TimerRunner__SWIG_1(self,args);
|
||||
}
|
||||
_v = SWIG_Check_bool(argv[2]);
|
||||
if (_v) {
|
||||
return _wrap_new_TimerRunner__SWIG_1(self,args);
|
||||
@@ -9704,6 +9703,31 @@ static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_Log(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxLog *arg1 = (wxLog *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Log",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
bool result;
|
||||
@@ -9875,7 +9899,7 @@ static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -9884,7 +9908,7 @@ static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -10568,7 +10592,7 @@ static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -12499,7 +12523,11 @@ static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
{
|
||||
PyObject* o;
|
||||
o = PyInt_FromLong((long) (*arg3));
|
||||
|
||||
resultobj = t_output_helper(resultobj, o);
|
||||
|
||||
|
||||
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -17493,6 +17521,31 @@ static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwa
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ArtProvider",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
|
||||
@@ -17533,7 +17586,7 @@ static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyOb
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -32735,6 +32788,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_ToolTip", (PyCFunction) _wrap_delete_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -32742,6 +32796,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Caret_Destroy", (PyCFunction) _wrap_Caret_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -32825,6 +32880,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_Log", (PyCFunction) _wrap_delete_Log, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -33042,6 +33098,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_ArtProvider", (PyCFunction) _wrap_delete_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
||||
@@ -691,9 +691,6 @@ class Dialog(TopLevelWindow):
|
||||
return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
|
||||
def SendSizeEvent(self):
|
||||
self.ProcessEvent(wx.SizeEvent((-1,-1)))
|
||||
|
||||
|
||||
class DialogPtr(Dialog):
|
||||
def __init__(self, this):
|
||||
@@ -2190,6 +2187,12 @@ class TaskBarIcon(_core.EvtHandler):
|
||||
del newobj.thisown
|
||||
self._setCallbackInfo(self, TaskBarIcon, 0)
|
||||
|
||||
def __del__(self, destroy=_windows_.delete_TaskBarIcon):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def _setCallbackInfo(*args, **kwargs):
|
||||
"""_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
|
||||
return _windows_.TaskBarIcon__setCallbackInfo(*args, **kwargs)
|
||||
@@ -2200,7 +2203,9 @@ class TaskBarIcon(_core.EvtHandler):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _windows_.TaskBarIcon_Destroy(*args, **kwargs)
|
||||
val = _windows_.TaskBarIcon_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
@@ -4714,7 +4719,6 @@ class PrintPreview(_core.Object):
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
|
||||
__init__(self, Printout printout, Printout printoutForPrinting) -> PrintPreview
|
||||
__init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
|
||||
"""
|
||||
newobj = _windows_.new_PrintPreview(*args)
|
||||
@@ -4825,7 +4829,6 @@ class PyPrintPreview(PrintPreview):
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
|
||||
__init__(self, Printout printout, Printout printoutForPrinting) -> PyPrintPreview
|
||||
__init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
|
||||
"""
|
||||
newobj = _windows_.new_PyPrintPreview(*args)
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1652,7 +1653,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1781,31 +1782,30 @@ SWIG_Check_bool(PyObject* obj)
|
||||
/*@@*/
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1817,7 +1817,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1982,7 +1982,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
@@ -5212,7 +5212,7 @@ static PyObject *_wrap_Frame_CreateStatusBar(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp5)
|
||||
@@ -5248,7 +5248,7 @@ static PyObject *_wrap_Frame_GetStatusBar(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -5561,7 +5561,7 @@ static PyObject *_wrap_Frame_CreateToolBar(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp4)
|
||||
@@ -5597,7 +5597,7 @@ static PyObject *_wrap_Frame_GetToolBar(PyObject *, PyObject *args, PyObject *kw
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6071,7 +6071,7 @@ static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *, PyObject *args, PyObje
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
@@ -6129,7 +6129,7 @@ static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *, PyObject *args, PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -13136,6 +13136,31 @@ static PyObject *_wrap_new_TaskBarIcon(PyObject *, PyObject *args, PyObject *kwa
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_TaskBarIcon(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_TaskBarIcon__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ;
|
||||
@@ -17492,7 +17517,7 @@ static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -17520,7 +17545,7 @@ static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *, PyObject *args
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -24031,7 +24056,7 @@ static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *, PyObject *args, PyObje
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 1);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -24285,7 +24310,7 @@ static PyObject *_wrap_Printer_PrintDialog(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -24407,7 +24432,7 @@ static PyObject *_wrap_new_Printout(PyObject *, PyObject *args, PyObject *kwargs
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 1);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)1);
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
@@ -24506,7 +24531,7 @@ static PyObject *_wrap_Printout_GetDC(PyObject *, PyObject *args, PyObject *kwar
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -25720,19 +25745,21 @@ static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
wxPrintDialogData *arg3 = (wxPrintDialogData *) 0 ;
|
||||
wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ;
|
||||
wxPrintPreview *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
if (obj2) {
|
||||
SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -25749,34 +25776,6 @@ static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *, PyObject *args) {
|
||||
|
||||
|
||||
static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
wxPrintPreview *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO:new_PrintPreview",&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_PrintPreview__SWIG_2(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
@@ -25817,7 +25816,7 @@ static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) {
|
||||
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
||||
argv[ii] = PyTuple_GetItem(args,ii);
|
||||
}
|
||||
if (argc == 2) {
|
||||
if ((argc >= 2) && (argc <= 3)) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
@@ -25839,32 +25838,9 @@ static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_PrintPreview__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 3) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_PrintPreview__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) {
|
||||
@@ -25912,7 +25888,7 @@ static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_PrintPreview__SWIG_2(self,args);
|
||||
return _wrap_new_PrintPreview__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26034,7 +26010,7 @@ static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *, PyObject *args, PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -26062,7 +26038,7 @@ static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -26602,19 +26578,21 @@ static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
wxPrintDialogData *arg3 = (wxPrintDialogData *) 0 ;
|
||||
wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ;
|
||||
wxPyPrintPreview *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
if (obj2) {
|
||||
SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -26631,34 +26609,6 @@ static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *, PyObject *args) {
|
||||
|
||||
|
||||
static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintPreview *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO:new_PyPrintPreview",&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_PyPrintPreview__SWIG_2(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
@@ -26699,7 +26649,7 @@ static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) {
|
||||
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
||||
argv[ii] = PyTuple_GetItem(args,ii);
|
||||
}
|
||||
if (argc == 2) {
|
||||
if ((argc >= 2) && (argc <= 3)) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
@@ -26721,32 +26671,9 @@ static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_PyPrintPreview__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 3) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_PyPrintPreview__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) {
|
||||
@@ -26794,7 +26721,7 @@ static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_PyPrintPreview__SWIG_2(self,args);
|
||||
return _wrap_new_PyPrintPreview__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27845,6 +27772,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"HtmlListBox_GetFileSystem", (PyCFunction) _wrap_HtmlListBox_GetFileSystem, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TaskBarIcon__setCallbackInfo", (PyCFunction) _wrap_TaskBarIcon__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1596,7 +1597,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1726,7 +1727,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
|
||||
@@ -393,7 +393,9 @@ class GridCellEditor(object):
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _grid.GridCellEditor_Destroy(*args, **kwargs)
|
||||
val = _grid.GridCellEditor_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class GridCellEditorPtr(GridCellEditor):
|
||||
@@ -1056,7 +1058,9 @@ class PyGridTableBase(GridTableBase):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _grid.PyGridTableBase_Destroy(*args, **kwargs)
|
||||
val = _grid.PyGridTableBase_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def base_GetTypeName(*args, **kwargs):
|
||||
"""base_GetTypeName(self, int row, int col) -> String"""
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -2162,7 +2163,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -2494,31 +2495,30 @@ static void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){
|
||||
self->SetClientObject(new wxPyOORClientData(_self));
|
||||
}
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
static void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){
|
||||
@@ -2531,7 +2531,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
@@ -2617,7 +2617,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -3179,7 +3179,7 @@ static PyObject *_wrap_GridCellRenderer_Clone(PyObject *, PyObject *args, PyObje
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -3804,7 +3804,7 @@ static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *, PyObject *args, Py
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -4101,7 +4101,7 @@ static PyObject *_wrap_GridCellEditor_Clone(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -5295,7 +5295,7 @@ static PyObject *_wrap_new_GridCellAttr(PyObject *, PyObject *args, PyObject *kw
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 1);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -5323,7 +5323,7 @@ static PyObject *_wrap_GridCellAttr_Clone(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6190,7 +6190,7 @@ static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *, PyObject *args, PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6234,7 +6234,7 @@ static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *, PyObject *args, PyObje
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6348,7 +6348,7 @@ static PyObject *_wrap_new_GridCellAttrProvider(PyObject *, PyObject *args, PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttrProvider(result, 1);
|
||||
resultobj = wxPyMake_wxGridCellAttrProvider(result, (bool)1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6422,7 +6422,7 @@ static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6713,7 +6713,7 @@ static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6916,7 +6916,7 @@ static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttrProvider(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttrProvider(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6973,7 +6973,7 @@ static PyObject *_wrap_GridTableBase_GetView(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -8088,7 +8088,7 @@ static PyObject *_wrap_GridTableBase_GetAttr(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -8957,7 +8957,7 @@ static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -9250,7 +9250,7 @@ static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *, PyObject *arg
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridTableBase(result, 0);
|
||||
resultobj = wxPyMake_wxGridTableBase(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -10176,7 +10176,7 @@ static PyObject *_wrap_Grid_GetTable(PyObject *, PyObject *args, PyObject *kwarg
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridTableBase(result, 0);
|
||||
resultobj = wxPyMake_wxGridTableBase(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -13349,7 +13349,7 @@ static PyObject *_wrap_Grid_GetOrCreateCellAttr(PyObject *, PyObject *args, PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -15225,7 +15225,7 @@ static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *, PyObject *args, PyObj
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -15265,7 +15265,7 @@ static PyObject *_wrap_Grid_GetCellRenderer(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -15363,7 +15363,7 @@ static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -15403,7 +15403,7 @@ static PyObject *_wrap_Grid_GetCellEditor(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -16346,7 +16346,7 @@ static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -16386,7 +16386,7 @@ static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *, PyObject *args
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -16422,7 +16422,7 @@ static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
@@ -16466,7 +16466,7 @@ static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *, PyObject *args
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
|
||||
@@ -2043,7 +2043,6 @@ class HtmlHelpController(HelpControllerBase):
|
||||
"""FindTopLevelWindow(self) -> Window"""
|
||||
return _html.HtmlHelpController_FindTopLevelWindow(*args, **kwargs)
|
||||
|
||||
def Destroy(self): pass
|
||||
|
||||
class HtmlHelpControllerPtr(HtmlHelpController):
|
||||
def __init__(self, this):
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1701,7 +1702,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1874,31 +1875,30 @@ SWIGINTERNINLINE PyObject*
|
||||
}
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1970,7 +1970,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
@@ -2242,7 +2242,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -2522,7 +2522,7 @@ static PyObject *_wrap_HtmlLinkInfo_GetEvent(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -2953,7 +2953,7 @@ static PyObject *_wrap_HtmlParser_GetFS(PyObject *, PyObject *args, PyObject *kw
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -2989,7 +2989,7 @@ static PyObject *_wrap_HtmlParser_Parse(PyObject *, PyObject *args, PyObject *kw
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
@@ -3340,7 +3340,7 @@ static PyObject *_wrap_HtmlWinParser_GetDC(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -3424,7 +3424,7 @@ static PyObject *_wrap_HtmlWinParser_GetWindow(PyObject *, PyObject *args, PyObj
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -11680,7 +11680,7 @@ static PyObject *_wrap_HtmlHelpWindow_SetController(PyObject *, PyObject *args,
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlHelpWindow_SetController",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHtmlHelpWindow, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | 0);
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -12154,7 +12154,7 @@ static PyObject *_wrap_HtmlHelpWindow_GetToolBar(PyObject *, PyObject *args, PyO
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -12636,7 +12636,7 @@ static PyObject *_wrap_HtmlHelpFrame_SetController(PyObject *, PyObject *args, P
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlHelpFrame_SetController",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHtmlHelpFrame, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | 0);
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -12912,7 +12912,7 @@ static PyObject *_wrap_HtmlHelpDialog_SetController(PyObject *, PyObject *args,
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlHelpDialog_SetController",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHtmlHelpDialog, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | 0);
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1664,7 +1665,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1757,7 +1758,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1654,7 +1655,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1651,7 +1652,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1845,31 +1846,30 @@ static bool wxPyWizardPage_Create(wxPyWizardPage *self,wxWizard *parent,wxBitmap
|
||||
return self->Create(parent, bitmap, res);
|
||||
}
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1996,7 +1996,7 @@ static PyObject *_wrap_WizardEvent_GetPage(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -2095,7 +2095,7 @@ static PyObject *_wrap_WizardPage_GetPrev(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -2123,7 +2123,7 @@ static PyObject *_wrap_WizardPage_GetNext(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -3455,7 +3455,7 @@ static PyObject *_wrap_Wizard_GetCurrentPage(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -3574,7 +3574,7 @@ static PyObject *_wrap_Wizard_GetPageAreaSizer(PyObject *, PyObject *args, PyObj
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1607,7 +1608,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -2562,7 +2563,7 @@ static PyObject *_wrap_XmlResource_LoadToolBar(PyObject *, PyObject *args, PyObj
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@@ -2610,7 +2611,7 @@ static PyObject *_wrap_XmlResource_LoadDialog(PyObject *, PyObject *args, PyObje
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@@ -2710,7 +2711,7 @@ static PyObject *_wrap_XmlResource_LoadPanel(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@@ -2810,7 +2811,7 @@ static PyObject *_wrap_XmlResource_LoadFrame(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@@ -2918,7 +2919,7 @@ static PyObject *_wrap_XmlResource_LoadObject(PyObject *, PyObject *args, PyObje
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp3)
|
||||
@@ -5366,7 +5367,7 @@ static PyObject *_wrap_XmlResourceHandler_CreateResource(PyObject *, PyObject *a
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -5507,7 +5508,7 @@ static PyObject *_wrap_XmlResourceHandler_GetParent(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -5535,7 +5536,7 @@ static PyObject *_wrap_XmlResourceHandler_GetInstance(PyObject *, PyObject *args
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6668,7 +6669,7 @@ static PyObject *_wrap_XmlResourceHandler_CreateResFromNode(PyObject *, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
|
||||
+238
-11
@@ -2941,6 +2941,12 @@ def ToggleButton_GetClassDefaultAttributes(*args, **kwargs):
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
BK_DEFAULT = _controls_.BK_DEFAULT
|
||||
BK_TOP = _controls_.BK_TOP
|
||||
BK_BOTTOM = _controls_.BK_BOTTOM
|
||||
BK_LEFT = _controls_.BK_LEFT
|
||||
BK_RIGHT = _controls_.BK_RIGHT
|
||||
BK_ALIGN_MASK = _controls_.BK_ALIGN_MASK
|
||||
class BookCtrlBase(_core.Control):
|
||||
"""Proxy of C++ BookCtrlBase class"""
|
||||
def __init__(self): raise RuntimeError, "No constructor defined"
|
||||
@@ -2998,6 +3004,26 @@ class BookCtrlBase(_core.Control):
|
||||
"""CalcSizeFromPage(self, Size sizePage) -> Size"""
|
||||
return _controls_.BookCtrlBase_CalcSizeFromPage(*args, **kwargs)
|
||||
|
||||
def GetInternalBorder(*args, **kwargs):
|
||||
"""GetInternalBorder(self) -> unsigned int"""
|
||||
return _controls_.BookCtrlBase_GetInternalBorder(*args, **kwargs)
|
||||
|
||||
def SetInternalBorder(*args, **kwargs):
|
||||
"""SetInternalBorder(self, unsigned int internalBorder)"""
|
||||
return _controls_.BookCtrlBase_SetInternalBorder(*args, **kwargs)
|
||||
|
||||
def IsVertical(*args, **kwargs):
|
||||
"""IsVertical(self) -> bool"""
|
||||
return _controls_.BookCtrlBase_IsVertical(*args, **kwargs)
|
||||
|
||||
def SetShrinkMode(*args, **kwargs):
|
||||
"""SetShrinkMode(self, bool shrink)"""
|
||||
return _controls_.BookCtrlBase_SetShrinkMode(*args, **kwargs)
|
||||
|
||||
def GetShrinkMode(*args, **kwargs):
|
||||
"""GetShrinkMode(self) -> bool"""
|
||||
return _controls_.BookCtrlBase_GetShrinkMode(*args, **kwargs)
|
||||
|
||||
def DeletePage(*args, **kwargs):
|
||||
"""DeletePage(self, size_t n) -> bool"""
|
||||
return _controls_.BookCtrlBase_DeletePage(*args, **kwargs)
|
||||
@@ -3315,10 +3341,6 @@ class Listbook(BookCtrlBase):
|
||||
"""
|
||||
return _controls_.Listbook_Create(*args, **kwargs)
|
||||
|
||||
def IsVertical(*args, **kwargs):
|
||||
"""IsVertical(self) -> bool"""
|
||||
return _controls_.Listbook_IsVertical(*args, **kwargs)
|
||||
|
||||
def GetListView(*args, **kwargs):
|
||||
"""GetListView(self) -> ListView"""
|
||||
return _controls_.Listbook_GetListView(*args, **kwargs)
|
||||
@@ -3391,10 +3413,6 @@ class Choicebook(BookCtrlBase):
|
||||
"""
|
||||
return _controls_.Choicebook_Create(*args, **kwargs)
|
||||
|
||||
def IsVertical(*args, **kwargs):
|
||||
"""IsVertical(self) -> bool"""
|
||||
return _controls_.Choicebook_IsVertical(*args, **kwargs)
|
||||
|
||||
def GetChoiceCtrl(*args, **kwargs):
|
||||
"""GetChoiceCtrl(self) -> Choice"""
|
||||
return _controls_.Choicebook_GetChoiceCtrl(*args, **kwargs)
|
||||
@@ -3445,6 +3463,193 @@ EVT_CHOICEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_CHOICEBOOK_PAGE_C
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class Treebook(BookCtrlBase):
|
||||
"""Proxy of C++ Treebook class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxTreebook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=BK_DEFAULT,
|
||||
String name=EmptyString) -> Treebook
|
||||
"""
|
||||
newobj = _controls_.new_Treebook(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=BK_DEFAULT,
|
||||
String name=EmptyString) -> bool
|
||||
"""
|
||||
return _controls_.Treebook_Create(*args, **kwargs)
|
||||
|
||||
def InsertPage(*args, **kwargs):
|
||||
"""
|
||||
InsertPage(self, size_t pos, Window page, String text, bool select=False,
|
||||
int imageId=NOT_FOUND) -> bool
|
||||
"""
|
||||
return _controls_.Treebook_InsertPage(*args, **kwargs)
|
||||
|
||||
def InsertSubPage(*args, **kwargs):
|
||||
"""
|
||||
InsertSubPage(self, size_t pos, Window page, String text, bool select=False,
|
||||
int imageId=NOT_FOUND) -> bool
|
||||
"""
|
||||
return _controls_.Treebook_InsertSubPage(*args, **kwargs)
|
||||
|
||||
def AddPage(*args, **kwargs):
|
||||
"""AddPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
|
||||
return _controls_.Treebook_AddPage(*args, **kwargs)
|
||||
|
||||
def AddSubPage(*args, **kwargs):
|
||||
"""AddSubPage(self, Window page, String text, bool select=False, int imageId=NOT_FOUND) -> bool"""
|
||||
return _controls_.Treebook_AddSubPage(*args, **kwargs)
|
||||
|
||||
def DeletePage(*args, **kwargs):
|
||||
"""DeletePage(self, size_t pos) -> bool"""
|
||||
return _controls_.Treebook_DeletePage(*args, **kwargs)
|
||||
|
||||
def IsNodeExpanded(*args, **kwargs):
|
||||
"""IsNodeExpanded(self, size_t pos) -> bool"""
|
||||
return _controls_.Treebook_IsNodeExpanded(*args, **kwargs)
|
||||
|
||||
def ExpandNode(*args, **kwargs):
|
||||
"""ExpandNode(self, size_t pos, bool expand=True) -> bool"""
|
||||
return _controls_.Treebook_ExpandNode(*args, **kwargs)
|
||||
|
||||
def CollapseNode(*args, **kwargs):
|
||||
"""CollapseNode(self, size_t pos) -> bool"""
|
||||
return _controls_.Treebook_CollapseNode(*args, **kwargs)
|
||||
|
||||
def GetPageParent(*args, **kwargs):
|
||||
"""GetPageParent(self, size_t pos) -> int"""
|
||||
return _controls_.Treebook_GetPageParent(*args, **kwargs)
|
||||
|
||||
def GetTreeCtrl(*args, **kwargs):
|
||||
"""GetTreeCtrl(self) -> wxTreeCtrl"""
|
||||
return _controls_.Treebook_GetTreeCtrl(*args, **kwargs)
|
||||
|
||||
|
||||
class TreebookPtr(Treebook):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = Treebook
|
||||
_controls_.Treebook_swigregister(TreebookPtr)
|
||||
|
||||
def PreTreebook(*args, **kwargs):
|
||||
"""PreTreebook() -> Treebook"""
|
||||
val = _controls_.new_PreTreebook(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
class TreebookEvent(BookCtrlBaseEvent):
|
||||
"""Proxy of C++ TreebookEvent class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxTreebookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
|
||||
int nOldSel=NOT_FOUND) -> TreebookEvent
|
||||
"""
|
||||
newobj = _controls_.new_TreebookEvent(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
|
||||
class TreebookEventPtr(TreebookEvent):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = TreebookEvent
|
||||
_controls_.TreebookEvent_swigregister(TreebookEventPtr)
|
||||
|
||||
wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED
|
||||
wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING
|
||||
wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED = _controls_.wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED
|
||||
wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED = _controls_.wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED
|
||||
EVT_TREEBOOK_PAGE_CHANGED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED, 1 )
|
||||
EVT_TREEBOOK_PAGE_CHANGING= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING, 1)
|
||||
EVT_TREEBOOK_NODE_COLLAPSED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED, 1 )
|
||||
EVT_TREEBOOK_NODE_EXPANDED= wx.PyEventBinder( wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED, 1 )
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class Toolbook(BookCtrlBase):
|
||||
"""Proxy of C++ Toolbook class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxToolbook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=BK_DEFAULT,
|
||||
String name=EmptyString) -> Toolbook
|
||||
"""
|
||||
newobj = _controls_.new_Toolbook(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
self._setOORInfo(self)
|
||||
|
||||
def Create(*args, **kwargs):
|
||||
"""
|
||||
Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
|
||||
long style=0, String name=wxEmptyString) -> bool
|
||||
"""
|
||||
return _controls_.Toolbook_Create(*args, **kwargs)
|
||||
|
||||
def GetToolBar(*args, **kwargs):
|
||||
"""GetToolBar(self) -> ToolBarBase"""
|
||||
return _controls_.Toolbook_GetToolBar(*args, **kwargs)
|
||||
|
||||
def Realize(*args, **kwargs):
|
||||
"""Realize(self)"""
|
||||
return _controls_.Toolbook_Realize(*args, **kwargs)
|
||||
|
||||
|
||||
class ToolbookPtr(Toolbook):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = Toolbook
|
||||
_controls_.Toolbook_swigregister(ToolbookPtr)
|
||||
|
||||
def PreToolbook(*args, **kwargs):
|
||||
"""PreToolbook() -> Toolbook"""
|
||||
val = _controls_.new_PreToolbook(*args, **kwargs)
|
||||
val.thisown = 1
|
||||
return val
|
||||
|
||||
class ToolbookEvent(BookCtrlBaseEvent):
|
||||
"""Proxy of C++ ToolbookEvent class"""
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxToolbookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(self, wxEventType commandType=wxEVT_NULL, int id=0, int nSel=NOT_FOUND,
|
||||
int nOldSel=NOT_FOUND) -> ToolbookEvent
|
||||
"""
|
||||
newobj = _controls_.new_ToolbookEvent(*args, **kwargs)
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
|
||||
class ToolbookEventPtr(ToolbookEvent):
|
||||
def __init__(self, this):
|
||||
self.this = this
|
||||
if not hasattr(self,"thisown"): self.thisown = 0
|
||||
self.__class__ = ToolbookEvent
|
||||
_controls_.ToolbookEvent_swigregister(ToolbookEventPtr)
|
||||
|
||||
wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED = _controls_.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED
|
||||
wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING = _controls_.wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING
|
||||
EVT_TOOLBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED, 1)
|
||||
EVT_TOOLBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING, 1)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
TOOL_STYLE_BUTTON = _controls_.TOOL_STYLE_BUTTON
|
||||
@@ -4080,6 +4285,12 @@ class ListItemAttr(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_controls_.delete_ListItemAttr):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def SetTextColour(*args, **kwargs):
|
||||
"""SetTextColour(self, Colour colText)"""
|
||||
return _controls_.ListItemAttr_SetTextColour(*args, **kwargs)
|
||||
@@ -4116,9 +4327,15 @@ class ListItemAttr(object):
|
||||
"""GetFont(self) -> Font"""
|
||||
return _controls_.ListItemAttr_GetFont(*args, **kwargs)
|
||||
|
||||
def AssignFrom(*args, **kwargs):
|
||||
"""AssignFrom(self, ListItemAttr source)"""
|
||||
return _controls_.ListItemAttr_AssignFrom(*args, **kwargs)
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _controls_.ListItemAttr_Destroy(*args, **kwargs)
|
||||
val = _controls_.ListItemAttr_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class ListItemAttrPtr(ListItemAttr):
|
||||
@@ -5029,6 +5246,12 @@ class TreeItemData(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_controls_.delete_TreeItemData):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def GetData(*args, **kwargs):
|
||||
"""GetData(self) -> PyObject"""
|
||||
return _controls_.TreeItemData_GetData(*args, **kwargs)
|
||||
@@ -5047,7 +5270,9 @@ class TreeItemData(object):
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _controls_.TreeItemData_Destroy(*args, **kwargs)
|
||||
val = _controls_.TreeItemData_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class TreeItemDataPtr(TreeItemData):
|
||||
@@ -6154,7 +6379,9 @@ class HelpProvider(object):
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _controls_.HelpProvider_Destroy(*args, **kwargs)
|
||||
val = _controls_.HelpProvider_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class HelpProviderPtr(HelpProvider):
|
||||
|
||||
+1589
-238
File diff suppressed because one or more lines are too long
@@ -708,7 +708,9 @@ class Object(object):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _core_.Object_Destroy(*args, **kwargs)
|
||||
val = _core_.Object_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class ObjectPtr(Object):
|
||||
@@ -2415,7 +2417,9 @@ class Image(Object):
|
||||
|
||||
Destroys the image data.
|
||||
"""
|
||||
return _core_.Image_Destroy(*args, **kwargs)
|
||||
val = _core_.Image_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def Scale(*args, **kwargs):
|
||||
"""
|
||||
@@ -3596,7 +3600,9 @@ class EvtHandler(Object):
|
||||
|
||||
def _setOORInfo(*args, **kwargs):
|
||||
"""_setOORInfo(self, PyObject _self, bool incref=True)"""
|
||||
return _core_.EvtHandler__setOORInfo(*args, **kwargs)
|
||||
val = _core_.EvtHandler__setOORInfo(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY):
|
||||
"""
|
||||
@@ -8109,7 +8115,9 @@ class Window(EvtHandler):
|
||||
Returns True if the window has either been successfully deleted, or it
|
||||
has been added to the list of windows pending real deletion.
|
||||
"""
|
||||
return _core_.Window_Destroy(*args, **kwargs)
|
||||
val = _core_.Window_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def DestroyChildren(*args, **kwargs):
|
||||
"""
|
||||
@@ -10157,6 +10165,9 @@ class Window(EvtHandler):
|
||||
if hasattr(self, '_setCallbackInfo'):
|
||||
self._setCallbackInfo(self, self.__class__)
|
||||
|
||||
def SendSizeEvent(self):
|
||||
self.GetEventhandler().ProcessEvent(wx.SizeEvent((-1,-1)))
|
||||
|
||||
|
||||
class WindowPtr(Window):
|
||||
def __init__(self, this):
|
||||
@@ -10513,7 +10524,9 @@ class Menu(EvtHandler):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _core_.Menu_Destroy(*args, **kwargs)
|
||||
val = _core_.Menu_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def DestroyId(*args, **kwargs):
|
||||
"""
|
||||
@@ -10521,7 +10534,9 @@ class Menu(EvtHandler):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _core_.Menu_DestroyId(*args, **kwargs)
|
||||
val = _core_.Menu_DestroyId(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def DestroyItem(*args, **kwargs):
|
||||
"""
|
||||
@@ -10529,7 +10544,9 @@ class Menu(EvtHandler):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _core_.Menu_DestroyItem(*args, **kwargs)
|
||||
val = _core_.Menu_DestroyItem(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def GetMenuItemCount(*args, **kwargs):
|
||||
"""GetMenuItemCount(self) -> size_t"""
|
||||
@@ -11336,6 +11353,12 @@ class SizerItem(Object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_core_.delete_SizerItem):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def DeleteWindows(*args, **kwargs):
|
||||
"""
|
||||
DeleteWindows(self)
|
||||
@@ -11681,6 +11704,12 @@ class Sizer(Object):
|
||||
def __init__(self): raise RuntimeError, "No constructor defined"
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxSizer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __del__(self, destroy=_core_.delete_Sizer):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def _setOORInfo(*args, **kwargs):
|
||||
"""_setOORInfo(self, PyObject _self)"""
|
||||
return _core_.Sizer__setOORInfo(*args, **kwargs)
|
||||
@@ -12604,6 +12633,12 @@ class GBPosition(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_core_.delete_GBPosition):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def GetRow(*args, **kwargs):
|
||||
"""GetRow(self) -> int"""
|
||||
return _core_.GBPosition_GetRow(*args, **kwargs)
|
||||
@@ -12683,6 +12718,12 @@ class GBSpan(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_core_.delete_GBSpan):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def GetRowspan(*args, **kwargs):
|
||||
"""GetRowspan(self) -> int"""
|
||||
return _core_.GBSpan_GetRowspan(*args, **kwargs)
|
||||
@@ -12763,6 +12804,12 @@ class GBSizerItem(SizerItem):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_core_.delete_GBSizerItem):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def GetPos(*args, **kwargs):
|
||||
"""
|
||||
GetPos(self) -> GBPosition
|
||||
|
||||
+246
-115
File diff suppressed because it is too large
Load Diff
@@ -4207,10 +4207,7 @@ class BufferedDC(MemoryDC):
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__(self, DC dc, Bitmap buffer=NullBitmap, int style=BUFFER_CLIENT_AREA) -> BufferedDC
|
||||
__init__(self, DC dc, Bitmap buffer=NullBitmap) -> BufferedDC
|
||||
__init__(self, DC dc) -> BufferedDC
|
||||
__init__(self, DC dc, Size area, int style=BUFFER_CLIENT_AREA) -> BufferedDC
|
||||
__init__(self, DC dc, Size area) -> BufferedDC
|
||||
|
||||
Constructs a buffered DC.
|
||||
"""
|
||||
|
||||
+83
-217
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1624,7 +1625,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1711,7 +1712,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
@@ -1863,31 +1864,30 @@ SWIG_Check_int(PyObject* obj)
|
||||
/*@@*/
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *wxPen_GetDashes(wxPen *self){
|
||||
@@ -2240,7 +2240,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -17493,27 +17493,32 @@ static PyObject * MemoryDC_swigregister(PyObject *, PyObject *args) {
|
||||
static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxDC *arg1 = (wxDC *) 0 ;
|
||||
wxBitmap *arg2 = 0 ;
|
||||
int arg3 ;
|
||||
wxBitmap const &arg2_defvalue = wxNullBitmap ;
|
||||
wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
|
||||
int arg3 = (int) wxBUFFER_CLIENT_AREA ;
|
||||
wxBufferedDC *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OOO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"O|OO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
SWIG_null_ref("wxBitmap");
|
||||
if (obj1) {
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
SWIG_null_ref("wxBitmap");
|
||||
}
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
}
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
arg3 = static_cast<int >(SWIG_As_int(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
if (obj2) {
|
||||
{
|
||||
arg3 = static_cast<int >(SWIG_As_int(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
@@ -17531,84 +17536,28 @@ static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *, PyObject *args) {
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxDC *arg1 = (wxDC *) 0 ;
|
||||
wxBitmap *arg2 = 0 ;
|
||||
wxBufferedDC *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxBitmap, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
if (arg2 == NULL) {
|
||||
SWIG_null_ref("wxBitmap");
|
||||
}
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BufferedDC__SWIG_2(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxDC *arg1 = (wxDC *) 0 ;
|
||||
wxBufferedDC *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"O:new_BufferedDC",&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxBufferedDC *)new wxBufferedDC(arg1);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BufferedDC__SWIG_3(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxDC *arg1 = (wxDC *) 0 ;
|
||||
wxSize *arg2 = 0 ;
|
||||
int arg3 ;
|
||||
int arg3 = (int) wxBUFFER_CLIENT_AREA ;
|
||||
wxBufferedDC *result;
|
||||
wxSize temp2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OOO:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
arg3 = static_cast<int >(SWIG_As_int(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
if (obj2) {
|
||||
{
|
||||
arg3 = static_cast<int >(SWIG_As_int(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
@@ -17625,37 +17574,6 @@ static PyObject *_wrap_new_BufferedDC__SWIG_3(PyObject *, PyObject *args) {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BufferedDC__SWIG_4(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxDC *arg1 = (wxDC *) 0 ;
|
||||
wxSize *arg2 = 0 ;
|
||||
wxBufferedDC *result;
|
||||
wxSize temp2 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxDC, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
arg2 = &temp2;
|
||||
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[4];
|
||||
@@ -17665,7 +17583,7 @@ static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
|
||||
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
||||
argv[ii] = PyTuple_GetItem(args,ii);
|
||||
}
|
||||
if (argc == 1) {
|
||||
if ((argc >= 1) && (argc <= 3)) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
@@ -17677,21 +17595,9 @@ static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_2(self,args);
|
||||
}
|
||||
}
|
||||
if (argc == 2) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
if (argc <= 1) {
|
||||
return _wrap_new_BufferedDC__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr = 0;
|
||||
if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
|
||||
@@ -17702,75 +17608,9 @@ static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 2) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
_v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_4(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 3) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
_v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
|
||||
}
|
||||
if (_v) {
|
||||
_v = SWIG_Check_int(argv[2]);
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_3(self,args);
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_BufferedDC__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 3) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr = 0;
|
||||
if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = (ptr != 0);
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
_v = SWIG_Check_int(argv[2]);
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_0(self,args);
|
||||
@@ -17778,6 +17618,32 @@ static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((argc >= 2) && (argc <= 3)) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
_v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
|
||||
}
|
||||
if (_v) {
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_BufferedDC__SWIG_1(self,args);
|
||||
}
|
||||
_v = SWIG_Check_int(argv[2]);
|
||||
if (_v) {
|
||||
return _wrap_new_BufferedDC__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PyErr_SetString(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
|
||||
return NULL;
|
||||
@@ -18750,7 +18616,7 @@ static PyObject *_wrap_new_ImageList(PyObject *, PyObject *args, PyObject *kwarg
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 1);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
|
||||
@@ -778,6 +778,12 @@ class ToolTip(_core.Object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_misc_.delete_ToolTip):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def SetTip(*args, **kwargs):
|
||||
"""SetTip(self, String tip)"""
|
||||
return _misc_.ToolTip_SetTip(*args, **kwargs)
|
||||
@@ -826,13 +832,21 @@ class Caret(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_misc_.delete_Caret):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""
|
||||
Destroy(self)
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _misc_.Caret_Destroy(*args, **kwargs)
|
||||
val = _misc_.Caret_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
@@ -1310,7 +1324,6 @@ class TimerRunner(object):
|
||||
"""
|
||||
__init__(self, wxTimer timer) -> TimerRunner
|
||||
__init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
|
||||
__init__(self, wxTimer timer, int milli) -> TimerRunner
|
||||
"""
|
||||
newobj = _misc_.new_TimerRunner(*args)
|
||||
self.this = newobj.this
|
||||
@@ -1367,6 +1380,12 @@ class Log(object):
|
||||
self.this = newobj.this
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_misc_.delete_Log):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def IsEnabled(*args, **kwargs):
|
||||
"""IsEnabled() -> bool"""
|
||||
return _misc_.Log_IsEnabled(*args, **kwargs)
|
||||
@@ -1488,7 +1507,9 @@ class Log(object):
|
||||
TimeStamp = staticmethod(TimeStamp)
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _misc_.Log_Destroy(*args, **kwargs)
|
||||
val = _misc_.Log_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class LogPtr(Log):
|
||||
@@ -2691,6 +2712,12 @@ class ArtProvider(object):
|
||||
del newobj.thisown
|
||||
self._setCallbackInfo(self, ArtProvider)
|
||||
|
||||
def __del__(self, destroy=_misc_.delete_ArtProvider):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def _setCallbackInfo(*args, **kwargs):
|
||||
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
|
||||
return _misc_.ArtProvider__setCallbackInfo(*args, **kwargs)
|
||||
@@ -2720,7 +2747,9 @@ class ArtProvider(object):
|
||||
Remove provider. The provider must have been added previously! The
|
||||
provider is _not_ deleted.
|
||||
"""
|
||||
return _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
|
||||
val = _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
|
||||
args[1].thisown = 1
|
||||
return val
|
||||
|
||||
RemoveProvider = staticmethod(RemoveProvider)
|
||||
def GetBitmap(*args, **kwargs):
|
||||
@@ -2755,7 +2784,9 @@ class ArtProvider(object):
|
||||
GetSizeHint = staticmethod(GetSizeHint)
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _misc_.ArtProvider_Destroy(*args, **kwargs)
|
||||
val = _misc_.ArtProvider_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class ArtProviderPtr(ArtProvider):
|
||||
@@ -2844,7 +2875,9 @@ def ArtProvider_RemoveProvider(*args, **kwargs):
|
||||
Remove provider. The provider must have been added previously! The
|
||||
provider is _not_ deleted.
|
||||
"""
|
||||
return _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
|
||||
val = _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
|
||||
args[1].thisown = 1
|
||||
return val
|
||||
|
||||
def ArtProvider_GetBitmap(*args, **kwargs):
|
||||
"""
|
||||
@@ -4840,7 +4873,6 @@ class DataObject(object):
|
||||
GetDataHere(self, DataFormat format) -> String
|
||||
|
||||
Get the data bytes in the specified format, returns None on failure.
|
||||
|
||||
"""
|
||||
return _misc_.DataObject_GetDataHere(*args, **kwargs)
|
||||
|
||||
|
||||
+152
-95
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1666,7 +1667,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1802,31 +1803,30 @@ SWIG_Check_bool(PyObject* obj)
|
||||
}
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1835,7 +1835,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
@@ -2134,7 +2134,7 @@ static wxString wxLog_TimeStamp(){
|
||||
return msg;
|
||||
}
|
||||
static void wxLog_Destroy(wxLog *self){ delete self; }
|
||||
// Make somce wrappers that double any % signs so they are 'escaped'
|
||||
// Make some wrappers that double any % signs so they are 'escaped'
|
||||
void wxPyLogFatalError(const wxString& msg)
|
||||
{
|
||||
wxString m(msg);
|
||||
@@ -2655,7 +2655,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -7006,9 +7006,7 @@ static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs)
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 1);
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolTip, 1);
|
||||
{
|
||||
if (temp1)
|
||||
delete arg1;
|
||||
@@ -7023,6 +7021,31 @@ static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs)
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxToolTip *arg1 = (wxToolTip *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ToolTip",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxToolTip, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxToolTip *arg1 = (wxToolTip *) 0 ;
|
||||
@@ -7219,6 +7242,31 @@ static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxCaret *arg1 = (wxCaret *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxCaret, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Caret_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxCaret *arg1 = (wxCaret *) 0 ;
|
||||
@@ -9460,13 +9508,13 @@ static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxTimer *arg1 = 0 ;
|
||||
int arg2 ;
|
||||
bool arg3 ;
|
||||
bool arg3 = (bool) false ;
|
||||
wxTimerRunner *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OOO:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
@@ -9479,9 +9527,11 @@ static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
|
||||
arg2 = static_cast<int >(SWIG_As_int(obj1));
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
arg3 = static_cast<bool >(SWIG_As_bool(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
if (obj2) {
|
||||
{
|
||||
arg3 = static_cast<bool >(SWIG_As_bool(obj2));
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
@@ -9498,42 +9548,6 @@ static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_TimerRunner__SWIG_2(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxTimer *arg1 = 0 ;
|
||||
int arg2 ;
|
||||
wxTimerRunner *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO:new_TimerRunner",&obj0,&obj1)) goto fail;
|
||||
{
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxTimer, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
if (arg1 == NULL) {
|
||||
SWIG_null_ref("wxTimer");
|
||||
}
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
arg2 = static_cast<int >(SWIG_As_int(obj1));
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
|
||||
int argc;
|
||||
PyObject *argv[4];
|
||||
@@ -9558,25 +9572,7 @@ static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
|
||||
return _wrap_new_TimerRunner__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
if (argc == 2) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr = 0;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = (ptr != 0);
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
_v = SWIG_Check_int(argv[1]);
|
||||
if (_v) {
|
||||
return _wrap_new_TimerRunner__SWIG_2(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 3) {
|
||||
if ((argc >= 2) && (argc <= 3)) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr = 0;
|
||||
@@ -9590,6 +9586,9 @@ static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
|
||||
if (_v) {
|
||||
_v = SWIG_Check_int(argv[1]);
|
||||
if (_v) {
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_TimerRunner__SWIG_1(self,args);
|
||||
}
|
||||
_v = SWIG_Check_bool(argv[2]);
|
||||
if (_v) {
|
||||
return _wrap_new_TimerRunner__SWIG_1(self,args);
|
||||
@@ -9696,6 +9695,31 @@ static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_Log(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxLog *arg1 = (wxLog *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Log",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
bool result;
|
||||
@@ -9867,7 +9891,7 @@ static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | 0);
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxLog, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -9876,7 +9900,7 @@ static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
@@ -10560,7 +10584,7 @@ static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -12491,7 +12515,11 @@ static PyObject *_wrap_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
{
|
||||
PyObject* o;
|
||||
o = PyInt_FromLong((long) (*arg3));
|
||||
|
||||
resultobj = t_output_helper(resultobj, o);
|
||||
|
||||
|
||||
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -17485,6 +17513,31 @@ static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwa
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ArtProvider",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
|
||||
@@ -17525,7 +17578,7 @@ static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyOb
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | 0);
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -32792,6 +32845,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_ToolTip", (PyCFunction) _wrap_delete_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -32799,6 +32853,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Caret_Destroy", (PyCFunction) _wrap_Caret_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -32882,6 +32937,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_Log", (PyCFunction) _wrap_delete_Log, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
@@ -33099,6 +33155,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_ArtProvider", (PyCFunction) _wrap_delete_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
||||
@@ -699,9 +699,6 @@ class Dialog(TopLevelWindow):
|
||||
return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
|
||||
|
||||
GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
|
||||
def SendSizeEvent(self):
|
||||
self.ProcessEvent(wx.SizeEvent((-1,-1)))
|
||||
|
||||
|
||||
class DialogPtr(Dialog):
|
||||
def __init__(self, this):
|
||||
@@ -2170,6 +2167,12 @@ class TaskBarIcon(_core.EvtHandler):
|
||||
del newobj.thisown
|
||||
self._setCallbackInfo(self, TaskBarIcon, 0)
|
||||
|
||||
def __del__(self, destroy=_windows_.delete_TaskBarIcon):
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def _setCallbackInfo(*args, **kwargs):
|
||||
"""_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
|
||||
return _windows_.TaskBarIcon__setCallbackInfo(*args, **kwargs)
|
||||
@@ -2180,7 +2183,9 @@ class TaskBarIcon(_core.EvtHandler):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _windows_.TaskBarIcon_Destroy(*args, **kwargs)
|
||||
val = _windows_.TaskBarIcon_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def IsOk(*args, **kwargs):
|
||||
"""IsOk(self) -> bool"""
|
||||
@@ -4694,7 +4699,6 @@ class PrintPreview(_core.Object):
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
|
||||
__init__(self, Printout printout, Printout printoutForPrinting) -> PrintPreview
|
||||
__init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
|
||||
"""
|
||||
newobj = _windows_.new_PrintPreview(*args)
|
||||
@@ -4805,7 +4809,6 @@ class PyPrintPreview(PrintPreview):
|
||||
def __init__(self, *args):
|
||||
"""
|
||||
__init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
|
||||
__init__(self, Printout printout, Printout printoutForPrinting) -> PyPrintPreview
|
||||
__init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
|
||||
"""
|
||||
newobj = _windows_.new_PyPrintPreview(*args)
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1652,7 +1653,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1781,31 +1782,30 @@ SWIG_Check_bool(PyObject* obj)
|
||||
/*@@*/
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1817,7 +1817,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1975,7 +1975,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
@@ -5267,7 +5267,7 @@ static PyObject *_wrap_Frame_CreateStatusBar(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp5)
|
||||
@@ -5303,7 +5303,7 @@ static PyObject *_wrap_Frame_GetStatusBar(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -5616,7 +5616,7 @@ static PyObject *_wrap_Frame_CreateToolBar(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp4)
|
||||
@@ -5652,7 +5652,7 @@ static PyObject *_wrap_Frame_GetToolBar(PyObject *, PyObject *args, PyObject *kw
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6126,7 +6126,7 @@ static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *, PyObject *args, PyObje
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
@@ -6184,7 +6184,7 @@ static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *, PyObject *args, PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -13021,6 +13021,31 @@ static PyObject *_wrap_new_TaskBarIcon(PyObject *, PyObject *args, PyObject *kwa
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_TaskBarIcon(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
char *kwnames[] = {
|
||||
(char *) "self", NULL
|
||||
};
|
||||
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyTaskBarIcon, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
delete arg1;
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
Py_INCREF(Py_None); resultobj = Py_None;
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_TaskBarIcon__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyTaskBarIcon *arg1 = (wxPyTaskBarIcon *) 0 ;
|
||||
@@ -17377,7 +17402,7 @@ static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -17405,7 +17430,7 @@ static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *, PyObject *args
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -23916,7 +23941,7 @@ static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *, PyObject *args, PyObje
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 1);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -24170,7 +24195,7 @@ static PyObject *_wrap_Printer_PrintDialog(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -24292,7 +24317,7 @@ static PyObject *_wrap_new_Printout(PyObject *, PyObject *args, PyObject *kwargs
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 1);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)1);
|
||||
}
|
||||
{
|
||||
if (temp1)
|
||||
@@ -24391,7 +24416,7 @@ static PyObject *_wrap_Printout_GetDC(PyObject *, PyObject *args, PyObject *kwar
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -25605,19 +25630,21 @@ static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
wxPrintDialogData *arg3 = (wxPrintDialogData *) 0 ;
|
||||
wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ;
|
||||
wxPrintPreview *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
if (obj2) {
|
||||
SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -25634,34 +25661,6 @@ static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *, PyObject *args) {
|
||||
|
||||
|
||||
static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
wxPrintPreview *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO:new_PrintPreview",&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_PrintPreview__SWIG_2(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
@@ -25702,7 +25701,7 @@ static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) {
|
||||
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
||||
argv[ii] = PyTuple_GetItem(args,ii);
|
||||
}
|
||||
if (argc == 2) {
|
||||
if ((argc >= 2) && (argc <= 3)) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
@@ -25724,32 +25723,9 @@ static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_PrintPreview__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 3) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_PrintPreview__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) {
|
||||
@@ -25797,7 +25773,7 @@ static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_PrintPreview__SWIG_2(self,args);
|
||||
return _wrap_new_PrintPreview__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25919,7 +25895,7 @@ static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *, PyObject *args, PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -25947,7 +25923,7 @@ static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -26487,19 +26463,21 @@ static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
wxPrintDialogData *arg3 = (wxPrintDialogData *) 0 ;
|
||||
wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ;
|
||||
wxPyPrintPreview *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
PyObject * obj2 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail;
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO|O:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
if (obj2) {
|
||||
SWIG_Python_ConvertPtr(obj2, (void **)&arg3, SWIGTYPE_p_wxPrintDialogData, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(3)) SWIG_fail;
|
||||
}
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -26516,34 +26494,6 @@ static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *, PyObject *args) {
|
||||
|
||||
|
||||
static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintPreview *result;
|
||||
PyObject * obj0 = 0 ;
|
||||
PyObject * obj1 = 0 ;
|
||||
|
||||
if(!PyArg_ParseTuple(args,(char *)"OO:new_PyPrintPreview",&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxPyPrintout, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
if (!wxPyCheckForApp()) SWIG_fail;
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1);
|
||||
return resultobj;
|
||||
fail:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_PyPrintPreview__SWIG_2(PyObject *, PyObject *args) {
|
||||
PyObject *resultobj = NULL;
|
||||
wxPyPrintout *arg1 = (wxPyPrintout *) 0 ;
|
||||
wxPyPrintout *arg2 = (wxPyPrintout *) 0 ;
|
||||
@@ -26584,7 +26534,7 @@ static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) {
|
||||
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
||||
argv[ii] = PyTuple_GetItem(args,ii);
|
||||
}
|
||||
if (argc == 2) {
|
||||
if ((argc >= 2) && (argc <= 3)) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
@@ -26606,32 +26556,9 @@ static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_PyPrintPreview__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (argc == 3) {
|
||||
int _v;
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) {
|
||||
_v = 0;
|
||||
PyErr_Clear();
|
||||
} else {
|
||||
_v = 1;
|
||||
if (argc <= 2) {
|
||||
return _wrap_new_PyPrintPreview__SWIG_0(self,args);
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
{
|
||||
void *ptr;
|
||||
if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) {
|
||||
@@ -26679,7 +26606,7 @@ static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) {
|
||||
}
|
||||
}
|
||||
if (_v) {
|
||||
return _wrap_new_PyPrintPreview__SWIG_2(self,args);
|
||||
return _wrap_new_PyPrintPreview__SWIG_1(self,args);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27727,6 +27654,7 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"HtmlListBox_GetFileSystem", (PyCFunction) _wrap_HtmlListBox_GetFileSystem, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS, NULL},
|
||||
{ (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TaskBarIcon__setCallbackInfo", (PyCFunction) _wrap_TaskBarIcon__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1596,7 +1597,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1726,7 +1727,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
|
||||
@@ -393,7 +393,9 @@ class GridCellEditor(object):
|
||||
|
||||
def Destroy(*args, **kwargs):
|
||||
"""Destroy(self)"""
|
||||
return _grid.GridCellEditor_Destroy(*args, **kwargs)
|
||||
val = _grid.GridCellEditor_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
|
||||
class GridCellEditorPtr(GridCellEditor):
|
||||
@@ -1056,7 +1058,9 @@ class PyGridTableBase(GridTableBase):
|
||||
|
||||
Deletes the C++ object this Python object is a proxy for.
|
||||
"""
|
||||
return _grid.PyGridTableBase_Destroy(*args, **kwargs)
|
||||
val = _grid.PyGridTableBase_Destroy(*args, **kwargs)
|
||||
args[0].thisown = 0
|
||||
return val
|
||||
|
||||
def base_GetTypeName(*args, **kwargs):
|
||||
"""base_GetTypeName(self, int row, int col) -> String"""
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -2162,7 +2163,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -2494,31 +2495,30 @@ static void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){
|
||||
self->SetClientObject(new wxPyOORClientData(_self));
|
||||
}
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
static void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){
|
||||
@@ -2531,7 +2531,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
@@ -2617,7 +2617,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -3179,7 +3179,7 @@ static PyObject *_wrap_GridCellRenderer_Clone(PyObject *, PyObject *args, PyObje
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -3804,7 +3804,7 @@ static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *, PyObject *args, Py
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -4101,7 +4101,7 @@ static PyObject *_wrap_GridCellEditor_Clone(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -5295,7 +5295,7 @@ static PyObject *_wrap_new_GridCellAttr(PyObject *, PyObject *args, PyObject *kw
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 1);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -5323,7 +5323,7 @@ static PyObject *_wrap_GridCellAttr_Clone(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6190,7 +6190,7 @@ static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *, PyObject *args, PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6234,7 +6234,7 @@ static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *, PyObject *args, PyObje
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6348,7 +6348,7 @@ static PyObject *_wrap_new_GridCellAttrProvider(PyObject *, PyObject *args, PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttrProvider(result, 1);
|
||||
resultobj = wxPyMake_wxGridCellAttrProvider(result, (bool)1);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6422,7 +6422,7 @@ static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6713,7 +6713,7 @@ static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6916,7 +6916,7 @@ static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttrProvider(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttrProvider(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -6973,7 +6973,7 @@ static PyObject *_wrap_GridTableBase_GetView(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -8088,7 +8088,7 @@ static PyObject *_wrap_GridTableBase_GetAttr(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -8957,7 +8957,7 @@ static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -9250,7 +9250,7 @@ static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *, PyObject *arg
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridTableBase(result, 0);
|
||||
resultobj = wxPyMake_wxGridTableBase(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -10176,7 +10176,7 @@ static PyObject *_wrap_Grid_GetTable(PyObject *, PyObject *args, PyObject *kwarg
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridTableBase(result, 0);
|
||||
resultobj = wxPyMake_wxGridTableBase(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -13349,7 +13349,7 @@ static PyObject *_wrap_Grid_GetOrCreateCellAttr(PyObject *, PyObject *args, PyOb
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellAttr(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -15225,7 +15225,7 @@ static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *, PyObject *args, PyObj
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -15265,7 +15265,7 @@ static PyObject *_wrap_Grid_GetCellRenderer(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -15363,7 +15363,7 @@ static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -15403,7 +15403,7 @@ static PyObject *_wrap_Grid_GetCellEditor(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -16346,7 +16346,7 @@ static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -16386,7 +16386,7 @@ static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *, PyObject *args
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -16422,7 +16422,7 @@ static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *, PyObject *args,
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellEditor(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
@@ -16466,7 +16466,7 @@ static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *, PyObject *args
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, 0);
|
||||
resultobj = wxPyMake_wxGridCellRenderer(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
|
||||
@@ -2043,7 +2043,6 @@ class HtmlHelpController(HelpControllerBase):
|
||||
"""FindTopLevelWindow(self) -> Window"""
|
||||
return _html.HtmlHelpController_FindTopLevelWindow(*args, **kwargs)
|
||||
|
||||
def Destroy(self): pass
|
||||
|
||||
class HtmlHelpControllerPtr(HtmlHelpController):
|
||||
def __init__(self, this):
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1701,7 +1702,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1874,31 +1875,30 @@ SWIGINTERNINLINE PyObject*
|
||||
}
|
||||
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1970,7 +1970,7 @@ SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
|
||||
{
|
||||
long v = 0;
|
||||
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
||||
SWIG_type_error("unsigned number", obj);
|
||||
SWIG_Python_TypeError("unsigned number", obj);
|
||||
}
|
||||
else if (val)
|
||||
*val = (unsigned long)v;
|
||||
@@ -2242,7 +2242,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -2522,7 +2522,7 @@ static PyObject *_wrap_HtmlLinkInfo_GetEvent(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -2953,7 +2953,7 @@ static PyObject *_wrap_HtmlParser_GetFS(PyObject *, PyObject *args, PyObject *kw
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -2989,7 +2989,7 @@ static PyObject *_wrap_HtmlParser_Parse(PyObject *, PyObject *args, PyObject *kw
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
{
|
||||
if (temp2)
|
||||
@@ -3340,7 +3340,7 @@ static PyObject *_wrap_HtmlWinParser_GetDC(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -3424,7 +3424,7 @@ static PyObject *_wrap_HtmlWinParser_GetWindow(PyObject *, PyObject *args, PyObj
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -11680,7 +11680,7 @@ static PyObject *_wrap_HtmlHelpWindow_SetController(PyObject *, PyObject *args,
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlHelpWindow_SetController",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHtmlHelpWindow, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | 0);
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -12154,7 +12154,7 @@ static PyObject *_wrap_HtmlHelpWindow_GetToolBar(PyObject *, PyObject *args, PyO
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -12636,7 +12636,7 @@ static PyObject *_wrap_HtmlHelpFrame_SetController(PyObject *, PyObject *args, P
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlHelpFrame_SetController",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHtmlHelpFrame, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | 0);
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
@@ -12912,7 +12912,7 @@ static PyObject *_wrap_HtmlHelpDialog_SetController(PyObject *, PyObject *args,
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlHelpDialog_SetController",kwnames,&obj0,&obj1)) goto fail;
|
||||
SWIG_Python_ConvertPtr(obj0, (void **)&arg1, SWIGTYPE_p_wxHtmlHelpDialog, SWIG_POINTER_EXCEPTION | 0);
|
||||
if (SWIG_arg_fail(1)) SWIG_fail;
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | 0);
|
||||
SWIG_Python_ConvertPtr(obj1, (void **)&arg2, SWIGTYPE_p_wxHtmlHelpController, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN);
|
||||
if (SWIG_arg_fail(2)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1664,7 +1665,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1757,7 +1758,7 @@ SWIG_AsVal_double(PyObject *obj, double* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1654,7 +1655,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
#define SWIGPYTHON
|
||||
#define SWIG_VERSION 0x010327
|
||||
|
||||
#ifdef __cplusplus
|
||||
template<class T> class SwigValueWrapper {
|
||||
@@ -1651,7 +1652,7 @@ SWIG_AsVal_long(PyObject* obj, long* val)
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
SWIG_type_error("number", obj);
|
||||
SWIG_Python_TypeError("number", obj);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -1845,31 +1846,30 @@ static bool wxPyWizardPage_Create(wxPyWizardPage *self,wxWizard *parent,wxBitmap
|
||||
return self->Create(parent, bitmap, res);
|
||||
}
|
||||
|
||||
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
|
||||
if (!target) {
|
||||
target = o;
|
||||
} else if (target == Py_None) {
|
||||
Py_DECREF(Py_None);
|
||||
target = o;
|
||||
} else {
|
||||
if (!PyTuple_Check(target)) {
|
||||
o2 = target;
|
||||
target = PyTuple_New(1);
|
||||
PyTuple_SetItem(target, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, o);
|
||||
|
||||
o2 = target;
|
||||
target = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
static PyObject* t_output_helper(PyObject* result, PyObject* obj)
|
||||
{
|
||||
PyObject* o2;
|
||||
PyObject* o3;
|
||||
if (!result) {
|
||||
result = obj;
|
||||
} else if (result == Py_None) {
|
||||
Py_DECREF(result);
|
||||
result = obj;
|
||||
} else {
|
||||
if (!PyTuple_Check(result)) {
|
||||
o2 = result;
|
||||
result = PyTuple_New(1);
|
||||
PyTuple_SET_ITEM(result, 0, o2);
|
||||
}
|
||||
o3 = PyTuple_New(1);
|
||||
PyTuple_SetItem(o3, 0, obj);
|
||||
o2 = result;
|
||||
result = PySequence_Concat(o2, o3);
|
||||
Py_DECREF(o2);
|
||||
Py_DECREF(o3);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1996,7 +1996,7 @@ static PyObject *_wrap_WizardEvent_GetPage(PyObject *, PyObject *args, PyObject
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -2095,7 +2095,7 @@ static PyObject *_wrap_WizardPage_GetPrev(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -2123,7 +2123,7 @@ static PyObject *_wrap_WizardPage_GetNext(PyObject *, PyObject *args, PyObject *
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -3455,7 +3455,7 @@ static PyObject *_wrap_Wizard_GetCurrentPage(PyObject *, PyObject *args, PyObjec
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
@@ -3574,7 +3574,7 @@ static PyObject *_wrap_Wizard_GetPageAreaSizer(PyObject *, PyObject *args, PyObj
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
{
|
||||
resultobj = wxPyMake_wxObject(result, 0);
|
||||
resultobj = wxPyMake_wxObject(result, (bool)0);
|
||||
}
|
||||
return resultobj;
|
||||
fail:
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user