X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9df61a29d2ff6ec6037c04a4da6d5418c1a5fbc9..d5f005cc9385455ceebdf2063aa7f421f70315d1:/wxPython/src/gtk/cmndlgs.py diff --git a/wxPython/src/gtk/cmndlgs.py b/wxPython/src/gtk/cmndlgs.py index cbbb523526..05e508a769 100644 --- a/wxPython/src/gtk/cmndlgs.py +++ b/wxPython/src/gtk/cmndlgs.py @@ -29,7 +29,7 @@ class wxColourDataPtr(wxObjectPtr): return val def GetColour(self, *_args, **_kwargs): val = apply(cmndlgsc.wxColourData_GetColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) + if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetCustomColour(self, *_args, **_kwargs): val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs) @@ -241,7 +241,7 @@ class wxFontDataPtr(wxObjectPtr): return val def GetColour(self, *_args, **_kwargs): val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) + if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetChosenFont(self, *_args, **_kwargs): val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)