Re: [Tutor] Opening a window to fit an image

2009-01-07 Thread Michael Lam
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

[Tutor] Opening a window to fit an image

2008-01-10 Thread James Newton
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