The FLoatLayout in kivy seems to restricted to only one screen per time. I want to use multiple screens and apply FloatLayout on all of them.
ps. The reason I want to use FloatLayout is to avoid overlapping widgets. I wouldn't mind using another layout if it produces a similar result.
You can add another layout in your screen like this (in the kv part of the code):
ScreenManager:
id: screens
Screen:
name: "main"
id: main
BoxLayout:
id: main_box
You can do something similar in the python part of the code by using:
main_box = BoxLayout()
self.ids.main.add_widget(main_box)
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.