Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
code can get access to the edit control when it is created, (to push on a custom event handler for example.) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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):
|
||||
@@ -1481,6 +1484,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 "<C wxGridEditorCreatedEvent instance at %s>" % (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 +1557,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 +1569,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
|
||||
|
Reference in New Issue
Block a user