Open vlovich opened 10 months ago
RadioList has a _handle_enter
function that changes the selection when a radio list item is changed. I wrote my own handle_enter
and set it to the _handle_enter
:
radio_list = RadioList(values=radio_values)
def handle_enter():
new_value = radio_list.values[self.radios._selected_index][0]
radio_list.current_value = new_value
# other logic here
radio_list._handle_enter = handle_enter
I want to create 2 RadioLists where the contents of the 2nd radio list are determined by the selection in the first radio list. If I'm not mistaken, RadioList doesn't have any hook to let you monitor that the event changed. Wondering how I can accomplish this.
e.g.
and