Tweak wxCOlour.__repr__ and add wxRegionIterator.__nonzero__
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -406,7 +406,7 @@ public:
|
|||||||
|
|
||||||
%pragma(python) addtoclass = "asTuple = Get
|
%pragma(python) addtoclass = "asTuple = Get
|
||||||
def __str__(self): return str(self.asTuple())
|
def __str__(self): return str(self.asTuple())
|
||||||
def __repr__(self): return 'wxColour:' + str(self.asTuple())
|
def __repr__(self): return 'wxColour' + str(self.asTuple())
|
||||||
def __nonzero__(self): return self.Ok()
|
def __nonzero__(self): return self.Ok()
|
||||||
def __getinitargs__(self): return ()
|
def __getinitargs__(self): return ()
|
||||||
def __getstate__(self): return self.asTuple()
|
def __getstate__(self): return self.asTuple()
|
||||||
@@ -1148,6 +1148,10 @@ public:
|
|||||||
void Next() {
|
void Next() {
|
||||||
(*self) ++;
|
(*self) ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool __nonzero__() {
|
||||||
|
return self->operator bool();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user