Python Kivy如何改变SlideTransition的颜色

问题描述 投票:0回答:1

我将如何更改幻灯片过渡的颜色?在我的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个回答
0
投票

我能够通过设置window.clearcolor例如:Window.clearcolor = (.1, .8, .9, 9)

© www.soinside.com 2019 - 2024. All rights reserved.