enthought / enthought/traitsui
ImageResource using ModuleType as search path fails when using it as icon_item in qt4.tree_editor
Open
- Dominant language
- Python
- Stars
- 306
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
When using ImageResource like this `ImageResource("picture.png", mymodule)`, the returned ImageReference's absolute_path property yields None. This is a problem in QT4's TreeEditor when using the ImageResource for node icons, since traitsui.qt4.tree_editor.SimpleEditor._get_icon uses this property to create an icon (`file_name = image_resource.absolute_path;return QtGui.QIcon(pixmap_cache(file_name))` )
TraitsUI 7.3.1
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.