Skip to content

Bug in TableModel.deleteColumns() #84

Description

@demberto

In TableModels.py:

def deleteColumns(self, cols=None):
    """Remove all cols or list provided"""
    if cols == None:
        cols = self.columnNames
    if self.getColumnCount() == 0:
        return
    for col in cols:
        self.deleteColumn(col)
    return

Righly so TableCanvas.model.deleteColumns(), cause this exception:

TypeError: list indices must be integers or slices, not str

Also I get warnings like these, when I initialise TableCanvas

Did not find preferences!!!
could not save
could not save

I believe you should use the Python logging module, so its easier for others to find the source of these messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions