From ba8161f46be535a0ab2afc0c99f89adb408f5104 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 10 Apr 2003 19:45:27 +0000 Subject: [PATCH] Added __nonzero__ method to more classes that have a Ok or IsOk method. This allows code like "if obj: ..." to be the same as "if obj.IsOk(): ..." git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/CHANGES.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wxPython/CHANGES.txt b/wxPython/CHANGES.txt index 06648234fb..5b518e8e5f 100644 --- a/wxPython/CHANGES.txt +++ b/wxPython/CHANGES.txt @@ -30,10 +30,14 @@ Patrick O'Brien's PyCrust package has been renamed to Py and now includes several new tools. As part of the change the location of the pacakge has changed as well, it is now accessible as "from wxPython import py" (or "from wx import py" using the new namespace.) There -are still some transition moudules in the wxPython.lib.PyCrust mackage +are still some transition modules in the wxPython.lib.PyCrust package that will issue a warning and then import what is needed from the new package. These will be removed in a future release. +Added __nonzero__ method to wxTreeItemId, wxBitmap, wxImage, wxFont, +and most other classes that have an Ok or IsOK method. This allows +code like "if obj: ..." to be the same as "if obj.IsOk(): ..." +