]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/gdi.py
Updated overview
[wxWidgets.git] / wxPython / src / mac / gdi.py
index fdd4fe882b318868fa8a9532bdde2f028e89810b..cfeb50db2396994678f28ab00e072b5971d3ec1f 100644 (file)
@@ -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):