enthought / enthought/traitsui

Synced invalid editor trait does not disable dialog OK button

Open
#1,933 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
306
Forks
99
PR merge metrics
No merged PRs in 30d

Description

When using sync_to_view for the editor invalid trait, the dialogs OK button is not disabled and lets a user apply the invalid values to the model.
Can be tested with Invalid_state_handling.py, when the OK button is shown on the view.

![image](https://user-images.githubusercontent.com/48917891/187779916-1cc2d6ff-9638-48c3-829e-8648e329504a.png)

trait_get() returns {'mass': 100.0, 'velocity': 100.0, 'kinetic_energy': 500000.0, 'error': True, 'status': 'The kinetic energy of the system is too high.'} after closing the dialog.

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.