[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Summer of Code 2008



This multi-window stuff looks nice, but it seems like PyGame should handle it naturally:

ScreenSize = (200,150)
Surface1 = pygame.display.set_mode(ScreenSize)
Surface2 = pygame.display.set_mode(ScreenSize)
Surface3 = pygame.display.set_mode(ScreenSize)

...should make three windows. Also, setting the window position should be easier:

ScreenSize = (200,150)
WindowPos1 = (50,300)
WindowPos2 = ("center_x", "center_y")
WindowPos3 = ("right_side - 100", "center_y")
Surface1 = pygame.display.set_mode(ScreenSize,WindowPos1)
Surface2 = pygame.display.set_mode(ScreenSize,WindowPos2)
Surface3 = pygame.display.set_mode(ScreenSize,WindowPos3)

...or something.
Ian