controls/CustomGrid.py
changeset 614 8c4b57808f9c
parent 606 d65122c61eaf
child 655 435e2d8ee580
equal deleted inserted replaced
613:c487c54c1cfe 614:8c4b57808f9c
    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)