I have a slider whose value changes the label. It was easy to understand. Now the problem is that I want to use this value to display on another screen. In the end, I want the slider to show 1-16 images on another screen, depending on what value is selected on the slider. Below is what I have at the moment that works well for this screen, but how do I get this value to show on another screen? I know that I need to create a class that has made several attempts, and each seems to confuse me more than it understands better.
<NewGameScreen>:
name: 'newgame'
BoxLayout:
orientation: 'vertical'
height: 100
Label:
text: 'New Game'
font_size: 70
Label:
text: 'Players'
font_size: 30
pos: 300, 400
Slider:
id: s1
pos: 420, 400
width: '250dp'
min: 1
max: 16
step: 1
value: 1
on_value: s1.value = self.value
Label:
text: '{}'.format(s1.value)
font_size: 30
pos: 670, 400
source
share