

def buttonClick(self, event):
    if self.b.getStyleName().contains('down'):
        self.b.removeStyleName('down')
        self._window._mainSplit.setSplitPosition(0)
        self._window._navigationTree.setVisible(False)
        self._window._mainSplit.setLocked(True)
    else:
        self.b.addStyleName('down')
        self._window._mainSplit.setSplitPosition(250, ISizeable.UNITS_PIXELS)
        event._window._mainSplit.setLocked(False)
        self._window._navigationTree.setVisible(True)

dataset/ETHPy150Open rwl/muntjac/muntjac/demo/sampler/SamplerApplication.py TreeClickListener.buttonClick/VarMisuse@99/140 `self`->`event`