143 size=wx.Size(28, 28), style=wx.NO_BORDER) |
143 size=wx.Size(28, 28), style=wx.NO_BORDER) |
144 button.SetToolTipString(help) |
144 button.SetToolTipString(help) |
145 setattr(self, name, button) |
145 setattr(self, name, button) |
146 top_sizer.AddWindow(button) |
146 top_sizer.AddWindow(button) |
147 |
147 |
148 self.ActionsGrid = CustomGrid(self, style=wx.VSCROLL) |
148 self.ActionsGrid = CustomGrid(self, size=wx.Size(0, 0), 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_CHANGE, |
151 self.ActionsGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGE, |
152 self.OnActionsGridCellChange) |
152 self.OnActionsGridCellChange) |
153 main_sizer.AddSizer(self.ActionsGrid, border=20, |
153 main_sizer.AddSizer(self.ActionsGrid, border=20, |