1. <small id='8SAUy'></small><noframes id='8SAUy'>

  2. <legend id='8SAUy'><style id='8SAUy'><dir id='8SAUy'><q id='8SAUy'></q></dir></style></legend>
    <tfoot id='8SAUy'></tfoot>
      <i id='8SAUy'><tr id='8SAUy'><dt id='8SAUy'><q id='8SAUy'><span id='8SAUy'><b id='8SAUy'><form id='8SAUy'><ins id='8SAUy'></ins><ul id='8SAUy'></ul><sub id='8SAUy'></sub></form><legend id='8SAUy'></legend><bdo id='8SAUy'><pre id='8SAUy'><center id='8SAUy'></center></pre></bdo></b><th id='8SAUy'></th></span></q></dt></tr></i><div id='8SAUy'><tfoot id='8SAUy'></tfoot><dl id='8SAUy'><fieldset id='8SAUy'></fieldset></dl></div>
      • <bdo id='8SAUy'></bdo><ul id='8SAUy'></ul>

      Kivy 刷新布局(异步加载)

      时间:2023-06-07
        <tbody id='Rj3T1'></tbody>

    1. <small id='Rj3T1'></small><noframes id='Rj3T1'>

      • <bdo id='Rj3T1'></bdo><ul id='Rj3T1'></ul>

        <i id='Rj3T1'><tr id='Rj3T1'><dt id='Rj3T1'><q id='Rj3T1'><span id='Rj3T1'><b id='Rj3T1'><form id='Rj3T1'><ins id='Rj3T1'></ins><ul id='Rj3T1'></ul><sub id='Rj3T1'></sub></form><legend id='Rj3T1'></legend><bdo id='Rj3T1'><pre id='Rj3T1'><center id='Rj3T1'></center></pre></bdo></b><th id='Rj3T1'></th></span></q></dt></tr></i><div id='Rj3T1'><tfoot id='Rj3T1'></tfoot><dl id='Rj3T1'><fieldset id='Rj3T1'></fieldset></dl></div>
          <legend id='Rj3T1'><style id='Rj3T1'><dir id='Rj3T1'><q id='Rj3T1'></q></dir></style></legend>
          • <tfoot id='Rj3T1'></tfoot>

                本文介绍了Kivy 刷新布局(异步加载)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个 ListView,其中每个项目都有一个 AsyncImage 和一个标签.加载图像时,它会显示每个项目之间有间隙的布局.

                I have a ListView that where each item has a AsyncImage and a Label. While the images load it shows the layout with gaps between each item.

                -------
                
                Item
                
                -------
                
                Item 
                
                -------
                

                当第一次交互发生(发生滚动)时,布局刷新并且间隙消失.

                When the first interaction happens (a scroll occurs), the layout refreshes and the gaps disappear.

                -------
                Item    
                -------  
                Item 
                -------
                

                我真的很想在图像加载完成后刷新布局.如何刷新布局?

                I'd really like to have the layout refresh when an image finishes loading. How do I refresh a layout?

                推荐答案

                通常你可以通过调用 widget.canvas.ask_update().

                Usually you can ask the widget to update it's canvas by calling widget.canvas.ask_update().

                对于布局,您可以尝试通过调用 layout_instance.do_layout().

                For a layout you could try triggering the layout of the widgets inside it by calling layout_instance.do_layout().

                这篇关于Kivy 刷新布局(异步加载)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Raspberry Pi Python (Kivy) 使用 sudo 非常慢 下一篇:Kivy VideoPlayer 全屏、循环和隐藏控件

                相关文章

                  <tfoot id='hDbu1'></tfoot>

                    <small id='hDbu1'></small><noframes id='hDbu1'>

                      <bdo id='hDbu1'></bdo><ul id='hDbu1'></ul>

                    <i id='hDbu1'><tr id='hDbu1'><dt id='hDbu1'><q id='hDbu1'><span id='hDbu1'><b id='hDbu1'><form id='hDbu1'><ins id='hDbu1'></ins><ul id='hDbu1'></ul><sub id='hDbu1'></sub></form><legend id='hDbu1'></legend><bdo id='hDbu1'><pre id='hDbu1'><center id='hDbu1'></center></pre></bdo></b><th id='hDbu1'></th></span></q></dt></tr></i><div id='hDbu1'><tfoot id='hDbu1'></tfoot><dl id='hDbu1'><fieldset id='hDbu1'></fieldset></dl></div>
                    <legend id='hDbu1'><style id='hDbu1'><dir id='hDbu1'><q id='hDbu1'></q></dir></style></legend>