X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c0282d5044a11a785eb5ffe2af167221a65b8d4..a81c3c2383f9096ef5e96b708a0f1c1ffe7cc6a8:/wxPython/src/gtk/grid.py diff --git a/wxPython/src/gtk/grid.py b/wxPython/src/gtk/grid.py index d8bb23db26..cfbddc55b4 100644 --- a/wxPython/src/gtk/grid.py +++ b/wxPython/src/gtk/grid.py @@ -5,6 +5,8 @@ from misc import * from gdi import * +from fonts import * + from windows import * from clip_dnd import * @@ -511,15 +513,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)