def refresh_view(self, shiftx, shifty, rx, ry, is_record): StatusPanel.set_scale(INIT_RX * INIT_RY / (rx * ry)) StatusPanel.set_details(shiftx, shifty, rx, ry) if is_record: self.__history.append(ViewInfo(shiftx, shifty, rx, ry)) try: f = Fractal(ShowPanel.parent, ShowPanel.exp, ShowPanel.boost) except ValueError as e: ShowPanel.errDialog(e.args[0]) ShowPanel.exp = Fractal.last_exp return None try: f.createFractalImage(PIC_WIDTH, PIC_HEIGHT, shiftx, shifty, rx, ry) except Exception as e: ShowPanel.errDialog(e.args[0]) ShowPanel.exp = Fractal.last_exp raise e self.update_undo()