X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf694132f1c28509a9f84377ce8d374bae4177ad..a37a5a73c54c0e120f0a35fc02e3ac4b600a42ff:/utils/wxPython/demo/wxGrid.py?ds=sidebyside diff --git a/utils/wxPython/demo/wxGrid.py b/utils/wxPython/demo/wxGrid.py index 78431ca6c2..dca12c088f 100644 --- a/utils/wxPython/demo/wxGrid.py +++ b/utils/wxPython/demo/wxGrid.py @@ -25,6 +25,8 @@ class TestGrid(wxGrid): EVT_GRID_CELL_LCLICK(self, self.OnCellClick) EVT_GRID_LABEL_LCLICK(self, self.OnLabelClick) + self.SetEditInPlace(true) + #print self.GetCells() def OnSelectCell(self, event): @@ -38,6 +40,14 @@ class TestGrid(wxGrid): def OnLabelClick(self, event): self.log.WriteText("OnLabelClick: (%d, %d)\n" % (event.m_row, event.m_col)) + #if event.m_row >= 10: + # self.SetLabelValue(wxVERTICAL, 'XX', event.m_row) + # self.Refresh() + #else: + # size = self.GetLabelSize(wxVERTICAL) + # print size + # self.SetLabelSize(wxVERTICAL, size+10) + # self.Refresh() #---------------------------------------------------------------------------