'Toggle view zoom. If `zoom` is True the scheme is displayed
scaled to 150%.'

def toggleZoom(self, zoom):

    view = self.view()
    if zoom:
        view.scale(1.5, 1.5)
    else:
        view.resetTransform()
