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):
Every bitmap is known to wx.ArtProvider under an unique ID that is
used when requesting a resource from it. The IDs can have one of the
following predefined values. Additionally, any string recognized by
-custom art providers registered using `PushProvider` may be used.
+custom art providers registered using `Push` may be used.
GTK+ Note
---------
void _setCallbackInfo(PyObject* self, PyObject* _class);
%disownarg( wxPyArtProvider *provider );
+
DocDeclStr(
- static void , PushProvider(wxPyArtProvider *provider),
+ static void , Push(wxPyArtProvider *provider),
"Add new provider to the top of providers stack.", "");
-
+ %pythoncode { PushProvider = wx._deprecated(Push, "See `Push`") }
+
DocDeclStr(
- static void , InsertProvider(wxPyArtProvider *provider),
+ static void , Insert(wxPyArtProvider *provider),
"Add new provider to the bottom of providers stack.", "");
+ %pythoncode { InsertProvider = wx._deprecated(Insert, "See `Insert`") }
+
%cleardisown( wxPyArtProvider *provider );
DocDeclStr(
- static bool , PopProvider(),
+ static bool , Pop(),
"Remove latest added provider and delete it.", "");
+ %pythoncode { PopProvider = wx._deprecated(Pop, "See `Pop`") }
- %pythonAppend RemoveProvider "args[1].thisown = 1";
+ %pythonAppend Delete "args[1].thisown = 1";
DocDeclStr(
- static bool , RemoveProvider(wxPyArtProvider *provider),
+ static bool , Delete(wxPyArtProvider *provider),
"Remove provider. The provider must have been added previously! The
provider is _not_ deleted.", "");
-
+ %pythoncode { RemoveProvider = wx._deprecated(Delete, "See `Delete`") }
+
DocDeclStr(
static wxBitmap , GetBitmap(const wxString& id,
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):
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):
"""_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
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
}
-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 ;
(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;
}
}
-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 ;
(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;
}
}
-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;
}
}
-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;
(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;
}
{ (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},
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):
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):
"""_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
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
}
-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 ;
(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;
}
}
-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 ;
(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;
}
}
-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;
}
}
-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;
(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;
}
{ (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},
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):
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):
"""_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
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
}
-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 ;
(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;
}
}
-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 ;
(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;
}
}
-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;
}
}
-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;
(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;
}
{ (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},