Skip to content

Instantly share code, notes, and snippets.

@amalgamatedclyde
Created September 28, 2013 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amalgamatedclyde/6745337 to your computer and use it in GitHub Desktop.
Save amalgamatedclyde/6745337 to your computer and use it in GitHub Desktop.
here is my callback
def callback2(instance):
global student_details
try:
if instance.state == 'down':
student_list.adapter.data = MedicalList()
elif instance.state == 'normal':
student_list.adapter.data = StudentList()
student_list.adapter.cached_views = []
student_list.populate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment