window.py 文件源码

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

项目:fruit 作者: felko 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号