enaml
enaml copied to clipboard
Field validator state should be accessible
It would be nice if there was a flag in the Validator
class that held the last value returned by the validate
method. Then you could hook that up to, say, a PushButton.enabled
attribute and get a text entry dialog that only allowed the 'OK' button to be pressed when the validator was happy with the provided text.
I'd prefer to open a new discussion on fixing Field. It leaves a lot to be desired - a good validation model being part of that. What do you think?
I don't disagree. I just ran into this particular issue, so I wanted to make a note.