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?
Would like to link a trait listener to the
TabularEditorthat triggers a recompute of the column widths. I triedrefreshandupdate, and both seemed not to recompute the column widths.Specifically, I want to call
_TableViewresizeColumnsToContentswithintraitsui/qt4/tabular_editor.pywheneverupdate_editorofTabularEditor(traitsui/qt4/tabular_editor.py) is triggered using the update trait listener on traitsui’sTabularEditor.Or there could be a new listener
update_column_widthsin the traitsuiTabularEditorthat triggersresizeColumnsToContents?