enthought / enthought/traitsui
ObjectColumn with TextEditor does not update values in TableEditor
- Dominant language
- Python
- Stars
- 306
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
With my MacBookPro and Sequoia 15.2, traitsui 8.0.0, traits 6.4.3, with the following code:
```
from traits.api import HasTraits, Float, List
from traitsui.api import View, Item, TableEditor, ObjectColumn, TextEditor
class NumericItem(HasTraits):
value = Float()
class NumericList(HasTraits):
items = List(NumericItem)
view = View(
Item(
'items',
editor=TableEditor(
columns=[
ObjectColumn(name='value', editor=TextEditor(enter_set=True))
],
editable=True,
),
),
resizable=True
)
if __name__ == "__main__":
numeric_list = NumericList(items=[NumericItem(value=1.0), NumericItem(value=2.5), NumericItem(value=3.8)])
numeric_list.configure_traits()
```
the values revert to their original values when the edition of the cell completes (enter key pressed and cell editor exited)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.