gui.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:photobooth 作者: LoiX07 项目源码 文件源码
def __init__(self, name, size, fullscreen=True):
        # Call init routines
        pygame.init()

        # Window name
        pygame.display.set_caption(name)

        # Hide mouse cursor
        pygame.mouse.set_visible(False)

        # Store screen and size
        self.size = size
        if fullscreen:
            self.screen = pygame.display.set_mode(size, pygame.FULLSCREEN)
        else:
            self.screen = pygame.display.set_mode(size)
            # windowed mode is for debug so we also show the cursor
            pygame.mouse.set_visible(True)

        # Clear screen
        self.clear()
        self.apply()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号