Open timdiller opened 4 years ago
While all this is valid, there is now substantial documentation on the tabular adapter class and how to use it here: https://docs.enthought.com/traitsui/traitsui_user_manual/adapters.html#the-tabularadapter-class
@corranwebster thanks for pointing me to the more elaborate documentation. By long habit, I only looked at the documentation describing the TabluarEditor
, which has a subsection for TabluarAdapter
, and I wrongly assumed that was everything we had to say about it.
May I suggest, as a small and easy improvement, that the subsection referred to above contain a link to the more-substantial and -useful documentation you pointed me to?
TabularEditor
is a very useful UI component that enables a wide range of capability in a TraitsUI application. The current documentation is limited, and parts of it are presented relative toTableEditor
, which requires reading and understandingTableEditor
. TheTabularEditor
document could be improved by the following:Tabular_editor_demo.py
andTabular_editor_with_context_menu_demo.py.
It would help to include separate examples demonstrating individual features like including images in a row, responding to a change in selected row, and using properties to generate text for the columns. In addition, the existing demos could be reformatted for readability. At leastTabular_editor_demo.py
is a little hard to navigate because of vertically formatted lists of names.TabularEditor
is important enough that it probably deserves its own separate tutorial.