def update_versions(self):
        """updates the versions if it is checked in the UI
        """
        reference_resolution = self.generate_reference_resolution()

        # send them back to environment
        try:
            self.environment.update_versions(reference_resolution)
        except __HOLE__ as e:
            # display as a Error message and return without doing anything
            message_box = QtGui.QMessageBox(self)
            message_box.critical(
                self,
                "Error",
                str(e),
                QtGui.QMessageBox.Ok
            )
            return

        # close the interface
        self.close()
dataset/ETHPy150Open eoyilmaz/anima/anima/ui/version_updater.py/MainDialog.update_versions