Python and Kivy issues with references acros Widgets

Hello,

Here with a most probably newb question, I’m working on a small project for myself, but i got stuck in the interface part. I’m using Python with Kivy, i found this to be easier to understand as someone that did not do much code but rather scripts at best.

What i’m trying to do is to change the screen bellow from within the screen manager with the buttons above which are their own layout. But i’m not sure how could i traverse the widget tree to get to the screen manager, I have searched on solutions, but it seems that none of them apply to my issue.

The focus would be this part:
on_release: root.ids.screens.manager.current = “Player”

Here it appears that the root widget doesn’t have any ids property. I’m am unsure how could i continue and reference the Screens from the UpperMenu widget.

Python Code

#!/usr/bin/env python
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition
from kivy.properties import ObjectProperty

class Container(FloatLayout):
pass

class UpperMenu(BoxLayout):
pass

class Screens(ScreenManager):
manager = ObjectProperty(None)

class Dashboard(Screen):
pass

class Player(Screen):
pass

class Weather(Screen):
pass

class Map(Screen):
pass

class Carousel(BoxLayout):
pass

class CarlApp(App):
def build(self):
return Container()

if name == ‘main’:

CarlApp().run()
KV File

#:kivy 1.10.0

:
UpperMenu:
pos: root.x, root.top - self.height
Screens:
size: 0.15, 0.15

:
size_hint: 1,.15
Button:
text: “”
id: ButtonCeasuri
on_release: root.ids.screens.manager.current = “Player”
Image:
source: ‘dashboard.png’
allow_stretch: False
center_x: self.parent.center_x
center_y: self.parent.center_y
Button:
text: “”
id: ButtonCeasurii
Image:
source: ‘play-button.png’
allow_stretch: False
center_x: self.parent.center_x
center_y: self.parent.center_y
Button:
text: “”
id: ButtonCeasuriii
Image:
source: ‘distance.png’
allow_stretch: False
center_x: self.parent.center_x
center_y: self.parent.center_y
Button:
text: “”
id: ButtonCeasuriiii
Image:
source: ‘temperature.png’
allow_stretch: False
center_x: self.parent.center_x
center_y: self.parent.center_y

:
id: manager
size_hint: 1,.85
Dashboard:
Player:
Weather:
Map:

:
name: ‘Dashboard’
label: “Ceasuri”
id: dashboard
Button:
text: “Stuff”
on_release: root.manager.current = “Player”

:
name: ‘Player’
label: “Player”
id: Player
Button:
text: “Stuff2”

:
name: ‘Weather’
label: “Weather”

:
name: ‘Map’
label: “Map”

Edit: It appears that my formating goes away here if i paste code.