Skip to content

Commit

Permalink
Display the progress of the login process
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjir committed Apr 7, 2009
1 parent 95579d9 commit c706451
Showing 1 changed file with 2 additions and 42 deletions.
44 changes: 2 additions & 42 deletions amsn2/gui/front_ends/curses/login.py
Expand Up @@ -34,7 +34,7 @@ def value(self):
return self._password

def _validateInput(self, ch):
if ch in (curses.KEY_BACKSPACE, curses.ascii.BEL):
if ch in (curses.KEY_BACKSPACE, curses.ascii.BS):
self._password = self._password[0:-1]
return ch
elif curses.ascii.isprint(ch):
Expand Down Expand Up @@ -94,45 +94,5 @@ def onConnecting(self, progress, message):
self._password_t = None
self._win.clear()

self._win.addstr(10, 25, "Connecting...", curses.A_BOLD | curses.A_STANDOUT)
self._win.refresh()

def onConnected(self):
self._username_t = None
self._password_t = None
self._win.clear()

self._win.addstr(10, 25, "Connected...", curses.A_BOLD | curses.A_STANDOUT)
self._win.refresh()

def onAuthenticating(self):
self._username_t = None
self._password_t = None
self._win.clear()

self._win.addstr(10, 25, "Authenticating...", curses.A_BOLD | curses.A_STANDOUT)
self._win.refresh()

def onAuthenticated(self):
self._username_t = None
self._password_t = None
self._win.clear()

self._win.addstr(10, 25, "Authenticated...", curses.A_BOLD | curses.A_STANDOUT)
self._win.refresh()

def onSynchronizing(self):
self._username_t = None
self._password_t = None
self._win.clear()

self._win.addstr(10, 25, "Fetching contact list...", curses.A_BOLD | curses.A_STANDOUT)
self._win.refresh()

def onSynchronized(self):
self._username_t = None
self._password_t = None
self._win.clear()

self._win.addstr(10, 25, "Synchronized!", curses.A_BOLD | curses.A_STANDOUT)
self._win.addstr(10, 25, message, curses.A_BOLD | curses.A_STANDOUT)
self._win.refresh()

0 comments on commit c706451

Please sign in to comment.