New names for some ArtProvider methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2607,7 +2607,7 @@ class ArtProvider(object):
|
||||
their own wx.ArtProvider class and easily replace standard art with
|
||||
his/her own version. It is easy thing to do: all that is needed is
|
||||
to derive a class from wx.ArtProvider, override it's CreateBitmap
|
||||
method and register the provider with wx.ArtProvider.PushProvider::
|
||||
method and register the provider with `wx.ArtProvider.Push`::
|
||||
|
||||
class MyArtProvider(wx.ArtProvider):
|
||||
def __init__(self):
|
||||
@@ -2631,7 +2631,7 @@ class ArtProvider(object):
|
||||
their own wx.ArtProvider class and easily replace standard art with
|
||||
his/her own version. It is easy thing to do: all that is needed is
|
||||
to derive a class from wx.ArtProvider, override it's CreateBitmap
|
||||
method and register the provider with wx.ArtProvider.PushProvider::
|
||||
method and register the provider with `wx.ArtProvider.Push`::
|
||||
|
||||
class MyArtProvider(wx.ArtProvider):
|
||||
def __init__(self):
|
||||
@@ -2651,45 +2651,49 @@ class ArtProvider(object):
|
||||
"""_setCallbackInfo(self, PyObject self, PyObject _class)"""
|
||||
return _misc_.ArtProvider__setCallbackInfo(*args, **kwargs)
|
||||
|
||||
def PushProvider(*args, **kwargs):
|
||||
def Push(*args, **kwargs):
|
||||
"""
|
||||
PushProvider(ArtProvider provider)
|
||||
Push(ArtProvider provider)
|
||||
|
||||
Add new provider to the top of providers stack.
|
||||
"""
|
||||
return _misc_.ArtProvider_PushProvider(*args, **kwargs)
|
||||
return _misc_.ArtProvider_Push(*args, **kwargs)
|
||||
|
||||
PushProvider = staticmethod(PushProvider)
|
||||
def InsertProvider(*args, **kwargs):
|
||||
Push = staticmethod(Push)
|
||||
PushProvider = wx._deprecated(Push, "See `Push`")
|
||||
def Insert(*args, **kwargs):
|
||||
"""
|
||||
InsertProvider(ArtProvider provider)
|
||||
Insert(ArtProvider provider)
|
||||
|
||||
Add new provider to the bottom of providers stack.
|
||||
"""
|
||||
return _misc_.ArtProvider_InsertProvider(*args, **kwargs)
|
||||
return _misc_.ArtProvider_Insert(*args, **kwargs)
|
||||
|
||||
InsertProvider = staticmethod(InsertProvider)
|
||||
def PopProvider(*args, **kwargs):
|
||||
Insert = staticmethod(Insert)
|
||||
InsertProvider = wx._deprecated(Insert, "See `Insert`")
|
||||
def Pop(*args, **kwargs):
|
||||
"""
|
||||
PopProvider() -> bool
|
||||
Pop() -> bool
|
||||
|
||||
Remove latest added provider and delete it.
|
||||
"""
|
||||
return _misc_.ArtProvider_PopProvider(*args, **kwargs)
|
||||
return _misc_.ArtProvider_Pop(*args, **kwargs)
|
||||
|
||||
PopProvider = staticmethod(PopProvider)
|
||||
def RemoveProvider(*args, **kwargs):
|
||||
Pop = staticmethod(Pop)
|
||||
PopProvider = wx._deprecated(Pop, "See `Pop`")
|
||||
def Delete(*args, **kwargs):
|
||||
"""
|
||||
RemoveProvider(ArtProvider provider) -> bool
|
||||
Delete(ArtProvider provider) -> bool
|
||||
|
||||
Remove provider. The provider must have been added previously! The
|
||||
provider is _not_ deleted.
|
||||
"""
|
||||
val = _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
|
||||
val = _misc_.ArtProvider_Delete(*args, **kwargs)
|
||||
args[1].thisown = 1
|
||||
return val
|
||||
|
||||
RemoveProvider = staticmethod(RemoveProvider)
|
||||
Delete = staticmethod(Delete)
|
||||
RemoveProvider = wx._deprecated(Delete, "See `Delete`")
|
||||
def GetBitmap(*args, **kwargs):
|
||||
"""
|
||||
GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
|
||||
@@ -2784,38 +2788,38 @@ ART_QUIT = cvar.ART_QUIT
|
||||
ART_FIND = cvar.ART_FIND
|
||||
ART_FIND_AND_REPLACE = cvar.ART_FIND_AND_REPLACE
|
||||
|
||||
def ArtProvider_PushProvider(*args, **kwargs):
|
||||
def ArtProvider_Push(*args, **kwargs):
|
||||
"""
|
||||
ArtProvider_PushProvider(ArtProvider provider)
|
||||
ArtProvider_Push(ArtProvider provider)
|
||||
|
||||
Add new provider to the top of providers stack.
|
||||
"""
|
||||
return _misc_.ArtProvider_PushProvider(*args, **kwargs)
|
||||
return _misc_.ArtProvider_Push(*args, **kwargs)
|
||||
|
||||
def ArtProvider_InsertProvider(*args, **kwargs):
|
||||
def ArtProvider_Insert(*args, **kwargs):
|
||||
"""
|
||||
ArtProvider_InsertProvider(ArtProvider provider)
|
||||
ArtProvider_Insert(ArtProvider provider)
|
||||
|
||||
Add new provider to the bottom of providers stack.
|
||||
"""
|
||||
return _misc_.ArtProvider_InsertProvider(*args, **kwargs)
|
||||
return _misc_.ArtProvider_Insert(*args, **kwargs)
|
||||
|
||||
def ArtProvider_PopProvider(*args):
|
||||
def ArtProvider_Pop(*args):
|
||||
"""
|
||||
ArtProvider_PopProvider() -> bool
|
||||
ArtProvider_Pop() -> bool
|
||||
|
||||
Remove latest added provider and delete it.
|
||||
"""
|
||||
return _misc_.ArtProvider_PopProvider(*args)
|
||||
return _misc_.ArtProvider_Pop(*args)
|
||||
|
||||
def ArtProvider_RemoveProvider(*args, **kwargs):
|
||||
def ArtProvider_Delete(*args, **kwargs):
|
||||
"""
|
||||
ArtProvider_RemoveProvider(ArtProvider provider) -> bool
|
||||
ArtProvider_Delete(ArtProvider provider) -> bool
|
||||
|
||||
Remove provider. The provider must have been added previously! The
|
||||
provider is _not_ deleted.
|
||||
"""
|
||||
val = _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
|
||||
val = _misc_.ArtProvider_Delete(*args, **kwargs)
|
||||
args[1].thisown = 1
|
||||
return val
|
||||
|
||||
|
@@ -20436,7 +20436,7 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_ArtProvider_PushProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
SWIGINTERN PyObject *_wrap_ArtProvider_Push(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
|
||||
int res1 = 0 ;
|
||||
@@ -20445,14 +20445,14 @@ SWIGINTERN PyObject *_wrap_ArtProvider_PushProvider(PyObject *SWIGUNUSEDPARM(sel
|
||||
(char *) "provider", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) SWIG_fail;
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Push",kwnames,&obj0)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_DISOWN | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_PushProvider" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Push" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxPyArtProvider::PushProvider(arg1);
|
||||
wxPyArtProvider::Push(arg1);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -20463,7 +20463,7 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_ArtProvider_InsertProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
SWIGINTERN PyObject *_wrap_ArtProvider_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
|
||||
int res1 = 0 ;
|
||||
@@ -20472,14 +20472,14 @@ SWIGINTERN PyObject *_wrap_ArtProvider_InsertProvider(PyObject *SWIGUNUSEDPARM(s
|
||||
(char *) "provider", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_InsertProvider",kwnames,&obj0)) SWIG_fail;
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Insert",kwnames,&obj0)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxPyArtProvider, SWIG_POINTER_DISOWN | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_InsertProvider" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Insert" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
wxPyArtProvider::InsertProvider(arg1);
|
||||
wxPyArtProvider::Insert(arg1);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -20490,14 +20490,14 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_ArtProvider_PopProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
SWIGINTERN PyObject *_wrap_ArtProvider_Pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||
PyObject *resultobj = 0;
|
||||
bool result;
|
||||
|
||||
if (!SWIG_Python_UnpackTuple(args,"ArtProvider_PopProvider",0,0,0)) SWIG_fail;
|
||||
if (!SWIG_Python_UnpackTuple(args,"ArtProvider_Pop",0,0,0)) SWIG_fail;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)wxPyArtProvider::PopProvider();
|
||||
result = (bool)wxPyArtProvider::Pop();
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -20510,7 +20510,7 @@ fail:
|
||||
}
|
||||
|
||||
|
||||
SWIGINTERN PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
SWIGINTERN PyObject *_wrap_ArtProvider_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj = 0;
|
||||
wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
|
||||
bool result;
|
||||
@@ -20521,15 +20521,15 @@ SWIGINTERN PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *SWIGUNUSEDPARM(s
|
||||
(char *) "provider", NULL
|
||||
};
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) SWIG_fail;
|
||||
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Delete",kwnames,&obj0)) SWIG_fail;
|
||||
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyArtProvider, 0 | 0 );
|
||||
if (!SWIG_IsOK(res1)) {
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_RemoveProvider" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
|
||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ArtProvider_Delete" "', expected argument " "1"" of type '" "wxPyArtProvider *""'");
|
||||
}
|
||||
arg1 = reinterpret_cast< wxPyArtProvider * >(argp1);
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
result = (bool)wxPyArtProvider::RemoveProvider(arg1);
|
||||
result = (bool)wxPyArtProvider::Delete(arg1);
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) SWIG_fail;
|
||||
}
|
||||
@@ -37826,10 +37826,10 @@ static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"new_ArtProvider", (PyCFunction)_wrap_new_ArtProvider, METH_NOARGS, NULL},
|
||||
{ (char *)"delete_ArtProvider", (PyCFunction)_wrap_delete_ArtProvider, METH_O, NULL},
|
||||
{ (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_InsertProvider", (PyCFunction) _wrap_ArtProvider_InsertProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_PopProvider", (PyCFunction)_wrap_ArtProvider_PopProvider, METH_NOARGS, NULL},
|
||||
{ (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_Push", (PyCFunction) _wrap_ArtProvider_Push, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_Insert", (PyCFunction) _wrap_ArtProvider_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_Pop", (PyCFunction)_wrap_ArtProvider_Pop, METH_NOARGS, NULL},
|
||||
{ (char *)"ArtProvider_Delete", (PyCFunction) _wrap_ArtProvider_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
{ (char *)"ArtProvider_GetSizeHint", (PyCFunction) _wrap_ArtProvider_GetSizeHint, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||
|
Reference in New Issue
Block a user