-
Notifications
You must be signed in to change notification settings - Fork 99
Open
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)
Metadata
Metadata
Assignees
Labels
No labels