X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dae0faa6be08c5bb5635fd464b695ac8bb8f2b8d..05fd1c9e8e20e959f894ecc300ee40232de38377:/wxPython/src/mac/gdi.py?ds=sidebyside diff --git a/wxPython/src/mac/gdi.py b/wxPython/src/mac/gdi.py index fdd4fe882b..cfeb50db23 100644 --- a/wxPython/src/mac/gdi.py +++ b/wxPython/src/mac/gdi.py @@ -103,9 +103,8 @@ class Colour(core.Object): def __str__(self): return 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()) class ColourPtr(Colour):