Im using kivy, and i have two screens, one has class variables which are numeric properties and i have methods which change the value according to the situation. The second screen should be used to display final values to the user.
class Main(Screen):
transport_price_value = NumericProperty(0)
def change_value_on_press(self):
self.transport_price_value += 10
class Second(Screen):
def display_transport_price_value(self):
return str(Main.transport_price_value)
class WindowManager(ScreenManager):
pass
class Example(App):
pass
When i click the submit button which triggers "display_transport_price_value" function it returns the name istead of the value of the property