1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-06 13:54:17 +01:00

curses/netentry_curses.py:

Made the password field actually keep its "passwordiness" when we go to the
    buttons.
in/scripts=wicd-client.in:
  Added support for X being off and wicd-curses not being there
This commit is contained in:
Andrew Psaltis
2009-02-28 08:40:02 -05:00
parent fe7062371c
commit 432f1c96ca
2 changed files with 34 additions and 20 deletions

View File

@@ -192,11 +192,16 @@ class AdvancedSettingsDialog(urwid.WidgetWrap):
self.overlay.mouse_event( dim,
event, button, col, row,
focus=True)
k = self.overlay.keypress(dim, k)
if k in ('up','page up'):
self._w.set_focus('body')
elif k in ('down','page down'):
self._w.set_focus('footer')
else:
k = self.overlay.keypress(dim, k)
if k in ('up','page up'):
self._w.set_focus('body')
# Until I figure out a better way to do this, then this will
# have to do.
self._w.body.get_focus()[0].get_focus()._invalidate()
#self._w.body.keypress(dim,'down')
elif k in ('down','page down'):
self._w.set_focus('footer')
if "window resize" in keys:
dim = ui.get_cols_rows()