• <small id='BIyDX'></small><noframes id='BIyDX'>

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

      <tfoot id='BIyDX'></tfoot>

      1. <legend id='BIyDX'><style id='BIyDX'><dir id='BIyDX'><q id='BIyDX'></q></dir></style></legend>
        • <bdo id='BIyDX'></bdo><ul id='BIyDX'></ul>
      2. 在 Kivy 应用程序中未播放 Gif 动画

        时间:2023-10-09
        <tfoot id='pWz6p'></tfoot>

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

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

                  <tbody id='pWz6p'></tbody>

                  <bdo id='pWz6p'></bdo><ul id='pWz6p'></ul>
                  <legend id='pWz6p'><style id='pWz6p'><dir id='pWz6p'><q id='pWz6p'></q></dir></style></legend>

                • 本文介绍了在 Kivy 应用程序中未播放 Gif 动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  I am writing a kivy application, a game, which has an animated gif at the top which should play on a loop, as it does in finder etc. When it loads into the kivy gui it only shows one frame. I am new to kivy and would appreciate some help with this issue. I am using the .kv file to load the image:

                      Image:
                      source: 'spaceshipgif.gif'
                      allow_stretch: True
                  

                  I have studied the documentation on the kivy website and searched around but to no avail.

                  解决方案

                  I don't remember exactly what the gif playing status is - they should work in principle, but some of our providers are better than others at it. As I remember it might work better if you compile kivy with PIL as the image provider. I think some of these problems can be caused by technically incorrect gif files, which aren't handled well by the default provider, but I'm not sure about this.

                  A better solution is to instead put the frames of the .gif as images in a zip file, and set the path to this zip as the image path in your widget. Kivy will automatically animate them for you, including making it easy to change the animation rate (or pause it), without being limited by problems with gif files.

                  这篇关于在 Kivy 应用程序中未播放 Gif 动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何为每个屏幕添加一个自己的 .py 和 .kv 文件 下一篇:Kivy 和 android 共享首选项

                  相关文章

                  最新文章

                  <legend id='zxYwF'><style id='zxYwF'><dir id='zxYwF'><q id='zxYwF'></q></dir></style></legend>
                    <bdo id='zxYwF'></bdo><ul id='zxYwF'></ul>
                  <tfoot id='zxYwF'></tfoot>

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

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