more updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
94fbea122f
commit
2fc9954937
@ -1 +1 @@
|
||||
ver = '2.1.13'
|
||||
ver = '2.1.14'
|
||||
|
@ -7204,6 +7204,7 @@ static PyMethodDef controlscMethods[] = {
|
||||
{ "new_wxSpinButton", (PyCFunction) _wrap_new_wxSpinButton, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScrollBar_SetScrollbar", (PyCFunction) _wrap_wxScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScrollBar_SetThumbPosition", (PyCFunction) _wrap_wxScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScrollBar_GetThumbLength", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScrollBar_GetThumbSize", (PyCFunction) _wrap_wxScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScrollBar_GetThumbPosition", (PyCFunction) _wrap_wxScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScrollBar_GetPageSize", (PyCFunction) _wrap_wxScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -572,6 +572,9 @@ class wxScrollBarPtr(wxControlPtr):
|
||||
def GetThumbSize(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxScrollBar_GetThumbSize,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetThumbLength(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxScrollBar_GetThumbLength,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetThumbPosition(self, *_args, **_kwargs):
|
||||
val = apply(controlsc.wxScrollBar_SetThumbPosition,(self,) + _args, _kwargs)
|
||||
return val
|
||||
|
@ -4333,6 +4333,7 @@ static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args,
|
||||
}
|
||||
|
||||
static PyObject * wxTreeCtrl_GetSelections(wxTreeCtrl *self) {
|
||||
bool doSave = wxPyRestoreThread();
|
||||
PyObject* rval = PyList_New(0);
|
||||
wxArrayTreeItemIds array;
|
||||
size_t num, x;
|
||||
@ -4342,6 +4343,7 @@ static PyObject * wxTreeCtrl_GetSelections(wxTreeCtrl *self) {
|
||||
"wxTreeItemId");
|
||||
PyList_Append(rval, item);
|
||||
}
|
||||
wxPySaveThread(doSave);
|
||||
return rval;
|
||||
}
|
||||
static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
@ -5528,19 +5530,24 @@ static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObjec
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxTreeCtrl_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0))
|
||||
#define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxTreeItemId * _result;
|
||||
wxTreeCtrl * _arg0;
|
||||
wxPoint * _arg1;
|
||||
int * _arg2;
|
||||
int temp;
|
||||
PyObject * _argo0 = 0;
|
||||
wxPoint temp;
|
||||
wxPoint temp0;
|
||||
PyObject * _obj1 = 0;
|
||||
char *_kwnames[] = { "self","point", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
{
|
||||
_arg2 = &temp;
|
||||
}
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
@ -5551,17 +5558,22 @@ static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObje
|
||||
}
|
||||
}
|
||||
{
|
||||
_arg1 = &temp;
|
||||
_arg1 = &temp0;
|
||||
if (! wxPoint_helper(_obj1, &_arg1))
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1));
|
||||
_result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2));
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
{
|
||||
PyObject *o;
|
||||
o = PyInt_FromLong((long) (*_arg2));
|
||||
_resultobj = t_output_helper(_resultobj, o);
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@ -6278,6 +6290,20 @@ SWIGEXPORT(void) initcontrols2c() {
|
||||
PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded));
|
||||
PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded));
|
||||
PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART));
|
||||
PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM));
|
||||
{
|
||||
int i;
|
||||
for (i = 0; _swig_mapping[i].n1; i++)
|
||||
|
@ -567,7 +567,6 @@ class wxTreeCtrlPtr(wxControlPtr):
|
||||
return val
|
||||
def HitTest(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxTreeCtrl_HitTest,(self,) + _args, _kwargs)
|
||||
if val: val = wxTreeItemIdPtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def SetItemTextColour(self, *_args, **_kwargs):
|
||||
val = apply(controls2c.wxTreeCtrl_SetItemTextColour,(self,) + _args, _kwargs)
|
||||
@ -658,3 +657,17 @@ wxTreeItemIcon_Selected = controls2c.wxTreeItemIcon_Selected
|
||||
wxTreeItemIcon_Expanded = controls2c.wxTreeItemIcon_Expanded
|
||||
wxTreeItemIcon_SelectedExpanded = controls2c.wxTreeItemIcon_SelectedExpanded
|
||||
wxTreeItemIcon_Max = controls2c.wxTreeItemIcon_Max
|
||||
wxTREE_HITTEST_ABOVE = controls2c.wxTREE_HITTEST_ABOVE
|
||||
wxTREE_HITTEST_BELOW = controls2c.wxTREE_HITTEST_BELOW
|
||||
wxTREE_HITTEST_NOWHERE = controls2c.wxTREE_HITTEST_NOWHERE
|
||||
wxTREE_HITTEST_ONITEMBUTTON = controls2c.wxTREE_HITTEST_ONITEMBUTTON
|
||||
wxTREE_HITTEST_ONITEMICON = controls2c.wxTREE_HITTEST_ONITEMICON
|
||||
wxTREE_HITTEST_ONITEMINDENT = controls2c.wxTREE_HITTEST_ONITEMINDENT
|
||||
wxTREE_HITTEST_ONITEMLABEL = controls2c.wxTREE_HITTEST_ONITEMLABEL
|
||||
wxTREE_HITTEST_ONITEMRIGHT = controls2c.wxTREE_HITTEST_ONITEMRIGHT
|
||||
wxTREE_HITTEST_ONITEMSTATEICON = controls2c.wxTREE_HITTEST_ONITEMSTATEICON
|
||||
wxTREE_HITTEST_TOLEFT = controls2c.wxTREE_HITTEST_TOLEFT
|
||||
wxTREE_HITTEST_TORIGHT = controls2c.wxTREE_HITTEST_TORIGHT
|
||||
wxTREE_HITTEST_ONITEMUPPERPART = controls2c.wxTREE_HITTEST_ONITEMUPPERPART
|
||||
wxTREE_HITTEST_ONITEMLOWERPART = controls2c.wxTREE_HITTEST_ONITEMLOWERPART
|
||||
wxTREE_HITTEST_ONITEM = controls2c.wxTREE_HITTEST_ONITEM
|
||||
|
@ -3096,7 +3096,7 @@ static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static wxBrush *new_wxBrush(wxColour *colour,int style) {
|
||||
static wxBrush *new_wxBrush(const wxColour *colour,int style) {
|
||||
return wxTheBrushList->FindOrCreateBrush(*colour, style);
|
||||
}
|
||||
|
||||
@ -6297,8 +6297,8 @@ static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
|
||||
static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
#define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
|
||||
static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxScreenDC * _arg0;
|
||||
@ -6308,33 +6308,33 @@ static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *ar
|
||||
char *_kwnames[] = { "self","window", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_argo1))
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTop. Expected _wxWindow_p.");
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
|
||||
_result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxScreenDC_StartDrawingOnTopRect(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
|
||||
static PyObject *_wrap_wxScreenDC_StartDrawingOnTopRect(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
|
||||
static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
bool _result;
|
||||
wxScreenDC * _arg0;
|
||||
@ -6345,12 +6345,12 @@ static PyObject *_wrap_wxScreenDC_StartDrawingOnTopRect(PyObject *self, PyObject
|
||||
char *_kwnames[] = { "self","rect", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTopRect",_kwnames,&_argo0,&_obj1))
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopRect. Expected _wxScreenDC_p.");
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
@ -6362,7 +6362,7 @@ static PyObject *_wrap_wxScreenDC_StartDrawingOnTopRect(PyObject *self, PyObject
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (bool )wxScreenDC_StartDrawingOnTopRect(_arg0,_arg1);
|
||||
_result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
@ -7060,8 +7060,8 @@ static PyMethodDef gdicMethods[] = {
|
||||
{ "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScreenDC_StartDrawingOnTopRect", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopRect, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -621,12 +621,12 @@ class wxScreenDCPtr(wxDCPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def StartDrawingOnTopWin(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxScreenDC_StartDrawingOnTopWin,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def StartDrawingOnTop(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxScreenDC_StartDrawingOnTop,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def StartDrawingOnTopRect(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def EndDrawingOnTop(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxScreenDC_EndDrawingOnTop,(self,) + _args, _kwargs)
|
||||
return val
|
||||
|
@ -278,104 +278,57 @@ static PyObject *_wrap_wxStatusBar_GetStatusText(PyObject *self, PyObject *args,
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStatusBar_DrawField(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawField(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxStatusBar_DrawField(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxStatusBar * _arg0;
|
||||
wxDC * _arg1;
|
||||
int _arg2;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","dc","i", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxStatusBar_DrawField",_kwnames,&_argo0,&_argo1,&_arg2))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_DrawField. Expected _wxStatusBar_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_DrawField. Expected _wxDC_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxStatusBar_DrawField(_arg0,*_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStatusBar_DrawFieldText(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawFieldText(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxStatusBar_DrawFieldText(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxStatusBar * _arg0;
|
||||
wxDC * _arg1;
|
||||
int _arg2;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","dc","i", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxStatusBar_DrawFieldText",_kwnames,&_argo0,&_argo1,&_arg2))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_DrawFieldText. Expected _wxStatusBar_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStatusBar_DrawFieldText. Expected _wxDC_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxStatusBar_DrawFieldText(_arg0,*_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStatusBar_InitColours(_swigobj) (_swigobj->InitColours())
|
||||
static PyObject *_wrap_wxStatusBar_InitColours(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
#define wxStatusBar_GetBorderX(_swigobj) (_swigobj->GetBorderX())
|
||||
static PyObject *_wrap_wxStatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
int _result;
|
||||
wxStatusBar * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_InitColours",_kwnames,&_argo0))
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderX",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_InitColours. Expected _wxStatusBar_p.");
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderX. Expected _wxStatusBar_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxStatusBar_InitColours(_arg0);
|
||||
_result = (int )wxStatusBar_GetBorderX(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStatusBar_GetBorderY(_swigobj) (_swigobj->GetBorderY())
|
||||
static PyObject *_wrap_wxStatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
int _result;
|
||||
wxStatusBar * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStatusBar_GetBorderY",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_GetBorderY. Expected _wxStatusBar_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
_result = (int )wxStatusBar_GetBorderY(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
@ -496,6 +449,34 @@ static PyObject *_wrap_wxStatusBar_SetStatusWidths(PyObject *self, PyObject *arg
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxStatusBar_SetMinHeight(_swigobj,_swigarg0) (_swigobj->SetMinHeight(_swigarg0))
|
||||
static PyObject *_wrap_wxStatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxStatusBar * _arg0;
|
||||
int _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","height", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStatusBar_SetMinHeight",_kwnames,&_argo0,&_arg1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStatusBar_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStatusBar_SetMinHeight. Expected _wxStatusBar_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxStatusBar_SetMinHeight(_arg0,_arg1);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void wxToolBarToolBase_Destroy(wxToolBarToolBase *self) { delete self; }
|
||||
static PyObject *_wrap_wxToolBarToolBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@ -3114,12 +3095,12 @@ static PyMethodDef stattoolcMethods[] = {
|
||||
{ "wxToolBarToolBase_GetControl", (PyCFunction) _wrap_wxToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxToolBarToolBase_GetId", (PyCFunction) _wrap_wxToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxToolBarToolBase_Destroy", (PyCFunction) _wrap_wxToolBarToolBase_Destroy, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_SetMinHeight", (PyCFunction) _wrap_wxStatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_SetStatusWidths", (PyCFunction) _wrap_wxStatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_SetStatusText", (PyCFunction) _wrap_wxStatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_SetFieldsCount", (PyCFunction) _wrap_wxStatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_InitColours", (PyCFunction) _wrap_wxStatusBar_InitColours, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_DrawFieldText", (PyCFunction) _wrap_wxStatusBar_DrawFieldText, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_DrawField", (PyCFunction) _wrap_wxStatusBar_DrawField, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_GetBorderY", (PyCFunction) _wrap_wxStatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_GetBorderX", (PyCFunction) _wrap_wxStatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_GetStatusText", (PyCFunction) _wrap_wxStatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_GetFieldsCount", (PyCFunction) _wrap_wxStatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxStatusBar_GetFieldRect", (PyCFunction) _wrap_wxStatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@ -27,14 +27,11 @@ class wxStatusBarPtr(wxWindowPtr):
|
||||
def GetStatusText(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_GetStatusText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DrawField(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_DrawField,(self,) + _args, _kwargs)
|
||||
def GetBorderX(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_GetBorderX,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DrawFieldText(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_DrawFieldText,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def InitColours(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_InitColours,(self,) + _args, _kwargs)
|
||||
def GetBorderY(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_GetBorderY,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetFieldsCount(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self,) + _args, _kwargs)
|
||||
@ -45,6 +42,9 @@ class wxStatusBarPtr(wxWindowPtr):
|
||||
def SetStatusWidths(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetMinHeight(self, *_args, **_kwargs):
|
||||
val = apply(stattoolc.wxStatusBar_SetMinHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxStatusBar instance at %s>" % (self.this,)
|
||||
class wxStatusBar(wxStatusBarPtr):
|
||||
|
@ -2354,8 +2354,6 @@ SWIGEXPORT(void) initwxc() {
|
||||
PyDict_SetItemString(d,"wxNAND", PyInt_FromLong((long) wxNAND));
|
||||
PyDict_SetItemString(d,"wxOR", PyInt_FromLong((long) wxOR));
|
||||
PyDict_SetItemString(d,"wxSET", PyInt_FromLong((long) wxSET));
|
||||
PyDict_SetItemString(d,"wxSRC_OR", PyInt_FromLong((long) wxSRC_OR));
|
||||
PyDict_SetItemString(d,"wxSRC_AND", PyInt_FromLong((long) wxSRC_AND));
|
||||
PyDict_SetItemString(d,"WXK_BACK", PyInt_FromLong((long) WXK_BACK));
|
||||
PyDict_SetItemString(d,"WXK_TAB", PyInt_FromLong((long) WXK_TAB));
|
||||
PyDict_SetItemString(d,"WXK_RETURN", PyInt_FromLong((long) WXK_RETURN));
|
||||
@ -2590,6 +2588,7 @@ SWIGEXPORT(void) initwxc() {
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLL_PAGEUP", PyInt_FromLong((long) wxEVT_SCROLL_PAGEUP));
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong((long) wxEVT_SCROLL_PAGEDOWN));
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong((long) wxEVT_SCROLL_THUMBTRACK));
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong((long) wxEVT_SCROLL_THUMBRELEASE));
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_TOP", PyInt_FromLong((long) wxEVT_SCROLLWIN_TOP));
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong((long) wxEVT_SCROLLWIN_BOTTOM));
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong((long) wxEVT_SCROLLWIN_LINEUP));
|
||||
@ -2597,6 +2596,7 @@ SWIGEXPORT(void) initwxc() {
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong((long) wxEVT_SCROLLWIN_PAGEUP));
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong((long) wxEVT_SCROLLWIN_PAGEDOWN));
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong((long) wxEVT_SCROLLWIN_THUMBTRACK));
|
||||
PyDict_SetItemString(d,"wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong((long) wxEVT_SCROLLWIN_THUMBRELEASE));
|
||||
PyDict_SetItemString(d,"wxEVT_SIZE", PyInt_FromLong((long) wxEVT_SIZE));
|
||||
PyDict_SetItemString(d,"wxEVT_MOVE", PyInt_FromLong((long) wxEVT_MOVE));
|
||||
PyDict_SetItemString(d,"wxEVT_CLOSE_WINDOW", PyInt_FromLong((long) wxEVT_CLOSE_WINDOW));
|
||||
|
@ -476,8 +476,6 @@ wxOR_INVERT = wxc.wxOR_INVERT
|
||||
wxNAND = wxc.wxNAND
|
||||
wxOR = wxc.wxOR
|
||||
wxSET = wxc.wxSET
|
||||
wxSRC_OR = wxc.wxSRC_OR
|
||||
wxSRC_AND = wxc.wxSRC_AND
|
||||
WXK_BACK = wxc.WXK_BACK
|
||||
WXK_TAB = wxc.WXK_TAB
|
||||
WXK_RETURN = wxc.WXK_RETURN
|
||||
@ -712,6 +710,7 @@ wxEVT_SCROLL_LINEDOWN = wxc.wxEVT_SCROLL_LINEDOWN
|
||||
wxEVT_SCROLL_PAGEUP = wxc.wxEVT_SCROLL_PAGEUP
|
||||
wxEVT_SCROLL_PAGEDOWN = wxc.wxEVT_SCROLL_PAGEDOWN
|
||||
wxEVT_SCROLL_THUMBTRACK = wxc.wxEVT_SCROLL_THUMBTRACK
|
||||
wxEVT_SCROLL_THUMBRELEASE = wxc.wxEVT_SCROLL_THUMBRELEASE
|
||||
wxEVT_SCROLLWIN_TOP = wxc.wxEVT_SCROLLWIN_TOP
|
||||
wxEVT_SCROLLWIN_BOTTOM = wxc.wxEVT_SCROLLWIN_BOTTOM
|
||||
wxEVT_SCROLLWIN_LINEUP = wxc.wxEVT_SCROLLWIN_LINEUP
|
||||
@ -719,6 +718,7 @@ wxEVT_SCROLLWIN_LINEDOWN = wxc.wxEVT_SCROLLWIN_LINEDOWN
|
||||
wxEVT_SCROLLWIN_PAGEUP = wxc.wxEVT_SCROLLWIN_PAGEUP
|
||||
wxEVT_SCROLLWIN_PAGEDOWN = wxc.wxEVT_SCROLLWIN_PAGEDOWN
|
||||
wxEVT_SCROLLWIN_THUMBTRACK = wxc.wxEVT_SCROLLWIN_THUMBTRACK
|
||||
wxEVT_SCROLLWIN_THUMBRELEASE = wxc.wxEVT_SCROLLWIN_THUMBRELEASE
|
||||
wxEVT_SIZE = wxc.wxEVT_SIZE
|
||||
wxEVT_MOVE = wxc.wxEVT_MOVE
|
||||
wxEVT_CLOSE_WINDOW = wxc.wxEVT_CLOSE_WINDOW
|
||||
@ -1040,6 +1040,7 @@ def EVT_COMMAND(win, id, cmd, func):
|
||||
def EVT_COMMAND_RANGE(win, id1, id2, cmd, func):
|
||||
win.Connect(id1, id2, cmd, func)
|
||||
|
||||
|
||||
# Scrolling
|
||||
def EVT_SCROLL(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
|
||||
@ -1049,6 +1050,7 @@ def EVT_SCROLL(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SCROLL_PAGEUP, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLL_PAGEDOWN, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK,func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE,func)
|
||||
|
||||
def EVT_SCROLL_TOP(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SCROLL_TOP, func)
|
||||
@ -1071,6 +1073,9 @@ def EVT_SCROLL_PAGEDOWN(win, func):
|
||||
def EVT_SCROLL_THUMBTRACK(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SCROLL_THUMBTRACK, func)
|
||||
|
||||
def EVT_SCROLL_THUMBRELEASE(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SCROLL_THUMBRELEASE, func)
|
||||
|
||||
|
||||
|
||||
# Scrolling, with an id
|
||||
@ -1082,6 +1087,7 @@ def EVT_COMMAND_SCROLL(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
|
||||
win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE,func)
|
||||
|
||||
def EVT_COMMAND_SCROLL_TOP(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
|
||||
@ -1104,15 +1110,19 @@ def EVT_COMMAND_SCROLL_PAGEDOWN(win, id, func):
|
||||
def EVT_COMMAND_SCROLL_THUMBTRACK(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK, func)
|
||||
|
||||
def EVT_COMMAND_SCROLL_THUMBRELEASE(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_SCROLL_THUMBRELEASE, func)
|
||||
|
||||
#---
|
||||
def EVT_SCROLLWIN(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK,func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_BOTTOM, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEUP, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEUP, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
|
||||
|
||||
def EVT_SCROLLWIN_TOP(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_TOP, func)
|
||||
@ -1135,17 +1145,21 @@ def EVT_SCROLLWIN_PAGEDOWN(win, func):
|
||||
def EVT_SCROLLWIN_THUMBTRACK(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
|
||||
|
||||
def EVT_SCROLLWIN_THUMBRELEASE(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
|
||||
|
||||
|
||||
|
||||
# Scrolling, with an id
|
||||
def EVT_COMMAND_SCROLLWIN(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK,func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_BOTTOM, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_LINEUP, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_LINEDOWN, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEUP, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_PAGEDOWN, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE,func)
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN_TOP(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_TOP, func)
|
||||
@ -1168,6 +1182,10 @@ def EVT_COMMAND_SCROLLWIN_PAGEDOWN(win, id, func):
|
||||
def EVT_COMMAND_SCROLLWIN_THUMBTRACK(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBTRACK, func)
|
||||
|
||||
def EVT_COMMAND_SCROLLWIN_THUMBRELEASE(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_SCROLLWIN_THUMBRELEASE, func)
|
||||
|
||||
|
||||
# Convenience commands
|
||||
def EVT_BUTTON(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_COMMAND_BUTTON_CLICKED, func)
|
||||
|
Loading…
Reference in New Issue
Block a user