- self.SetCellFont(0, 0, wxFont(12, wxROMAN, wxITALIC, wxNORMAL))
- self.SetCellTextColour(1, 1, wxRED)
- self.SetCellBackgroundColour(2, 2, wxCYAN)
+ self.SetCellValue(3, 3, "This cell is read-only")
+ self.SetCellFont(0, 0, wx.Font(12, wx.ROMAN, wx.ITALIC, wx.NORMAL))
+ self.SetCellTextColour(1, 1, wx.RED)
+ self.SetCellBackgroundColour(2, 2, wx.CYAN)
+ self.SetReadOnly(3, 3, True)
+
+ self.SetCellEditor(5, 0, gridlib.GridCellNumberEditor(1,1000))
+ self.SetCellValue(5, 0, "123")
+ self.SetCellEditor(6, 0, gridlib.GridCellFloatEditor())
+ self.SetCellValue(6, 0, "123.34")
+ self.SetCellEditor(7, 0, gridlib.GridCellNumberEditor())
+
+ self.SetCellValue(6, 3, "You can veto editing this cell")
+
+ #self.SetRowLabelSize(0)
+ #self.SetColLabelSize(0)