X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0220cbc1695d01a55964f31987f2fe78cf212ca1..55d186514e846712d355aac1a3bbf2d1c0958957:/wxPython/src/gtk/grid.py diff --git a/wxPython/src/gtk/grid.py b/wxPython/src/gtk/grid.py index 4cf0ef1691..a2a653b730 100644 --- a/wxPython/src/gtk/grid.py +++ b/wxPython/src/gtk/grid.py @@ -511,15 +511,15 @@ class wxGridCellAttrPtr : return val def GetTextColour(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_GetTextColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) + if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetBackgroundColour(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_GetBackgroundColour,(self,) + _args, _kwargs) - if val: val = wxColourPtr(val) + if val: val = wxColourPtr(val) ; val.thisown = 1 return val def GetFont(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_GetFont,(self,) + _args, _kwargs) - if val: val = wxFontPtr(val) + if val: val = wxFontPtr(val) ; val.thisown = 1 return val def GetAlignment(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_GetAlignment,(self,) + _args, _kwargs) @@ -958,9 +958,6 @@ class wxGridPtr(wxScrolledWindowPtr): def DrawTextRectangle(self, *_args, **_kwargs): val = apply(gridc.wxGrid_DrawTextRectangle,(self,) + _args, _kwargs) return val - def StringToLines(self, *_args, **_kwargs): - val = apply(gridc.wxGrid_StringToLines,(self,) + _args, _kwargs) - return val def GetTextBoxSize(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetTextBoxSize,(self,) + _args, _kwargs) return val