etherlab/ConfigEditor.py
changeset 4007 76dede1e3403
parent 3976 86e39be014d8
equal deleted inserted replaced
4006:e16c8443e877 4007:76dede1e3403
   670             process_variables_header.Add(button, border=5, flag=wx.LEFT)
   670             process_variables_header.Add(button, border=5, flag=wx.LEFT)
   671 
   671 
   672         self.ProcessVariablesGrid = CustomGrid(self.EthercatMasterEditor, style=wx.VSCROLL)
   672         self.ProcessVariablesGrid = CustomGrid(self.EthercatMasterEditor, style=wx.VSCROLL)
   673         self.ProcessVariablesGrid.SetMinSize(wx.Size(0, 150))
   673         self.ProcessVariablesGrid.SetMinSize(wx.Size(0, 150))
   674         self.ProcessVariablesGrid.SetDropTarget(ProcessVariableDropTarget(self))
   674         self.ProcessVariablesGrid.SetDropTarget(ProcessVariableDropTarget(self))
   675         self.ProcessVariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGING,
   675         self.ProcessVariablesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGED,
   676                                        self.OnProcessVariablesGridCellChange)
   676                                        self.OnProcessVariablesGridCellChange)
   677         self.ProcessVariablesGrid.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK,
   677         self.ProcessVariablesGrid.Bind(wx.grid.EVT_GRID_CELL_LEFT_CLICK,
   678                                        self.OnProcessVariablesGridCellLeftClick)
   678                                        self.OnProcessVariablesGridCellLeftClick)
   679         self.ProcessVariablesGrid.Bind(wx.EVT_KEY_DOWN, self.OnProcessVariablesGridKeyDown)
   679         self.ProcessVariablesGrid.Bind(wx.EVT_KEY_DOWN, self.OnProcessVariablesGridKeyDown)
   680 
   680 
   695             startup_commands_header.Add(button, border=5, flag=wx.LEFT)
   695             startup_commands_header.Add(button, border=5, flag=wx.LEFT)
   696 
   696 
   697         self.StartupCommandsGrid = CustomGrid(self.EthercatMasterEditor, style=wx.VSCROLL)
   697         self.StartupCommandsGrid = CustomGrid(self.EthercatMasterEditor, style=wx.VSCROLL)
   698         self.StartupCommandsGrid.SetDropTarget(StartupCommandDropTarget(self))
   698         self.StartupCommandsGrid.SetDropTarget(StartupCommandDropTarget(self))
   699         self.StartupCommandsGrid.SetMinSize(wx.Size(0, 150))
   699         self.StartupCommandsGrid.SetMinSize(wx.Size(0, 150))
   700         self.StartupCommandsGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGING,
   700         self.StartupCommandsGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGED,
   701                                       self.OnStartupCommandsGridCellChange)
   701                                       self.OnStartupCommandsGridCellChange)
   702         self.StartupCommandsGrid.Bind(wx.grid.EVT_GRID_EDITOR_SHOWN,
   702         self.StartupCommandsGrid.Bind(wx.grid.EVT_GRID_EDITOR_SHOWN,
   703                                       self.OnStartupCommandsGridEditorShow)
   703                                       self.OnStartupCommandsGridEditorShow)
   704 
   704 
   705         self.NodesVariables = MasterNodesVariablesSizer(self.EthercatMasterEditor, self.Controler)
   705         self.NodesVariables = MasterNodesVariablesSizer(self.EthercatMasterEditor, self.Controler)