In your KV file there can be only one root widget. The class instances, Button and Label are both on the far left, so each is root widget.
A solution is to organize them under a layout. Now there is one root, the BoxLayout.
BoxLayout:
Button:
size_hint_y: .1
size_hint_x: .1
on_press: root.label.visible = False
Label:
id: label
visible: True
size_hint_x: 1 if self.visible else 0
opacity: 1 if self.visible else 0
disabled: not self.visible
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/0405b4de-5aac-4ff0-bcef-996febf55478%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.