def onItemPressed(self, item, column):
        if item and item.parent() is None:
            self.setItemExpanded(item, not self.isItemExpanded(item))
onItemPressed(item: QTreeWidgetItem, column: int) -> None
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/collection/workspace.py/QVistrailList.onItemPressed