Stop pylint complaining about unimplemented abstract methods.
But instantiating an apparently abstract class didn't bother Python???
This commit is contained in:
@ -65,6 +65,13 @@ class RadioButtonListWalker(urwid.SimpleListWalker):
|
|||||||
super(RadioButtonListWalker, self).__init__(mapped_rb_list)
|
super(RadioButtonListWalker, self).__init__(mapped_rb_list)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def set_modified_callback(self, callback):
|
||||||
|
"""This is an abstract method in SimpleListWalker.
|
||||||
|
The urwid doc says use connect_signal(lw, 'modified', callback) instead.
|
||||||
|
"""
|
||||||
|
slw = super(RadioButtonListWalker, self)
|
||||||
|
urwid.connect_signal(slw, 'modified', callback)
|
||||||
|
return
|
||||||
|
|
||||||
class CheckBoxListWalker(urwid.SimpleListWalker):
|
class CheckBoxListWalker(urwid.SimpleListWalker):
|
||||||
|
|
||||||
@ -93,6 +100,14 @@ class CheckBoxListWalker(urwid.SimpleListWalker):
|
|||||||
super(CheckBoxListWalker, self).__init__(mapped_cb_list)
|
super(CheckBoxListWalker, self).__init__(mapped_cb_list)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def set_modified_callback(self, callback):
|
||||||
|
"""This is an abstract method in SimpleListWalker.
|
||||||
|
The urwid doc says use connect_signal(lw, 'modified', callback) instead.
|
||||||
|
"""
|
||||||
|
slw = super(CheckBoxListWalker, self)
|
||||||
|
urwid.connect_signal(slw, 'modified', callback)
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
class OptionListWalker(CheckBoxListWalker):
|
class OptionListWalker(CheckBoxListWalker):
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user