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
This commit is contained in:
Robin Dunn
2003-04-10 19:45:27 +00:00
parent 59f89e9738
commit ba8161f46b

View File

@@ -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(): ..."