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()
评论列表
文章目录