X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9416aa89ca06d0fb20b1002e026d2c7ac7aa6a17..8dba8632c5bcd64724e2e9e2d40e295555a0cb86:/wxPython/src/msw/grid.py?ds=sidebyside diff --git a/wxPython/src/msw/grid.py b/wxPython/src/msw/grid.py index 761152947a..a2a653b730 100644 --- a/wxPython/src/msw/grid.py +++ b/wxPython/src/msw/grid.py @@ -59,6 +59,9 @@ def EVT_GRID_EDITOR_SHOWN(win, fn): def EVT_GRID_EDITOR_HIDDEN(win, fn): win.Connect(-1, -1, wxEVT_GRID_EDITOR_HIDDEN, fn) +def EVT_GRID_EDITOR_CREATED(win, fn): + win.Connect(-1, -1, wxEVT_GRID_EDITOR_CREATED, fn) + class wxGridCellRendererPtr : def __init__(self,this): @@ -97,8 +100,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) @@ -109,7 +112,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) @@ -182,6 +185,48 @@ class wxGridCellBoolRenderer(wxGridCellBoolRendererPtr): +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 + + + + +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 + + + + +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 + + + + class wxGridCellEditorPtr : def __init__(self,this): self.this = this @@ -257,8 +302,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) @@ -293,7 +338,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) @@ -368,6 +413,34 @@ class wxGridCellChoiceEditor(wxGridCellChoiceEditorPtr): +class wxGridCellEnumEditorPtr(wxGridCellChoiceEditorPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + 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 + + + + +class wxGridCellAutoWrapStringEditorPtr(wxGridCellTextEditorPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + 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 + + + + class wxGridCellAttrPtr : Any = gridc.wxGridCellAttr_Any Default = gridc.wxGridCellAttr_Default @@ -438,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) @@ -512,8 +585,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) @@ -534,7 +607,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) @@ -660,8 +733,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) @@ -730,7 +803,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) @@ -885,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 @@ -900,6 +970,9 @@ class wxGridPtr(wxScrolledWindowPtr): def GetBatchCount(self, *_args, **_kwargs): val = apply(gridc.wxGrid_GetBatchCount,(self,) + _args, _kwargs) return val + def ForceRefresh(self, *_args, **_kwargs): + val = apply(gridc.wxGrid_ForceRefresh,(self,) + _args, _kwargs) + return val def IsEditable(self, *_args, **_kwargs): val = apply(gridc.wxGrid_IsEditable,(self,) + _args, _kwargs) return val @@ -1356,6 +1429,7 @@ class wxGrid(wxGridPtr): def __init__(self,*_args,**_kwargs): self.this = apply(gridc.new_wxGrid,_args,_kwargs) self.thisown = 1 + self._setOORInfo(self) @@ -1481,6 +1555,38 @@ class wxGridRangeSelectEvent(wxGridRangeSelectEventPtr): +class wxGridEditorCreatedEventPtr(wxCommandEventPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def GetRow(self, *_args, **_kwargs): + val = apply(gridc.wxGridEditorCreatedEvent_GetRow,(self,) + _args, _kwargs) + return val + def GetCol(self, *_args, **_kwargs): + val = apply(gridc.wxGridEditorCreatedEvent_GetCol,(self,) + _args, _kwargs) + return val + def GetControl(self, *_args, **_kwargs): + val = apply(gridc.wxGridEditorCreatedEvent_GetControl,(self,) + _args, _kwargs) + return val + def SetRow(self, *_args, **_kwargs): + val = apply(gridc.wxGridEditorCreatedEvent_SetRow,(self,) + _args, _kwargs) + return val + def SetCol(self, *_args, **_kwargs): + val = apply(gridc.wxGridEditorCreatedEvent_SetCol,(self,) + _args, _kwargs) + return val + def SetControl(self, *_args, **_kwargs): + val = apply(gridc.wxGridEditorCreatedEvent_SetControl,(self,) + _args, _kwargs) + return val + def __repr__(self): + return "" % (self.this,) +class wxGridEditorCreatedEvent(wxGridEditorCreatedEventPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(gridc.new_wxGridEditorCreatedEvent,_args,_kwargs) + self.thisown = 1 + + + + #-------------- FUNCTION WRAPPERS ------------------ @@ -1522,6 +1628,7 @@ wxEVT_GRID_CELL_CHANGE = gridc.wxEVT_GRID_CELL_CHANGE wxEVT_GRID_SELECT_CELL = gridc.wxEVT_GRID_SELECT_CELL wxEVT_GRID_EDITOR_SHOWN = gridc.wxEVT_GRID_EDITOR_SHOWN wxEVT_GRID_EDITOR_HIDDEN = gridc.wxEVT_GRID_EDITOR_HIDDEN +wxEVT_GRID_EDITOR_CREATED = gridc.wxEVT_GRID_EDITOR_CREATED #-------------- USER INCLUDE ----------------------- @@ -1533,6 +1640,7 @@ wxEVT_GRID_EDITOR_HIDDEN = gridc.wxEVT_GRID_EDITOR_HIDDEN wx.wxGridEventPtr = wxGridEventPtr wx.wxGridSizeEventPtr = wxGridSizeEventPtr wx.wxGridRangeSelectEventPtr = wxGridRangeSelectEventPtr +wx.wxGridEditorCreatedEventPtr = wxGridEditorCreatedEventPtr wx.wxGridCellRendererPtr = wxGridCellRendererPtr wx.wxPyGridCellRendererPtr = wxPyGridCellRendererPtr wx.wxGridCellEditorPtr = wxGridCellEditorPtr