Some missing methods and etc. added
Some minor tweaks and fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -7,7 +7,7 @@ New in 2.2.0
|
|||||||
|
|
||||||
Added wxLog and friends.
|
Added wxLog and friends.
|
||||||
|
|
||||||
Added wxFrame.ShowFullScreen.
|
Added wxFrame.ShowFullScreen for MSW.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -85,8 +85,9 @@ public:
|
|||||||
wxPoint GetClientAreaOrigin() const;
|
wxPoint GetClientAreaOrigin() const;
|
||||||
bool Command(int id);
|
bool Command(int id);
|
||||||
bool ProcessCommand(int id);
|
bool ProcessCommand(int id);
|
||||||
|
#ifdef __WXMSW__
|
||||||
bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
|
bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
@@ -2345,6 +2345,60 @@ static PyObject *_wrap_wxKeyEvent_KeyCode(PyObject *self, PyObject *args, PyObje
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxKeyEvent_GetKeyCode(_swigobj) (_swigobj->GetKeyCode())
|
||||||
|
static PyObject *_wrap_wxKeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
long _result;
|
||||||
|
wxKeyEvent * _arg0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxKeyEvent_GetKeyCode",_kwnames,&_argo0))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxKeyEvent_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxKeyEvent_GetKeyCode. Expected _wxKeyEvent_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
_result = (long )wxKeyEvent_GetKeyCode(_arg0);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} _resultobj = Py_BuildValue("l",_result);
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define wxKeyEvent_HasModifiers(_swigobj) (_swigobj->HasModifiers())
|
||||||
|
static PyObject *_wrap_wxKeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
bool _result;
|
||||||
|
wxKeyEvent * _arg0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxKeyEvent_HasModifiers",_kwnames,&_argo0))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxKeyEvent_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxKeyEvent_HasModifiers. Expected _wxKeyEvent_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
_result = (bool )wxKeyEvent_HasModifiers(_arg0);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} _resultobj = Py_BuildValue("i",_result);
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxKeyEvent_GetX(_swigobj) (_swigobj->GetX())
|
#define wxKeyEvent_GetX(_swigobj) (_swigobj->GetX())
|
||||||
static PyObject *_wrap_wxKeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxKeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -5105,6 +5159,8 @@ static PyMethodDef eventscMethods[] = {
|
|||||||
{ "wxKeyEvent_GetPosition", (PyCFunction) _wrap_wxKeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
|
{ "wxKeyEvent_GetPosition", (PyCFunction) _wrap_wxKeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxKeyEvent_GetY", (PyCFunction) _wrap_wxKeyEvent_GetY, METH_VARARGS | METH_KEYWORDS },
|
{ "wxKeyEvent_GetY", (PyCFunction) _wrap_wxKeyEvent_GetY, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxKeyEvent_GetX", (PyCFunction) _wrap_wxKeyEvent_GetX, METH_VARARGS | METH_KEYWORDS },
|
{ "wxKeyEvent_GetX", (PyCFunction) _wrap_wxKeyEvent_GetX, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxKeyEvent_HasModifiers", (PyCFunction) _wrap_wxKeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxKeyEvent_GetKeyCode", (PyCFunction) _wrap_wxKeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxKeyEvent_KeyCode", (PyCFunction) _wrap_wxKeyEvent_KeyCode, METH_VARARGS | METH_KEYWORDS },
|
{ "wxKeyEvent_KeyCode", (PyCFunction) _wrap_wxKeyEvent_KeyCode, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxKeyEvent_ShiftDown", (PyCFunction) _wrap_wxKeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
|
{ "wxKeyEvent_ShiftDown", (PyCFunction) _wrap_wxKeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxKeyEvent_AltDown", (PyCFunction) _wrap_wxKeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
|
{ "wxKeyEvent_AltDown", (PyCFunction) _wrap_wxKeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -324,6 +324,12 @@ class wxKeyEventPtr(wxEventPtr):
|
|||||||
def KeyCode(self, *_args, **_kwargs):
|
def KeyCode(self, *_args, **_kwargs):
|
||||||
val = apply(eventsc.wxKeyEvent_KeyCode,(self,) + _args, _kwargs)
|
val = apply(eventsc.wxKeyEvent_KeyCode,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def GetKeyCode(self, *_args, **_kwargs):
|
||||||
|
val = apply(eventsc.wxKeyEvent_GetKeyCode,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def HasModifiers(self, *_args, **_kwargs):
|
||||||
|
val = apply(eventsc.wxKeyEvent_HasModifiers,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def GetX(self, *_args, **_kwargs):
|
def GetX(self, *_args, **_kwargs):
|
||||||
val = apply(eventsc.wxKeyEvent_GetX,(self,) + _args, _kwargs)
|
val = apply(eventsc.wxKeyEvent_GetX,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
@@ -1174,6 +1174,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
|||||||
{ "_wxPrintQuality","_EBool",0},
|
{ "_wxPrintQuality","_EBool",0},
|
||||||
{ "_wxPrintQuality","_size_t",0},
|
{ "_wxPrintQuality","_size_t",0},
|
||||||
{ "_class_wxCustomDataObject","_wxCustomDataObject",0},
|
{ "_class_wxCustomDataObject","_wxCustomDataObject",0},
|
||||||
|
{ "_wxSpinCtrl","_class_wxSpinCtrl",0},
|
||||||
{ "_class_wxRegionIterator","_wxRegionIterator",0},
|
{ "_class_wxRegionIterator","_wxRegionIterator",0},
|
||||||
{ "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
|
{ "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
|
||||||
{ "_class_wxMenuBar","_wxMenuBar",0},
|
{ "_class_wxMenuBar","_wxMenuBar",0},
|
||||||
@@ -1260,6 +1261,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
|||||||
{ "_wxPoint","_class_wxPoint",0},
|
{ "_wxPoint","_class_wxPoint",0},
|
||||||
{ "_class_wxButton","_wxButton",0},
|
{ "_class_wxButton","_wxButton",0},
|
||||||
{ "_wxRadioBox","_class_wxRadioBox",0},
|
{ "_wxRadioBox","_class_wxRadioBox",0},
|
||||||
|
{ "_class_wxSpinCtrl","_wxSpinCtrl",0},
|
||||||
{ "_char","_wxChar",0},
|
{ "_char","_wxChar",0},
|
||||||
{ "_wxBitmap","_class_wxBitmap",0},
|
{ "_wxBitmap","_class_wxBitmap",0},
|
||||||
{ "_wxWindowDC","_class_wxWindowDC",0},
|
{ "_wxWindowDC","_class_wxWindowDC",0},
|
||||||
@@ -1494,6 +1496,12 @@ SWIGEXPORT(void) initframesc() {
|
|||||||
SWIG_globals = SWIG_newvarlink();
|
SWIG_globals = SWIG_newvarlink();
|
||||||
m = Py_InitModule("framesc", framescMethods);
|
m = Py_InitModule("framesc", framescMethods);
|
||||||
d = PyModule_GetDict(m);
|
d = PyModule_GetDict(m);
|
||||||
|
PyDict_SetItemString(d,"wxFULLSCREEN_NOMENUBAR", PyInt_FromLong((long) wxFULLSCREEN_NOMENUBAR));
|
||||||
|
PyDict_SetItemString(d,"wxFULLSCREEN_NOTOOLBAR", PyInt_FromLong((long) wxFULLSCREEN_NOTOOLBAR));
|
||||||
|
PyDict_SetItemString(d,"wxFULLSCREEN_NOSTATUSBAR", PyInt_FromLong((long) wxFULLSCREEN_NOSTATUSBAR));
|
||||||
|
PyDict_SetItemString(d,"wxFULLSCREEN_NOBORDER", PyInt_FromLong((long) wxFULLSCREEN_NOBORDER));
|
||||||
|
PyDict_SetItemString(d,"wxFULLSCREEN_NOCAPTION", PyInt_FromLong((long) wxFULLSCREEN_NOCAPTION));
|
||||||
|
PyDict_SetItemString(d,"wxFULLSCREEN_ALL", PyInt_FromLong((long) wxFULLSCREEN_ALL));
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; _swig_mapping[i].n1; i++)
|
for (i = 0; _swig_mapping[i].n1; i++)
|
||||||
|
@@ -135,3 +135,9 @@ class wxMiniFrame(wxMiniFramePtr):
|
|||||||
|
|
||||||
#-------------- VARIABLE WRAPPERS ------------------
|
#-------------- VARIABLE WRAPPERS ------------------
|
||||||
|
|
||||||
|
wxFULLSCREEN_NOMENUBAR = framesc.wxFULLSCREEN_NOMENUBAR
|
||||||
|
wxFULLSCREEN_NOTOOLBAR = framesc.wxFULLSCREEN_NOTOOLBAR
|
||||||
|
wxFULLSCREEN_NOSTATUSBAR = framesc.wxFULLSCREEN_NOSTATUSBAR
|
||||||
|
wxFULLSCREEN_NOBORDER = framesc.wxFULLSCREEN_NOBORDER
|
||||||
|
wxFULLSCREEN_NOCAPTION = framesc.wxFULLSCREEN_NOCAPTION
|
||||||
|
wxFULLSCREEN_ALL = framesc.wxFULLSCREEN_ALL
|
||||||
|
@@ -7213,7 +7213,56 @@ static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyO
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
|
||||||
|
static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxImageList * _arg0;
|
||||||
|
int _arg1;
|
||||||
|
int * _arg2;
|
||||||
|
int temp;
|
||||||
|
int * _arg3;
|
||||||
|
int temp0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self","index", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
{
|
||||||
|
_arg2 = &temp;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
_arg3 = &temp0;
|
||||||
|
}
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
{
|
||||||
|
PyObject *o;
|
||||||
|
o = PyInt_FromLong((long) (*_arg2));
|
||||||
|
_resultobj = t_output_helper(_resultobj, o);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyObject *o;
|
||||||
|
o = PyInt_FromLong((long) (*_arg3));
|
||||||
|
_resultobj = t_output_helper(_resultobj, o);
|
||||||
|
}
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
static PyMethodDef gdicMethods[] = {
|
static PyMethodDef gdicMethods[] = {
|
||||||
|
{ "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
|
{ "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
|
{ "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
|
{ "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -779,6 +779,9 @@ class wxImageListPtr :
|
|||||||
def RemoveAll(self, *_args, **_kwargs):
|
def RemoveAll(self, *_args, **_kwargs):
|
||||||
val = apply(gdic.wxImageList_RemoveAll,(self,) + _args, _kwargs)
|
val = apply(gdic.wxImageList_RemoveAll,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def GetSize(self, *_args, **_kwargs):
|
||||||
|
val = apply(gdic.wxImageList_GetSize,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<C wxImageList instance at %s>" % (self.this,)
|
return "<C wxImageList instance at %s>" % (self.this,)
|
||||||
class wxImageList(wxImageListPtr):
|
class wxImageList(wxImageListPtr):
|
||||||
|
@@ -646,6 +646,7 @@ public:
|
|||||||
|
|
||||||
DEC_PYCALLBACK___pure(Reset);
|
DEC_PYCALLBACK___pure(Reset);
|
||||||
DEC_PYCALLBACK__constany(SetSize, wxRect);
|
DEC_PYCALLBACK__constany(SetSize, wxRect);
|
||||||
|
DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent);
|
||||||
DEC_PYCALLBACK__any(StartingKey, wxKeyEvent);
|
DEC_PYCALLBACK__any(StartingKey, wxKeyEvent);
|
||||||
DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent);
|
DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent);
|
||||||
DEC_PYCALLBACK__(StartingClick);
|
DEC_PYCALLBACK__(StartingClick);
|
||||||
@@ -659,6 +660,7 @@ public:
|
|||||||
IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters);
|
IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters);
|
||||||
IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset);
|
IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset);
|
||||||
IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect);
|
IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect);
|
||||||
|
IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent);
|
||||||
IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent);
|
IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent);
|
||||||
IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent);
|
IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent);
|
||||||
IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick);
|
IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick);
|
||||||
@@ -898,6 +900,60 @@ static PyObject *_wrap_wxGridCellRenderer_SetParameters(PyObject *self, PyObject
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxGridCellRenderer_IncRef(_swigobj) (_swigobj->IncRef())
|
||||||
|
static PyObject *_wrap_wxGridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxGridCellRenderer * _arg0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridCellRenderer_IncRef",_kwnames,&_argo0))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridCellRenderer_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridCellRenderer_IncRef. Expected _wxGridCellRenderer_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
wxGridCellRenderer_IncRef(_arg0);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define wxGridCellRenderer_DecRef(_swigobj) (_swigobj->DecRef())
|
||||||
|
static PyObject *_wrap_wxGridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxGridCellRenderer * _arg0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridCellRenderer_DecRef",_kwnames,&_argo0))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridCellRenderer_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridCellRenderer_DecRef. Expected _wxGridCellRenderer_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
wxGridCellRenderer_DecRef(_arg0);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxGridCellRenderer_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
|
#define wxGridCellRenderer_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
|
||||||
static PyObject *_wrap_wxGridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxGridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -1564,6 +1620,60 @@ static PyObject *_wrap_wxGridCellEditor_SetParameters(PyObject *self, PyObject *
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxGridCellEditor_IncRef(_swigobj) (_swigobj->IncRef())
|
||||||
|
static PyObject *_wrap_wxGridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxGridCellEditor * _arg0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridCellEditor_IncRef",_kwnames,&_argo0))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridCellEditor_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridCellEditor_IncRef. Expected _wxGridCellEditor_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
wxGridCellEditor_IncRef(_arg0);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define wxGridCellEditor_DecRef(_swigobj) (_swigobj->DecRef())
|
||||||
|
static PyObject *_wrap_wxGridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxGridCellEditor * _arg0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridCellEditor_DecRef",_kwnames,&_argo0))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridCellEditor_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridCellEditor_DecRef. Expected _wxGridCellEditor_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
wxGridCellEditor_DecRef(_arg0);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxGridCellEditor_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2))
|
#define wxGridCellEditor_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2))
|
||||||
static PyObject *_wrap_wxGridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxGridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -1865,6 +1975,42 @@ static PyObject *_wrap_wxGridCellEditor_PaintBackground(PyObject *self, PyObject
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxGridCellEditor_IsAcceptedKey(_swigobj,_swigarg0) (_swigobj->IsAcceptedKey(_swigarg0))
|
||||||
|
static PyObject *_wrap_wxGridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
bool _result;
|
||||||
|
wxGridCellEditor * _arg0;
|
||||||
|
wxKeyEvent * _arg1;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
PyObject * _argo1 = 0;
|
||||||
|
char *_kwnames[] = { "self","event", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGridCellEditor_IsAcceptedKey",_kwnames,&_argo0,&_argo1))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridCellEditor_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridCellEditor_IsAcceptedKey. Expected _wxGridCellEditor_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (_argo1) {
|
||||||
|
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxKeyEvent_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGridCellEditor_IsAcceptedKey. Expected _wxKeyEvent_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
_result = (bool )wxGridCellEditor_IsAcceptedKey(_arg0,*_arg1);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} _resultobj = Py_BuildValue("i",_result);
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxGridCellEditor_StartingKey(_swigobj,_swigarg0) (_swigobj->StartingKey(_swigarg0))
|
#define wxGridCellEditor_StartingKey(_swigobj,_swigarg0) (_swigobj->StartingKey(_swigarg0))
|
||||||
static PyObject *_wrap_wxGridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxGridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -12603,6 +12749,7 @@ static PyMethodDef gridcMethods[] = {
|
|||||||
{ "wxGridCellEditor_HandleReturn", (PyCFunction) _wrap_wxGridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_HandleReturn", (PyCFunction) _wrap_wxGridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_StartingClick", (PyCFunction) _wrap_wxGridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_StartingClick", (PyCFunction) _wrap_wxGridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_StartingKey", (PyCFunction) _wrap_wxGridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_StartingKey", (PyCFunction) _wrap_wxGridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_wxGridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_PaintBackground", (PyCFunction) _wrap_wxGridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_PaintBackground", (PyCFunction) _wrap_wxGridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_Show", (PyCFunction) _wrap_wxGridCellEditor_Show, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_Show", (PyCFunction) _wrap_wxGridCellEditor_Show, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_SetSize", (PyCFunction) _wrap_wxGridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_SetSize", (PyCFunction) _wrap_wxGridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS },
|
||||||
@@ -12611,6 +12758,8 @@ static PyMethodDef gridcMethods[] = {
|
|||||||
{ "wxGridCellEditor_EndEdit", (PyCFunction) _wrap_wxGridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_EndEdit", (PyCFunction) _wrap_wxGridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_BeginEdit", (PyCFunction) _wrap_wxGridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_BeginEdit", (PyCFunction) _wrap_wxGridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_Create", (PyCFunction) _wrap_wxGridCellEditor_Create, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_Create", (PyCFunction) _wrap_wxGridCellEditor_Create, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGridCellEditor_DecRef", (PyCFunction) _wrap_wxGridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGridCellEditor_IncRef", (PyCFunction) _wrap_wxGridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_SetParameters", (PyCFunction) _wrap_wxGridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_SetParameters", (PyCFunction) _wrap_wxGridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_SetControl", (PyCFunction) _wrap_wxGridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_SetControl", (PyCFunction) _wrap_wxGridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_GetControl", (PyCFunction) _wrap_wxGridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_GetControl", (PyCFunction) _wrap_wxGridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS },
|
||||||
@@ -12629,6 +12778,8 @@ static PyMethodDef gridcMethods[] = {
|
|||||||
{ "wxGridCellRenderer_Clone", (PyCFunction) _wrap_wxGridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellRenderer_Clone", (PyCFunction) _wrap_wxGridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellRenderer_GetBestSize", (PyCFunction) _wrap_wxGridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellRenderer_GetBestSize", (PyCFunction) _wrap_wxGridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellRenderer_Draw", (PyCFunction) _wrap_wxGridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellRenderer_Draw", (PyCFunction) _wrap_wxGridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGridCellRenderer_DecRef", (PyCFunction) _wrap_wxGridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGridCellRenderer_IncRef", (PyCFunction) _wrap_wxGridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellRenderer_SetParameters", (PyCFunction) _wrap_wxGridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellRenderer_SetParameters", (PyCFunction) _wrap_wxGridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
@@ -12676,6 +12827,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
|||||||
{ "_wxPrintQuality","_EBool",0},
|
{ "_wxPrintQuality","_EBool",0},
|
||||||
{ "_wxPrintQuality","_size_t",0},
|
{ "_wxPrintQuality","_size_t",0},
|
||||||
{ "_class_wxCustomDataObject","_wxCustomDataObject",0},
|
{ "_class_wxCustomDataObject","_wxCustomDataObject",0},
|
||||||
|
{ "_wxSpinCtrl","_class_wxSpinCtrl",0},
|
||||||
{ "_class_wxRegionIterator","_wxRegionIterator",0},
|
{ "_class_wxRegionIterator","_wxRegionIterator",0},
|
||||||
{ "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
|
{ "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
|
||||||
{ "_class_wxMenuBar","_wxMenuBar",0},
|
{ "_class_wxMenuBar","_wxMenuBar",0},
|
||||||
@@ -12793,6 +12945,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
|||||||
{ "_wxPoint","_class_wxPoint",0},
|
{ "_wxPoint","_class_wxPoint",0},
|
||||||
{ "_class_wxButton","_wxButton",0},
|
{ "_class_wxButton","_wxButton",0},
|
||||||
{ "_wxRadioBox","_class_wxRadioBox",0},
|
{ "_wxRadioBox","_class_wxRadioBox",0},
|
||||||
|
{ "_class_wxSpinCtrl","_wxSpinCtrl",0},
|
||||||
{ "_char","_wxChar",0},
|
{ "_char","_wxChar",0},
|
||||||
{ "_wxBitmap","_class_wxBitmap",0},
|
{ "_wxBitmap","_class_wxBitmap",0},
|
||||||
{ "_wxGridCellStringRenderer","_class_wxGridCellFloatRenderer",SwigwxGridCellFloatRendererTowxGridCellStringRenderer},
|
{ "_wxGridCellStringRenderer","_class_wxGridCellFloatRenderer",SwigwxGridCellFloatRendererTowxGridCellStringRenderer},
|
||||||
|
@@ -67,6 +67,12 @@ class wxGridCellRendererPtr :
|
|||||||
def SetParameters(self, *_args, **_kwargs):
|
def SetParameters(self, *_args, **_kwargs):
|
||||||
val = apply(gridc.wxGridCellRenderer_SetParameters,(self,) + _args, _kwargs)
|
val = apply(gridc.wxGridCellRenderer_SetParameters,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def IncRef(self, *_args, **_kwargs):
|
||||||
|
val = apply(gridc.wxGridCellRenderer_IncRef,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def DecRef(self, *_args, **_kwargs):
|
||||||
|
val = apply(gridc.wxGridCellRenderer_DecRef,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def Draw(self, *_args, **_kwargs):
|
def Draw(self, *_args, **_kwargs):
|
||||||
val = apply(gridc.wxGridCellRenderer_Draw,(self,) + _args, _kwargs)
|
val = apply(gridc.wxGridCellRenderer_Draw,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
@@ -193,6 +199,12 @@ class wxGridCellEditorPtr :
|
|||||||
def SetParameters(self, *_args, **_kwargs):
|
def SetParameters(self, *_args, **_kwargs):
|
||||||
val = apply(gridc.wxGridCellEditor_SetParameters,(self,) + _args, _kwargs)
|
val = apply(gridc.wxGridCellEditor_SetParameters,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def IncRef(self, *_args, **_kwargs):
|
||||||
|
val = apply(gridc.wxGridCellEditor_IncRef,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def DecRef(self, *_args, **_kwargs):
|
||||||
|
val = apply(gridc.wxGridCellEditor_DecRef,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def Create(self, *_args, **_kwargs):
|
def Create(self, *_args, **_kwargs):
|
||||||
val = apply(gridc.wxGridCellEditor_Create,(self,) + _args, _kwargs)
|
val = apply(gridc.wxGridCellEditor_Create,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
@@ -218,6 +230,9 @@ class wxGridCellEditorPtr :
|
|||||||
def PaintBackground(self, *_args, **_kwargs):
|
def PaintBackground(self, *_args, **_kwargs):
|
||||||
val = apply(gridc.wxGridCellEditor_PaintBackground,(self,) + _args, _kwargs)
|
val = apply(gridc.wxGridCellEditor_PaintBackground,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def IsAcceptedKey(self, *_args, **_kwargs):
|
||||||
|
val = apply(gridc.wxGridCellEditor_IsAcceptedKey,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def StartingKey(self, *_args, **_kwargs):
|
def StartingKey(self, *_args, **_kwargs):
|
||||||
val = apply(gridc.wxGridCellEditor_StartingKey,(self,) + _args, _kwargs)
|
val = apply(gridc.wxGridCellEditor_StartingKey,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -256,6 +256,122 @@ class wxPyTimer(wxPyTimerPtr):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class wxLogPtr :
|
||||||
|
def __init__(self,this):
|
||||||
|
self.this = this
|
||||||
|
self.thisown = 0
|
||||||
|
def Flush(self, *_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLog_Flush,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def HasPendingMessages(self, *_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLog_HasPendingMessages,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def SetVerbose(self, *_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLog_SetVerbose,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def GetVerbose(self, *_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLog_GetVerbose,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def __repr__(self):
|
||||||
|
return "<C wxLog instance at %s>" % (self.this,)
|
||||||
|
class wxLog(wxLogPtr):
|
||||||
|
def __init__(self,*_args,**_kwargs):
|
||||||
|
self.this = apply(misc2c.new_wxLog,_args,_kwargs)
|
||||||
|
self.thisown = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class wxLogStderrPtr(wxLogPtr):
|
||||||
|
def __init__(self,this):
|
||||||
|
self.this = this
|
||||||
|
self.thisown = 0
|
||||||
|
def __repr__(self):
|
||||||
|
return "<C wxLogStderr instance at %s>" % (self.this,)
|
||||||
|
class wxLogStderr(wxLogStderrPtr):
|
||||||
|
def __init__(self,*_args,**_kwargs):
|
||||||
|
self.this = apply(misc2c.new_wxLogStderr,_args,_kwargs)
|
||||||
|
self.thisown = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class wxLogTextCtrlPtr(wxLogPtr):
|
||||||
|
def __init__(self,this):
|
||||||
|
self.this = this
|
||||||
|
self.thisown = 0
|
||||||
|
def __repr__(self):
|
||||||
|
return "<C wxLogTextCtrl instance at %s>" % (self.this,)
|
||||||
|
class wxLogTextCtrl(wxLogTextCtrlPtr):
|
||||||
|
def __init__(self,*_args,**_kwargs):
|
||||||
|
self.this = apply(misc2c.new_wxLogTextCtrl,_args,_kwargs)
|
||||||
|
self.thisown = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class wxLogGuiPtr(wxLogPtr):
|
||||||
|
def __init__(self,this):
|
||||||
|
self.this = this
|
||||||
|
self.thisown = 0
|
||||||
|
def __repr__(self):
|
||||||
|
return "<C wxLogGui instance at %s>" % (self.this,)
|
||||||
|
class wxLogGui(wxLogGuiPtr):
|
||||||
|
def __init__(self,*_args,**_kwargs):
|
||||||
|
self.this = apply(misc2c.new_wxLogGui,_args,_kwargs)
|
||||||
|
self.thisown = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class wxLogWindowPtr(wxLogPtr):
|
||||||
|
def __init__(self,this):
|
||||||
|
self.this = this
|
||||||
|
self.thisown = 0
|
||||||
|
def Show(self, *_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLogWindow_Show,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def GetFrame(self, *_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLogWindow_GetFrame,(self,) + _args, _kwargs)
|
||||||
|
if val: val = wxFramePtr(val)
|
||||||
|
return val
|
||||||
|
def GetOldLog(self, *_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLogWindow_GetOldLog,(self,) + _args, _kwargs)
|
||||||
|
if val: val = wxLogPtr(val)
|
||||||
|
return val
|
||||||
|
def IsPassingMessages(self, *_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLogWindow_IsPassingMessages,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def PassMessages(self, *_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLogWindow_PassMessages,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def __repr__(self):
|
||||||
|
return "<C wxLogWindow instance at %s>" % (self.this,)
|
||||||
|
class wxLogWindow(wxLogWindowPtr):
|
||||||
|
def __init__(self,*_args,**_kwargs):
|
||||||
|
self.this = apply(misc2c.new_wxLogWindow,_args,_kwargs)
|
||||||
|
self.thisown = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class wxLogNullPtr :
|
||||||
|
def __init__(self,this):
|
||||||
|
self.this = this
|
||||||
|
self.thisown = 0
|
||||||
|
def __del__(self,misc2c=misc2c):
|
||||||
|
if self.thisown == 1 :
|
||||||
|
misc2c.delete_wxLogNull(self)
|
||||||
|
def __repr__(self):
|
||||||
|
return "<C wxLogNull instance at %s>" % (self.this,)
|
||||||
|
class wxLogNull(wxLogNullPtr):
|
||||||
|
def __init__(self,*_args,**_kwargs):
|
||||||
|
self.this = apply(misc2c.new_wxLogNull,_args,_kwargs)
|
||||||
|
self.thisown = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-------------- FUNCTION WRAPPERS ------------------
|
#-------------- FUNCTION WRAPPERS ------------------
|
||||||
@@ -373,6 +489,62 @@ def wxDragListItem(*_args, **_kwargs):
|
|||||||
if val: val = wxDragImagePtr(val); val.thisown = 1
|
if val: val = wxDragImagePtr(val); val.thisown = 1
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
wxSysErrorCode = misc2c.wxSysErrorCode
|
||||||
|
|
||||||
|
wxSysErrorMsg = misc2c.wxSysErrorMsg
|
||||||
|
|
||||||
|
wxLogFatalError = misc2c.wxLogFatalError
|
||||||
|
|
||||||
|
wxLogError = misc2c.wxLogError
|
||||||
|
|
||||||
|
wxLogWarning = misc2c.wxLogWarning
|
||||||
|
|
||||||
|
wxLogMessage = misc2c.wxLogMessage
|
||||||
|
|
||||||
|
wxLogInfo = misc2c.wxLogInfo
|
||||||
|
|
||||||
|
wxLogVerbose = misc2c.wxLogVerbose
|
||||||
|
|
||||||
|
wxLogStatus = misc2c.wxLogStatus
|
||||||
|
|
||||||
|
wxLogStatusFrame = misc2c.wxLogStatusFrame
|
||||||
|
|
||||||
|
wxLogSysError = misc2c.wxLogSysError
|
||||||
|
|
||||||
|
wxLog_IsEnabled = misc2c.wxLog_IsEnabled
|
||||||
|
|
||||||
|
wxLog_EnableLogging = misc2c.wxLog_EnableLogging
|
||||||
|
|
||||||
|
wxLog_OnLog = misc2c.wxLog_OnLog
|
||||||
|
|
||||||
|
wxLog_FlushActive = misc2c.wxLog_FlushActive
|
||||||
|
|
||||||
|
def wxLog_GetActiveTarget(*_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLog_GetActiveTarget,_args,_kwargs)
|
||||||
|
if val: val = wxLogPtr(val)
|
||||||
|
return val
|
||||||
|
|
||||||
|
def wxLog_SetActiveTarget(*_args, **_kwargs):
|
||||||
|
val = apply(misc2c.wxLog_SetActiveTarget,_args,_kwargs)
|
||||||
|
if val: val = wxLogPtr(val)
|
||||||
|
return val
|
||||||
|
|
||||||
|
wxLog_Suspend = misc2c.wxLog_Suspend
|
||||||
|
|
||||||
|
wxLog_Resume = misc2c.wxLog_Resume
|
||||||
|
|
||||||
|
wxLog_DontCreateOnDemand = misc2c.wxLog_DontCreateOnDemand
|
||||||
|
|
||||||
|
wxLog_SetTraceMask = misc2c.wxLog_SetTraceMask
|
||||||
|
|
||||||
|
wxLog_AddTraceMask = misc2c.wxLog_AddTraceMask
|
||||||
|
|
||||||
|
wxLog_RemoveTraceMask = misc2c.wxLog_RemoveTraceMask
|
||||||
|
|
||||||
|
wxLog_GetTraceMask = misc2c.wxLog_GetTraceMask
|
||||||
|
|
||||||
|
wxLog_IsAllowedTraceMask = misc2c.wxLog_IsAllowedTraceMask
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#-------------- VARIABLE WRAPPERS ------------------
|
#-------------- VARIABLE WRAPPERS ------------------
|
||||||
@@ -463,3 +635,13 @@ wxSYS_NETWORK_PRESENT = misc2c.wxSYS_NETWORK_PRESENT
|
|||||||
wxSYS_PENWINDOWS_PRESENT = misc2c.wxSYS_PENWINDOWS_PRESENT
|
wxSYS_PENWINDOWS_PRESENT = misc2c.wxSYS_PENWINDOWS_PRESENT
|
||||||
wxSYS_SHOW_SOUNDS = misc2c.wxSYS_SHOW_SOUNDS
|
wxSYS_SHOW_SOUNDS = misc2c.wxSYS_SHOW_SOUNDS
|
||||||
wxSYS_SWAP_BUTTONS = misc2c.wxSYS_SWAP_BUTTONS
|
wxSYS_SWAP_BUTTONS = misc2c.wxSYS_SWAP_BUTTONS
|
||||||
|
wxLOG_FatalError = misc2c.wxLOG_FatalError
|
||||||
|
wxLOG_Error = misc2c.wxLOG_Error
|
||||||
|
wxLOG_Warning = misc2c.wxLOG_Warning
|
||||||
|
wxLOG_Message = misc2c.wxLOG_Message
|
||||||
|
wxLOG_Info = misc2c.wxLOG_Info
|
||||||
|
wxLOG_Status = misc2c.wxLOG_Status
|
||||||
|
wxLOG_Debug = misc2c.wxLOG_Debug
|
||||||
|
wxLOG_Trace = misc2c.wxLOG_Trace
|
||||||
|
wxLOG_Progress = misc2c.wxLOG_Progress
|
||||||
|
wxLOG_User = misc2c.wxLOG_User
|
||||||
|
@@ -121,6 +121,85 @@ static char* wxStringErrorMsg = "string type is required for parameter";
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
static PyObject *_wrap_wxGetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
long _result;
|
||||||
|
char *_kwnames[] = { NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetLocalTime",_kwnames))
|
||||||
|
return NULL;
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
_result = (long )wxGetLocalTime();
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} _resultobj = Py_BuildValue("l",_result);
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
|
static PyObject *_wrap_wxGetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
long _result;
|
||||||
|
char *_kwnames[] = { NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetUTCTime",_kwnames))
|
||||||
|
return NULL;
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
_result = (long )wxGetUTCTime();
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} _resultobj = Py_BuildValue("l",_result);
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
|
static PyObject *_wrap_wxGetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
long _result;
|
||||||
|
char *_kwnames[] = { NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetCurrentTime",_kwnames))
|
||||||
|
return NULL;
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
_result = (long )wxGetCurrentTime();
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} _resultobj = Py_BuildValue("l",_result);
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
|
static PyObject *_wrap_wxGetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxLongLong * _result;
|
||||||
|
char *_kwnames[] = { NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetLocalTimeMillis",_kwnames))
|
||||||
|
return NULL;
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
_result = new wxLongLong (wxGetLocalTimeMillis());
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
}{
|
||||||
|
PyObject *hi, *lo, *shifter, *shifted;
|
||||||
|
hi = PyLong_FromLong(_result->GetHi());
|
||||||
|
lo = PyLong_FromLong(_result->GetLo());
|
||||||
|
shifter = PyLong_FromLong(32);
|
||||||
|
shifted = PyNumber_Lshift(hi, shifter);
|
||||||
|
_resultobj = PyNumber_Or(shifted, lo);
|
||||||
|
Py_DECREF(hi);
|
||||||
|
Py_DECREF(lo);
|
||||||
|
Py_DECREF(shifter);
|
||||||
|
Py_DECREF(shifted);
|
||||||
|
}
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define delete_wxConfigBase(_swigobj) (delete _swigobj)
|
#define delete_wxConfigBase(_swigobj) (delete _swigobj)
|
||||||
static PyObject *_wrap_delete_wxConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_delete_wxConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -6240,70 +6319,6 @@ static PyObject *_wrap_wxTimeSpan_Format(PyObject *self, PyObject *args, PyObjec
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define wxTimeSpan_FormatDate(_swigobj) (_swigobj->FormatDate())
|
|
||||||
static PyObject *_wrap_wxTimeSpan_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxString * _result;
|
|
||||||
wxTimeSpan * _arg0;
|
|
||||||
PyObject * _argo0 = 0;
|
|
||||||
char *_kwnames[] = { "self", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_FormatDate",_kwnames,&_argo0))
|
|
||||||
return NULL;
|
|
||||||
if (_argo0) {
|
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_FormatDate. Expected _wxTimeSpan_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
wxPy_BEGIN_ALLOW_THREADS;
|
|
||||||
_result = new wxString (wxTimeSpan_FormatDate(_arg0));
|
|
||||||
|
|
||||||
wxPy_END_ALLOW_THREADS;
|
|
||||||
}{
|
|
||||||
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
|
|
||||||
}
|
|
||||||
{
|
|
||||||
delete _result;
|
|
||||||
}
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define wxTimeSpan_FormatTime(_swigobj) (_swigobj->FormatTime())
|
|
||||||
static PyObject *_wrap_wxTimeSpan_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxString * _result;
|
|
||||||
wxTimeSpan * _arg0;
|
|
||||||
PyObject * _argo0 = 0;
|
|
||||||
char *_kwnames[] = { "self", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTimeSpan_FormatTime",_kwnames,&_argo0))
|
|
||||||
return NULL;
|
|
||||||
if (_argo0) {
|
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTimeSpan_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTimeSpan_FormatTime. Expected _wxTimeSpan_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
wxPy_BEGIN_ALLOW_THREADS;
|
|
||||||
_result = new wxString (wxTimeSpan_FormatTime(_arg0));
|
|
||||||
|
|
||||||
wxPy_END_ALLOW_THREADS;
|
|
||||||
}{
|
|
||||||
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
|
|
||||||
}
|
|
||||||
{
|
|
||||||
delete _result;
|
|
||||||
}
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define new_wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
|
#define new_wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxDateSpan(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
|
||||||
static PyObject *_wrap_new_wxDateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_new_wxDateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -7148,8 +7163,6 @@ static PyMethodDef utilscMethods[] = {
|
|||||||
{ "wxDateSpan_Days", (PyCFunction) _wrap_wxDateSpan_Days, METH_VARARGS | METH_KEYWORDS },
|
{ "wxDateSpan_Days", (PyCFunction) _wrap_wxDateSpan_Days, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "delete_wxDateSpan", (PyCFunction) _wrap_delete_wxDateSpan, METH_VARARGS | METH_KEYWORDS },
|
{ "delete_wxDateSpan", (PyCFunction) _wrap_delete_wxDateSpan, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "new_wxDateSpan", (PyCFunction) _wrap_new_wxDateSpan, METH_VARARGS | METH_KEYWORDS },
|
{ "new_wxDateSpan", (PyCFunction) _wrap_new_wxDateSpan, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxTimeSpan_FormatTime", (PyCFunction) _wrap_wxTimeSpan_FormatTime, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxTimeSpan_FormatDate", (PyCFunction) _wrap_wxTimeSpan_FormatDate, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxTimeSpan_Format", (PyCFunction) _wrap_wxTimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
|
{ "wxTimeSpan_Format", (PyCFunction) _wrap_wxTimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxTimeSpan_GetMilliseconds", (PyCFunction) _wrap_wxTimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
|
{ "wxTimeSpan_GetMilliseconds", (PyCFunction) _wrap_wxTimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxTimeSpan_GetSeconds", (PyCFunction) _wrap_wxTimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
|
{ "wxTimeSpan_GetSeconds", (PyCFunction) _wrap_wxTimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
|
||||||
@@ -7335,6 +7348,10 @@ static PyMethodDef utilscMethods[] = {
|
|||||||
{ "wxConfigBase_Get", (PyCFunction) _wrap_wxConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
|
{ "wxConfigBase_Get", (PyCFunction) _wrap_wxConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxConfigBase_Set", (PyCFunction) _wrap_wxConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
|
{ "wxConfigBase_Set", (PyCFunction) _wrap_wxConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "delete_wxConfigBase", (PyCFunction) _wrap_delete_wxConfigBase, METH_VARARGS | METH_KEYWORDS },
|
{ "delete_wxConfigBase", (PyCFunction) _wrap_delete_wxConfigBase, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGetLocalTimeMillis", (PyCFunction) _wrap_wxGetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGetCurrentTime", (PyCFunction) _wrap_wxGetCurrentTime, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGetUTCTime", (PyCFunction) _wrap_wxGetUTCTime, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGetLocalTime", (PyCFunction) _wrap_wxGetLocalTime, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@@ -683,12 +683,6 @@ class wxTimeSpanPtr :
|
|||||||
def Format(self, *_args, **_kwargs):
|
def Format(self, *_args, **_kwargs):
|
||||||
val = apply(utilsc.wxTimeSpan_Format,(self,) + _args, _kwargs)
|
val = apply(utilsc.wxTimeSpan_Format,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
def FormatDate(self, *_args, **_kwargs):
|
|
||||||
val = apply(utilsc.wxTimeSpan_FormatDate,(self,) + _args, _kwargs)
|
|
||||||
return val
|
|
||||||
def FormatTime(self, *_args, **_kwargs):
|
|
||||||
val = apply(utilsc.wxTimeSpan_FormatTime,(self,) + _args, _kwargs)
|
|
||||||
return val
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<C wxTimeSpan instance at %s>" % (self.this,)
|
return "<C wxTimeSpan instance at %s>" % (self.this,)
|
||||||
class wxTimeSpan(wxTimeSpanPtr):
|
class wxTimeSpan(wxTimeSpanPtr):
|
||||||
@@ -787,6 +781,14 @@ class wxDateSpan(wxDateSpanPtr):
|
|||||||
|
|
||||||
#-------------- FUNCTION WRAPPERS ------------------
|
#-------------- FUNCTION WRAPPERS ------------------
|
||||||
|
|
||||||
|
wxGetLocalTime = utilsc.wxGetLocalTime
|
||||||
|
|
||||||
|
wxGetUTCTime = utilsc.wxGetUTCTime
|
||||||
|
|
||||||
|
wxGetCurrentTime = utilsc.wxGetCurrentTime
|
||||||
|
|
||||||
|
wxGetLocalTimeMillis = utilsc.wxGetLocalTimeMillis
|
||||||
|
|
||||||
def wxConfigBase_Set(*_args, **_kwargs):
|
def wxConfigBase_Set(*_args, **_kwargs):
|
||||||
val = apply(utilsc.wxConfigBase_Set,_args,_kwargs)
|
val = apply(utilsc.wxConfigBase_Set,_args,_kwargs)
|
||||||
if val: val = wxConfigBasePtr(val)
|
if val: val = wxConfigBasePtr(val)
|
||||||
|
@@ -297,6 +297,42 @@ static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args,
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
|
||||||
|
static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxEvtHandler * _arg0;
|
||||||
|
wxEvent * _arg1;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
PyObject * _argo1 = 0;
|
||||||
|
char *_kwnames[] = { "self","event", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (_argo1) {
|
||||||
|
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
wxEvtHandler_AddPendingEvent(_arg0,*_arg1);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
|
#define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
|
||||||
static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -4553,6 +4589,40 @@ static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObjec
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
|
||||||
|
static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxSizer * _result;
|
||||||
|
wxWindow * _arg0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self", NULL };
|
||||||
|
char _ptemp[128];
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
|
_result = (wxSizer *)wxWindow_GetSizer(_arg0);
|
||||||
|
|
||||||
|
wxPy_END_ALLOW_THREADS;
|
||||||
|
} if (_result) {
|
||||||
|
SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p");
|
||||||
|
_resultobj = Py_BuildValue("s",_ptemp);
|
||||||
|
} else {
|
||||||
|
Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
}
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
|
#define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
|
||||||
static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -5766,7 +5836,7 @@ static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, P
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
|
#define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
|
||||||
static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
wxScrolledWindow * _arg0;
|
wxScrolledWindow * _arg0;
|
||||||
@@ -5776,11 +5846,12 @@ static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *
|
|||||||
int _arg4;
|
int _arg4;
|
||||||
int _arg5 = (int ) 0;
|
int _arg5 = (int ) 0;
|
||||||
int _arg6 = (int ) 0;
|
int _arg6 = (int ) 0;
|
||||||
|
int _arg7 = (int ) FALSE;
|
||||||
PyObject * _argo0 = 0;
|
PyObject * _argo0 = 0;
|
||||||
char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos", NULL };
|
char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL };
|
||||||
|
|
||||||
self = self;
|
self = self;
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|ii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (_argo0) {
|
if (_argo0) {
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
@@ -5791,7 +5862,7 @@ static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
wxPy_BEGIN_ALLOW_THREADS;
|
wxPy_BEGIN_ALLOW_THREADS;
|
||||||
wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
|
wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
|
||||||
|
|
||||||
wxPy_END_ALLOW_THREADS;
|
wxPy_END_ALLOW_THREADS;
|
||||||
} Py_INCREF(Py_None);
|
} Py_INCREF(Py_None);
|
||||||
@@ -8957,6 +9028,7 @@ static PyMethodDef windowscMethods[] = {
|
|||||||
{ "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
|
{ "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS },
|
{ "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS },
|
{ "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS },
|
{ "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
|
{ "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
|
{ "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
|
||||||
@@ -9084,6 +9156,7 @@ static PyMethodDef windowscMethods[] = {
|
|||||||
{ "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
|
{ "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
|
{ "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
|
{ "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
|
{ "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS },
|
{ "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS },
|
{ "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -27,6 +27,9 @@ class wxEvtHandlerPtr :
|
|||||||
def ProcessEvent(self, *_args, **_kwargs):
|
def ProcessEvent(self, *_args, **_kwargs):
|
||||||
val = apply(windowsc.wxEvtHandler_ProcessEvent,(self,) + _args, _kwargs)
|
val = apply(windowsc.wxEvtHandler_ProcessEvent,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def AddPendingEvent(self, *_args, **_kwargs):
|
||||||
|
val = apply(windowsc.wxEvtHandler_AddPendingEvent,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def GetEvtHandlerEnabled(self, *_args, **_kwargs):
|
def GetEvtHandlerEnabled(self, *_args, **_kwargs):
|
||||||
val = apply(windowsc.wxEvtHandler_GetEvtHandlerEnabled,(self,) + _args, _kwargs)
|
val = apply(windowsc.wxEvtHandler_GetEvtHandlerEnabled,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
@@ -55,6 +58,9 @@ class wxEvtHandlerPtr :
|
|||||||
return val
|
return val
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<C wxEvtHandler instance at %s>" % (self.this,)
|
return "<C wxEvtHandler instance at %s>" % (self.this,)
|
||||||
|
|
||||||
|
_prop_list_ = {}
|
||||||
|
|
||||||
class wxEvtHandler(wxEvtHandlerPtr):
|
class wxEvtHandler(wxEvtHandlerPtr):
|
||||||
def __init__(self,this):
|
def __init__(self,this):
|
||||||
self.this = this
|
self.this = this
|
||||||
@@ -79,6 +85,12 @@ class wxValidatorPtr(wxEvtHandlerPtr):
|
|||||||
return val
|
return val
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<C wxValidator instance at %s>" % (self.this,)
|
return "<C wxValidator instance at %s>" % (self.this,)
|
||||||
|
|
||||||
|
_prop_list_ = {
|
||||||
|
'window' : ('GetWindow', 'SetWindow'),
|
||||||
|
}
|
||||||
|
_prop_list_.update(wxEvtHandler._prop_list_)
|
||||||
|
|
||||||
class wxValidator(wxValidatorPtr):
|
class wxValidator(wxValidatorPtr):
|
||||||
def __init__(self,*_args,**_kwargs):
|
def __init__(self,*_args,**_kwargs):
|
||||||
self.this = apply(windowsc.new_wxValidator,_args,_kwargs)
|
self.this = apply(windowsc.new_wxValidator,_args,_kwargs)
|
||||||
@@ -469,6 +481,10 @@ class wxWindowPtr(wxEvtHandlerPtr):
|
|||||||
def SetSizer(self, *_args, **_kwargs):
|
def SetSizer(self, *_args, **_kwargs):
|
||||||
val = apply(windowsc.wxWindow_SetSizer,(self,) + _args, _kwargs)
|
val = apply(windowsc.wxWindow_SetSizer,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def GetSizer(self, *_args, **_kwargs):
|
||||||
|
val = apply(windowsc.wxWindow_GetSizer,(self,) + _args, _kwargs)
|
||||||
|
if val: val = wxSizerPtr(val)
|
||||||
|
return val
|
||||||
def GetValidator(self, *_args, **_kwargs):
|
def GetValidator(self, *_args, **_kwargs):
|
||||||
val = apply(windowsc.wxWindow_GetValidator,(self,) + _args, _kwargs)
|
val = apply(windowsc.wxWindow_GetValidator,(self,) + _args, _kwargs)
|
||||||
if val: val = wxValidatorPtr(val)
|
if val: val = wxValidatorPtr(val)
|
||||||
@@ -503,7 +519,38 @@ class wxWindowPtr(wxEvtHandlerPtr):
|
|||||||
val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
|
val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
|
||||||
if val: val = wxCaretPtr(val)
|
if val: val = wxCaretPtr(val)
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
|
||||||
|
_prop_list_ = {
|
||||||
|
'size' : ('GetSize', 'SetSize'),
|
||||||
|
'enabled' : ('IsEnabled', 'Enable'),
|
||||||
|
'background' : ('GetBackgroundColour', 'SetBackgroundColour'),
|
||||||
|
'foreground' : ('GetForegroundColour', 'SetForegroundColour'),
|
||||||
|
'children' : ('GetChildren', None),
|
||||||
|
'charHeight' : ('GetCharHeight', None),
|
||||||
|
'charWidth' : ('GetCharWidth', None),
|
||||||
|
'clientSize' : ('GetClientSize', 'SetClientSize'),
|
||||||
|
'font' : ('GetFont', 'SetFont'),
|
||||||
|
'grandParent' : ('GetGrandParent', None),
|
||||||
|
'handle' : ('GetHandle', None),
|
||||||
|
'label' : ('GetLabel', 'SetLabel'),
|
||||||
|
'name' : ('GetName', 'SetName'),
|
||||||
|
'parent' : ('GetParent', None),
|
||||||
|
'position' : ('GetPosition', 'SetPosition'),
|
||||||
|
'title' : ('GetTitle', 'SetTitle'),
|
||||||
|
'style' : ('GetWindowStyleFlag', 'SetWindowStyleFlag'),
|
||||||
|
'visible' : ('IsShown', 'Show'),
|
||||||
|
'toolTip' : ('GetToolTip', 'SetToolTip'),
|
||||||
|
'sizer' : ('GetSizer', 'SetSizer'),
|
||||||
|
'validator' : ('GetValidator', 'SetValidator'),
|
||||||
|
'dropTarget' : ('GetDropTarget', 'SetDropTarget'),
|
||||||
|
'caret' : ('GetCaret', 'SetCaret'),
|
||||||
|
'autoLayout' : ('GetAutoLayout', 'SetAutoLayout'),
|
||||||
|
'constraints' : ('GetConstraints', 'SetConstraints'),
|
||||||
|
|
||||||
|
}
|
||||||
|
_prop_list_.update(wxEvtHandler._prop_list_)
|
||||||
|
|
||||||
class wxWindow(wxWindowPtr):
|
class wxWindow(wxWindowPtr):
|
||||||
def __init__(self,*_args,**_kwargs):
|
def __init__(self,*_args,**_kwargs):
|
||||||
self.this = apply(windowsc.new_wxWindow,_args,_kwargs)
|
self.this = apply(windowsc.new_wxWindow,_args,_kwargs)
|
||||||
|
@@ -852,10 +852,10 @@ _wxSetDictionary(vars())
|
|||||||
# Helper function to link python methods to wxWindows virtual
|
# Helper function to link python methods to wxWindows virtual
|
||||||
# functions by name.
|
# functions by name.
|
||||||
|
|
||||||
## def _checkForCallback(obj, name, event, theID=-1):
|
def _checkForCallback(obj, name, event, theID=-1):
|
||||||
## try: cb = getattr(obj, name)
|
try: cb = getattr(obj, name)
|
||||||
## except: pass
|
except: pass
|
||||||
## else: obj.Connect(theID, -1, event, cb)
|
else: obj.Connect(theID, -1, event, cb)
|
||||||
|
|
||||||
## def _StdWindowCallbacks(win):
|
## def _StdWindowCallbacks(win):
|
||||||
## _checkForCallback(win, "OnChar", wxEVT_CHAR)
|
## _checkForCallback(win, "OnChar", wxEVT_CHAR)
|
||||||
|
Reference in New Issue
Block a user