544 size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL) |
544 size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL) |
545 |
545 |
546 self.VariablesGrid = CustomGrid(id=ID_VARIABLESEDITORVARIABLESGRID, |
546 self.VariablesGrid = CustomGrid(id=ID_VARIABLESEDITORVARIABLESGRID, |
547 name='VariablesGrid', parent=self, pos=wx.Point(0, 0), |
547 name='VariablesGrid', parent=self, pos=wx.Point(0, 0), |
548 size=wx.Size(-1, -1), style=wx.VSCROLL) |
548 size=wx.Size(-1, -1), style=wx.VSCROLL) |
549 self.VariablesGrid.SetFont(wx.Font(12, 77, wx.NORMAL, wx.NORMAL, False, |
|
550 'Sans')) |
|
551 self.VariablesGrid.SetLabelFont(wx.Font(10, 77, wx.NORMAL, wx.NORMAL, |
|
552 False, 'Sans')) |
|
553 if wx.VERSION >= (2, 5, 0): |
549 if wx.VERSION >= (2, 5, 0): |
554 self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGE, self.OnVariablesGridCellChange) |
550 self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGE, self.OnVariablesGridCellChange) |
555 self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.OnVariablesGridCellLeftClick) |
551 self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK, self.OnVariablesGridCellLeftClick) |
556 self.VariablesGrid.Bind(wx.grid.EVT_GRID_EDITOR_SHOWN, self.OnVariablesGridEditorShown) |
552 self.VariablesGrid.Bind(wx.grid.EVT_GRID_EDITOR_SHOWN, self.OnVariablesGridEditorShown) |
557 else: |
553 else: |