def command():
            """Updates values in the option tray.

            Values of the option tray are updated with
            the values in the list widget whenever the user
            edits values in the list widget.
            """
            ### retrieve values

            list_widget_values = options_list_widget.get()
            option_tray_options = value_option_tray.options

            ### if options in the list widget are different
            ### (or in different order) than those on the
            ### option tray, update the options on the
            ### option tray so they are equal

            if option_tray_options != list_widget_values:

                option_tray_value = value_option_tray.get()

                value = (
                    option_tray_value
                    if option_tray_value in list_widget_values
                    else list_widget_values[0]
                )

                value_option_tray.reset_value_and_options(
                    value=value, options=(list_widget_values)
                )
Updates values in the option tray.

            Values of the option tray are updated with
            the values in the list widget whenever the user
            edits values in the list widget.
            
nodezator/editing/widgetpicker/subforms.py