]> git.saurik.com Git - wxWidgets.git/commitdiff
Added __nonzero__ for wxTraskBarIcon
authorRobin Dunn <robin@alldunn.com>
Wed, 10 Mar 2004 02:04:21 +0000 (02:04 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 10 Mar 2004 02:04:21 +0000 (02:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_taskbar.i

index 3b37db21b28529baa1084f06b9872f25169313a6..c32be7d5a7b91dbde19ba709a4dc433367c1ca81 100644 (file)
@@ -65,6 +65,8 @@ public:
 
 #ifndef __WXMAC__
     bool IsOk() const;
+    %pythoncode { def __nonzero__(self): return self.IsOk() }
+    
     bool IsIconInstalled() const;
 
     bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString);