Thanks for the function. I do not understand how I must use that :-(
choice_table?


Am Mittwoch, 3. Mai 2017, 15:55:42 CEST schrieb William Ferguson:
> local function update_combobox_choices(combobox, choice_table, selected)
>   local items = #combobox
>   local choices = #choice_table
>   for i, name in ipairs(choice_table) do
>     combobox[i] = name
>   end
>   if choices < items then
>     for j = items, choices + 1, -1 do
>       combobox[j] = nil
>     end
>   end
>   combobox.value = selected
> end


___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to