Perhaps the attribute is not created at the time of the test. Initialization order can be confusing.
Share an executable example that shows the problem.
I put together a small example – but it works as expected.
from kivy.app import App
from kivy.lang import Builder
kv = """
BoxLayout:
orientation: 'vertical'
AnchorLayout:
TextInput:
id: login
size_hint: None, None
size: 400, 30
Button:
text: 'Text Box Controlled'
size_hint_y: None
height: dp(48)
disabled: not login.text
"""
class TextButtonApp(App):
def build(self):
return Builder.load_string(kv)
TextButtonApp().run()
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/d33befde-8d0e-4a77-8849-130c1c3ed7c0n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/36_UQ5D4Wxs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/63cc6e2c.170a0220.84959.6e78SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CABw5z-BQw%2BQZ51st9zWUNz2dRVgEjGjz8uwLQeSu%3DMz7XwVhRA%40mail.gmail.com.