35 from python_qt_binding.QtWidgets
import QTreeWidgetItem
40 Internal subclass of QTreeWidgetItem which adds a 'name' member to make
41 it easier to extract the item name and create an inspector when an item
50 A class that wraps the default QTreeWidgetItem, so that we can manipulate
51 all of the nodes in the tree in the same way (even the invisible root node)
61 def update(self, status, displayname):
64 self.
_item.name = status.name
66 self.
_item.setIcon(0, util.level_to_icon(status.level))
67 self.
_item.setText(1, status.message)
96 self.
_item.addChild(value._item)