import turtle # Create the window wn = turtle.Screen() wn.setup(800, 600) # Dimensions wn.bgcolor("black") # Background color wn.title("Window") # Title # Main loop while True: window.update() # Update window