1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 12:28:08 +01:00

curses/curses_misc.py:

Added a non-selectable listbox for the wireless network header
curses/wicd-curses.py:
  Updated the wireless list-header generating function and activated it.
  Removed/deactivated some unused code.
This commit is contained in:
Andrew Psaltis
2009-03-04 16:54:26 -05:00
parent 0dfe5432bd
commit 48724d9065
2 changed files with 26 additions and 10 deletions

View File

@@ -49,7 +49,12 @@ class SelText(urwid.Text):
"""Don't handle any keys."""
return key
# This class is annoying. ^_^
# ListBox that can't be selected.
class NSelListBox(urwid.ListBox):
def selectable(self):
return False
# This class is annoying. :/
class DynWrap(urwid.AttrWrap):
"""
Makes an object have mutable selectivity. Attributes will change like