]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_taskbar.i
added defines for wxchar workaround
[wxWidgets.git] / wxPython / src / _taskbar.i
index 3b37db21b28529baa1084f06b9872f25169313a6..5d4c54bf88e13b628e2c08099ca3373b24d7922d 100644 (file)
@@ -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);