Permalink
Browse files

Example 21: Instead of connecting when the login button is pressed, d…

…isplay a modalview.

This means we've gone backwards because we can't see the buddylist anymore, but fear not, it's coming\!
  • Loading branch information...
1 parent 8a7362e commit 62a9a88d0abe72f5a5fdfc7437296ac3737bce73 Dusty Phillips committed Jul 5, 2013
Showing with 2 additions and 6 deletions.
  1. +2 −6 orkiv/__main__.py
View
@@ -37,12 +37,8 @@ class AccountDetailsForm(AnchorLayout):
def login(self):
jabber_id = self.username_box.text + "@" + self.server_box.text
- password = self.password_box.text
-
- app = Orkiv.get_running_app()
- app.connect_to_jabber(jabber_id, password)
- print(app.xmpp.client_roster.keys())
- app.xmpp.disconnect()
+ modal = ConnectionModal(jabber_id, self.password_box.text)
+ modal.open()
class Orkiv(App):

0 comments on commit 62a9a88

Please sign in to comment.