enthought / enthought/traitsui
TabularEditor triggering column size recompute
- Dominant language
- Python
- Stars
- 306
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
Would like to link a trait listener to the `TabularEditor` that triggers a recompute of the column widths. I tried `refresh` and `update`, and both seemed not to recompute the column widths.
Specifically, I want to call `_TableView` `resizeColumnsToContents` within `traitsui/qt4/tabular_editor.py` whenever `update_editor` of `TabularEditor` (`traitsui/qt4/tabular_editor.py`) is triggered using the update trait listener on traitsui’s `TabularEditor` .
Or there could be a new listener `update_column_widths` in the traitsui `TabularEditor` that triggers `resizeColumnsToContents`?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.