primitivus: fixed misnamed method in custom widget

This commit is contained in:
Goffi 2010-12-27 17:22:32 +01:00
commit 41c096bb7f

View file

@ -393,10 +393,11 @@ class GenericList(urwid.WidgetWrap):
self.first_display = False
def selectValue(self, value):
"""Select the first item which has the given value"""
self.unselectAll()
idx = 0
for widget in self.content:
if widget.getSelectedValue() == value:
if widget.getValue() == value:
widget.setState(True)
self.list_box.set_focus(idx)
return