def main(): try: obj = App() root = Tk() obj.run(root) except KeyboardInterrupt: print("Keyboard Interrupt Occured") sys.exit() except: traceback.print_exc() sys.exit()
from gui import App if __name__ == '__main__': app = App() app.run()