X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/81cfe5e13e9b8a2ec8374af1f7806b05a86d4d4b..78577dcb71a8d748b9f5708321c3956c8b83bbe1:/wxPython/src/_taskbar.i?ds=sidebyside diff --git a/wxPython/src/_taskbar.i b/wxPython/src/_taskbar.i index 3b37db21b2..5d4c54bf88 100644 --- a/wxPython/src/_taskbar.i +++ b/wxPython/src/_taskbar.i @@ -61,10 +61,19 @@ class wxTaskBarIcon : public wxEvtHandler public: wxTaskBarIcon(); ~wxTaskBarIcon(); - + + %extend { + void Destroy() { + #ifndef __WXMAC__ + self->RemoveIcon(); + #endif + } + } #ifndef __WXMAC__ bool IsOk() const; + %pythoncode { def __nonzero__(self): return self.IsOk() } + bool IsIconInstalled() const; bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString);