def create(cls, size, resizable=True):
"""
Instantiate the window at a given size.
"""
surface = Surface(size)
flag = 0
if resizable:
flag = pygame.RESIZABLE
surface._surface = pygame.display.set_mode(tuple(size), flag)
return cls(surface)
评论列表
文章目录