Added __nonzero__ method to wxTreeItemId.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-04-09 19:28:38 +00:00
parent 6416289540
commit 2321b3c778

View File

@@ -1003,7 +1003,11 @@ public:
wxTreeItemId();
~wxTreeItemId();
bool IsOk();
%pragma(python) addtoclass = "Ok = IsOk"
%pragma(python) addtoclass = "
Ok = IsOk
def __nonzero__(self):
return self.IsOk()
"
%addmethods {
int __cmp__(wxTreeItemId* other) {