I have a basic pygame window with nothing drawn to it. This is the code:
import pygame
import os
os.environ["SDL_VIDEO_CENTERED"] = "1"
win = pygame.display
D = win.set_mode((1200, 600))
while True:
win.fill((0, 0, 0))
This code when run in python IDLE, centeres the window, but when run in sublime text, dosent center the window. Is there anything i can do to center it when i run it with sublime text? Thanks