Skip to content

Add a Table widget with headers option (when label is None and value ends with '.csv' and when value is a list of list)#66

Open
fgallaire wants to merge 5 commits intoPierreRaybaut:masterfrom
fgallaire:csv
Open

Add a Table widget with headers option (when label is None and value ends with '.csv' and when value is a list of list)#66
fgallaire wants to merge 5 commits intoPierreRaybaut:masterfrom
fgallaire:csv

Conversation

@fgallaire
Copy link
Copy Markdown
Collaborator

No description provided.

@fgallaire fgallaire changed the title Add a Table widget (when label is None and value ends with '.csv') Add a Table widget with headers option (when label is None and value ends with '.csv') Jun 19, 2016
@fgallaire fgallaire changed the title Add a Table widget with headers option (when label is None and value ends with '.csv') Add a Table widget with headers option (when label is None and value ends with '.csv' and when value is a list of list) Jun 27, 2016
@PierreRaybaut
Copy link
Copy Markdown
Owner

This one looks promising but is it really finished?

Because, when running the example, I noticed that some tables are editable, some aren't. And editable fields are reset to blank fields when double-clicking (I'm not sure that it's the expected behavior).

@fgallaire
Copy link
Copy Markdown
Collaborator Author

Yes the behaviour is alright:

The two first tables are 'insider fields', list of lists, they have a label and your data that you can edit and they return the new values.
The four last tables are 'outsider fields', CSV files, they don't have label (mimic with a comment 'outsider fields' that you can't edit too) and you can just view the data. They have some useful extra syntax.

Same behaviour for the TreeView with 'insider' modifiable dict and 'outsider' read-only XML and JSON files.

@PierreRaybaut
Copy link
Copy Markdown
Owner

The two first tables are 'insider fields', list of lists, they have a label and your data that you can edit and they return the new values.

Ok but when you are editing one of these fields, the value is deleted:

  1. Edit a field by double-clicking on it.
  2. The field is edited (text cursor is blinking) but cell value has been removed in the process
    => I don't think that's intended. The cell value should be kept as it is when edited.

Select a cell:
capture

Double-click (the cell contents are removed):
capt2

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

Successfully merging this pull request may close these issues.

2 participants