enthought / enthought/pyface

DataViewWidget should not allow data_model to be None or handle that case

Open
#805 2 comments 0 reactions 0 assignees View on GitHub
difficulty: easy Feature: Table/Tree Editor toolkit: Qt type: bug
Dominant language
Python
Stars
115
Forks
54
PR merge metrics
No merged PRs in 30d

Description

At least at the point where `_create()` is called, the `data_model` should be non-`None`, otherwise we get errors with basic operations like sizing the view. Should possibly consider just having `allow_none=False` for the `data_model` trait.

Alternatively, we could make the underlying Qt model robust to missing data models if we can provide sensible defaults.

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.