You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 _TableViewresizeColumnsToContents 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?
The text was updated successfully, but these errors were encountered:
Say the format for a number is changed such that the displayed text is shorter, one may want to be able to resize the columns so that more columns can be fit in the view.
From me: This may have to be an option that one can opt-in, though, as in some context, it may be desirable to keep the column sizes static.
One thing to keep in mind is that users can manually re-size columns, and this is tracked. We will need to decide whether the right behaviour is to override or preserve these (or maybe there needs to be an option to do both)?
Would like to link a trait listener to the
TabularEditor
that triggers a recompute of the column widths. I triedrefresh
andupdate
, and both seemed not to recompute the column widths.Specifically, I want to call
_TableView
resizeColumnsToContents
withintraitsui/qt4/tabular_editor.py
wheneverupdate_editor
ofTabularEditor
(traitsui/qt4/tabular_editor.py
) is triggered using the update trait listener on traitsui’sTabularEditor
.Or there could be a new listener
update_column_widths
in the traitsuiTabularEditor
that triggersresizeColumnsToContents
?The text was updated successfully, but these errors were encountered: