Permalink
Browse files

Example 20: Add a ConnectionModal class that will eventually manage t…

…he connection.

Runing this won't do anything, since we haven't displayed the Modal anywhere.
  • Loading branch information...
1 parent e7331de commit 8a7362e91e0fcb943892b08616710330e1ce075e Dusty Phillips committed Jul 5, 2013
Showing with 12 additions and 0 deletions.
  1. +12 −0 orkiv/__main__.py
View
@@ -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):

0 comments on commit 8a7362e

Please sign in to comment.