【问题标题】:Python Kivy How to chnage the SlideTransition colourPython Kivy 如何更改幻灯片过渡颜色
【发布时间】:2020-04-11 15:52:16
【问题描述】:

如何更改幻灯片过渡的颜色? 在我的 kv 文件中

<screen1>
    FloatLayout:
        Button:
            pos_hint:{"x":0.35, "y": 0.5}
            size_hint:0.3,0.1
            text: "Return"
            on_release:
                app.root.current = "main"
                root.manager.transition.direction = "right"

当转场向右时,转场的背景颜色为黑色。我该如何改变呢?

【问题讨论】:

  • 也许这是根(父)小部件的颜色..
  • 那我该如何改变呢?

标签: python animation kivy transition


【解决方案1】:

我可以通过设置window.clearcolor 来解决 例如: Window.clearcolor = (.1, .8, .9, 9)

【讨论】:

    猜你喜欢
    • 2014-01-12
    • 1970-01-01
    • 2017-11-17
    • 2018-02-15
    • 2011-08-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-21
    • 1970-01-01
    相关资源
    最近更新 更多