Skip to content

Instantly share code, notes, and snippets.

View owennewo's full-sized avatar

Owen Williams owennewo

View GitHub Profile
@nbassler
nbassler / treeview_test.py
Created April 29, 2018 15:03
PyQt5 TreeView with QAbstractItemModel
"""
Reworked code based on
http://trevorius.com/scrapbook/uncategorized/pyqt-custom-abstractitemmodel/
Adapted to Qt5 and fixed column/row bug.
TODO: handle changing data.
"""
import sys