def _on_finished(self, result):
        accept = bool(result)

        if not accept and self.ui.history is not None:
            self._on_revert()

        self.close(accept)
Handles the user finishing with the dialog.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/ui_live.py/_LiveWindow._on_finished