enthought / enthought/traitsui

Tree editor: incorrect selection behaviour after window loses and re-acquires focus

Open
#1,678 4 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

If a row is selected in a tree editor, then losing and re-gaining focus and clicking on a new row seems to break the display of selected rows until the original row is clicked again.

See the animation below, which uses the `traitsui/examples/demo/Standard_Editors/TreeEditor_demo.py` file of this repo.

I would have expected the row called "Scientific" to be unselected as soon as the "Dave" row is clicked.

![traitsui tree editor refocus bug](https://user-images.githubusercontent.com/63169891/119338435-e72c9e80-bc87-11eb-8c89-b44aa59a4690.gif)

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.