Permalink
Browse files

Example 35: Populate the BuddyList ListView upon initialization.

It's not a very pretty list, but it is a list, and it's scrollable. The next question is how to get status information
in there.
  • Loading branch information...
1 parent c482015 commit 374d6a5dfdc1abf6753c62aad4c38b223dc43a2e Dusty Phillips committed Jul 7, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 orkiv/__main__.py
View
@@ -62,7 +62,12 @@ def login(self):
class BuddyList(BoxLayout):
- pass
+ list_view = ObjectProperty()
+
+ def __init__(self):
+ super(BuddyList, self).__init__()
+ self.app = Orkiv.get_running_app()
+ self.list_view.adapter.data = sorted(self.app.xmpp.client_roster.keys())
class OrkivRoot(BoxLayout):

0 comments on commit 374d6a5

Please sign in to comment.