enthought / enthought/traitsui

File(exists=True) trait disables OK button permanently

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

Description

Example code:
```python
from traits.api import File, HasTraits

class DummyModel(HasTraits):
file_path = File(exists=True)

model = DummyModel()
model.configure_traits()
```

If one switch the focus to another window and then come back to the `DummyModel` window, the `OK` button will be disabled permanently. It won't be re-enabled even one choose a valid file later.

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.