class wxTaskBarIcon : public wxEvtHandler
{
public:
- wxTaskBarIcon() { PyErr_SetNone(PyExc_NotImplementedError); }
+ wxTaskBarIcon() { wxPyRaiseNotImplemented(); }
};
{
public:
wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *)
- { PyErr_SetNone(PyExc_NotImplementedError); }
+ { wxPyRaiseNotImplemented(); }
virtual wxEvent* Clone() const { return NULL; }
};
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);