enthought / enthought/traitsui

Refactor TreeEditor context menu code

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

Description

This code is particularly hard to test because the entry to it requires either an appropriate event object or position. We should refactor this so the code about finding the item which has been clicked is separated from the logic of what to display, building the menu, and displaying it. This would facilitate both understanding the code, re-using it, and make it more easily testable.

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.