

def createMenuTree(self):
    tree = Tree()
    tree.setImmediate(True)
    tree.setStyleName('menu')
    tree.setContainerDataSource(self._app._allFeatures)
    self._currentFeature.addListener(FeatureChangeListener(self, tree), prop.IValueChangeListener)
    for f in FeatureSet.FEATURES.getFeatures():
        tree.expandItemsRecursively(f)
    tree.expandItemsRecursively(FeatureSet.FEATURES)
    tree.addListener(TreeChangeListener(self), prop.IValueChangeListener)
    tree.setItemStyleGenerator(TreeStyleGenerator())
    return tree

dataset/ETHPy150Open rwl/muntjac/muntjac/demo/sampler/SamplerApplication.py SamplerWindow.createMenuTree/original