Example 48: Use multiple inheritance to gain button-like and layout-like qualities simultaneously.

I'm shocked that this works, and I really really hope it's future-proof. But it's a really elegant solution as long as it works.
Example 49: Remove some code for setting background color.

The Button class, which we get from ListItemButton, can take care of backgrounds for us.
Example 50: Render background_color instead of background.

Taking advantage of the background_color property attached to button widgets.
Example 51: Set selected_color to something more suitable to our needs.
Example 52: Add a ChatWindow class.

Also include a couple properties that we know we'll have to reference shortly.
Example 53: Basic styling for the chat window widget.

It contains a window for chat text, a text entry area, and buttons to send or go back to the buddy list.
None of those are hooked up yet, though.
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.
Example 55: Add event handlers to the BuddyListItem and Buddies button.

Now we can switch back and forth between the two views at will. Of course, the two views are rather boring...
Example 56: Fix up the OrkivRoot so that it keeps track of BuddyList and ChatWindow objects such that they can be displayed without having to be reconstructed.
Example 57: Add a send_message method to ChatWindow.

The send event hasn't been hooked up yet, but when it is, this method will send the message to the connected client, update the chat label, and clear the box in preparation for the next message to send.
Example 58: Hook the new send_message method up to the release event on the send button.
Example 59: A method to handle received messages as they come in from SleekXMPP.

Since this method isn't being called anywhere yet, it's kind of useless. But we'll hook it up right away.
Example 60: Hook up the event handler so we can actually start chatting.