enthought / enthought/traitsui

Add value modification notification to TabularEditor

Open
#387 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

When editing an array with the TabularEditor, there is currently no way to get notified when a value is changed, since one can't listen to change inside a NumPy array.

It would be nice to build infrastructure in the `TabularEditor` to simplify this task, for example by allowing to pass an attribute that will be notified by the editor when a value is changed (similarly to the `refresh/update` attributes to request a repaint of the editor).

One way to work around this limitation currently is to keep a handle on the `ArrayAdapter`, subclass it, and add an event notification at the end of its `set_text` method.

cc @corranwebster

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.