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

Added support for disabling nonexistent external tools in the pref_curses.py.

Added a DynRadioButton in curses_misc.py.
This commit is contained in:
Andrew Psaltis
2009-04-21 13:16:44 -04:00
parent bac80f3123
commit 8014a2b16a
2 changed files with 24 additions and 8 deletions

View File

@@ -107,6 +107,12 @@ class DynIntEdit(DynWrap):
edit = urwid.IntEdit(caption,edit_text)
self.__super.__init__(edit,sensitive,attrs,focus_attr)
class DynRadioButton(DynWrap):
def __init__(self,group,label,state='first True',on_state_change=None, user_data=None, sensitive=True, attrs=('body','editnfc'),focus_attr='body'):
#caption = ('editcp',caption + ':')
button = urwid.RadioButton(group,label,state,on_state_change,user_data)
self.__super.__init__(button,sensitive,attrs,focus_attr)
class MaskingEditException(Exception):
pass