def initPygame(self): pygame.init() self.screen = pygame.display.set_mode((self.w, self.h)) pygame.mouse.set_visible(False) self.clock = pygame.time.Clock()