def init_pygame(self):
pygame.init()
self.size = (pygame.display.Info().current_w, pygame.display.Info().current_h)
print "Initialised PyGame: Screen Width " + str(self.size[0]) + " x Height " + str(self.size[1])
pygame.display.set_caption('Photo Booth')
pygame.mouse.set_visible(False) # Hide the mouse cursor
self.screen = pygame.display.set_mode(self.size, pygame.FULLSCREEN)
评论列表
文章目录