diff --git a/wxPython/src/gdi.i b/wxPython/src/gdi.i index ad284f4925..4cb4171314 100644 --- a/wxPython/src/gdi.i +++ b/wxPython/src/gdi.i @@ -406,7 +406,7 @@ public: %pragma(python) addtoclass = "asTuple = Get 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 __getinitargs__(self): return () def __getstate__(self): return self.asTuple() @@ -1148,6 +1148,10 @@ public: void Next() { (*self) ++; } + + bool __nonzero__() { + return self->operator bool(); + } }; };