enthought / enthought/traitsui

Text style editors don't properly process new values and raise validation errors

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

Description

Note: with qt these validation errors are often fatal.

### InstanceEditor

Documentation says that text style editor can be used to modify the trait if the memory address is know, however, the new string isn't processed properly and validation error is thrown:
![image](https://user-images.githubusercontent.com/25366751/86146913-af0cf200-baf0-11ea-9c80-cb2f95248745.png)
It's also impossible to recover from this - the error keeps popping up as other editor styles are attempted to use (via `Standard_Editors/InstanceEditor_demo.py`).

### TupleEditor
Similar validation error is thrown with `TupleEditor`, even for very simple type tuples, e.g. `Tuple(Str, Int, Str)`:
![image](https://user-images.githubusercontent.com/25366751/86147973-f182fe80-baf1-11ea-9d72-ac8eec371f50.png)

### RGBColorEditor

Typing in a valid colour string will set the colour properly, but RGB tuples raise a validation error:
![image](https://user-images.githubusercontent.com/25366751/86148505-9bfb2180-baf2-11ea-8e28-0944639abda7.png)

There might be more editors with similar problem. These are the ones I identified by curating demos in `Standard_Editors`

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.