PLCOpenEditor.py
changeset 606 d65122c61eaf
parent 605 279c16d017f3
child 611 9d24fa46523f
equal deleted inserted replaced
605:279c16d017f3 606:d65122c61eaf
  3983               size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL)
  3983               size=wx.Size(0, 0), style=wx.TAB_TRAVERSAL)
  3984 
  3984 
  3985         self.VariablesGrid = CustomGrid(id=ID_DEBUGVARIABLEPANELVARIABLESGRID,
  3985         self.VariablesGrid = CustomGrid(id=ID_DEBUGVARIABLEPANELVARIABLESGRID,
  3986               name='VariablesGrid', parent=self, pos=wx.Point(0, 0), 
  3986               name='VariablesGrid', parent=self, pos=wx.Point(0, 0), 
  3987               size=wx.Size(0, 150), style=wx.VSCROLL)
  3987               size=wx.Size(0, 150), style=wx.VSCROLL)
  3988         self.VariablesGrid.SetFont(wx.Font(12, 77, wx.NORMAL, wx.NORMAL, False,
       
  3989               'Sans'))
       
  3990         self.VariablesGrid.SetLabelFont(wx.Font(10, 77, wx.NORMAL, wx.NORMAL,
       
  3991               False, 'Sans'))
       
  3992         self.VariablesGrid.SetSelectionBackground(wx.WHITE)
       
  3993         self.VariablesGrid.SetSelectionForeground(wx.BLACK)
       
  3994         self.VariablesGrid.SetDropTarget(DebugVariableDropTarget(self))
  3988         self.VariablesGrid.SetDropTarget(DebugVariableDropTarget(self))
  3995         if wx.VERSION >= (2, 6, 0):
  3989         if wx.VERSION >= (2, 6, 0):
  3996             self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_RIGHT_CLICK, self.OnVariablesGridCellRightClick)
  3990             self.VariablesGrid.Bind(wx.grid.EVT_GRID_CELL_RIGHT_CLICK, self.OnVariablesGridCellRightClick)
  3997         else:
  3991         else:
  3998             wx.grid.EVT_GRID_CELL_RIGHT_CLICK(self.VariablesGrid, self.OnVariablesGridCellRightClick)
  3992             wx.grid.EVT_GRID_CELL_RIGHT_CLICK(self.VariablesGrid, self.OnVariablesGridCellRightClick)