enthought / enthought/traitsui

Qt TableEditor: `reorderable` does not work as expected

Open
#163 0 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

In the Qt TableEditor when setting:
- `reorderable=False`, dragging a row will through a warning

``` python
...\traitsui\traitsui\qt4\view_application.py:136: RuntimeWarning: Invalid return value in function QAbstractTableModel.flags, expected ItemFlags, got NoneType.
start_event_loop_qt4()
```
- `reorderable=True`, dragging a row will result in removing the row from the view (even when we set `deletable=False`).

**Notes**:
_You can verify this strange behaviour playing around with https://github.com/enthought/traitsui/blob/master/examples/demo/Standard_Editors/TableEditor_demo.py_

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.