X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edf2f43eade1ec5d3c6cbd96cb13551acabc9a99..53663be8a5ea8e1c6f178839209b67e8228e4642:/wxPython/src/msw/grid.py?ds=sidebyside diff --git a/wxPython/src/msw/grid.py b/wxPython/src/msw/grid.py index 04c9de468f..258b2736ec 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 * @@ -67,6 +69,9 @@ class wxGridCellRendererPtr : def __init__(self,this): self.this = this self.thisown = 0 + def _setOORInfo(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellRenderer__setOORInfo,(self,) + _args, _kwargs) + return val def SetParameters(self, *_args, **_kwargs): val = apply(gridc.wxGridCellRenderer_SetParameters,(self,) + _args, _kwargs) return val @@ -85,7 +90,6 @@ class wxGridCellRendererPtr : return val def Clone(self, *_args, **_kwargs): val = apply(gridc.wxGridCellRenderer_Clone,(self,) + _args, _kwargs) - if val: val = wxGridCellRendererPtr(val) return val def __repr__(self): return "" % (self.this,) @@ -100,8 +104,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 +116,8 @@ 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) + self._setOORInfo(self) @@ -127,6 +132,7 @@ class wxGridCellStringRenderer(wxGridCellStringRendererPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellStringRenderer,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -141,6 +147,7 @@ class wxGridCellNumberRenderer(wxGridCellNumberRendererPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellNumberRenderer,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -167,6 +174,7 @@ class wxGridCellFloatRenderer(wxGridCellFloatRendererPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellFloatRenderer,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -181,6 +189,52 @@ class wxGridCellBoolRenderer(wxGridCellBoolRendererPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellBoolRenderer,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) + + + + +class wxGridCellDateTimeRendererPtr(wxGridCellStringRendererPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def __repr__(self): + return "" % (self.this,) +class wxGridCellDateTimeRenderer(wxGridCellDateTimeRendererPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(gridc.new_wxGridCellDateTimeRenderer,_args,_kwargs) + self.thisown = 1 + self._setOORInfo(self) + + + + +class wxGridCellEnumRendererPtr(wxGridCellStringRendererPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def __repr__(self): + return "" % (self.this,) +class wxGridCellEnumRenderer(wxGridCellEnumRendererPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(gridc.new_wxGridCellEnumRenderer,_args,_kwargs) + self.thisown = 1 + self._setOORInfo(self) + + + + +class wxGridCellAutoWrapStringRendererPtr(wxGridCellStringRendererPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def __repr__(self): + return "" % (self.this,) +class wxGridCellAutoWrapStringRenderer(wxGridCellAutoWrapStringRendererPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(gridc.new_wxGridCellAutoWrapStringRenderer,_args,_kwargs) + self.thisown = 1 + self._setOORInfo(self) @@ -189,6 +243,9 @@ class wxGridCellEditorPtr : def __init__(self,this): self.this = this self.thisown = 0 + def _setOORInfo(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellEditor__setOORInfo,(self,) + _args, _kwargs) + return val def IsCreated(self, *_args, **_kwargs): val = apply(gridc.wxGridCellEditor_IsCreated,(self,) + _args, _kwargs) return val @@ -198,6 +255,12 @@ class wxGridCellEditorPtr : def SetControl(self, *_args, **_kwargs): val = apply(gridc.wxGridCellEditor_SetControl,(self,) + _args, _kwargs) return val + def GetCellAttr(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellEditor_GetCellAttr,(self,) + _args, _kwargs) + return val + def SetCellAttr(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellEditor_SetCellAttr,(self,) + _args, _kwargs) + return val def SetParameters(self, *_args, **_kwargs): val = apply(gridc.wxGridCellEditor_SetParameters,(self,) + _args, _kwargs) return val @@ -221,7 +284,6 @@ class wxGridCellEditorPtr : return val def Clone(self, *_args, **_kwargs): val = apply(gridc.wxGridCellEditor_Clone,(self,) + _args, _kwargs) - if val: val = wxGridCellEditorPtr(val) return val def SetSize(self, *_args, **_kwargs): val = apply(gridc.wxGridCellEditor_SetSize,(self,) + _args, _kwargs) @@ -260,8 +322,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) @@ -296,7 +358,8 @@ 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) + self._setOORInfo(self) @@ -305,12 +368,16 @@ class wxGridCellTextEditorPtr(wxGridCellEditorPtr): def __init__(self,this): self.this = this self.thisown = 0 + def GetValue(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellTextEditor_GetValue,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxGridCellTextEditor(wxGridCellTextEditorPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellTextEditor,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -319,12 +386,16 @@ class wxGridCellNumberEditorPtr(wxGridCellTextEditorPtr): def __init__(self,this): self.this = this self.thisown = 0 + def GetValue(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellNumberEditor_GetValue,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxGridCellNumberEditor(wxGridCellNumberEditorPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellNumberEditor,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -333,12 +404,16 @@ class wxGridCellFloatEditorPtr(wxGridCellTextEditorPtr): def __init__(self,this): self.this = this self.thisown = 0 + def GetValue(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellFloatEditor_GetValue,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxGridCellFloatEditor(wxGridCellFloatEditorPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellFloatEditor,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -347,12 +422,16 @@ class wxGridCellBoolEditorPtr(wxGridCellEditorPtr): def __init__(self,this): self.this = this self.thisown = 0 + def GetValue(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellBoolEditor_GetValue,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxGridCellBoolEditor(wxGridCellBoolEditorPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellBoolEditor,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -361,12 +440,52 @@ class wxGridCellChoiceEditorPtr(wxGridCellEditorPtr): def __init__(self,this): self.this = this self.thisown = 0 + def GetValue(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellChoiceEditor_GetValue,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxGridCellChoiceEditor(wxGridCellChoiceEditorPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellChoiceEditor,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) + + + + +class wxGridCellEnumEditorPtr(wxGridCellChoiceEditorPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetValue(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellEnumEditor_GetValue,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxGridCellEnumEditor(wxGridCellEnumEditorPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(gridc.new_wxGridCellEnumEditor,_args,_kwargs) + self.thisown = 1 + self._setOORInfo(self) + + + + +class wxGridCellAutoWrapStringEditorPtr(wxGridCellTextEditorPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetValue(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellAutoWrapStringEditor_GetValue,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxGridCellAutoWrapStringEditor(wxGridCellAutoWrapStringEditorPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(gridc.new_wxGridCellAutoWrapStringEditor,_args,_kwargs) + self.thisown = 1 + self._setOORInfo(self) @@ -381,9 +500,11 @@ class wxGridCellAttrPtr : def __init__(self,this): self.this = this self.thisown = 0 + def _setOORInfo(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellAttr__setOORInfo,(self,) + _args, _kwargs) + return val def Clone(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_Clone,(self,) + _args, _kwargs) - if val: val = wxGridCellAttrPtr(val) return val def MergeWith(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_MergeWith,(self,) + _args, _kwargs) @@ -406,6 +527,12 @@ class wxGridCellAttrPtr : def SetAlignment(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_SetAlignment,(self,) + _args, _kwargs) return val + def SetSize(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellAttr_SetSize,(self,) + _args, _kwargs) + return val + def SetOverflow(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellAttr_SetOverflow,(self,) + _args, _kwargs) + return val def SetReadOnly(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_SetReadOnly,(self,) + _args, _kwargs) return val @@ -441,26 +568,30 @@ 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) return val + def GetSize(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellAttr_GetSize,(self,) + _args, _kwargs) + return val + def GetOverflow(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellAttr_GetOverflow,(self,) + _args, _kwargs) + return val def GetRenderer(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_GetRenderer,(self,) + _args, _kwargs) - if val: val = wxGridCellRendererPtr(val) return val def GetEditor(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_GetEditor,(self,) + _args, _kwargs) - if val: val = wxGridCellEditorPtr(val) return val def IsReadOnly(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttr_IsReadOnly,(self,) + _args, _kwargs) @@ -474,6 +605,7 @@ class wxGridCellAttr(wxGridCellAttrPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellAttr,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -482,9 +614,11 @@ class wxGridCellAttrProviderPtr : def __init__(self,this): self.this = this self.thisown = 0 + def _setOORInfo(self, *_args, **_kwargs): + val = apply(gridc.wxGridCellAttrProvider__setOORInfo,(self,) + _args, _kwargs) + return val def GetAttr(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttrProvider_GetAttr,(self,) + _args, _kwargs) - if val: val = wxGridCellAttrPtr(val) return val def SetAttr(self, *_args, **_kwargs): val = apply(gridc.wxGridCellAttrProvider_SetAttr,(self,) + _args, _kwargs) @@ -507,6 +641,7 @@ class wxGridCellAttrProvider(wxGridCellAttrProviderPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellAttrProvider,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -515,12 +650,11 @@ 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) - if val: val = wxGridCellAttrPtr(val) return val def base_SetAttr(self, *_args, **_kwargs): val = apply(gridc.wxPyGridCellAttrProvider_base_SetAttr,(self,) + _args, _kwargs) @@ -537,7 +671,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) @@ -546,12 +680,14 @@ class wxGridTableBasePtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 + def _setOORInfo(self, *_args, **_kwargs): + val = apply(gridc.wxGridTableBase__setOORInfo,(self,) + _args, _kwargs) + return val def SetAttrProvider(self, *_args, **_kwargs): val = apply(gridc.wxGridTableBase_SetAttrProvider,(self,) + _args, _kwargs) return val def GetAttrProvider(self, *_args, **_kwargs): val = apply(gridc.wxGridTableBase_GetAttrProvider,(self,) + _args, _kwargs) - if val: val = wxGridCellAttrProviderPtr(val) return val def SetView(self, *_args, **_kwargs): val = apply(gridc.wxGridTableBase_SetView,(self,) + _args, _kwargs) @@ -639,7 +775,6 @@ class wxGridTableBasePtr(wxObjectPtr): return val def GetAttr(self, *_args, **_kwargs): val = apply(gridc.wxGridTableBase_GetAttr,(self,) + _args, _kwargs) - if val: val = wxGridCellAttrPtr(val) return val def SetAttr(self, *_args, **_kwargs): val = apply(gridc.wxGridTableBase_SetAttr,(self,) + _args, _kwargs) @@ -663,8 +798,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) @@ -716,7 +851,6 @@ class wxPyGridTableBasePtr(wxGridTableBasePtr): return val def base_GetAttr(self, *_args, **_kwargs): val = apply(gridc.wxPyGridTableBase_base_GetAttr,(self,) + _args, _kwargs) - if val: val = wxGridCellAttrPtr(val) return val def base_SetAttr(self, *_args, **_kwargs): val = apply(gridc.wxPyGridTableBase_base_SetAttr,(self,) + _args, _kwargs) @@ -733,7 +867,8 @@ 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) + self._setOORInfo(self) @@ -748,6 +883,7 @@ class wxGridStringTable(wxGridStringTablePtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridStringTable,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -756,9 +892,12 @@ class wxGridTableMessagePtr : def __init__(self,this): self.this = this self.thisown = 0 - def __del__(self,gridc=gridc): - if self.thisown == 1 : - gridc.delete_wxGridTableMessage(self) + def __del__(self, delfunc=gridc.delete_wxGridTableMessage): + if self.thisown == 1: + try: + delfunc(self) + except: + pass def SetTableObject(self, *_args, **_kwargs): val = apply(gridc.wxGridTableMessage_SetTableObject,(self,) + _args, _kwargs) return val @@ -797,9 +936,12 @@ class wxGridCellCoordsPtr : def __init__(self,this): self.this = this self.thisown = 0 - def __del__(self,gridc=gridc): - if self.thisown == 1 : - gridc.delete_wxGridCellCoords(self) + def __del__(self, delfunc=gridc.delete_wxGridCellCoords): + if self.thisown == 1: + try: + delfunc(self) + except: + pass def GetRow(self, *_args, **_kwargs): val = apply(gridc.wxGridCellCoords_GetRow,(self,) + _args, _kwargs) return val @@ -823,8 +965,16 @@ class wxGridCellCoordsPtr : return val def __repr__(self): return "" % (self.this,) - def __str__(self): return str(self.asTuple()) - def __repr__(self): return str(self.asTuple()) + + def __str__(self): return str(self.asTuple()) + def __repr__(self): return 'wxGridCellCoords'+str(self.asTuple()) + def __len__(self): return len(self.asTuple()) + def __getitem__(self, index): return self.asTuple()[index] + def __setitem__(self, index, val): + if index == 0: self.SetRow(val) + elif index == 1: self.SetCol(val) + else: raise IndexError + class wxGridCellCoords(wxGridCellCoordsPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGridCellCoords,_args,_kwargs) @@ -846,6 +996,9 @@ class wxGridPtr(wxScrolledWindowPtr): def SetSelectionMode(self, *_args, **_kwargs): val = apply(gridc.wxGrid_SetSelectionMode,(self,) + _args, _kwargs) return val + def GetSelectionMode(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_GetSelectionMode,(self,) + _args, _kwargs) + return val def GetNumberRows(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetNumberRows,(self,) + _args, _kwargs) return val @@ -888,9 +1041,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 @@ -906,6 +1056,9 @@ class wxGridPtr(wxScrolledWindowPtr): def ForceRefresh(self, *_args, **_kwargs): val = apply(gridc.wxGrid_ForceRefresh,(self,) + _args, _kwargs) return val + def Refresh(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_Refresh,(self,) + _args, _kwargs) + return val def IsEditable(self, *_args, **_kwargs): val = apply(gridc.wxGrid_IsEditable,(self,) + _args, _kwargs) return val @@ -1034,6 +1187,9 @@ class wxGridPtr(wxScrolledWindowPtr): def GetColLabelAlignment(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetColLabelAlignment,(self,) + _args, _kwargs) return val + def GetColLabelTextOrientation(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_GetColLabelTextOrientation,(self,) + _args, _kwargs) + return val def GetRowLabelValue(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetRowLabelValue,(self,) + _args, _kwargs) return val @@ -1075,6 +1231,9 @@ class wxGridPtr(wxScrolledWindowPtr): def SetColLabelAlignment(self, *_args, **_kwargs): val = apply(gridc.wxGrid_SetColLabelAlignment,(self,) + _args, _kwargs) return val + def SetColLabelTextOrientation(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_SetColLabelTextOrientation,(self,) + _args, _kwargs) + return val def SetRowLabelValue(self, *_args, **_kwargs): val = apply(gridc.wxGrid_SetRowLabelValue,(self,) + _args, _kwargs) return val @@ -1120,6 +1279,9 @@ class wxGridPtr(wxScrolledWindowPtr): def CanDragGridSize(self, *_args, **_kwargs): val = apply(gridc.wxGrid_CanDragGridSize,(self,) + _args, _kwargs) return val + def SetAttr(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_SetAttr,(self,) + _args, _kwargs) + return val def SetRowAttr(self, *_args, **_kwargs): val = apply(gridc.wxGrid_SetRowAttr,(self,) + _args, _kwargs) return val @@ -1186,6 +1348,15 @@ class wxGridPtr(wxScrolledWindowPtr): def GetCellAlignment(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetCellAlignment,(self,) + _args, _kwargs) return val + def GetDefaultCellOverflow(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_GetDefaultCellOverflow,(self,) + _args, _kwargs) + return val + def GetCellOverflow(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_GetCellOverflow,(self,) + _args, _kwargs) + return val + def GetCellSize(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_GetCellSize,(self,) + _args, _kwargs) + return val def SetDefaultRowSize(self, *_args, **_kwargs): val = apply(gridc.wxGrid_SetDefaultRowSize,(self,) + _args, _kwargs) return val @@ -1213,6 +1384,12 @@ class wxGridPtr(wxScrolledWindowPtr): def AutoSize(self, *_args, **_kwargs): val = apply(gridc.wxGrid_AutoSize,(self,) + _args, _kwargs) return val + def AutoSizeRowLabelSize(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_AutoSizeRowLabelSize,(self,) + _args, _kwargs) + return val + def AutoSizeColLabelSize(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_AutoSizeColLabelSize,(self,) + _args, _kwargs) + return val def SetColMinimalWidth(self, *_args, **_kwargs): val = apply(gridc.wxGrid_SetColMinimalWidth,(self,) + _args, _kwargs) return val @@ -1243,6 +1420,15 @@ class wxGridPtr(wxScrolledWindowPtr): def SetCellAlignment(self, *_args, **_kwargs): val = apply(gridc.wxGrid_SetCellAlignment,(self,) + _args, _kwargs) return val + def SetDefaultCellOverflow(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_SetDefaultCellOverflow,(self,) + _args, _kwargs) + return val + def SetCellOverflow(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_SetCellOverflow,(self,) + _args, _kwargs) + return val + def SetCellSize(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_SetCellSize,(self,) + _args, _kwargs) + return val def SetDefaultRenderer(self, *_args, **_kwargs): val = apply(gridc.wxGrid_SetDefaultRenderer,(self,) + _args, _kwargs) return val @@ -1251,11 +1437,9 @@ class wxGridPtr(wxScrolledWindowPtr): return val def GetDefaultRenderer(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetDefaultRenderer,(self,) + _args, _kwargs) - if val: val = wxGridCellRendererPtr(val) return val def GetCellRenderer(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetCellRenderer,(self,) + _args, _kwargs) - if val: val = wxGridCellRendererPtr(val) return val def SetDefaultEditor(self, *_args, **_kwargs): val = apply(gridc.wxGrid_SetDefaultEditor,(self,) + _args, _kwargs) @@ -1265,11 +1449,9 @@ class wxGridPtr(wxScrolledWindowPtr): return val def GetDefaultEditor(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetDefaultEditor,(self,) + _args, _kwargs) - if val: val = wxGridCellEditorPtr(val) return val def GetCellEditor(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetCellEditor,(self,) + _args, _kwargs) - if val: val = wxGridCellEditorPtr(val) return val def GetCellValue(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetCellValue,(self,) + _args, _kwargs) @@ -1304,6 +1486,30 @@ class wxGridPtr(wxScrolledWindowPtr): def IsInSelection(self, *_args, **_kwargs): val = apply(gridc.wxGrid_IsInSelection,(self,) + _args, _kwargs) return val + def GetSelectedCells(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_GetSelectedCells,(self,) + _args, _kwargs) + return val + def GetSelectionBlockTopLeft(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_GetSelectionBlockTopLeft,(self,) + _args, _kwargs) + return val + def GetSelectionBlockBottomRight(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_GetSelectionBlockBottomRight,(self,) + _args, _kwargs) + return val + def GetSelectedRows(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_GetSelectedRows,(self,) + _args, _kwargs) + return val + def GetSelectedCols(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_GetSelectedCols,(self,) + _args, _kwargs) + return val + def DeselectRow(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_DeselectRow,(self,) + _args, _kwargs) + return val + def DeselectCol(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_DeselectCol,(self,) + _args, _kwargs) + return val + def DeselectCell(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_DeselectCell,(self,) + _args, _kwargs) + return val def BlockToDeviceRect(self, *_args, **_kwargs): val = apply(gridc.wxGrid_BlockToDeviceRect,(self,) + _args, _kwargs) if val: val = wxRectPtr(val) ; val.thisown = 1 @@ -1327,19 +1533,15 @@ class wxGridPtr(wxScrolledWindowPtr): return val def GetDefaultEditorForCell(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetDefaultEditorForCell,(self,) + _args, _kwargs) - if val: val = wxGridCellEditorPtr(val) return val def GetDefaultRendererForCell(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetDefaultRendererForCell,(self,) + _args, _kwargs) - if val: val = wxGridCellRendererPtr(val) return val def GetDefaultEditorForType(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetDefaultEditorForType,(self,) + _args, _kwargs) - if val: val = wxGridCellEditorPtr(val) return val def GetDefaultRendererForType(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetDefaultRendererForType,(self,) + _args, _kwargs) - if val: val = wxGridCellRendererPtr(val) return val def SetMargins(self, *_args, **_kwargs): val = apply(gridc.wxGrid_SetMargins,(self,) + _args, _kwargs) @@ -1362,6 +1564,7 @@ class wxGrid(wxGridPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGrid,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -1534,6 +1737,8 @@ wxGRID_VALUE_FLOAT = gridc.wxGRID_VALUE_FLOAT wxGRID_VALUE_CHOICE = gridc.wxGRID_VALUE_CHOICE wxGRID_VALUE_TEXT = gridc.wxGRID_VALUE_TEXT wxGRID_VALUE_LONG = gridc.wxGRID_VALUE_LONG +wxGRID_VALUE_CHOICEINT = gridc.wxGRID_VALUE_CHOICEINT +wxGRID_VALUE_DATETIME = gridc.wxGRID_VALUE_DATETIME cvar = gridc.cvar wxGridNoCellCoords = wxGridCellCoordsPtr(gridc.cvar.wxGridNoCellCoords) wxGridNoCellRect = wxRectPtr(gridc.cvar.wxGridNoCellRect)