tkinter assign where a window to appear in middle of screen code example Example: python center window import os os.environ["SDL_VIDEO_CENTERED"] = "1"