'Toggle the main pane between min and max size'

def _maximize_main(self):

    if (self.ratio <= self._med_ratio):
        self.ratio = self.max_ratio
    else:
        self.ratio = self.min_ratio
    self.group.layoutAll()
