Skip to content

Instantly share code, notes, and snippets.

@kived
Created April 25, 2016 19:17
Show Gist options
  • Save kived/32d604ab85e11961af329075a782a04a to your computer and use it in GitHub Desktop.
Save kived/32d604ab85e11961af329075a782a04a to your computer and use it in GitHub Desktop.
Kivy: reschedule for kv id
def property_handler(self, inst, value):
try:
widget = self.ids.widget_id
except AttributeError:
Clock.schedule_once(lambda dt: self.property_handler(inst, value))
else:
widget.some_value = value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment