How can I get the current key of a dropdown widget?
using Interact
d = dropdown(OrderedDict(“one” => 1, “two” => 2))
getindex(d) #gets current value
getkey(d) #not works…
Thanks
How can I get the current key of a dropdown widget?
using Interact
d = dropdown(OrderedDict(“one” => 1, “two” => 2))
getindex(d) #gets current value
getkey(d) #not works…
Thanks