36 |
36 |
37 def __init__(self, *args, **kwargs): |
37 def __init__(self, *args, **kwargs): |
38 wx.grid.Grid.__init__(self, *args, **kwargs) |
38 wx.grid.Grid.__init__(self, *args, **kwargs) |
39 |
39 |
40 self.Editable = True |
40 self.Editable = True |
|
41 |
|
42 self.AddButton = None |
|
43 self.DeleteButton = None |
|
44 self.UpButton = None |
|
45 self.DownButton = None |
|
46 |
|
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')) |
|
49 self.SetSelectionBackground(wx.WHITE) |
|
50 self.SetSelectionForeground(wx.BLACK) |
41 |
51 |
42 if wx.VERSION >= (2, 6, 0): |
52 if wx.VERSION >= (2, 6, 0): |
43 self.Bind(wx.grid.EVT_GRID_SELECT_CELL, self.OnSelectCell) |
53 self.Bind(wx.grid.EVT_GRID_SELECT_CELL, self.OnSelectCell) |
44 else: |
54 else: |
45 wx.grid.EVT_GRID_SELECT_CELL(self, self.OnSelectCell) |
55 wx.grid.EVT_GRID_SELECT_CELL(self, self.OnSelectCell) |