def run(self): try: self.createTopWindow() spawn(self.mainloop).join() except KeyboardInterrupt: info('\r', end='') # clearing CTRL+R character finally: info(' === Program ended ===')
def print_info(self): self.print_("Press CTRL+C to quit.") info(' === Program start ===')