open a window in the center of the screen tkinter code example Example: python center window import os os.environ["SDL_VIDEO_CENTERED"] = "1"