
If you right-click in the Google text box and select paste as plain text, the indentation will be preserved.
My guess is that you are trying to access the id, “stat_label” in __init__(), prior to the ids dict being initialized. You can instead use the Widget method on_kv_post(), rather than __init__(). The method on_kv_post() runs after the kv code for the widget has been processed so the ids are set.
See: https://kivy.org/doc/stable/api-kivy.uix.widget.html?highlight=on_kv_post#kivy.uix.widget.Widget
--
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/94454d34-b3ab-41ea-8282-81677cdf8509n%40googlegroups.com.