DisplaySource.py 文件源码

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

项目:displayminion 作者: cedarsuite 项目源码 文件源码
def _resize(self, *args):
        to_size = list(Window.size)
        if self.disp_size[0] > 0:
            to_size[0] = self.disp_size[0]

        if self.disp_size[1] > 0:
            to_size[1] = self.disp_size[1]

        self.child_size = to_size
        self.size = to_size

        self.fbo.size = Window.size
        self.texture = self.fbo.texture

        if self.shmsinkoutput: self.shmsinkoutput.new_texture(self.texture)

        for w in reversed(self.children[:]):
            self.remove_widget(w)
            self.add_widget(w)

        for s in self.client.sections: s.recalc()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号