DataTreeWidget

class pyqtgraph.DataTreeWidget(parent=None, data=None)[source]

Widget for displaying hierarchical python data structures (eg, nested dicts, lists, and arrays)

__init__(parent=None, data=None)[source]
parse(data)[source]
Given any python object, return:
  • type

  • a short string representation

  • a dict of sub-objects to be parsed

  • optional widget to display as sub-node

setData(data, hideRoot=False)[source]

data should be a dictionary.