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
|
self.first_display = False
|
||||||
|
|
||||||
def selectValue(self, value):
|
def selectValue(self, value):
|
||||||
|
"""Select the first item which has the given value"""
|
||||||
self.unselectAll()
|
self.unselectAll()
|
||||||
idx = 0
|
idx = 0
|
||||||
for widget in self.content:
|
for widget in self.content:
|
||||||
if widget.getSelectedValue() == value:
|
if widget.getValue() == value:
|
||||||
widget.setState(True)
|
widget.setState(True)
|
||||||
self.list_box.set_focus(idx)
|
self.list_box.set_focus(idx)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue