From e0269b2e2a237e211b2dae7efa2731151f239560 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 10 Mar 2004 02:04:21 +0000 Subject: [PATCH] Added __nonzero__ for wxTraskBarIcon git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_taskbar.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wxPython/src/_taskbar.i b/wxPython/src/_taskbar.i index 3b37db21b2..c32be7d5a7 100644 --- a/wxPython/src/_taskbar.i +++ b/wxPython/src/_taskbar.i @@ -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); -- 2.50.0