Skip to content

Commit

Permalink
Example 20: Add a ConnectionModal class that will eventually manage t…
Browse files Browse the repository at this point in the history
…he connection.

Runing this won't do anything, since we haven't displayed the Modal anywhere.
  • Loading branch information
Dusty Phillips committed Jul 5, 2013
1 parent e7331de commit 8a7362e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions orkiv/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
from kivy.properties import ObjectProperty
from sleekxmpp import ClientXMPP
from kivy.uix.textinput import TextInput
from kivy.uix.modalview import ModalView
from kivy.uix.label import Label


class ConnectionModal(ModalView):
def __init__(self, jabber_id, password):
super(ConnectionModal, self).__init__(auto_dismiss=False,
anchor_y="bottom")
self.label = Label(text="Connecting to %s..." % jabber_id)
self.add_widget(self.label)
self.jabber_id = jabber_id
self.password = password


class AccountDetailsTextInput(TextInput):
Expand Down

0 comments on commit 8a7362e

Please sign in to comment.