X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4f8516517e13bf164809c9d58d701413807f8c1..2421eb827857325ff4886131c337391365986d6b:/wxPython/src/_colour.i?ds=sidebyside diff --git a/wxPython/src/_colour.i b/wxPython/src/_colour.i index 55af312eef..f16e701c48 100644 --- a/wxPython/src/_colour.i +++ b/wxPython/src/_colour.i @@ -77,15 +77,15 @@ public: 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()) } }; -%pythoncode { - Color = Colour - NamedColor = NamedColour -} +// %pythoncode { +// Color = Colour +// NamedColor = NamedColour +// } + //---------------------------------------------------------------------------