def _after(self, delay, fun, *args):
        def wrapped_fun():
            try:
                fun(*args)
            except KeyboardInterrupt:
                _logger.info("Detected KeyboardInterrupt. Exiting.")
                self.quit()
        self.master.after(delay, wrapped_fun)
Execute fun(*args) after delay milliseconds.
dataset/ETHPy150Open ASPP/pelita/pelita/ui/tk_canvas.py/TkApplication._after