I've a table in Enthought Python that's displayed with a TabularAdapter. Using "def get_edit()", I can set any row(s) to be protected (the user can't change the values), but I can't find a way to write-protect a column... Anyone have any suggestions, or want to point me in the right direction?
After contacting Enthought Support, they came up with the following:
This behavior can be achieved by defining the following method in your class inheriting from TabularAdapter:
Then in your class you can set individual columns to be non-editable with the following (replacing col with the Column ID of interest):
For instance, using the example here, you can make the age and name columns non-editable by adding the following to the ReportAdapter class:
Hope this helps. Please let me know if you run into any issues getting this implemented.