Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in TableModel.deleteColumns() #84

Open
demberto opened this issue Oct 8, 2021 · 0 comments
Open

Bug in TableModel.deleteColumns() #84

demberto opened this issue Oct 8, 2021 · 0 comments

Comments

@demberto
Copy link

demberto commented Oct 8, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant