Skip to content

Instantly share code, notes, and snippets.

@amalgamatedclyde
Created September 27, 2013 20:57
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/6735050 to your computer and use it in GitHub Desktop.
Save amalgamatedclyde/6735050 to your computer and use it in GitHub Desktop.
why doesn't my callback update my listview?
the function MedicalLst() works If i use it to build student_list.
furthermore, the callback prints the correct list to the terminal.
the question is why won't the callback update the listview?
here is the binding: btn1.bind(on_release= (callback2))
here is the callback:
def callback2(*args):
student_list.studentAdapter= ListAdapter(data=MedicalList(),
allow_empty_selection= True, cls= ListItemButton)
l= MedicalList()
print str(l)
the print statement returns a proper list to the terminal.
this is the adapter:
studentAdapter= ListAdapter(data=StudentList(),args_converter= list_item_args_converter,
allow_empty_selection= True, cls= ListItemButton)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment