def _setFieldsList(self, fields):
    if self.fieldsGrid.NumberRows:
        self.fieldsGrid.DeleteRows(0, self.fieldsGrid.NumberRows)
    self.fieldsGrid.AppendRows(len(fields))
    row = 0
    for f in fields:
        self.fieldsGrid.SetCellValue(row, 0, '1')
        self.fieldsGrid.SetCellValue(row, 1, '1')
        self.fieldsGrid.SetCellRenderer(row, 0, wx.grid.GridCellBoolRenderer())
        self.fieldsGrid.SetCellRenderer(row, 1, wx.grid.GridCellBoolRenderer())
        self.fieldsGrid.SetCellValue(row, 2, f)
        self.fieldsGrid.SetCellAlignment(row, 2, wx.ALIGN_LEFT, wx.ALIGN_TOP)
        self.fieldsGrid.SetReadOnly(row, 2)
        row += 1
def _setFieldsList(self, fields):
    if self.fieldsGrid.NumberRows:
        self.fieldsGrid.DeleteRows(0, self.fieldsGrid.NumberRows)
    self.fieldsGrid.AppendRows(len(fields))
    row = 0
    for f in fields:
        self.fieldsGrid.SetCellValue(row, 0, '1')
        self.fieldsGrid.SetCellValue(row, 1, '1')
        self.fieldsGrid.SetCellRenderer(row, 0, wx.grid.GridCellBoolRenderer())
        self.fieldsGrid.SetCellRenderer(row, 1, wx.grid.GridCellBoolRenderer())
        self.fieldsGrid.SetCellValue(row, 2, f)
        self.fieldsGrid.SetCellAlignment(row, 2, wx.ALIGN_LEFT, wx.ALIGN_TOP)
        self.fieldsGrid.SetReadOnly(row, 2)
        row += 1