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 刷新布局(异步加载)

      Kivy refresh layout (Async Loading)(Kivy 刷新布局(异步加载))
        <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 刷新布局(异步加载)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Kivy 1.9.0 Windows package KeyError: #39;rthooks#39;(Kivy 1.9.0 Windows 包 KeyError: rthooks)
                Python Kivy: how to call a function on button click?(Python Kivy:如何在按钮单击时调用函数?)
                How to disable a widget in Kivy?(如何禁用 Kivy 中的小部件?)
                Centering an object in Kivy(在 Kivy 中将对象居中)
                How to downgrade to Python 3.4 from 3.5(如何从 Python 3.5 降级到 Python 3.4)
                Change button or label text color in kivy(在kivy中更改按钮或标签文本颜色)
                  <tfoot id='hDbu1'></tfoot>

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

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

                        <tbody id='hDbu1'></tbody>
                        <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>