

def createTreeSwitch(self):
    b = NativeButton()
    b.setStyleName('tree-switch')
    b.addStyleName('down')
    b.setDescription('Toggle sample tree visibility')
    self.addListener(TreeClickListener(self), button.IClickListener)
    self._mainSplit.setSplitPosition(250, ISizeable.UNITS_PIXELS)
    return b

dataset/ETHPy150Open rwl/muntjac/muntjac/demo/sampler/SamplerApplication.py SamplerWindow.createTreeSwitch/VarMisuse@37/60 `b`->`self`