46 |
46 |
47 self.SetFont(wx.Font(12, 77, wx.NORMAL, wx.NORMAL, False, 'Sans')) |
47 self.SetFont(wx.Font(12, 77, wx.NORMAL, wx.NORMAL, False, 'Sans')) |
48 self.SetLabelFont(wx.Font(10, 77, wx.NORMAL, wx.NORMAL, False, 'Sans')) |
48 self.SetLabelFont(wx.Font(10, 77, wx.NORMAL, wx.NORMAL, False, 'Sans')) |
49 self.SetSelectionBackground(wx.WHITE) |
49 self.SetSelectionBackground(wx.WHITE) |
50 self.SetSelectionForeground(wx.BLACK) |
50 self.SetSelectionForeground(wx.BLACK) |
|
51 self.DisableDragRowSize() |
51 |
52 |
52 if wx.VERSION >= (2, 6, 0): |
53 if wx.VERSION >= (2, 6, 0): |
53 self.Bind(wx.grid.EVT_GRID_SELECT_CELL, self.OnSelectCell) |
54 self.Bind(wx.grid.EVT_GRID_SELECT_CELL, self.OnSelectCell) |
54 else: |
55 else: |
55 wx.grid.EVT_GRID_SELECT_CELL(self, self.OnSelectCell) |
56 wx.grid.EVT_GRID_SELECT_CELL(self, self.OnSelectCell) |