tonycpsu / panwid

A collection of widgets for urwid.
GNU Lesser General Public License v2.1
116 stars 8 forks source link

Is there a way to update dropdown list after is has been created? #9

Closed wailo closed 6 years ago

wailo commented 6 years ago

I see commented code in dropdown.py `

def set_items(self, items, selected_value):

#     self._items = items
#     self.make_selection([label for (label, value) in items if
#                          value is selected_value][0],
#                         selected_value)

`

wailo commented 6 years ago

Following solution in this link worked: https://stackoverflow.com/questions/2137354/changing-contents-of-currently-displayed-listbox-in-urwid-python2-6