]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/wxGrid.py
1. Grid cell defaults are now handled by an internal
[wxWidgets.git] / utils / wxPython / demo / wxGrid.py
index 78431ca6c2bb30ed3dc67a1a469250c49097b5ce..dca12c088fe5b94ccd5e94da1e05d978bbf98319 100644 (file)
@@ -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()
 
 #---------------------------------------------------------------------------