Skip to content
Advertisement

kivy: Is it possible to have the same Tabbed Panel on different screens?

im wondering if it is possible to have a Tabbed Panel permanently even though im switching between screens? Ive tried having the TabbedPanel outside the mainscreen, on a different class and so on. So far when i switch to the FirstScreen the TabbedPanel disapears.

Python:

JavaScript

kv:

JavaScript

Advertisement

Answer

Rather than adding the TabbedTest to each Screen, just make the TabbedTest and ScreenManager as children of the root widget of the App. One way to do this is to modify the build() method:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement