You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my situation, some options may have the same option string, I can not figure which one has been chosen by users if option_menu() only returns the string of option.
For example:
option=option_menu(None, ['A', 'B', 'A', 'C'])
If users select the third option, I will get an A, but I can not figure which A has been chosen.
In my situation, some options may have the same option string, I can not figure which one has been chosen by users if option_menu() only returns the string of option.
For example:
If users select the third option, I will get an
A
, but I can not figure whichA
has been chosen.I hope an additional parameter
return_index
like:so that I can get
idx=2
after the selection of the third option.The text was updated successfully, but these errors were encountered: