dialogs/ActionBlockDialog.py
changeset 4007 76dede1e3403
parent 3976 86e39be014d8
equal deleted inserted replaced
4006:e16c8443e877 4007:76dede1e3403
   146             top_sizer.Add(button)
   146             top_sizer.Add(button)
   147 
   147 
   148         self.ActionsGrid = CustomGrid(self, size=wx.Size(-1, 250), style=wx.VSCROLL)
   148         self.ActionsGrid = CustomGrid(self, size=wx.Size(-1, 250), style=wx.VSCROLL)
   149         self.ActionsGrid.DisableDragGridSize()
   149         self.ActionsGrid.DisableDragGridSize()
   150         self.ActionsGrid.EnableScrolling(False, True)
   150         self.ActionsGrid.EnableScrolling(False, True)
   151         self.ActionsGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGING,
   151         self.ActionsGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGED,
   152                               self.OnActionsGridCellChange)
   152                               self.OnActionsGridCellChange)
   153         main_sizer.Add(self.ActionsGrid, border=20,
   153         main_sizer.Add(self.ActionsGrid, border=20,
   154                             flag=wx.GROW | wx.LEFT | wx.RIGHT)
   154                             flag=wx.GROW | wx.LEFT | wx.RIGHT)
   155 
   155 
   156         button_sizer = self.CreateButtonSizer(wx.OK | wx.CANCEL | wx.CENTRE)
   156         button_sizer = self.CreateButtonSizer(wx.OK | wx.CANCEL | wx.CENTRE)