8 lines
221 B
Ruby
8 lines
221 B
Ruby
def spawn_radio_list(title, text, options_arr)
|
|
command = %(kdialog --title "#{title}" --radiolist "#{text}")
|
|
options_arr.each_with_index do |option, i|
|
|
command += %( #{i} "#{option}" off)
|
|
end
|
|
`#{command}`
|
|
end
|