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:
@@ -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
|
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
|
pacakge has changed as well, it is now accessible as "from wxPython
|
||||||
import py" (or "from wx import py" using the new namespace.) There
|
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
|
that will issue a warning and then import what is needed from the new
|
||||||
package. These will be removed in a future release.
|
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(): ..."
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user