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

  • <legend id='KSu8L'><style id='KSu8L'><dir id='KSu8L'><q id='KSu8L'></q></dir></style></legend>

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

        格式化 Kivy 弹出窗口以消除弹出背景

        时间:2023-10-09

        <legend id='6NH5x'><style id='6NH5x'><dir id='6NH5x'><q id='6NH5x'></q></dir></style></legend>
            • <small id='6NH5x'></small><noframes id='6NH5x'>

              <tfoot id='6NH5x'></tfoot>

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

                • 本文介绍了格式化 Kivy 弹出窗口以消除弹出背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我们在 kivy 应用程序中使用图像作为弹出窗口,但似乎无法让弹出窗口的背景适合图像的大小.生成的弹出窗口中的图像在图像的左侧、顶部和右侧周围带有深灰色边框.有人可以帮我们消除弹出窗口的背景,以便只看到图像和半透明滤镜吗?

                  we're using an image as a popup in our kivy app but can't seem to get the popup's background to fit the size of the image. The resulting popup has the image with a dark gray border around the left side, top, and right side of the image. Can someone help us eliminate the popup's background so that only the image and the semi-transparent filter are visible?

                  Main.py 代码:

                  Main.py code:

                  popup = Popup(title="",
                                    content=Image(source='img/popup'),
                                    auto_dismiss=True,
                                    size_hint=(None, None),
                                    size=(400, 146),
                                    separator_height=0
                                    )
                  

                  谢谢

                  推荐答案

                  如果你没有标题,也许一个简单的 ModalView 会更适合你的目的.

                  If you don't have a title, maybe a simple ModalView would better fit your purposes.

                  无论哪种方式,背景都由 backgroundbackground_color 属性控制.要完全摆脱它,设置 popup.background_color=(0, 0, 0, 0) (即透明)可能是最简单的.

                  Either way, the background is controlled by the background and background_color properties. To get rid of it entirely, it's probably simplest to set popup.background_color=(0, 0, 0, 0) (i.e. transparent).

                  这篇关于格式化 Kivy 弹出窗口以消除弹出背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:kivy 官方 pong 教程:'NoneType' 对象没有属性 下一篇:kivy 使用附加类来存储来自多个屏幕的数据

                  相关文章

                  最新文章

                  <small id='8o0aF'></small><noframes id='8o0aF'>

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

                    • <bdo id='8o0aF'></bdo><ul id='8o0aF'></ul>