Hi.
Sorry for the late reply. I am new to this group myself.
At the very base of the file, kv files allow you to define two types of rules. Class rules and root rules.
You can think of a class rule as, well, a class, and a root rule as an object of that class. If you define properties within a class rule, your properties apply to all instances of that class used throughout your kv file. Class rules follow the syntax:
<ClassName>:
# Enter properties here
For a root rule, the properties only apply to that particular instance of the class. A kv file can only have one root rule. Root rules for the syntax:
ClassName:
# Enter properties here
Note that for a root rule, there are not opening and closing tags. That is essentially where your problem is. You cannot declare both the Button and MainWidget widgets as root widgets because kivy only renders one root widget per file. Since Button and MainWidget both don't have tags, kivy treats them both as root widgets. To get rid of that error, make Button a class rule like so:
MainWidget:
<MainWidget>:
Button:
text: "Hello"