Python Kivy 如何更改幻灯片过渡颜色
Python Kivy How to chnage the SlideTransition colour
如何更改幻灯片切换的颜色?
在我的 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"
当向右过渡时,过渡的背景颜色为黑色。我该如何更改?
我能够通过设置 window.clearcolor
来解决
例如:
Window.clearcolor = (.1, .8, .9, 9)
如何更改幻灯片切换的颜色? 在我的 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"
当向右过渡时,过渡的背景颜色为黑色。我该如何更改?
我能够通过设置 window.clearcolor
来解决
例如:
Window.clearcolor = (.1, .8, .9, 9)