简体   繁体   中英

Python Kivy How to chnage the SlideTransition colour

How would I change the colour of a slide transition? In my kv file

<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"

When the transition goes to the right, the background colour of the transition is black. How would I change this?

I was able to solve by setting the window.clearcolor for example: Window.clearcolor = (.1, .8, .9, 9)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM