I am a Python / Kivy beginner, I would like to get a sum of the values a and b in the label "outputWindow", can someone help me? Thanks!
class Example(App):
def build(self):
layout = BoxLayout(orientation='vertical')
self.otputWindow = Label(text="...")
self.aClick = Button(text="Calc >>")
self.aClick.bind(on_press=self.first_number)
self.aClick.bind(on_press=self.second_number)
layout.add_widget(self.otputWindow)
layout.add_widget(self.aClick)
return layout
def first_number(self, *args):
a = 5
def second_number(self, *args):
b = 10
if __name__ == '__main__':
Example().run()