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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user