X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19a97bd6f98edc899ee0c3b2f2c4fe4ee8a0082b..a2615ebc22a402b1badb46475f94ab6aa3a64018:/wxPython/src/msw/grid.py?ds=inline diff --git a/wxPython/src/msw/grid.py b/wxPython/src/msw/grid.py index 69fa227da9..cfbddc55b4 100644 --- a/wxPython/src/msw/grid.py +++ b/wxPython/src/msw/grid.py @@ -5,6 +5,8 @@ from misc import * from gdi import * +from fonts import * + from windows import * from clip_dnd import * @@ -100,8 +102,8 @@ class wxPyGridCellRendererPtr(wxGridCellRendererPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(gridc.wxPyGridCellRenderer__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(gridc.wxPyGridCellRenderer__setCallbackInfo,(self,) + _args, _kwargs) return val def base_SetParameters(self, *_args, **_kwargs): val = apply(gridc.wxPyGridCellRenderer_base_SetParameters,(self,) + _args, _kwargs) @@ -112,7 +114,7 @@ class wxPyGridCellRenderer(wxPyGridCellRendererPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxPyGridCellRenderer,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxPyGridCellRenderer) + self._setCallbackInfo(self, wxPyGridCellRenderer) @@ -302,8 +304,8 @@ class wxPyGridCellEditorPtr(wxGridCellEditorPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(gridc.wxPyGridCellEditor__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(gridc.wxPyGridCellEditor__setCallbackInfo,(self,) + _args, _kwargs) return val def base_SetSize(self, *_args, **_kwargs): val = apply(gridc.wxPyGridCellEditor_base_SetSize,(self,) + _args, _kwargs) @@ -338,7 +340,7 @@ class wxPyGridCellEditor(wxPyGridCellEditorPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxPyGridCellEditor,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxPyGridCellEditor) + self._setCallbackInfo(self, wxPyGridCellEditor) @@ -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) @@ -585,8 +587,8 @@ class wxPyGridCellAttrProviderPtr(wxGridCellAttrProviderPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(gridc.wxPyGridCellAttrProvider__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(gridc.wxPyGridCellAttrProvider__setCallbackInfo,(self,) + _args, _kwargs) return val def base_GetAttr(self, *_args, **_kwargs): val = apply(gridc.wxPyGridCellAttrProvider_base_GetAttr,(self,) + _args, _kwargs) @@ -607,7 +609,7 @@ class wxPyGridCellAttrProvider(wxPyGridCellAttrProviderPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxPyGridCellAttrProvider,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxPyGridCellAttrProvider) + self._setCallbackInfo(self, wxPyGridCellAttrProvider) @@ -733,8 +735,8 @@ class wxPyGridTableBasePtr(wxGridTableBasePtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(gridc.wxPyGridTableBase__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(gridc.wxPyGridTableBase__setCallbackInfo,(self,) + _args, _kwargs) return val def Destroy(self, *_args, **_kwargs): val = apply(gridc.wxPyGridTableBase_Destroy,(self,) + _args, _kwargs) @@ -803,7 +805,7 @@ class wxPyGridTableBase(wxPyGridTableBasePtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxPyGridTableBase,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxPyGridTableBase) + self._setCallbackInfo(self, wxPyGridTableBase) @@ -958,9 +960,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 @@ -1432,6 +1431,7 @@ class wxGrid(wxGridPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGrid,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self)