enthought / enthought/traitsui

TabularEditor triggering column size recompute

Open
#1,434 2 comments 0 reactions 0 assignees View on GitHub
type: important
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.