I am working on building a kivy app. The below code is a simple Hello World of sorts. Press a button. The label changes from 'Hello' to 'World'
kivy.require('1.9.1') # replace with your current kivy version !
from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.label import Label
#from tasks import assign_task
def __init__(self, **kwargs):
self.main_label = Label(text = "Hello")
button = Button(text="Press")
self.main_label.text = "World"
if __name__ == '__main__':
raise Exception('Invalid instance in App.root')
Exception: Invalid instance in App.root
What does your GetTask inherit from? It seems to me that it doesn't inherit from anything at all. Try changing it to
class GetTask(Widget): # The rest is like it's in your code.
Also have a look at my comment under the question. Not sure if it's still the issue in 1.9.1, though.