I got a similar problem, except that calling it twice wouldn't work for me. I
tried looking everywhere and I seemed to be doing everything exactly like other
people. After fiddling around, I got this order:
pygame.init()
pygame.display.set_icon(pygame.image.load("image.bmp"))
window
Hi Python Pros,
I want to create a window to fit an image that I read in on the fly.
I'm using pygame to load images and to create the window. I find I have
to use pygame.display.set_mode() twice: once to allow me to use
pygame.image.loadfile(), and once to reset the window size after I have
been