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:
@@ -1003,7 +1003,11 @@ public:
|
|||||||
wxTreeItemId();
|
wxTreeItemId();
|
||||||
~wxTreeItemId();
|
~wxTreeItemId();
|
||||||
bool IsOk();
|
bool IsOk();
|
||||||
%pragma(python) addtoclass = "Ok = IsOk"
|
%pragma(python) addtoclass = "
|
||||||
|
Ok = IsOk
|
||||||
|
def __nonzero__(self):
|
||||||
|
return self.IsOk()
|
||||||
|
"
|
||||||
|
|
||||||
%addmethods {
|
%addmethods {
|
||||||
int __cmp__(wxTreeItemId* other) {
|
int __cmp__(wxTreeItemId* other) {
|
||||||
|
Reference in New Issue
Block a user