editors/ResourceEditor.py
branchwxPython4
changeset 3449 6279ec06df98
parent 3303 0ffb41625592
child 3750 f62625418bff
equal deleted inserted replaced
3448:523f6fcc7a28 3449:6279ec06df98
   245             button.SetToolTip(help)
   245             button.SetToolTip(help)
   246             setattr(self, name, button)
   246             setattr(self, name, button)
   247             tasks_buttons_sizer.Add(button)
   247             tasks_buttons_sizer.Add(button)
   248 
   248 
   249         self.TasksGrid = CustomGrid(self.Editor, style=wx.VSCROLL)
   249         self.TasksGrid = CustomGrid(self.Editor, style=wx.VSCROLL)
   250         self.TasksGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGING, self.OnTasksGridCellChange)
   250         self.TasksGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGED, self.OnTasksGridCellChange)
   251         tasks_sizer.Add(self.TasksGrid, flag=wx.GROW)
   251         tasks_sizer.Add(self.TasksGrid, flag=wx.GROW)
   252 
   252 
   253         instances_sizer = wx.FlexGridSizer(cols=1, hgap=0, rows=2, vgap=5)
   253         instances_sizer = wx.FlexGridSizer(cols=1, hgap=0, rows=2, vgap=5)
   254         instances_sizer.AddGrowableCol(0)
   254         instances_sizer.AddGrowableCol(0)
   255         instances_sizer.AddGrowableRow(1)
   255         instances_sizer.AddGrowableRow(1)
   275             button.SetToolTip(help)
   275             button.SetToolTip(help)
   276             setattr(self, name, button)
   276             setattr(self, name, button)
   277             instances_buttons_sizer.Add(button)
   277             instances_buttons_sizer.Add(button)
   278 
   278 
   279         self.InstancesGrid = CustomGrid(self.Editor, style=wx.VSCROLL)
   279         self.InstancesGrid = CustomGrid(self.Editor, style=wx.VSCROLL)
   280         self.InstancesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGING, self.OnInstancesGridCellChange)
   280         self.InstancesGrid.Bind(wx.grid.EVT_GRID_CELL_CHANGED, self.OnInstancesGridCellChange)
   281         instances_sizer.Add(self.InstancesGrid, flag=wx.GROW)
   281         instances_sizer.Add(self.InstancesGrid, flag=wx.GROW)
   282 
   282 
   283         self.Editor.SetSizer(main_sizer)
   283         self.Editor.SetSizer(main_sizer)
   284 
   284 
   285     def __init__(self, parent, tagname, window, controler):
   285     def __init__(self, parent, tagname, window, controler):