]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_colour.i
updated Joystick demo, is now wxDesigner-less
[wxWidgets.git] / wxPython / src / _colour.i
index c1df0f8df2ece5d047b813697bc668bc60136df3..f16e701c48d928b147c27c40c1198e41aae8968a 100644 (file)
@@ -77,9 +77,8 @@ public:
         def __str__(self):                  return str(self.asTuple())
         def __repr__(self):                 return 'wx.Colour' + str(self.asTuple())
         def __nonzero__(self):              return self.Ok()
         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())
         }
 };
 
         }
 };