Permalink
Browse files

Example 54: Add a method to render Buddy Chat.

We add this to the root object, since it will ultimately be the screen manager. Currently, it does nothing but create a new chat window each time it is called.
  • Loading branch information...
Dusty Phillips
Dusty Phillips committed Jul 21, 2013
1 parent 3572d56 commit 767a56e163641a011137f55972e0589a0a923f3d
Showing with 5 additions and 0 deletions.
  1. +5 −0 orkiv/__main__.py
View
@@ -115,6 +115,11 @@ def show_buddy_list(self):
self.buddy_list = BuddyList()
self.add_widget(self.buddy_list)
+ def show_buddy_chat(self, jabber_id):
+ self.remove_widget(self.buddy_list)
+ chat_window = ChatWindow(jabber_id=jabber_id)
+ self.add_widget(chat_window)
+
class Orkiv(App):
def __init__(self):

0 comments on commit 767a56e

Please sign in to comment.