wn = turtle.Screen() while True: # just add the try & except to fix it, then it will work without error try: # all of the main loop code and the screen update: wn.update() except: break