MAKE_CONST_WXSTRING(ART_HELP_BROWSER);
MAKE_CONST_WXSTRING(ART_MESSAGE_BOX);
MAKE_CONST_WXSTRING(ART_BUTTON);
+MAKE_CONST_WXSTRING(ART_LIST);
MAKE_CONST_WXSTRING(ART_OTHER);
// Art IDs
return rval;
}
+ virtual wxIconBundle CreateIconBundle(const wxArtID& id,
+ const wxArtClient& client)
+ {
+ wxIconBundle rval = wxNullIconBundle;
+ wxPyBlock_t blocked = wxPyBeginBlockThreads();
+ if ((wxPyCBH_findCallback(m_myInst, "CreateIconBundle"))) {
+ PyObject* ro;
+ wxIconBundle* ptr;
+ PyObject* s1, *s2;
+ s1 = wx2PyString(id);
+ s2 = wx2PyString(client);
+ ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", s1, s2));
+ Py_DECREF(s1);
+ Py_DECREF(s2);
+ if (ro) {
+ if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxIconBundle")))
+ rval = *ptr;
+ Py_DECREF(ro);
+ }
+ }
+ wxPyEndBlockThreads(blocked);
+ return rval;
+ }
+
PYPRIVATE;
};
%}
MustHaveApp(wxPyArtProvider);
MustHaveApp(wxPyArtProvider::GetBitmap);
MustHaveApp(wxPyArtProvider::GetIcon);
+MustHaveApp(wxPyArtProvider::GetBundle);
%rename(ArtProvider) wxPyArtProvider;
class wxPyArtProvider /*: public wxObject*/
{
public:
- %pythonAppend wxPyArtProvider "self._setCallbackInfo(self, ArtProvider)"
+ %pythonAppend wxPyArtProvider setCallbackInfo(ArtProvider);
wxPyArtProvider();
~wxPyArtProvider();
DocDeclStr(
static void , Push(wxPyArtProvider *provider),
"Add new provider to the top of providers stack.", "");
- %pythoncode { PushProvider = wx._deprecated(Push, "See `Push`") }
+ %pythoncode { PushProvider = Push }
DocDeclStr(
static void , Insert(wxPyArtProvider *provider),
"Add new provider to the bottom of providers stack.", "");
- %pythoncode { InsertProvider = wx._deprecated(Insert, "See `Insert`") }
+ %pythoncode { InsertProvider = Insert }
%cleardisown( wxPyArtProvider *provider );
DocDeclStr(
static bool , Pop(),
"Remove latest added provider and delete it.", "");
- %pythoncode { PopProvider = wx._deprecated(Pop, "See `Pop`") }
+ %pythoncode { PopProvider = Pop }
%pythonAppend Delete "args[1].thisown = 1";
DocDeclStr(
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`") }
+ %pythoncode { RemoveProvider = Delete }
DocDeclStr(
DocDeclStr(
static wxIcon , GetIcon(const wxString& id,
- const wxString& client = wxPyART_OTHER,
+ const wxString& client = wxPyART_OTHER,
const wxSize& size = wxDefaultSize),
"Query the providers for icon with given ID and return it. Return
wx.NullIcon if no provider provides it.", "");
+ DocDeclStr(
+ static wxIconBundle , GetIconBundle(const wxArtID& id,
+ const wxArtClient& client = wxART_OTHER),
+ "Query the providers for iconbundle with given ID and return it. Return
+wx.NullIconBundle if no provider provides it.", "");
+
+
DocDeclStr(
static wxSize , GetSizeHint(const wxString& client, bool platform_dependent = false),
"Get the size hint of an icon from a specific Art Client, queries the
- %pythonAppend Destroy "args[0].thisown = 0"
+ %pythonPrepend Destroy "args[0].this.own(False)"
%extend { void Destroy() { delete self; }}
};