Skip to content

Commit

Permalink
Example 21: Instead of connecting when the login button is pressed, d…
Browse files Browse the repository at this point in the history
…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
Dusty Phillips committed Jul 5, 2013
1 parent 8a7362e commit 62a9a88
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions orkiv/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 62a9a88

Please sign in to comment.