primitivus: fixed misnamed method in custom widget
This commit is contained in:
parent
60fe3deea7
commit
41c096bb7f
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue