def onItemPressed(self, item, column):
        if item and item.parent() is None:
            self.setItemExpanded(item, not self.isItemExpanded(item))
Translate script argument to lists
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/collection/workspace.py/QVistrailList.onItemPressed--crossover with--dataset/ETHPy150Open coursera/dataduct/dataduct/steps/transform.py/TransformStep.translate_arguments