%pythoncode {
asTuple = Get
def __str__(self): return str(self.asTuple())
- def __repr__(self): return 'wxColour' + str(self.asTuple())
+ def __repr__(self): return 'wx.Colour' + str(self.asTuple())
def __nonzero__(self): return self.Ok()
- def __getinitargs__(self): return ()
- def __getstate__(self): return self.asTuple()
- def __setstate__(self, state): self.Set(*state)
+ __safe_for_unpickling__ = True
+ def __reduce__(self): return (Colour, self.Get())
}
};
-%pythoncode {
- Color = Colour
- NamedColor = NamedColour
-}
+// %pythoncode {
+// Color = Colour
+// NamedColor = NamedColour
+// }
+
//---------------------------------------------------------------------------